signet.js 0.0.9 → 0.0.10-beta1
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/browser/index.browser.cjs +2 -2
- package/browser/index.browser.cjs.map +1 -1
- package/browser/index.browser.js +2 -2
- package/browser/index.browser.js.map +1 -1
- package/node/index.node.cjs +2 -2
- package/node/index.node.cjs.map +1 -1
- package/node/index.node.js +2 -2
- package/node/index.node.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.cts +17 -4
- package/types/index.d.ts +17 -4
package/package.json
CHANGED
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,18 @@ 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>;
|
|
996
|
+
getCallData(args: SignArgs, options?: SignOptions['sign']): Promise<{
|
|
997
|
+
target: Hex;
|
|
998
|
+
data: Hex;
|
|
999
|
+
value: bigint;
|
|
1000
|
+
}>;
|
|
988
1001
|
/**
|
|
989
1002
|
* Generates the request ID for a signature request allowing to track the response.
|
|
990
1003
|
*
|
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,18 @@ 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>;
|
|
996
|
+
getCallData(args: SignArgs, options?: SignOptions['sign']): Promise<{
|
|
997
|
+
target: Hex;
|
|
998
|
+
data: Hex;
|
|
999
|
+
value: bigint;
|
|
1000
|
+
}>;
|
|
988
1001
|
/**
|
|
989
1002
|
* Generates the request ID for a signature request allowing to track the response.
|
|
990
1003
|
*
|