Skip to content

@liquality.evm.<internal>.LiqualityHTLC

Krasimir Raykov edited this page Mar 30, 2022 · 1 revision

Interface: LiqualityHTLC

@liquality/evm..LiqualityHTLC

Hierarchy

  • BaseContract

    LiqualityHTLC

Table of contents

Properties

Methods

Properties

callStatic

callStatic: Object

Type declaration

Name Type
claim (id: BytesLike, secret: BytesLike, overrides?: CallOverrides) => Promise<void>
htlcs (arg0: BytesLike, overrides?: CallOverrides) => Promise<[BigNumber, BigNumber, string, string, string, string] & { amount: BigNumber ; expiration: BigNumber ; recipientAddress: string ; refundAddress: string ; secretHash: string ; tokenAddress: string }>
initiate (htlc: HTLCDataStruct, overrides?: CallOverrides) => Promise<string>
refund (id: BytesLike, overrides?: CallOverrides) => Promise<void>

Overrides

BaseContract.callStatic

Defined in

evm/lib/typechain/LiqualityHTLC.ts:191


contractName

contractName: "LiqualityHTLC"

Defined in

evm/lib/typechain/LiqualityHTLC.ts:103


estimateGas

estimateGas: Object

Type declaration

Name Type
claim (id: BytesLike, secret: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
htlcs (arg0: BytesLike, overrides?: CallOverrides) => Promise<BigNumber>
initiate (htlc: HTLCDataStruct, overrides?: PayableOverrides & { from?: string | Promise<string> }) => Promise<BigNumber>
refund (id: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>

Overrides

BaseContract.estimateGas

Defined in

evm/lib/typechain/LiqualityHTLC.ts:234


filters

filters: Object

Type declaration

Name Type
Claim (id?: BytesLike, secret?: null) => ClaimEventFilter
Claim(bytes32,bytes32) (id?: BytesLike, secret?: null) => ClaimEventFilter
Initiate (id?: null, htlc?: null) => InitiateEventFilter
Initiate(bytes32,tuple) (id?: null, htlc?: null) => InitiateEventFilter
Refund (id?: BytesLike) => RefundEventFilter
Refund(bytes32) (id?: BytesLike) => RefundEventFilter

Overrides

BaseContract.filters

Defined in

evm/lib/typechain/LiqualityHTLC.ts:220


functions

functions: Object

Type declaration

Name Type
claim (id: BytesLike, secret: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
htlcs (arg0: BytesLike, overrides?: CallOverrides) => Promise<[BigNumber, BigNumber, string, string, string, string] & { amount: BigNumber ; expiration: BigNumber ; recipientAddress: string ; refundAddress: string ; secretHash: string ; tokenAddress: string }>
initiate (htlc: HTLCDataStruct, overrides?: PayableOverrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
refund (id: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>

Overrides

BaseContract.functions

Defined in

evm/lib/typechain/LiqualityHTLC.ts:129


interface

interface: LiqualityHTLCInterface

Overrides

BaseContract.interface

Defined in

evm/lib/typechain/LiqualityHTLC.ts:108


off

off: OnEvent<LiqualityHTLC>

Overrides

BaseContract.off

Defined in

evm/lib/typechain/LiqualityHTLC.ts:124


on

on: OnEvent<LiqualityHTLC>

Overrides

BaseContract.on

Defined in

evm/lib/typechain/LiqualityHTLC.ts:125


once

once: OnEvent<LiqualityHTLC>

Overrides

BaseContract.once

Defined in

evm/lib/typechain/LiqualityHTLC.ts:126


populateTransaction

populateTransaction: Object

Type declaration

Name Type
claim (id: BytesLike, secret: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
htlcs (arg0: BytesLike, overrides?: CallOverrides) => Promise<PopulatedTransaction>
initiate (htlc: HTLCDataStruct, overrides?: PayableOverrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
refund (id: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>

Overrides

BaseContract.populateTransaction

Defined in

evm/lib/typechain/LiqualityHTLC.ts:254


removeListener

removeListener: OnEvent<LiqualityHTLC>

Overrides

BaseContract.removeListener

Defined in

evm/lib/typechain/LiqualityHTLC.ts:127

Methods

attach

attach(addressOrName): LiqualityHTLC

Parameters

Name Type
addressOrName string

Returns

LiqualityHTLC

Overrides

BaseContract.attach

Defined in

evm/lib/typechain/LiqualityHTLC.ts:105


claim

claim(id, secret, overrides?): Promise<ContractTransaction>

Parameters

Name Type
id BytesLike
secret BytesLike
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

evm/lib/typechain/LiqualityHTLC.ts:161


connect

connect(signerOrProvider): LiqualityHTLC

Parameters

Name Type
signerOrProvider string | Provider | Signer

Returns

LiqualityHTLC

Overrides

BaseContract.connect

Defined in

evm/lib/typechain/LiqualityHTLC.ts:104


deployed

deployed(): Promise<LiqualityHTLC>

Returns

Promise<LiqualityHTLC>

Overrides

BaseContract.deployed

Defined in

evm/lib/typechain/LiqualityHTLC.ts:106


htlcs

htlcs(arg0, overrides?): Promise<[BigNumber, BigNumber, string, string, string, string] & { amount: BigNumber ; expiration: BigNumber ; recipientAddress: string ; refundAddress: string ; secretHash: string ; tokenAddress: string }>

Parameters

Name Type
arg0 BytesLike
overrides? CallOverrides

Returns

Promise<[BigNumber, BigNumber, string, string, string, string] & { amount: BigNumber ; expiration: BigNumber ; recipientAddress: string ; refundAddress: string ; secretHash: string ; tokenAddress: string }>

Defined in

evm/lib/typechain/LiqualityHTLC.ts:167


initiate

initiate(htlc, overrides?): Promise<ContractTransaction>

Parameters

Name Type
htlc HTLCDataStruct
overrides? PayableOverrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

evm/lib/typechain/LiqualityHTLC.ts:181


listeners

listeners<TEvent>(eventFilter?): TypedListener<TEvent>[]

Type parameters

Name Type
TEvent extends TypedEvent<any, any, TEvent>

Parameters

Name Type
eventFilter? TypedEventFilter<TEvent>

Returns

TypedListener<TEvent>[]

Overrides

BaseContract.listeners

Defined in

evm/lib/typechain/LiqualityHTLC.ts:116

listeners(eventName?): Listener[]

Parameters

Name Type
eventName? string

Returns

Listener[]

Overrides

BaseContract.listeners

Defined in

evm/lib/typechain/LiqualityHTLC.ts:119


queryFilter

queryFilter<TEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TEvent[]>

Type parameters

Name Type
TEvent extends TypedEvent<any, any, TEvent>

Parameters

Name Type
event TypedEventFilter<TEvent>
fromBlockOrBlockhash? string | number
toBlock? string | number

Returns

Promise<TEvent[]>

Overrides

BaseContract.queryFilter

Defined in

evm/lib/typechain/LiqualityHTLC.ts:110


refund

refund(id, overrides?): Promise<ContractTransaction>

Parameters

Name Type
id BytesLike
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

evm/lib/typechain/LiqualityHTLC.ts:186


removeAllListeners

removeAllListeners<TEvent>(eventFilter): LiqualityHTLC

Type parameters

Name Type
TEvent extends TypedEvent<any, any, TEvent>

Parameters

Name Type
eventFilter TypedEventFilter<TEvent>

Returns

LiqualityHTLC

Overrides

BaseContract.removeAllListeners

Defined in

evm/lib/typechain/LiqualityHTLC.ts:120

removeAllListeners(eventName?): LiqualityHTLC

Parameters

Name Type
eventName? string

Returns

LiqualityHTLC

Overrides

BaseContract.removeAllListeners

Defined in

evm/lib/typechain/LiqualityHTLC.ts:123

Clone this wiki locally