Namespace: transaction
Functions​
transformCallsToMulticallArrays​
â–¸ transformCallsToMulticallArrays(calls
): Object
Transforms a list of Calls, each with their own calldata, into two arrays: one with the entry points, and one with the concatenated calldata
Parameters​
Name | Type |
---|---|
calls | Call [] |
Returns​
Object
Name | Type |
---|---|
callArray | ParsedStruct [] |
calldata | Calldata |
Defined in​
fromCallsToExecuteCalldata​
â–¸ fromCallsToExecuteCalldata(calls
): Calldata
Transforms a list of calls into the Cairo 0 __execute__
calldata.
Parameters​
Name | Type |
---|---|
calls | Call [] |
Returns​
Defined in​
fromCallsToExecuteCalldataWithNonce​
â–¸ fromCallsToExecuteCalldataWithNonce(calls
, nonce
): Calldata
Transforms a list of calls into the Cairo 0 __execute__
calldata including nonce.
Deprecated
Parameters​
Name | Type |
---|---|
calls | Call [] |
nonce | BigNumberish |
Returns​
Defined in​
transformCallsToMulticallArrays_cairo1​
â–¸ transformCallsToMulticallArrays_cairo1(calls
): CallStruct
[]
Format Data inside Calls
Deprecated
Not required for getting execute Calldata
Parameters​
Name | Type |
---|---|
calls | Call [] |
Returns​
Defined in​
fromCallsToExecuteCalldata_cairo1​
â–¸ fromCallsToExecuteCalldata_cairo1(calls
): Calldata
Transforms a list of calls into the Cairo 1 __execute__
calldata.
Parameters​
Name | Type |
---|---|
calls | Call [] |
Returns​
Defined in​
getExecuteCalldata​
â–¸ getExecuteCalldata(calls
, cairoVersion?
): Calldata
Create __execute__
Calldata from Calls based on Cairo versions
Parameters​
Name | Type | Default value |
---|---|---|
calls | Call [] | undefined |
cairoVersion | CairoVersion | '0' |