@dynamic-labs/sdk-api 0.0.996 → 0.0.997
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ function QuoteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
-
'fromTokenAddress': json['fromTokenAddress'],
|
|
16
|
+
'fromTokenAddress': !runtime.exists(json, 'fromTokenAddress') ? undefined : json['fromTokenAddress'],
|
|
17
17
|
'fromChainId': !runtime.exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
18
18
|
'slippage': !runtime.exists(json, 'slippage') ? undefined : json['slippage'],
|
|
19
19
|
};
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface QuoteRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Optional token address the source funds will originate from for this quote. When omitted, defaults to the canonical native-token sentinel for the previously-attached fromChainName (e.g. the zero address for EVM, So11111111111111111111111111111111111111112 for Solana, 0x2::sui::SUI for Sui, 'bitcoin' for BTC). Chains without a documented canonical native sentinel require this field to be passed explicitly.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof QuoteRequest
|
|
22
22
|
*/
|
|
23
|
-
fromTokenAddress
|
|
23
|
+
fromTokenAddress?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
* Optional chain identifier the source funds will originate from for this quote. When provided, this overrides the fromChainId recorded at attachSource time and is persisted on the transaction so subsequent steps (prepareSigning, recordBroadcast, confirmation) use it.
|
|
26
26
|
* The chain family (fromChainName) and source address (fromAddress) are locked at attachSource time and cannot be changed here — to switch chain families or wallets, call attachSource again. Callers are responsible for ensuring the previously attached fromAddress is valid on the new fromChainId (e.g. an EVM 0x… address is valid on any EVM chainId, but a Solana mainnet address may not be valid on devnet).
|
|
@@ -9,7 +9,7 @@ function QuoteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9
9
|
return json;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
|
-
'fromTokenAddress': json['fromTokenAddress'],
|
|
12
|
+
'fromTokenAddress': !exists(json, 'fromTokenAddress') ? undefined : json['fromTokenAddress'],
|
|
13
13
|
'fromChainId': !exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
14
14
|
'slippage': !exists(json, 'slippage') ? undefined : json['slippage'],
|
|
15
15
|
};
|