Methods
Static calculateMethodHash
- calculateMethodHash(signature: string): Uint8Array
-
Parameters
Returns Uint8Array
Static calculateMethodId
- calculateMethodId(signature: string): Uint8Array
-
Parameters
Returns Uint8Array
Static decodeAddress
- decodeAddress(binary: Uint8Array): Address
-
Parameters
Returns Address
Static decodeEventSignature
Static decodeHeadTail
- decodeHeadTail(data: Uint8Array): HeadTail
Static decodeSwapProcessState
- decodeSwapProcessState(data: Uint8Array): SwapProcessState
-
Parameters
Returns SwapProcessState
Static decodeUint256
- decodeUint256(binary: Uint8Array): string
-
Parameters
Returns string
Static decodeVariableLength
- decodeVariableLength(data: Uint8Array): Uint8Array
-
Parameters
Returns Uint8Array
Static encodeAddress
- encodeAddress(address: Address): Uint8Array
-
Parameters
Returns Uint8Array
Static encodeUint256
- encodeUint256(value: string): Uint8Array
-
Parameters
Returns Uint8Array
Decode head-tail encoded data as described in https://medium.com/@hayeah/how-to-decipher-a-smart-contract-method-call-8ee980311603