Interface CrosschainInterface

interface CrosschainInterface {
    EXPIRE_CALLER_REWARD: TypedContractMethod<[], [bigint], "view">;
    EXPIRE_CALLER_REWARD_DENOMINATOR: TypedContractMethod<[], [bigint], "view">;
    GARP: TypedContractMethod<[], [string], "view">;
    UNDERWRITING_COLLATORAL: TypedContractMethod<[], [bigint], "view">;
    UNDERWRITING_COLLATORAL_DENOMINATOR: TypedContractMethod<[], [bigint], "view">;
    [internal]: any;
    chainIdentifierToDestinationAddress: TypedContractMethod<[arg0: BytesLike], [string], "view">;
    connectNewChain: TypedContractMethod<[chainIdentifier: BytesLike, remoteCCI: BytesLike, remoteGARP: BytesLike], [void], "nonpayable">;
    convertEVMTo65: TypedContractMethod<[evmAddress: AddressLike], [string], "view">;
    estimateAdditionalCost: TypedContractMethod<[], [[string, bigint] & {
        amount: bigint;
        asset: string;
    }], "view">;
    expireUnderwrite: TypedContractMethod<[targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [void], "nonpayable">;
    fallback: null | WrappedFallback;
    filters: {
        ExpireUnderwrite: TypedContractEvent<ExpireUnderwriteEvent.InputTuple, ExpireUnderwriteEvent.OutputTuple, ExpireUnderwriteEvent.OutputObject>;
        ExpireUnderwrite(bytes32,address,uint256): TypedContractEvent<ExpireUnderwriteEvent.InputTuple, ExpireUnderwriteEvent.OutputTuple, ExpireUnderwriteEvent.OutputObject>;
        FulfillUnderwrite: TypedContractEvent<FulfillUnderwriteEvent.InputTuple, FulfillUnderwriteEvent.OutputTuple, FulfillUnderwriteEvent.OutputObject>;
        FulfillUnderwrite(bytes32): TypedContractEvent<FulfillUnderwriteEvent.InputTuple, FulfillUnderwriteEvent.OutputTuple, FulfillUnderwriteEvent.OutputObject>;
        MaxUnderwriteDuration: TypedContractEvent<MaxUnderwriteDurationEvent.InputTuple, MaxUnderwriteDurationEvent.OutputTuple, MaxUnderwriteDurationEvent.OutputObject>;
        MaxUnderwriteDuration(uint256): TypedContractEvent<MaxUnderwriteDurationEvent.InputTuple, MaxUnderwriteDurationEvent.OutputTuple, MaxUnderwriteDurationEvent.OutputObject>;
        MinGasFor: TypedContractEvent<MinGasForEvent.InputTuple, MinGasForEvent.OutputTuple, MinGasForEvent.OutputObject>;
        MinGasFor(bytes32,uint48): TypedContractEvent<MinGasForEvent.InputTuple, MinGasForEvent.OutputTuple, MinGasForEvent.OutputObject>;
        RemoteImplementationSet: TypedContractEvent<RemoteImplementationSetEvent.InputTuple, RemoteImplementationSetEvent.OutputTuple, RemoteImplementationSetEvent.OutputObject>;
        RemoteImplementationSet(bytes32,bytes,bytes): TypedContractEvent<RemoteImplementationSetEvent.InputTuple, RemoteImplementationSetEvent.OutputTuple, RemoteImplementationSetEvent.OutputObject>;
        SwapFailed: TypedContractEvent<SwapFailedEvent.InputTuple, SwapFailedEvent.OutputTuple, SwapFailedEvent.OutputObject>;
        SwapFailed(bytes1): TypedContractEvent<SwapFailedEvent.InputTuple, SwapFailedEvent.OutputTuple, SwapFailedEvent.OutputObject>;
        SwapUnderwritten: TypedContractEvent<SwapUnderwrittenEvent.InputTuple, SwapUnderwrittenEvent.OutputTuple, SwapUnderwrittenEvent.OutputObject>;
        SwapUnderwritten(bytes32,address,uint96,address,address,uint256,address,uint256): TypedContractEvent<SwapUnderwrittenEvent.InputTuple, SwapUnderwrittenEvent.OutputTuple, SwapUnderwrittenEvent.OutputObject>;
    };
    getUnderwriteIdentifier: TypedContractMethod<[targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [string], "view">;
    interface: CrosschainInterfaceInterface;
    maxUnderwritingDuration: TypedContractMethod<[], [bigint], "view">;
    minGasFor: TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
    owner: TypedContractMethod<[], [string], "view">;
    receiveAck: TypedContractMethod<[destinationIdentifier: BytesLike, messageIdentifier: BytesLike, acknowledgement: BytesLike], [void], "nonpayable">;
    receiveMessage: TypedContractMethod<[sourceIdentifier: BytesLike, arg1: BytesLike, fromApplication: BytesLike, message: BytesLike], [string], "nonpayable">;
    renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
    runner: null | ContractRunner;
    setMaxUnderwritingDuration: TypedContractMethod<[newMaxUnderwriteDuration: BigNumberish], [void], "nonpayable">;
    setMinGasFor: TypedContractMethod<[chainIdentifier: BytesLike, minGas: BigNumberish], [void], "nonpayable">;
    target: string | Addressable;
    thisBytes65: TypedContractMethod<[], [string], "view">;
    transferOwnership: TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
    underwrite: TypedContractMethod<[targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [string], "nonpayable">;
    underwriteAndCheckConnection: TypedContractMethod<[sourceIdentifier: BytesLike, fromVault: BytesLike, targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [void], "nonpayable">;
    underwritingStorage: TypedContractMethod<[arg0: BytesLike], [[bigint, string, bigint] & {
        expiry: bigint;
        refundTo: string;
        tokens: bigint;
    }], "view">;
    addListener(event, listener): Promise<CrosschainInterface>;
    attach(target): BaseContract;
    connect(runner?): CrosschainInterface;
    deploymentTransaction(): null | ContractTransactionResponse;
    emit(event, ...args): Promise<boolean>;
    getAddress(): Promise<string>;
    getDeployedCode(): Promise<null | string>;
    getEvent(key): TypedContractEvent<ExpireUnderwriteEvent.InputTuple, ExpireUnderwriteEvent.OutputTuple, ExpireUnderwriteEvent.OutputObject>;
    getEvent(key): TypedContractEvent<FulfillUnderwriteEvent.InputTuple, FulfillUnderwriteEvent.OutputTuple, FulfillUnderwriteEvent.OutputObject>;
    getEvent(key): TypedContractEvent<MaxUnderwriteDurationEvent.InputTuple, MaxUnderwriteDurationEvent.OutputTuple, MaxUnderwriteDurationEvent.OutputObject>;
    getEvent(key): TypedContractEvent<MinGasForEvent.InputTuple, MinGasForEvent.OutputTuple, MinGasForEvent.OutputObject>;
    getEvent(key): TypedContractEvent<RemoteImplementationSetEvent.InputTuple, RemoteImplementationSetEvent.OutputTuple, RemoteImplementationSetEvent.OutputObject>;
    getEvent(key): TypedContractEvent<SwapFailedEvent.InputTuple, SwapFailedEvent.OutputTuple, SwapFailedEvent.OutputObject>;
    getEvent(key): TypedContractEvent<SwapUnderwrittenEvent.InputTuple, SwapUnderwrittenEvent.OutputTuple, SwapUnderwrittenEvent.OutputObject>;
    getFunction<T>(key): T;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: BytesLike], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[chainIdentifier: BytesLike, remoteCCI: BytesLike, remoteGARP: BytesLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[evmAddress: AddressLike], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [[string, bigint] & {
        amount: bigint;
        asset: string;
    }], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[destinationIdentifier: BytesLike, messageIdentifier: BytesLike, acknowledgement: BytesLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[sourceIdentifier: BytesLike, arg1: BytesLike, fromApplication: BytesLike, message: BytesLike], [string], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[newMaxUnderwriteDuration: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[chainIdentifier: BytesLike, minGas: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [string], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[sourceIdentifier: BytesLike, fromVault: BytesLike, targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: BytesLike], [[bigint, string, bigint] & {
        expiry: bigint;
        refundTo: string;
        tokens: bigint;
    }], "view">;
    listenerCount(event?): Promise<number>;
    listeners<TCEvent>(event): Promise<TypedListener<TCEvent>[]>;
    listeners(eventName?): Promise<Listener[]>;
    off(event, listener?): Promise<CrosschainInterface>;
    on<TCEvent>(event, listener): Promise<CrosschainInterface>;
    on<TCEvent>(filter, listener): Promise<CrosschainInterface>;
    once<TCEvent>(event, listener): Promise<CrosschainInterface>;
    once<TCEvent>(filter, listener): Promise<CrosschainInterface>;
    queryFilter<TCEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>;
    queryFilter<TCEvent>(filter, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>;
    queryTransaction(hash): Promise<EventLog[]>;
    removeAllListeners<TCEvent>(event?): Promise<CrosschainInterface>;
    removeListener(event, listener): Promise<CrosschainInterface>;
    waitForDeployment(): Promise<CrosschainInterface>;
}

Hierarchy

  • BaseContract
    • CrosschainInterface

Properties

EXPIRE_CALLER_REWARD: TypedContractMethod<[], [bigint], "view">
EXPIRE_CALLER_REWARD_DENOMINATOR: TypedContractMethod<[], [bigint], "view">
GARP: TypedContractMethod<[], [string], "view">
UNDERWRITING_COLLATORAL: TypedContractMethod<[], [bigint], "view">
UNDERWRITING_COLLATORAL_DENOMINATOR: TypedContractMethod<[], [bigint], "view">
[internal]: any

@_ignore:

chainIdentifierToDestinationAddress: TypedContractMethod<[arg0: BytesLike], [string], "view">
connectNewChain: TypedContractMethod<[chainIdentifier: BytesLike, remoteCCI: BytesLike, remoteGARP: BytesLike], [void], "nonpayable">
convertEVMTo65: TypedContractMethod<[evmAddress: AddressLike], [string], "view">
estimateAdditionalCost: TypedContractMethod<[], [[string, bigint] & {
    amount: bigint;
    asset: string;
}], "view">
expireUnderwrite: TypedContractMethod<[targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [void], "nonpayable">
fallback: null | WrappedFallback

The fallback or receive function if any.

filters: {
    ExpireUnderwrite: TypedContractEvent<ExpireUnderwriteEvent.InputTuple, ExpireUnderwriteEvent.OutputTuple, ExpireUnderwriteEvent.OutputObject>;
    ExpireUnderwrite(bytes32,address,uint256): TypedContractEvent<ExpireUnderwriteEvent.InputTuple, ExpireUnderwriteEvent.OutputTuple, ExpireUnderwriteEvent.OutputObject>;
    FulfillUnderwrite: TypedContractEvent<FulfillUnderwriteEvent.InputTuple, FulfillUnderwriteEvent.OutputTuple, FulfillUnderwriteEvent.OutputObject>;
    FulfillUnderwrite(bytes32): TypedContractEvent<FulfillUnderwriteEvent.InputTuple, FulfillUnderwriteEvent.OutputTuple, FulfillUnderwriteEvent.OutputObject>;
    MaxUnderwriteDuration: TypedContractEvent<MaxUnderwriteDurationEvent.InputTuple, MaxUnderwriteDurationEvent.OutputTuple, MaxUnderwriteDurationEvent.OutputObject>;
    MaxUnderwriteDuration(uint256): TypedContractEvent<MaxUnderwriteDurationEvent.InputTuple, MaxUnderwriteDurationEvent.OutputTuple, MaxUnderwriteDurationEvent.OutputObject>;
    MinGasFor: TypedContractEvent<MinGasForEvent.InputTuple, MinGasForEvent.OutputTuple, MinGasForEvent.OutputObject>;
    MinGasFor(bytes32,uint48): TypedContractEvent<MinGasForEvent.InputTuple, MinGasForEvent.OutputTuple, MinGasForEvent.OutputObject>;
    RemoteImplementationSet: TypedContractEvent<RemoteImplementationSetEvent.InputTuple, RemoteImplementationSetEvent.OutputTuple, RemoteImplementationSetEvent.OutputObject>;
    RemoteImplementationSet(bytes32,bytes,bytes): TypedContractEvent<RemoteImplementationSetEvent.InputTuple, RemoteImplementationSetEvent.OutputTuple, RemoteImplementationSetEvent.OutputObject>;
    SwapFailed: TypedContractEvent<SwapFailedEvent.InputTuple, SwapFailedEvent.OutputTuple, SwapFailedEvent.OutputObject>;
    SwapFailed(bytes1): TypedContractEvent<SwapFailedEvent.InputTuple, SwapFailedEvent.OutputTuple, SwapFailedEvent.OutputObject>;
    SwapUnderwritten: TypedContractEvent<SwapUnderwrittenEvent.InputTuple, SwapUnderwrittenEvent.OutputTuple, SwapUnderwrittenEvent.OutputObject>;
    SwapUnderwritten(bytes32,address,uint96,address,address,uint256,address,uint256): TypedContractEvent<SwapUnderwrittenEvent.InputTuple, SwapUnderwrittenEvent.OutputTuple, SwapUnderwrittenEvent.OutputObject>;
}

Type declaration

getUnderwriteIdentifier: TypedContractMethod<[targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [string], "view">
maxUnderwritingDuration: TypedContractMethod<[], [bigint], "view">
minGasFor: TypedContractMethod<[arg0: BytesLike], [bigint], "view">
owner: TypedContractMethod<[], [string], "view">
receiveAck: TypedContractMethod<[destinationIdentifier: BytesLike, messageIdentifier: BytesLike, acknowledgement: BytesLike], [void], "nonpayable">
receiveMessage: TypedContractMethod<[sourceIdentifier: BytesLike, arg1: BytesLike, fromApplication: BytesLike, message: BytesLike], [string], "nonpayable">
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">
runner: null | ContractRunner

The connected runner. This is generally a [[Provider]] or a [[Signer]], which dictates what operations are supported.

For example, a Contract connected to a [[Provider]] may only execute read-only operations.

setMaxUnderwritingDuration: TypedContractMethod<[newMaxUnderwriteDuration: BigNumberish], [void], "nonpayable">
setMinGasFor: TypedContractMethod<[chainIdentifier: BytesLike, minGas: BigNumberish], [void], "nonpayable">
target: string | Addressable

The target to connect to.

This can be an address, ENS name or any [[Addressable]], such as another contract. To get the resovled address, use the getAddress method.

thisBytes65: TypedContractMethod<[], [string], "view">
transferOwnership: TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">
underwrite: TypedContractMethod<[targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [string], "nonpayable">
underwriteAndCheckConnection: TypedContractMethod<[sourceIdentifier: BytesLike, fromVault: BytesLike, targetVault: AddressLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish, toAccount: AddressLike, underwriteIncentiveX16: BigNumberish, cdata: BytesLike], [void], "nonpayable">
underwritingStorage: TypedContractMethod<[arg0: BytesLike], [[bigint, string, bigint] & {
    expiry: bigint;
    refundTo: string;
    tokens: bigint;
}], "view">

Methods

  • Alias for [on].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<CrosschainInterface>

  • Return a new Contract instance with the same ABI and runner, but a different %%target%%.

    Parameters

    • target: string | Addressable

    Returns BaseContract

  • Return the transaction used to deploy this contract.

    This is only available if this instance was returned from a [[ContractFactory]].

    Returns null | ContractTransactionResponse

  • Emit an %%event%% calling all listeners with %%args%%.

    Resolves to true if any listeners were called.

    Parameters

    • event: ContractEventName
    • Rest ...args: any[]

    Returns Promise<boolean>

  • Return the resolved address of this Contract.

    Returns Promise<string>

  • Return the deployed bytecode or null if no bytecode is found.

    Returns Promise<null | string>

  • Resolves to the number of listeners of %%event%% or the total number of listeners if unspecified.

    Parameters

    • Optional event: ContractEventName

    Returns Promise<number>

  • Remove the %%listener%% from the listeners for %%event%% or remove all listeners if unspecified.

    Parameters

    • event: ContractEventName
    • Optional listener: Listener

    Returns Promise<CrosschainInterface>

  • @_ignore:

    Parameters

    • hash: string

    Returns Promise<EventLog[]>

  • Alias for [off].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<CrosschainInterface>