BurstUtil
Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team
Static Method Summary
| Static Public Methods | ||
| public static |
constructBurstAddress(parts: undefined): string Construct a Burst address from a string array |
|
| public static |
Helper method to Number to String(8 decimals) representation |
|
| public static |
convertStringToNumber(amount: string): number Helper method to convert a String to number |
|
| public static |
Decode BURST-XXXX-XXXX-XXXX-XXXXX into numeric Id |
|
| public static |
Encode a numeric id into BURST-XXXX-XXXX-XXXX-XXXXX |
|
| public static |
|
|
| public static |
|
|
| public static |
isBurstcoinAddress(address: string): boolean Validation Check. |
|
| public static |
Check for valid Burst address (format: BURST-XXXX-XXXX-XXXX-XXXXX, XXXX-XXXX-XXXX-XXXXX) |
|
| public static |
splitBurstAddress(address: string): *[] Split the Burst address string into an array of 4 parts |
|
Static Public Methods
public static constructBurstAddress(parts: undefined): string source
Construct a Burst address from a string array
Params:
| Name | Type | Attribute | Description |
| parts | undefined |
public static convertNumberToString(n: number): string source
Helper method to Number to String(8 decimals) representation
Params:
| Name | Type | Attribute | Description |
| n | number |
public static convertStringToNumber(amount: string): number source
Helper method to convert a String to number
Params:
| Name | Type | Attribute | Description |
| amount | string |
public static decode(address: string): string source
Decode BURST-XXXX-XXXX-XXXX-XXXXX into numeric Id
Params:
| Name | Type | Attribute | Description |
| address | string |
public static encode(numericId: string): string source
Encode a numeric id into BURST-XXXX-XXXX-XXXX-XXXXX
Params:
| Name | Type | Attribute | Description |
| numericId | string |
public static ginv(a: undefined): * source
Params:
| Name | Type | Attribute | Description |
| a | undefined |
Return:
| * |
public static isBurstcoinAddress(address: string): boolean source
Validation Check. Quick validation of Burst addresses included
Params:
| Name | Type | Attribute | Description |
| address | string |
