signet.js 0.0.12-beta.6 → 0.0.12-beta.7

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": "signet.js",
3
- "version": "0.0.12-beta.6",
3
+ "version": "0.0.12-beta.7",
4
4
  "description": "A TypeScript library for handling multi-chain transactions and signatures using Signet MPC",
5
5
  "type": "module",
6
6
  "exports": {
package/types/index.d.cts CHANGED
@@ -1137,17 +1137,22 @@ declare class ChainSignatureContract extends ChainSignatureContract$3 {
1137
1137
  remainingAccounts?: Array<AccountMeta>;
1138
1138
  remainingSigners?: Array<Signer>;
1139
1139
  }): Promise<RSVSignature>;
1140
+ private sendAndConfirmWithoutWebSocket;
1140
1141
  /**
1141
- * Listens for signature or error events matching the given requestId.
1142
- * Sets up listeners for both event types and returns a promise that resolves when
1143
- * either a valid signature or an error is received.
1142
+ * Polls for signature or error events matching the given requestId starting from the solana transaction with signature afterSignature.
1143
+ * Returns a signature, error data, or undefined if nothing is found.
1144
1144
  */
1145
- listenForSignatureEvents({ requestId, payload, path, options, }: {
1145
+ pollForRequestId({ requestId, payload, path, afterSignature, options, }: {
1146
1146
  requestId: string;
1147
1147
  payload: number[];
1148
1148
  path: string;
1149
+ afterSignature: string;
1149
1150
  options?: RetryOptions;
1150
1151
  }): Promise<RSVSignature | SignatureErrorData | undefined>;
1152
+ /**
1153
+ * Parses transaction logs for signature or error events.
1154
+ */
1155
+ private parseLogsForEvents;
1151
1156
  /**
1152
1157
  * Generates the request ID for a signature request allowing to track the response.
1153
1158
  */
package/types/index.d.ts CHANGED
@@ -1137,17 +1137,22 @@ declare class ChainSignatureContract extends ChainSignatureContract$3 {
1137
1137
  remainingAccounts?: Array<AccountMeta>;
1138
1138
  remainingSigners?: Array<Signer>;
1139
1139
  }): Promise<RSVSignature>;
1140
+ private sendAndConfirmWithoutWebSocket;
1140
1141
  /**
1141
- * Listens for signature or error events matching the given requestId.
1142
- * Sets up listeners for both event types and returns a promise that resolves when
1143
- * either a valid signature or an error is received.
1142
+ * Polls for signature or error events matching the given requestId starting from the solana transaction with signature afterSignature.
1143
+ * Returns a signature, error data, or undefined if nothing is found.
1144
1144
  */
1145
- listenForSignatureEvents({ requestId, payload, path, options, }: {
1145
+ pollForRequestId({ requestId, payload, path, afterSignature, options, }: {
1146
1146
  requestId: string;
1147
1147
  payload: number[];
1148
1148
  path: string;
1149
+ afterSignature: string;
1149
1150
  options?: RetryOptions;
1150
1151
  }): Promise<RSVSignature | SignatureErrorData | undefined>;
1152
+ /**
1153
+ * Parses transaction logs for signature or error events.
1154
+ */
1155
+ private parseLogsForEvents;
1151
1156
  /**
1152
1157
  * Generates the request ID for a signature request allowing to track the response.
1153
1158
  */