- AddressV1
- AuctionExt
- BidExt
- DefaultInfoExt
- ICNSETHVerify
- ICNSRegistrar
- Info
- Metadata
- RecordExt
- RegisterInfo
- ToBigNumberOptions
- ICNSETHVerifyController
- ICNSRegistrarController
- ICNSRegistryController
- ICNSResolverController
- ICNSReverseController
- VerifyDomainName
- addIcpSuffix
- formatAmount
- getCrc32
- getDeadline
- removeIcpSuffix
- toBigNumber
- toExponential
- verifyAccountId
Ƭ Address: Object
Name | Type |
---|---|
V001 |
AddressV1 |
Ƭ BidState: { win
: null
} | { lost
: null
} | { processing
: null
}
Ƭ Operation: { transferFrom
: null
} | { burn
: null
} | { mint
: null
} | { approve
: null
} | { transfer
: null
}
Ƭ Result: { Ok
: null
} | { Err
: string
}
Ƭ TxReceipt: { ok
: bigint
} | { err
: string
}
▸ VerifyDomainName(domain
): boolean
Name | Type |
---|---|
domain |
undefined | string |
boolean
▸ addIcpSuffix(name
): string
Name | Type |
---|---|
name |
undefined | string |
string
▸ formatAmount(amount
): string
Formats an amount to a small string with scientific notation
Name | Type |
---|---|
amount |
string |
string
▸ getCrc32(buf
): number
Calculate the CRC32 of an ArrayBufferLike.
Name | Type | Description |
---|---|---|
buf |
any |
The BufferLike to calculate the CRC32 of. |
number
▸ getDeadline(): bigint
Get deadline for swap canister requests.
bigint
▸ removeIcpSuffix(name
): string
Name | Type |
---|---|
name |
undefined | string |
string
▸ toBigNumber(num?
, options?
): BigNumber
Converts a value to a BigNumber.
Name | Type | Description |
---|---|---|
num? |
Number |
Represents number value. |
options? |
ToBigNumberOptions |
Represents value options. |
BigNumber
▸ toExponential(decimals
): BigNumber
Create an exponential notation by given decimals.
Name | Type |
---|---|
decimals |
Number |
BigNumber
▸ verifyAccountId(hexString
): boolean
Name | Type |
---|---|
hexString |
string |
boolean