byte_serialize_params
Functions
argSerializerConstructor()
function argSerializerConstructor(arbProvider: Provider): (params: PrimativeOrPrimativeArray[]) => Promise<Uint8Array>
to use:
const mySerializeParamsFunction = argSerializerConstructor("rpcurl")
mySerializeParamsFunction(["4","5", "6"])
Parameters
Parameter | Type |
---|---|
arbProvider | Provider |
Returns
Function
Parameters
Parameter | Type |
---|---|
params | PrimativeOrPrimativeArray [] |
Returns
Promise
<Uint8Array
>
Source
utils/byte_serialize_params.ts:102
serializeParams()
function serializeParams(params: PrimativeOrPrimativeArray[], addressToIndex: (address: string) => Promise<number>): Promise<Uint8Array>
Parameters
Parameter | Type | Description |
---|---|---|
params | PrimativeOrPrimativeArray [] | array of serializable types to |
addressToIndex | (address : string ) => Promise <number > | optional getter of address index registered in table |
Returns
Promise
<Uint8Array
>