@orderly.network/core 1.5.2 → 1.5.3-alpha.0
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/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -97,7 +97,7 @@ type SignedMessagePayload = {
|
|
|
97
97
|
* ```
|
|
98
98
|
*/
|
|
99
99
|
interface Signer {
|
|
100
|
-
sign: (data: MessageFactor) => Promise<SignedMessagePayload>;
|
|
100
|
+
sign: (data: MessageFactor, timestamp?: number) => Promise<SignedMessagePayload>;
|
|
101
101
|
signText: (text: string) => Promise<{
|
|
102
102
|
signature: string;
|
|
103
103
|
publicKey: string;
|
|
@@ -106,7 +106,7 @@ interface Signer {
|
|
|
106
106
|
declare class BaseSigner implements Signer {
|
|
107
107
|
private readonly keyStore;
|
|
108
108
|
constructor(keyStore: OrderlyKeyStore);
|
|
109
|
-
sign(message: MessageFactor): Promise<SignedMessagePayload>;
|
|
109
|
+
sign(message: MessageFactor, timestamp?: number): Promise<SignedMessagePayload>;
|
|
110
110
|
signText(text: string): Promise<{
|
|
111
111
|
signature: string;
|
|
112
112
|
publicKey: string;
|
|
@@ -128,12 +128,14 @@ declare function formatByUnits(amount: string, unit?: number | "ether" | "gwei")
|
|
|
128
128
|
declare function isHex(value: string): boolean;
|
|
129
129
|
declare function isHexString(value: string): boolean;
|
|
130
130
|
declare const getGlobalObject: () => typeof globalThis;
|
|
131
|
+
declare const getTimestamp: () => number;
|
|
131
132
|
|
|
132
133
|
type utils_SignatureDomain = SignatureDomain;
|
|
133
134
|
declare const utils_base64url: typeof base64url;
|
|
134
135
|
declare const utils_calculateStringHash: typeof calculateStringHash;
|
|
135
136
|
declare const utils_formatByUnits: typeof formatByUnits;
|
|
136
137
|
declare const utils_getGlobalObject: typeof getGlobalObject;
|
|
138
|
+
declare const utils_getTimestamp: typeof getTimestamp;
|
|
137
139
|
declare const utils_isHex: typeof isHex;
|
|
138
140
|
declare const utils_isHexString: typeof isHexString;
|
|
139
141
|
declare const utils_parseAccountId: typeof parseAccountId;
|
|
@@ -147,6 +149,7 @@ declare namespace utils {
|
|
|
147
149
|
utils_calculateStringHash as calculateStringHash,
|
|
148
150
|
utils_formatByUnits as formatByUnits,
|
|
149
151
|
utils_getGlobalObject as getGlobalObject,
|
|
152
|
+
utils_getTimestamp as getTimestamp,
|
|
150
153
|
utils_isHex as isHex,
|
|
151
154
|
utils_isHexString as isHexString,
|
|
152
155
|
utils_parseAccountId as parseAccountId,
|
package/dist/index.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ type SignedMessagePayload = {
|
|
|
97
97
|
* ```
|
|
98
98
|
*/
|
|
99
99
|
interface Signer {
|
|
100
|
-
sign: (data: MessageFactor) => Promise<SignedMessagePayload>;
|
|
100
|
+
sign: (data: MessageFactor, timestamp?: number) => Promise<SignedMessagePayload>;
|
|
101
101
|
signText: (text: string) => Promise<{
|
|
102
102
|
signature: string;
|
|
103
103
|
publicKey: string;
|
|
@@ -106,7 +106,7 @@ interface Signer {
|
|
|
106
106
|
declare class BaseSigner implements Signer {
|
|
107
107
|
private readonly keyStore;
|
|
108
108
|
constructor(keyStore: OrderlyKeyStore);
|
|
109
|
-
sign(message: MessageFactor): Promise<SignedMessagePayload>;
|
|
109
|
+
sign(message: MessageFactor, timestamp?: number): Promise<SignedMessagePayload>;
|
|
110
110
|
signText(text: string): Promise<{
|
|
111
111
|
signature: string;
|
|
112
112
|
publicKey: string;
|
|
@@ -128,12 +128,14 @@ declare function formatByUnits(amount: string, unit?: number | "ether" | "gwei")
|
|
|
128
128
|
declare function isHex(value: string): boolean;
|
|
129
129
|
declare function isHexString(value: string): boolean;
|
|
130
130
|
declare const getGlobalObject: () => typeof globalThis;
|
|
131
|
+
declare const getTimestamp: () => number;
|
|
131
132
|
|
|
132
133
|
type utils_SignatureDomain = SignatureDomain;
|
|
133
134
|
declare const utils_base64url: typeof base64url;
|
|
134
135
|
declare const utils_calculateStringHash: typeof calculateStringHash;
|
|
135
136
|
declare const utils_formatByUnits: typeof formatByUnits;
|
|
136
137
|
declare const utils_getGlobalObject: typeof getGlobalObject;
|
|
138
|
+
declare const utils_getTimestamp: typeof getTimestamp;
|
|
137
139
|
declare const utils_isHex: typeof isHex;
|
|
138
140
|
declare const utils_isHexString: typeof isHexString;
|
|
139
141
|
declare const utils_parseAccountId: typeof parseAccountId;
|
|
@@ -147,6 +149,7 @@ declare namespace utils {
|
|
|
147
149
|
utils_calculateStringHash as calculateStringHash,
|
|
148
150
|
utils_formatByUnits as formatByUnits,
|
|
149
151
|
utils_getGlobalObject as getGlobalObject,
|
|
152
|
+
utils_getTimestamp as getTimestamp,
|
|
150
153
|
utils_isHex as isHex,
|
|
151
154
|
utils_isHexString as isHexString,
|
|
152
155
|
utils_parseAccountId as parseAccountId,
|