@dynamic-labs/sdk-api 0.0.1092 → 0.0.1094

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.1092",
3
+ "version": "0.0.1094",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -34,12 +34,14 @@ function FlowAnalyticsSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return {
35
35
  'avgAmountUsd': json['avgAmountUsd'],
36
36
  'avgCompletionTimeMs': json['avgCompletionTimeMs'],
37
+ 'completedFlows': json['completedFlows'],
37
38
  'completedVolume': json['completedVolume'],
38
39
  'cumulativeVolume': (json['cumulativeVolume'].map(FlowAnalyticsSummaryResponseCumulativeVolume.FlowAnalyticsSummaryResponseCumulativeVolumeFromJSON)),
39
40
  'dailyVolume': (json['dailyVolume'].map(FlowAnalyticsSummaryResponseDailyVolume.FlowAnalyticsSummaryResponseDailyVolumeFromJSON)),
40
41
  'destChains': (json['destChains'].map(FlowAnalyticsSummaryResponseDestChains.FlowAnalyticsSummaryResponseDestChainsFromJSON)),
41
42
  'destTokens': (json['destTokens'].map(FlowAnalyticsSummaryResponseDestTokens.FlowAnalyticsSummaryResponseDestTokensFromJSON)),
42
43
  'failureCategories': (json['failureCategories'].map(FlowAnalyticsSummaryResponseFailureCategories.FlowAnalyticsSummaryResponseFailureCategoriesFromJSON)),
44
+ 'failedFlows': json['failedFlows'],
43
45
  'failureRate': json['failureRate'],
44
46
  'healthStatus': json['healthStatus'],
45
47
  'modeBreakdown': (json['modeBreakdown'].map(FlowAnalyticsSummaryResponseModeBreakdown.FlowAnalyticsSummaryResponseModeBreakdownFromJSON)),
@@ -63,12 +65,14 @@ function FlowAnalyticsSummaryResponseToJSON(value) {
63
65
  return {
64
66
  'avgAmountUsd': value.avgAmountUsd,
65
67
  'avgCompletionTimeMs': value.avgCompletionTimeMs,
68
+ 'completedFlows': value.completedFlows,
66
69
  'completedVolume': value.completedVolume,
67
70
  'cumulativeVolume': (value.cumulativeVolume.map(FlowAnalyticsSummaryResponseCumulativeVolume.FlowAnalyticsSummaryResponseCumulativeVolumeToJSON)),
68
71
  'dailyVolume': (value.dailyVolume.map(FlowAnalyticsSummaryResponseDailyVolume.FlowAnalyticsSummaryResponseDailyVolumeToJSON)),
69
72
  'destChains': (value.destChains.map(FlowAnalyticsSummaryResponseDestChains.FlowAnalyticsSummaryResponseDestChainsToJSON)),
70
73
  'destTokens': (value.destTokens.map(FlowAnalyticsSummaryResponseDestTokens.FlowAnalyticsSummaryResponseDestTokensToJSON)),
71
74
  'failureCategories': (value.failureCategories.map(FlowAnalyticsSummaryResponseFailureCategories.FlowAnalyticsSummaryResponseFailureCategoriesToJSON)),
75
+ 'failedFlows': value.failedFlows,
72
76
  'failureRate': value.failureRate,
73
77
  'healthStatus': value.healthStatus,
74
78
  'modeBreakdown': (value.modeBreakdown.map(FlowAnalyticsSummaryResponseModeBreakdown.FlowAnalyticsSummaryResponseModeBreakdownToJSON)),
@@ -37,6 +37,12 @@ export interface FlowAnalyticsSummaryResponse {
37
37
  * @memberof FlowAnalyticsSummaryResponse
38
38
  */
39
39
  avgCompletionTimeMs: number;
40
+ /**
41
+ * Number of flows that reached settlement completed
42
+ * @type {number}
43
+ * @memberof FlowAnalyticsSummaryResponse
44
+ */
45
+ completedFlows: number;
40
46
  /**
41
47
  * Total completed transaction volume
42
48
  * @type {number}
@@ -74,7 +80,13 @@ export interface FlowAnalyticsSummaryResponse {
74
80
  */
75
81
  failureCategories: Array<FlowAnalyticsSummaryResponseFailureCategories>;
76
82
  /**
77
- * Ratio of failed/expired/cancelled flows to total flows
83
+ * Number of flows with execution or settlement failed
84
+ * @type {number}
85
+ * @memberof FlowAnalyticsSummaryResponse
86
+ */
87
+ failedFlows: number;
88
+ /**
89
+ * Ratio of failed flows to terminal (completed + failed) flows
78
90
  * @type {number}
79
91
  * @memberof FlowAnalyticsSummaryResponse
80
92
  */
@@ -30,12 +30,14 @@ function FlowAnalyticsSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
30
30
  return {
31
31
  'avgAmountUsd': json['avgAmountUsd'],
32
32
  'avgCompletionTimeMs': json['avgCompletionTimeMs'],
33
+ 'completedFlows': json['completedFlows'],
33
34
  'completedVolume': json['completedVolume'],
34
35
  'cumulativeVolume': (json['cumulativeVolume'].map(FlowAnalyticsSummaryResponseCumulativeVolumeFromJSON)),
35
36
  'dailyVolume': (json['dailyVolume'].map(FlowAnalyticsSummaryResponseDailyVolumeFromJSON)),
36
37
  'destChains': (json['destChains'].map(FlowAnalyticsSummaryResponseDestChainsFromJSON)),
37
38
  'destTokens': (json['destTokens'].map(FlowAnalyticsSummaryResponseDestTokensFromJSON)),
38
39
  'failureCategories': (json['failureCategories'].map(FlowAnalyticsSummaryResponseFailureCategoriesFromJSON)),
40
+ 'failedFlows': json['failedFlows'],
39
41
  'failureRate': json['failureRate'],
40
42
  'healthStatus': json['healthStatus'],
41
43
  'modeBreakdown': (json['modeBreakdown'].map(FlowAnalyticsSummaryResponseModeBreakdownFromJSON)),
@@ -59,12 +61,14 @@ function FlowAnalyticsSummaryResponseToJSON(value) {
59
61
  return {
60
62
  'avgAmountUsd': value.avgAmountUsd,
61
63
  'avgCompletionTimeMs': value.avgCompletionTimeMs,
64
+ 'completedFlows': value.completedFlows,
62
65
  'completedVolume': value.completedVolume,
63
66
  'cumulativeVolume': (value.cumulativeVolume.map(FlowAnalyticsSummaryResponseCumulativeVolumeToJSON)),
64
67
  'dailyVolume': (value.dailyVolume.map(FlowAnalyticsSummaryResponseDailyVolumeToJSON)),
65
68
  'destChains': (value.destChains.map(FlowAnalyticsSummaryResponseDestChainsToJSON)),
66
69
  'destTokens': (value.destTokens.map(FlowAnalyticsSummaryResponseDestTokensToJSON)),
67
70
  'failureCategories': (value.failureCategories.map(FlowAnalyticsSummaryResponseFailureCategoriesToJSON)),
71
+ 'failedFlows': value.failedFlows,
68
72
  'failureRate': value.failureRate,
69
73
  'healthStatus': value.healthStatus,
70
74
  'modeBreakdown': (value.modeBreakdown.map(FlowAnalyticsSummaryResponseModeBreakdownToJSON)),
@@ -13,6 +13,8 @@ exports.SignMessageRawSignHashFunctionEnum = void 0;
13
13
  (function (SignMessageRawSignHashFunctionEnum) {
14
14
  SignMessageRawSignHashFunctionEnum["Sha512Half"] = "sha512Half";
15
15
  SignMessageRawSignHashFunctionEnum["Keccak256"] = "keccak256";
16
+ SignMessageRawSignHashFunctionEnum["Sha256"] = "sha256";
17
+ SignMessageRawSignHashFunctionEnum["Blake2b"] = "blake2b";
16
18
  })(exports.SignMessageRawSignHashFunctionEnum || (exports.SignMessageRawSignHashFunctionEnum = {}));
17
19
  function SignMessageRawSignFromJSON(json) {
18
20
  return SignMessageRawSignFromJSONTyped(json);
@@ -22,7 +22,7 @@ export interface SignMessageRawSign {
22
22
  */
23
23
  payload: string;
24
24
  /**
25
- * Hash applied to (prefix + payload) to reproduce the digest being signed. Restricted to sha512Half (e.g. XRPL single-signer) and keccak256 (screened against EVM operations); sha256 is excluded because a double-SHA256 Bitcoin sighash could be reproduced from an opaque pre-hashed payload
25
+ * Hash applied to (prefix + payload) to reproduce the digest being signed. Allowed algorithms: sha512Half (e.g. XRPL single-signer), keccak256 (screened against EVM operations), sha256 (TRON, SVM, TON; guarded against 32-byte pre-hashed payloads that could reproduce a Bitcoin double-SHA256 sighash), and blake2b (Sui, 32-byte digest)
26
26
  * @type {string}
27
27
  * @memberof SignMessageRawSign
28
28
  */
@@ -40,7 +40,9 @@ export interface SignMessageRawSign {
40
40
  */
41
41
  export declare enum SignMessageRawSignHashFunctionEnum {
42
42
  Sha512Half = "sha512Half",
43
- Keccak256 = "keccak256"
43
+ Keccak256 = "keccak256",
44
+ Sha256 = "sha256",
45
+ Blake2b = "blake2b"
44
46
  }
45
47
  export declare function SignMessageRawSignFromJSON(json: any): SignMessageRawSign;
46
48
  export declare function SignMessageRawSignFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageRawSign;
@@ -9,6 +9,8 @@ var SignMessageRawSignHashFunctionEnum;
9
9
  (function (SignMessageRawSignHashFunctionEnum) {
10
10
  SignMessageRawSignHashFunctionEnum["Sha512Half"] = "sha512Half";
11
11
  SignMessageRawSignHashFunctionEnum["Keccak256"] = "keccak256";
12
+ SignMessageRawSignHashFunctionEnum["Sha256"] = "sha256";
13
+ SignMessageRawSignHashFunctionEnum["Blake2b"] = "blake2b";
12
14
  })(SignMessageRawSignHashFunctionEnum || (SignMessageRawSignHashFunctionEnum = {}));
13
15
  function SignMessageRawSignFromJSON(json) {
14
16
  return SignMessageRawSignFromJSONTyped(json);