types/common library
Classes
Constants
-
PRIMITIVE_TYPE_TAGS
→ const List<
String> - SUI_ADDRESS_LENGTH → const int
- TX_DIGEST_LENGTH → const int
Properties
- MOVE_IDENTIFIER_REGEX → RegExp
-
final
- VECTOR_TYPE_REGEX → RegExp
-
final
Functions
-
getHexByteLength(
String value) → int -
isHex(
String value) → bool -
isValidMoveIdentifier(
String name) → bool -
isValidParsedStructTag(
StructTag tag) → bool -
isValidStructTag(
String type) → bool -
isValidSuiAddress(
String value) → bool -
isValidSuiObjectId(
String value) → bool -
isValidTransactionDigest(
String value) → bool - True if value is a valid tx digest (Base58-encoded 32 bytes).
-
isValidTypeTag(
String type) → bool -
normalizeStructTag(
StructTag type) → String -
normalizeStructTagString(
String type) → String -
normalizeSuiAddress(
String value, [bool forceAdd0x = false]) → String -
Lowercases, prepends
0x, and left-pads toSUI_ADDRESS_LENGTH. -
normalizeSuiObjectId(
String value, [bool forceAdd0x = false]) → String -
parseStructTag(
String type) → StructTag -
parseTypeTag(
String type) → dynamic -
splitGenericParameters(
String str, [(String, String) genericSeparators = ('<', '>')]) → List< String>
Typedefs
- SuiAddress = String
- TransactionDigest = String
- Base58 string representing the object digest