ton3-core
- AddressRewriteOptions
- AddressStringifyOptions
- CellOptions
- HashmapOptions
- BOCOptions
- CoinsOptions
- ContractBaseOptions
- Address
- Builder
- Cell
- Hashmap
- HashmapE
- BOC
- Mask
- Slice
- Coins
- ContractBase
- ContractLibrary
- MessageInternal
- MessageExternalIn
- deserializeFift
- deserialize
- serialize
- augment
- rollback
- crc16
- crc16BytesBe
- crc32c
- crc32cBytesLe
- sha256
- sha512
- uintToHex
- hexToBits
- hexToBytes
- bytesToUint
- bytesCompare
- bytesToBits
- bitsToHex
- bitsToBytes
- bytesToHex
- bytesToString
- stringToBytes
- bytesToBase64
- base64ToBytes
- sliceIntoChunks
- bitsToBigUint
- bitsToBigInt
- bitsToIntUint
Ƭ AddressType: "base64"
| "raw"
Ƭ BOCEncoding: "hex"
| "base64"
| "fift"
Ƭ Bit: 1
| 0
▸ deserializeFift(data
): Cell
[]
Name | Type |
---|---|
data |
string |
Cell
[]
▸ deserialize(data
, checkMerkleProofs
): Cell
[]
Name | Type |
---|---|
data |
Uint8Array |
checkMerkleProofs |
boolean |
Cell
[]
▸ serialize(root
, options?
): Uint8Array
Name | Type |
---|---|
root |
Cell [] |
options |
BOCOptions |
Uint8Array
▸ augment(bits
, divider?
): Bit
[]
Augment bits with 1 and leading 0 to be divisible by 8 or 4 without remainder. Mostly used for BOC serialization or Cell hash calculations.
Name | Type | Default value | Description |
---|---|---|---|
bits |
Bit [] |
undefined |
Bits which need to be augmented. |
divider |
4 | 8 |
8 |
- |
Bit
[]
▸ rollback(bits
): Bit
[]
Remove augmented bits. Mostly used for BOC serialization or Cell hash calculations.
Name | Type | Description |
---|---|---|
bits |
Bit [] |
Bits which needs to be cleared from augmented bits. |
Bit
[]
▸ crc16(data
): number
Name | Type |
---|---|
data |
Uint8Array | number [] |
number
▸ crc16BytesBe(data
): Uint8Array
Name | Type |
---|---|
data |
Uint8Array | number [] |
Uint8Array
▸ crc32c(data
): number
Name | Type |
---|---|
data |
Uint8Array | number [] |
number
▸ crc32cBytesLe(data
): Uint8Array
Name | Type |
---|---|
data |
Uint8Array | number [] |
Uint8Array
▸ sha256(bytes
): string
Name | Type |
---|---|
bytes |
Uint8Array |
string
▸ sha512(bytes
): string
Name | Type |
---|---|
bytes |
Uint8Array |
string
▸ uintToHex(uint
): string
Name | Type |
---|---|
uint |
number |
string
▸ hexToBits(hex
): Bit
[]
Name | Type |
---|---|
hex |
string |
Bit
[]
▸ hexToBytes(hex
): Uint8Array
Name | Type |
---|---|
hex |
string |
Uint8Array
▸ bytesToUint(bytes
): number
Name | Type |
---|---|
bytes |
Uint8Array | number [] |
number
▸ bytesCompare(a
, b
): boolean
Name | Type |
---|---|
a |
Uint8Array | number [] |
b |
Uint8Array | number [] |
boolean
▸ bytesToBits(data
): Bit
[]
Name | Type |
---|---|
data |
Uint8Array | number [] |
Bit
[]
▸ bitsToHex(bits
): string
Name | Type |
---|---|
bits |
Bit [] |
string
▸ bitsToBytes(bits
): Uint8Array
Name | Type |
---|---|
bits |
Bit [] |
Uint8Array
▸ bytesToHex(bytes
): string
Name | Type |
---|---|
bytes |
Uint8Array |
string
▸ bytesToString(bytes
): string
Name | Type |
---|---|
bytes |
Uint8Array |
string
▸ stringToBytes(value
): Uint8Array
Name | Type |
---|---|
value |
string |
Uint8Array
▸ bytesToBase64(data
): string
Name | Type |
---|---|
data |
Uint8Array | number [] |
string
▸ base64ToBytes(base64
): Uint8Array
Name | Type |
---|---|
base64 |
string |
Uint8Array
▸ sliceIntoChunks(arr
, chunkSize
): any
[]
Name | Type |
---|---|
arr |
any [] |
chunkSize |
number |
any
[]
▸ bitsToBigUint(bits
): Object
Name | Type |
---|---|
bits |
Bit [] |
Object
Name | Type |
---|---|
value |
bigint |
isSafe |
boolean |
▸ bitsToBigInt(bits
): Object
Name | Type |
---|---|
bits |
Bit [] |
Object
Name | Type |
---|---|
value |
bigint |
isSafe |
boolean |
▸ bitsToIntUint(bits
, options
): number
Name | Type |
---|---|
bits |
Bit [] |
options |
Object |
options.type |
"int" | "uint" |
number
• Const
isNodeEnv: boolean