Skip to main content

byte_serialize_params

Functions

argSerializerConstructor()

function argSerializerConstructor(arbProvider: Provider): (params: PrimativeOrPrimativeArray[]) => Promise<Uint8Array>

to use:

const mySerializeParamsFunction = argSerializerConstructor("rpcurl")
mySerializeParamsFunction(["4","5", "6"])

Parameters

ParameterType
arbProviderProvider

Returns

Function

Parameters
ParameterType
paramsPrimativeOrPrimativeArray[]
Returns

Promise<Uint8Array>

Source

utils/byte_serialize_params.ts:102


serializeParams()

function serializeParams(params: PrimativeOrPrimativeArray[], addressToIndex: (address: string) => Promise<number>): Promise<Uint8Array>

Parameters

ParameterTypeDescription
paramsPrimativeOrPrimativeArray[]array of serializable types to
addressToIndex(address: string) => Promise<number>optional getter of address index registered in table

Returns

Promise<Uint8Array>

Source

utils/byte_serialize_params.ts:138