@dynamic-labs/sdk-api 0.84.0 → 0.85.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.84.0",
3
+ "version": "0.85.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -171,6 +171,7 @@ exports.UnprocessableEntityErrorCode = void 0;
171
171
  UnprocessableEntityErrorCode["UnsupportedShape"] = "unsupported_shape";
172
172
  UnprocessableEntityErrorCode["ContractCreationUnsupported"] = "contract_creation_unsupported";
173
173
  UnprocessableEntityErrorCode["MultipleTransactions"] = "multiple_transactions";
174
+ UnprocessableEntityErrorCode["AttemptCountMismatch"] = "attempt_count_mismatch";
174
175
  UnprocessableEntityErrorCode["DurableNonceUnsupported"] = "durable_nonce_unsupported";
175
176
  UnprocessableEntityErrorCode["MissingCosigner"] = "missing_cosigner";
176
177
  UnprocessableEntityErrorCode["BlockhashTooOld"] = "blockhash_too_old";
@@ -164,6 +164,7 @@ export declare enum UnprocessableEntityErrorCode {
164
164
  UnsupportedShape = "unsupported_shape",
165
165
  ContractCreationUnsupported = "contract_creation_unsupported",
166
166
  MultipleTransactions = "multiple_transactions",
167
+ AttemptCountMismatch = "attempt_count_mismatch",
167
168
  DurableNonceUnsupported = "durable_nonce_unsupported",
168
169
  MissingCosigner = "missing_cosigner",
169
170
  BlockhashTooOld = "blockhash_too_old",
@@ -167,6 +167,7 @@ var UnprocessableEntityErrorCode;
167
167
  UnprocessableEntityErrorCode["UnsupportedShape"] = "unsupported_shape";
168
168
  UnprocessableEntityErrorCode["ContractCreationUnsupported"] = "contract_creation_unsupported";
169
169
  UnprocessableEntityErrorCode["MultipleTransactions"] = "multiple_transactions";
170
+ UnprocessableEntityErrorCode["AttemptCountMismatch"] = "attempt_count_mismatch";
170
171
  UnprocessableEntityErrorCode["DurableNonceUnsupported"] = "durable_nonce_unsupported";
171
172
  UnprocessableEntityErrorCode["MissingCosigner"] = "missing_cosigner";
172
173
  UnprocessableEntityErrorCode["BlockhashTooOld"] = "blockhash_too_old";
@@ -15,6 +15,8 @@ function WaasSignAndBroadcastRequestFromJSONTyped(json, ignoreDiscriminator) {
15
15
  }
16
16
  return {
17
17
  'transaction': WaasBroadcastTransaction.WaasBroadcastTransactionFromJSON(json['transaction']),
18
+ 'messages': json['messages'],
19
+ 'isFormatted': !runtime.exists(json, 'isFormatted') ? undefined : json['isFormatted'],
18
20
  'requestedCertainty': !runtime.exists(json, 'requestedCertainty') ? undefined : json['requestedCertainty'],
19
21
  'externalReference': !runtime.exists(json, 'externalReference') ? undefined : json['externalReference'],
20
22
  'roomIds': !runtime.exists(json, 'roomIds') ? undefined : json['roomIds'],
@@ -30,6 +32,8 @@ function WaasSignAndBroadcastRequestToJSON(value) {
30
32
  }
31
33
  return {
32
34
  'transaction': WaasBroadcastTransaction.WaasBroadcastTransactionToJSON(value.transaction),
35
+ 'messages': value.messages,
36
+ 'isFormatted': value.isFormatted,
33
37
  'requestedCertainty': value.requestedCertainty,
34
38
  'externalReference': value.externalReference,
35
39
  'roomIds': value.roomIds,
@@ -22,6 +22,18 @@ export interface WaasSignAndBroadcastRequest {
22
22
  * @memberof WaasSignAndBroadcastRequest
23
23
  */
24
24
  transaction: WaasBroadcastTransaction;
25
+ /**
26
+ * One per fee attempt, in fee order: the serialized unsigned transaction to sign. RLP hex on EVM, message bytes on Solana.
27
+ * @type {Array<string>}
28
+ * @memberof WaasSignAndBroadcastRequest
29
+ */
30
+ messages: Array<string>;
31
+ /**
32
+ * Whether each message is a pre-computed hash that is signed as-is. Send `false` for a serialized transaction.
33
+ * @type {boolean}
34
+ * @memberof WaasSignAndBroadcastRequest
35
+ */
36
+ isFormatted?: boolean;
25
37
  /**
26
38
  *
27
39
  * @type {string}
@@ -11,6 +11,8 @@ function WaasSignAndBroadcastRequestFromJSONTyped(json, ignoreDiscriminator) {
11
11
  }
12
12
  return {
13
13
  'transaction': WaasBroadcastTransactionFromJSON(json['transaction']),
14
+ 'messages': json['messages'],
15
+ 'isFormatted': !exists(json, 'isFormatted') ? undefined : json['isFormatted'],
14
16
  'requestedCertainty': !exists(json, 'requestedCertainty') ? undefined : json['requestedCertainty'],
15
17
  'externalReference': !exists(json, 'externalReference') ? undefined : json['externalReference'],
16
18
  'roomIds': !exists(json, 'roomIds') ? undefined : json['roomIds'],
@@ -26,6 +28,8 @@ function WaasSignAndBroadcastRequestToJSON(value) {
26
28
  }
27
29
  return {
28
30
  'transaction': WaasBroadcastTransactionToJSON(value.transaction),
31
+ 'messages': value.messages,
32
+ 'isFormatted': value.isFormatted,
29
33
  'requestedCertainty': value.requestedCertainty,
30
34
  'externalReference': value.externalReference,
31
35
  'roomIds': value.roomIds,