Options
All
  • Public
  • Public/Protected
  • All
Menu

@iov/bcp Documentation

Index

Enumerations

Classes

Interfaces

Type aliases

Functions

Type aliases

AccountQuery

AccountQuery: AddressQuery | PubkeyQuery

Address

Address: string & As<"address">

A codec specific address encoded as a string

AtomicSwap

AtomicSwapQuery

BlockId

BlockId: string & As<"block-id">

A printable block ID in a blockchain-specific format.

In Lisk, this is a uint64 number like 3444561236416494115 and in BNS this is an upper hex encoded 20 byte hash like 6DD2BFCD9CEFE93C64C15439C513BFD61A0225BB. Ethereum uses 0x-prefixed hashes like 0x4bd6efe48bed3ea4fd25678cc81d1ed372bb8c8654c29880889fed66130c6502

BlockInfo

Information attached to a signature about its state in a block

ChainId

ChainId: string & As<"chain-id">

Used to differentiate a blockchain. Should be alphanumeric or -_/ and unique

ConfirmedAndSignedTransaction

ConfirmedAndSignedTransaction<T>: ConfirmedTransaction<T> & SignedTransaction<T>

Type parameters

Hash

Hash: Uint8Array & As<"hash">

Nonce

Nonce: number & As<"nonce">

An integer in the safe integer range

PostableBytes

PostableBytes: Uint8Array & As<"postable">

Preimage

Preimage: Uint8Array & As<"preimage">

PubkeyBytes

PubkeyBytes: Uint8Array & As<"pubkey-bytes">

SignableBytes

SignableBytes: Uint8Array & As<"signable">

SignatureBytes

SignatureBytes: Uint8Array & As<"signature">

SwapIdBytes

SwapIdBytes: Uint8Array & As<"swap-id">

SwapTimeout

SwapTransaction

TokenTicker

TokenTicker: string & As<"token-ticker">

TransactionId

TransactionId: string & As<"transaction-id">

A printable transaction ID in a blockchain-specific format.

In Lisk, this is a uint64 number like 3444561236416494115 and in BNS this is an upper hex encoded 20 byte hash like 3A0DB99E82E11DBB9F987EFCD04264305C2CA6F2. Ethereum uses 0x-prefixed hashes like 0xce8145665aa6ce4c7d01aabffbb610efd03de4d84785840d43b000e1b7e785c3

UnsignedTransaction

UnsignedTransaction: LightTransaction & WithCreator

Functions

createTimestampTimeout

identityEquals

  • Compares two objects that conform to the Identity interface for equality. All additional (non-Identity) fields are ignored.

    Parameters

    • left: Identity

      the left hand side of the comparison

    • right: Identity

      the right hand side of the comparison

    Returns boolean

isAbortedSwap

isAddressQuery

isAmount

  • isAmount(data: unknown): boolean

isAtomicSwapConnection

isAtomicSwapHashQuery

isAtomicSwapIdQuery

isAtomicSwapRecipientQuery

isAtomicSwapSenderQuery

isBlockHeightTimeout

isBlockInfoFailed

  • isBlockInfoFailed(info: BlockInfo): boolean

isBlockInfoPending

  • isBlockInfoPending(info: BlockInfo): boolean

isBlockInfoSucceeded

  • isBlockInfoSucceeded(info: BlockInfo): boolean

isClaimedSwap

isConfirmedTransaction

isFailedTransaction

isFee

  • isFee(data: unknown): boolean

isFullSignature

  • isFullSignature(data: unknown): boolean

isIdentity

  • isIdentity(data: unknown): boolean

isLightTransaction

  • isLightTransaction(data: unknown): boolean

isOpenSwap

isPubkeyBundle

  • isPubkeyBundle(data: unknown): boolean

isPubkeyQuery

isSendTransaction

isSwapAbortTransaction

isSwapClaimTransaction

isSwapOfferTransaction

isSwapProcessStateAborted

isSwapProcessStateClaimed

isSwapProcessStateOpen

isSwapTransaction

isTimestampTimeout

isUnsignedTransaction

  • isUnsignedTransaction(data: unknown): boolean

pubkeyBundleEquals

  • Compares two objects that conform to the PubkeyBundle interface for equality.

    This can also be used to compare pairs of derived types in which case all non-PubkeyBundle fields are ignored.

    Parameters

    Returns boolean

swapIdEquals

Generated using TypeDoc