Module: utils/byte_serialize_params
Functions
argSerializerConstructor
argSerializerConstructor(arbProvider
): (params
: PrimativeOrPrimativeArray
[]) => Promise
<Uint8Array
>
// to use:
const mySerializeParamsFunction = argSerializerConstructor("rpcurl")
mySerializeParamsFunction(["4","5", "6"])
Parameters
Name | Type |
---|---|
arbProvider | Provider |
Returns
fn
(params
): Promise
<Uint8Array
>
Parameters
Name | Type |
---|---|
params | PrimativeOrPrimativeArray [] |
Returns
Promise
<Uint8Array
>
Defined in
src/lib/utils/byte_serialize_params.ts:101
serializeParams
serializeParams(params
, addressToIndex?
): Promise
<Uint8Array
>
Parameters
Name | 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
>