signet.js 0.0.9 → 0.0.10-beta

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.9",
3
+ "version": "0.0.10-beta",
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
@@ -917,16 +917,17 @@ declare namespace errors {
917
917
  export { errors_ChainSignatureError as ChainSignatureError, errors_SignatureContractError as SignatureContractError, errors_SignatureNotFoundError as SignatureNotFoundError, errors_SigningError as SigningError };
918
918
  }
919
919
 
920
+ interface RetryOptions {
921
+ delay?: number;
922
+ retryCount?: number;
923
+ }
920
924
  interface SignOptions {
921
925
  sign: {
922
926
  algo?: string;
923
927
  dest?: string;
924
928
  params?: string;
925
929
  };
926
- retry: {
927
- delay?: number;
928
- retryCount?: number;
929
- };
930
+ retry: RetryOptions;
930
931
  }
931
932
  interface SignatureErrorData {
932
933
  requestId: string;
@@ -985,6 +986,13 @@ declare class ChainSignatureContract extends ChainSignatureContract$2 {
985
986
  * parameters, it will throw an error.
986
987
  */
987
988
  sign(args: SignArgs, options?: SignOptions): Promise<RSVSignature>;
989
+ pollForRequestId({ requestId, payload, path, fromBlock, options, }: {
990
+ requestId: Hex;
991
+ payload: number[];
992
+ path: string;
993
+ fromBlock: bigint;
994
+ options?: RetryOptions;
995
+ }): Promise<RSVSignature | SignatureErrorData | undefined>;
988
996
  /**
989
997
  * Generates the request ID for a signature request allowing to track the response.
990
998
  *
package/types/index.d.ts CHANGED
@@ -917,16 +917,17 @@ declare namespace errors {
917
917
  export { errors_ChainSignatureError as ChainSignatureError, errors_SignatureContractError as SignatureContractError, errors_SignatureNotFoundError as SignatureNotFoundError, errors_SigningError as SigningError };
918
918
  }
919
919
 
920
+ interface RetryOptions {
921
+ delay?: number;
922
+ retryCount?: number;
923
+ }
920
924
  interface SignOptions {
921
925
  sign: {
922
926
  algo?: string;
923
927
  dest?: string;
924
928
  params?: string;
925
929
  };
926
- retry: {
927
- delay?: number;
928
- retryCount?: number;
929
- };
930
+ retry: RetryOptions;
930
931
  }
931
932
  interface SignatureErrorData {
932
933
  requestId: string;
@@ -985,6 +986,13 @@ declare class ChainSignatureContract extends ChainSignatureContract$2 {
985
986
  * parameters, it will throw an error.
986
987
  */
987
988
  sign(args: SignArgs, options?: SignOptions): Promise<RSVSignature>;
989
+ pollForRequestId({ requestId, payload, path, fromBlock, options, }: {
990
+ requestId: Hex;
991
+ payload: number[];
992
+ path: string;
993
+ fromBlock: bigint;
994
+ options?: RetryOptions;
995
+ }): Promise<RSVSignature | SignatureErrorData | undefined>;
988
996
  /**
989
997
  * Generates the request ID for a signature request allowing to track the response.
990
998
  *