signet.js 0.0.12-beta.3 → 0.0.12-beta.4

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.3",
3
+ "version": "0.0.12-beta.4",
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
@@ -1138,16 +1138,20 @@ declare class ChainSignatureContract extends ChainSignatureContract$3 {
1138
1138
  remainingSigners?: Array<Signer>;
1139
1139
  }): Promise<RSVSignature>;
1140
1140
  /**
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.
1141
+ * Polls for signature or error events matching the given requestId.
1142
+ * Returns a signature, error data, or undefined if nothing is found.
1144
1143
  */
1145
- listenForSignatureEvents({ requestId, payload, path, options, }: {
1144
+ listenForSignatureEvents({ requestId, payload, path, afterSignature, options, }: {
1146
1145
  requestId: string;
1147
1146
  payload: number[];
1148
1147
  path: string;
1148
+ afterSignature: string;
1149
1149
  options?: RetryOptions;
1150
1150
  }): Promise<RSVSignature | SignatureErrorData | undefined>;
1151
+ /**
1152
+ * Parses transaction logs for signature or error events.
1153
+ */
1154
+ private parseLogsForEvents;
1151
1155
  /**
1152
1156
  * Generates the request ID for a signature request allowing to track the response.
1153
1157
  */
package/types/index.d.ts CHANGED
@@ -1138,16 +1138,20 @@ declare class ChainSignatureContract extends ChainSignatureContract$3 {
1138
1138
  remainingSigners?: Array<Signer>;
1139
1139
  }): Promise<RSVSignature>;
1140
1140
  /**
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.
1141
+ * Polls for signature or error events matching the given requestId.
1142
+ * Returns a signature, error data, or undefined if nothing is found.
1144
1143
  */
1145
- listenForSignatureEvents({ requestId, payload, path, options, }: {
1144
+ listenForSignatureEvents({ requestId, payload, path, afterSignature, options, }: {
1146
1145
  requestId: string;
1147
1146
  payload: number[];
1148
1147
  path: string;
1148
+ afterSignature: string;
1149
1149
  options?: RetryOptions;
1150
1150
  }): Promise<RSVSignature | SignatureErrorData | undefined>;
1151
+ /**
1152
+ * Parses transaction logs for signature or error events.
1153
+ */
1154
+ private parseLogsForEvents;
1151
1155
  /**
1152
1156
  * Generates the request ID for a signature request allowing to track the response.
1153
1157
  */