@mest-fe/tools
v0.0.12
Published
ToolKits for Mest Team.
Downloads
33
Keywords
Readme
@mest-fe/tools
Get Start
yarn add @mest-fe/tools
Usage
Address (with Chain)
- Address.IsAddress: Determines if the given address is a valid Ethereum address
- Address.ValidateAddress: Validates the given address by checking if it is a valid address. Otherwise, throws an InvalidAddress error
- Address.GenerateID: Generates a address id string combining the provided
chainId
andaddress
- Address.ParseID: Parses a address string to an { chainId: string, address: string | null } object
Token
- Token.GenerateID: Generates an ID string combining the provided
chainId
andaddress
- Token.ParseID: Parses a token ID into an { chainId: string, address: string | null } object