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

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