Swap2BehaviourFixture
Defined in: behaviour-suite.ts:22
Properties
Section titled “Properties”account?
Section titled “account?”
optionalaccount?:MockAccountOptions
Defined in: behaviour-suite.ts:29
Signing mock account (address/chain must match what the recorded quote binds).
depositAddress?
Section titled “depositAddress?”
optionaldepositAddress?:string
Defined in: behaviour-suite.ts:33
Deposit-address providers: the address the recorded quote declares.
fetch: {(
input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: behaviour-suite.ts:27
Recorded/mocked network for this fixture, installed as the global fetch.
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”RequestInfo | URL
RequestInit
Returns
Section titled “Returns”Promise<Response>
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”string | Request | URL
RequestInit
Returns
Section titled “Returns”Promise<Response>
name:
string
Defined in: behaviour-suite.ts:23
options
Section titled “options”options:
Record<string,unknown>
Defined in: behaviour-suite.ts:25
Swap2Options for swap2() / quoteSwap2() (include minAmountOut).
optionalown?:string[]
Defined in: behaviour-suite.ts:31
The user’s other addresses (e.g. the destination-chain recipient). The signing account is always own.
serialized?
Section titled “serialized?”
optionalserialized?: (serializedTx,own) =>void|Promise<void>
Defined in: behaviour-suite.ts:43
Provider-serialized legs (Solana aggregators): decode what the account would be asked to sign and assert it
(fee payer, signers, programs, amounts). Required when the plan’s source is serialized — opaque bytes are not
accepted unread.
Parameters
Section titled “Parameters”serializedTx
Section titled “serializedTx”string
ReadonlySet<string>
Returns
Section titled “Returns”void | Promise<void>
sourceToken?
Section titled “sourceToken?”
optionalsourceToken?:string
Defined in: behaviour-suite.ts:37
Source token contract; omit for the native coin.
spender?
Section titled “spender?”
optionalspender?:string
Defined in: behaviour-suite.ts:35
Calldata providers: the approval spender the recorded quote declares (none → no approval allowed).