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​
Name | Type |
---|---|
calls | Call [] |
Returns​
Object
Name | Type |
---|---|
callArray | ParsedStruct [] |
calldata | Calldata |
Defined in​
fromCallsToExecuteCalldata​
â–¸ fromCallsToExecuteCalldata(calls
): Calldata
Transforms a list of calls in the full flattened calldata expected by the execute protocol.
Parameters​
Name | Type |
---|---|
calls | Call [] |
Returns​
Defined in​
fromCallsToExecuteCalldataWithNonce​
â–¸ fromCallsToExecuteCalldataWithNonce(calls
, nonce
): Calldata
Parameters​
Name | Type |
---|---|
calls | Call [] |
nonce | BigNumberish |
Returns​
Defined in​
transformCallsToMulticallArrays_cairo1​
â–¸ transformCallsToMulticallArrays_cairo1(calls
): CallStruct
[]
Format Data inside Calls
Parameters​
Name | Type | Description |
---|---|---|
calls | Call [] | Call[] |
Returns​
CallStruct
Defined in​
fromCallsToExecuteCalldata_cairo1​
â–¸ fromCallsToExecuteCalldata_cairo1(calls
): Calldata
Transforms a list of calls in the full flattened calldata expected by the execute protocol.
Parameters​
Name | Type |
---|---|
calls | Call [] |
Returns​
Calldata
Defined in​
getExecuteCalldata​
â–¸ getExecuteCalldata(calls
, cairoVersion?
): Calldata
Parameters​
Name | Type | Default value | Description |
---|---|---|---|
calls | Call [] | undefined | Call array |
cairoVersion | CairoVersion | '0' | Defaults to 0 |
Returns​
string[] of calldata