@dynamic-labs/sdk-api-core 0.0.988 → 0.0.989
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
|
@@ -22,7 +22,7 @@ export interface GetEVMSponsoredTransactionStatusResponse {
|
|
|
22
22
|
*/
|
|
23
23
|
errorMessage?: string;
|
|
24
24
|
/**
|
|
25
|
-
* Current
|
|
25
|
+
* Current state of the relay request
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof GetEVMSponsoredTransactionStatusResponse
|
|
28
28
|
*/
|
|
@@ -14,6 +14,7 @@ function QuoteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
16
|
'fromTokenAddress': json['fromTokenAddress'],
|
|
17
|
+
'fromChainId': !runtime.exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
17
18
|
'slippage': !runtime.exists(json, 'slippage') ? undefined : json['slippage'],
|
|
18
19
|
};
|
|
19
20
|
}
|
|
@@ -26,6 +27,7 @@ function QuoteRequestToJSON(value) {
|
|
|
26
27
|
}
|
|
27
28
|
return {
|
|
28
29
|
'fromTokenAddress': value.fromTokenAddress,
|
|
30
|
+
'fromChainId': value.fromChainId,
|
|
29
31
|
'slippage': value.slippage,
|
|
30
32
|
};
|
|
31
33
|
}
|
|
@@ -21,6 +21,13 @@ export interface QuoteRequest {
|
|
|
21
21
|
* @memberof QuoteRequest
|
|
22
22
|
*/
|
|
23
23
|
fromTokenAddress: string;
|
|
24
|
+
/**
|
|
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
|
+
* 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).
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof QuoteRequest
|
|
29
|
+
*/
|
|
30
|
+
fromChainId?: string | null;
|
|
24
31
|
/**
|
|
25
32
|
* Slippage tolerance (e.g. 0.005 for 0.5%)
|
|
26
33
|
* @type {number}
|
|
@@ -10,6 +10,7 @@ function QuoteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
12
|
'fromTokenAddress': json['fromTokenAddress'],
|
|
13
|
+
'fromChainId': !exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
13
14
|
'slippage': !exists(json, 'slippage') ? undefined : json['slippage'],
|
|
14
15
|
};
|
|
15
16
|
}
|
|
@@ -22,6 +23,7 @@ function QuoteRequestToJSON(value) {
|
|
|
22
23
|
}
|
|
23
24
|
return {
|
|
24
25
|
'fromTokenAddress': value.fromTokenAddress,
|
|
26
|
+
'fromChainId': value.fromChainId,
|
|
25
27
|
'slippage': value.slippage,
|
|
26
28
|
};
|
|
27
29
|
}
|