@dynamic-labs/sdk-api 0.34.0 → 0.36.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.34.0",
3
+ "version": "0.36.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -38,9 +38,11 @@ function FlowListItemFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'id': json['id'],
39
39
  'mode': FlowModeEnum.FlowModeEnumFromJSON(json['mode']),
40
40
  'settlementState': FlowSettlementStateEnum.FlowSettlementStateEnumFromJSON(json['settlementState']),
41
+ 'settlementTxHash': !runtime.exists(json, 'settlementTxHash') ? undefined : json['settlementTxHash'],
41
42
  'sourceType': !runtime.exists(json, 'sourceType') ? undefined : json['sourceType'],
42
43
  'toChain': !runtime.exists(json, 'toChain') ? undefined : json['toChain'],
43
44
  'toToken': !runtime.exists(json, 'toToken') ? undefined : json['toToken'],
45
+ 'txHash': !runtime.exists(json, 'txHash') ? undefined : json['txHash'],
44
46
  };
45
47
  }
46
48
  function FlowListItemToJSON(value) {
@@ -62,9 +64,11 @@ function FlowListItemToJSON(value) {
62
64
  'id': value.id,
63
65
  'mode': FlowModeEnum.FlowModeEnumToJSON(value.mode),
64
66
  'settlementState': FlowSettlementStateEnum.FlowSettlementStateEnumToJSON(value.settlementState),
67
+ 'settlementTxHash': value.settlementTxHash,
65
68
  'sourceType': value.sourceType,
66
69
  'toChain': value.toChain,
67
70
  'toToken': value.toToken,
71
+ 'txHash': value.txHash,
68
72
  };
69
73
  }
70
74
 
@@ -85,6 +85,12 @@ export interface FlowListItem {
85
85
  * @memberof FlowListItem
86
86
  */
87
87
  settlementState: FlowSettlementStateEnum;
88
+ /**
89
+ * Transaction hash of the settlement on the destination chain
90
+ * @type {string}
91
+ * @memberof FlowListItem
92
+ */
93
+ settlementTxHash?: string | null;
88
94
  /**
89
95
  *
90
96
  * @type {string}
@@ -103,6 +109,12 @@ export interface FlowListItem {
103
109
  * @memberof FlowListItem
104
110
  */
105
111
  toToken?: string | null;
112
+ /**
113
+ * Transaction hash of the flow's transfer on the source chain
114
+ * @type {string}
115
+ * @memberof FlowListItem
116
+ */
117
+ txHash?: string | null;
106
118
  }
107
119
  /**
108
120
  * @export
@@ -34,9 +34,11 @@ function FlowListItemFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'id': json['id'],
35
35
  'mode': FlowModeEnumFromJSON(json['mode']),
36
36
  'settlementState': FlowSettlementStateEnumFromJSON(json['settlementState']),
37
+ 'settlementTxHash': !exists(json, 'settlementTxHash') ? undefined : json['settlementTxHash'],
37
38
  'sourceType': !exists(json, 'sourceType') ? undefined : json['sourceType'],
38
39
  'toChain': !exists(json, 'toChain') ? undefined : json['toChain'],
39
40
  'toToken': !exists(json, 'toToken') ? undefined : json['toToken'],
41
+ 'txHash': !exists(json, 'txHash') ? undefined : json['txHash'],
40
42
  };
41
43
  }
42
44
  function FlowListItemToJSON(value) {
@@ -58,9 +60,11 @@ function FlowListItemToJSON(value) {
58
60
  'id': value.id,
59
61
  'mode': FlowModeEnumToJSON(value.mode),
60
62
  'settlementState': FlowSettlementStateEnumToJSON(value.settlementState),
63
+ 'settlementTxHash': value.settlementTxHash,
61
64
  'sourceType': value.sourceType,
62
65
  'toChain': value.toChain,
63
66
  'toToken': value.toToken,
67
+ 'txHash': value.txHash,
64
68
  };
65
69
  }
66
70
 
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface FlowQuoteRequest {
18
18
  /**
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).
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, 11111111111111111111111111111111 for Solana, 0x2::sui::SUI for Sui, 'bitcoin' for BTC).
20
20
  * @type {string}
21
21
  * @memberof FlowQuoteRequest
22
22
  */