@dynamic-labs/sdk-api 0.0.904 → 0.0.905

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.0.904",
3
+ "version": "0.0.905",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var runtime = require('../runtime.cjs');
5
6
  var ChainEnum = require('./ChainEnum.cjs');
6
7
 
7
8
  /* tslint:disable */
@@ -17,6 +18,8 @@ function ChainSettlementConfigFromJSONTyped(json, ignoreDiscriminator) {
17
18
  'tokenAddress': json['tokenAddress'],
18
19
  'chainId': json['chainId'],
19
20
  'symbol': json['symbol'],
21
+ 'tokenDecimals': json['tokenDecimals'],
22
+ 'isNative': !runtime.exists(json, 'isNative') ? undefined : json['isNative'],
20
23
  };
21
24
  }
22
25
  function ChainSettlementConfigToJSON(value) {
@@ -31,6 +34,8 @@ function ChainSettlementConfigToJSON(value) {
31
34
  'tokenAddress': value.tokenAddress,
32
35
  'chainId': value.chainId,
33
36
  'symbol': value.symbol,
37
+ 'tokenDecimals': value.tokenDecimals,
38
+ 'isNative': value.isNative,
34
39
  };
35
40
  }
36
41
 
@@ -40,6 +40,18 @@ export interface ChainSettlementConfig {
40
40
  * @memberof ChainSettlementConfig
41
41
  */
42
42
  symbol: string;
43
+ /**
44
+ * The number of decimals for the token
45
+ * @type {number}
46
+ * @memberof ChainSettlementConfig
47
+ */
48
+ tokenDecimals: number;
49
+ /**
50
+ * Whether the token is the native token for the chain
51
+ * @type {boolean}
52
+ * @memberof ChainSettlementConfig
53
+ */
54
+ isNative?: boolean;
43
55
  }
44
56
  export declare function ChainSettlementConfigFromJSON(json: any): ChainSettlementConfig;
45
57
  export declare function ChainSettlementConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainSettlementConfig;
@@ -1,3 +1,4 @@
1
+ import { exists } from '../runtime.js';
1
2
  import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
2
3
 
3
4
  /* tslint:disable */
@@ -13,6 +14,8 @@ function ChainSettlementConfigFromJSONTyped(json, ignoreDiscriminator) {
13
14
  'tokenAddress': json['tokenAddress'],
14
15
  'chainId': json['chainId'],
15
16
  'symbol': json['symbol'],
17
+ 'tokenDecimals': json['tokenDecimals'],
18
+ 'isNative': !exists(json, 'isNative') ? undefined : json['isNative'],
16
19
  };
17
20
  }
18
21
  function ChainSettlementConfigToJSON(value) {
@@ -27,6 +30,8 @@ function ChainSettlementConfigToJSON(value) {
27
30
  'tokenAddress': value.tokenAddress,
28
31
  'chainId': value.chainId,
29
32
  'symbol': value.symbol,
33
+ 'tokenDecimals': value.tokenDecimals,
34
+ 'isNative': value.isNative,
30
35
  };
31
36
  }
32
37