Variables
<Const>
ZERO_64
● ZERO_64: "0000000000000000000000000000000000000000000000000000000000000000" = "0000000000000000000000000000000000000000000000000000000000000000"
Defined in util/pad.ts:18
Functions
<Const>
padAddress
▸ padAddress(input: AddressValue): string
Defined in util/pad.ts:26
Pad an address with zeros on the left.
Parameters:
Name | Type | Description |
---|---|---|
input | AddressValue | The input address to pad. |
Returns: string
<Const>
padBool
▸ padBool(input: BoolValue): string
Defined in util/pad.ts:37
Pad a boolean with zeros on the left.
Parameters:
Name | Type | Description |
---|---|---|
input | BoolValue | The input address to pad. |
Returns: string
<Const>
padBytes
▸ padBytes(input: BytesValue): string
Defined in util/pad.ts:91
Pad bytes with zeros on the left.
Parameters:
Name | Type | Description |
---|---|---|
input | BytesValue | The input bytes to pad. |
Returns: string
<Const>
padFixedBytes
▸ padFixedBytes(input: BytesValue): string
Defined in util/pad.ts:103
Pad fixed bytes.
Parameters:
Name | Type | Description |
---|---|---|
input | BytesValue | Input bytes to pad. |
Returns: string
<Const>
padString
▸ padString(input: string
): string
Defined in util/pad.ts:118
Pad string.
Parameters:
Name | Type | Description |
---|---|---|
input | string |
String to pad. |
Returns: string
<Const>
padU32
▸ padU32(input: IntValue | UintValue): string
Defined in util/pad.ts:46
Pad a u32 with zeros on the left.
Parameters:
Name | Type | Description | |
---|---|---|---|
input | IntValue \ | UintValue | The input address to pad. |
Returns: string
<Const>
stringToBytes
▸ stringToBytes(input: BytesValue): number
[]
Defined in util/pad.ts:70
Convert an input string to bytes.
Parameters:
Name | Type | Description |
---|---|---|
input | BytesValue | The input string to convert. |
Returns: number
[]