Skip to main content
Version: Next

Namespace: transaction

Functions

transformCallsToMulticallArrays

transformCallsToMulticallArrays(calls): Object

Transforms a list of Calls, each with their own calldata, into two arrays: one with the entrypoints, and one with the concatenated calldata.

Parameters

NameType
callsCall[]

Returns

Object

NameType
callArrayParsedStruct[]
calldataCalldata

Defined in

src/utils/transaction.ts:10


fromCallsToExecuteCalldata

fromCallsToExecuteCalldata(calls): Calldata

Transforms a list of calls into the Cairo 0 __execute__ calldata.

Parameters

NameType
callsCall[]

Returns

Calldata

Defined in

src/utils/transaction.ts:32


fromCallsToExecuteCalldataWithNonce

fromCallsToExecuteCalldataWithNonce(calls, nonce): Calldata

Transforms a list of calls into the Cairo 0 __execute__ calldata including nonce.

Deprecated

Parameters

NameType
callsCall[]
nonceBigNumberish

Returns

Calldata

Defined in

src/utils/transaction.ts:43


transformCallsToMulticallArrays_cairo1

transformCallsToMulticallArrays_cairo1(calls): CallStruct[]

Format Data inside Calls

Deprecated

Not required for getting execute Calldata

Parameters

NameType
callsCall[]

Returns

CallStruct[]

Defined in

src/utils/transaction.ts:52


fromCallsToExecuteCalldata_cairo1

fromCallsToExecuteCalldata_cairo1(calls): Calldata

Transforms a list of calls into the Cairo 1 __execute__ calldata.

Parameters

NameType
callsCall[]

Returns

Calldata

Defined in

src/utils/transaction.ts:64


getExecuteCalldata

getExecuteCalldata(calls, cairoVersion?): Calldata

Create __execute__ Calldata from Calls based on Cairo versions

Parameters

NameTypeDefault value
callsCall[]undefined
cairoVersionCairoVersion'0'

Returns

Calldata

Defined in

src/utils/transaction.ts:78