@nadohq/shared 0.1.0-alpha.12 → 0.1.0-alpha.14
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/abis/index.cjs +12 -12
- package/dist/abis/index.cjs.map +1 -1
- package/dist/abis/index.d.cts +6 -6
- package/dist/abis/index.d.ts +6 -6
- package/dist/abis/index.js +6 -6
- package/dist/abis/index.js.map +1 -1
- package/dist/consts/chainEnvToChain.d.cts +17 -16
- package/dist/consts/chainEnvToChain.d.ts +17 -16
- package/dist/consts/index.d.cts +1 -0
- package/dist/consts/index.d.ts +1 -0
- package/dist/eip712/eip712ValueTypes.d.cts +1 -1
- package/dist/eip712/eip712ValueTypes.d.ts +1 -1
- package/dist/eip712/getNadoEIP712Domain.cjs.map +1 -1
- package/dist/eip712/getNadoEIP712Domain.js.map +1 -1
- package/dist/eip712/index.cjs +13 -13
- package/dist/eip712/index.cjs.map +1 -1
- package/dist/eip712/index.d.cts +9 -9
- package/dist/eip712/index.d.ts +9 -9
- package/dist/eip712/index.js +6 -6
- package/dist/eip712/index.js.map +1 -1
- package/dist/index.d.cts +34 -34
- package/dist/index.d.ts +34 -34
- package/dist/types/index.cjs +7 -7
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.js +3 -3
- package/dist/types/index.js.map +1 -1
- package/dist/utils/createDeterministicLinkedSignerPrivateKey.cjs.map +1 -1
- package/dist/utils/createDeterministicLinkedSignerPrivateKey.js.map +1 -1
- package/dist/utils/index.cjs +12 -12
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +21 -21
- package/dist/utils/index.d.ts +21 -21
- package/dist/utils/index.js +6 -6
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/math/index.cjs +8 -8
- package/dist/utils/math/index.cjs.map +1 -1
- package/dist/utils/math/index.d.cts +4 -4
- package/dist/utils/math/index.d.ts +4 -4
- package/dist/utils/math/index.js +4 -4
- package/dist/utils/math/index.js.map +1 -1
- package/dist/utils/orders/appendix/index.cjs +4 -4
- package/dist/utils/orders/appendix/index.cjs.map +1 -1
- package/dist/utils/orders/appendix/index.d.cts +2 -2
- package/dist/utils/orders/appendix/index.d.ts +2 -2
- package/dist/utils/orders/appendix/index.js +2 -2
- package/dist/utils/orders/appendix/index.js.map +1 -1
- package/dist/utils/orders/index.cjs +3 -3
- package/dist/utils/orders/index.cjs.map +1 -1
- package/dist/utils/orders/index.d.cts +4 -4
- package/dist/utils/orders/index.d.ts +4 -4
- package/dist/utils/orders/index.js +1 -1
- package/dist/utils/orders/index.js.map +1 -1
- package/dist/utils/productTypeFilter.cjs.map +1 -1
- package/dist/utils/productTypeFilter.js.map +1 -1
- package/package.json +2 -2
- package/src/abis/index.ts +6 -6
- package/src/eip712/getNadoEIP712Domain.ts +1 -1
- package/src/eip712/index.ts +6 -6
- package/src/types/index.ts +3 -3
- package/src/utils/createDeterministicLinkedSignerPrivateKey.ts +1 -1
- package/src/utils/index.ts +6 -6
- package/src/utils/math/index.ts +4 -4
- package/src/utils/orders/appendix/index.ts +2 -2
- package/src/utils/orders/index.ts +1 -1
- package/src/utils/productTypeFilter.ts +2 -2
package/dist/abis/index.cjs
CHANGED
|
@@ -17,25 +17,25 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
17
17
|
// src/abis/index.ts
|
|
18
18
|
var abis_exports = {};
|
|
19
19
|
module.exports = __toCommonJS(abis_exports);
|
|
20
|
+
__reExport(abis_exports, require("./Clearinghouse.cjs"), module.exports);
|
|
21
|
+
__reExport(abis_exports, require("./Endpoint.cjs"), module.exports);
|
|
20
22
|
__reExport(abis_exports, require("./ERC20.cjs"), module.exports);
|
|
21
23
|
__reExport(abis_exports, require("./MockERC20.cjs"), module.exports);
|
|
22
|
-
__reExport(abis_exports, require("./WithdrawPool.cjs"), module.exports);
|
|
23
|
-
__reExport(abis_exports, require("./SpotEngine.cjs"), module.exports);
|
|
24
|
-
__reExport(abis_exports, require("./Querier.cjs"), module.exports);
|
|
25
|
-
__reExport(abis_exports, require("./PerpEngine.cjs"), module.exports);
|
|
26
|
-
__reExport(abis_exports, require("./Endpoint.cjs"), module.exports);
|
|
27
|
-
__reExport(abis_exports, require("./Clearinghouse.cjs"), module.exports);
|
|
28
24
|
__reExport(abis_exports, require("./nadoAbis.cjs"), module.exports);
|
|
25
|
+
__reExport(abis_exports, require("./PerpEngine.cjs"), module.exports);
|
|
26
|
+
__reExport(abis_exports, require("./Querier.cjs"), module.exports);
|
|
27
|
+
__reExport(abis_exports, require("./SpotEngine.cjs"), module.exports);
|
|
28
|
+
__reExport(abis_exports, require("./WithdrawPool.cjs"), module.exports);
|
|
29
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
30
|
0 && (module.exports = {
|
|
31
|
+
...require("./Clearinghouse.cjs"),
|
|
32
|
+
...require("./Endpoint.cjs"),
|
|
31
33
|
...require("./ERC20.cjs"),
|
|
32
34
|
...require("./MockERC20.cjs"),
|
|
33
|
-
...require("./
|
|
34
|
-
...require("./SpotEngine.cjs"),
|
|
35
|
-
...require("./Querier.cjs"),
|
|
35
|
+
...require("./nadoAbis.cjs"),
|
|
36
36
|
...require("./PerpEngine.cjs"),
|
|
37
|
-
...require("./
|
|
38
|
-
...require("./
|
|
39
|
-
...require("./
|
|
37
|
+
...require("./Querier.cjs"),
|
|
38
|
+
...require("./SpotEngine.cjs"),
|
|
39
|
+
...require("./WithdrawPool.cjs")
|
|
40
40
|
});
|
|
41
41
|
//# sourceMappingURL=index.cjs.map
|
package/dist/abis/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/abis/index.ts"],"sourcesContent":["export * from './
|
|
1
|
+
{"version":3,"sources":["../../src/abis/index.ts"],"sourcesContent":["export * from './Clearinghouse';\nexport * from './Endpoint';\nexport * from './ERC20';\nexport * from './MockERC20';\nexport * from './nadoAbis';\nexport * from './PerpEngine';\nexport * from './Querier';\nexport * from './SpotEngine';\nexport * from './WithdrawPool';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yBAAc,gCAAd;AACA,yBAAc,2BADd;AAEA,yBAAc,wBAFd;AAGA,yBAAc,4BAHd;AAIA,yBAAc,2BAJd;AAKA,yBAAc,6BALd;AAMA,yBAAc,0BANd;AAOA,yBAAc,6BAPd;AAQA,yBAAc,+BARd;","names":[]}
|
package/dist/abis/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
export { CLEARINGHOUSE_ABI } from './Clearinghouse.cjs';
|
|
2
|
+
export { ENDPOINT_ABI } from './Endpoint.cjs';
|
|
1
3
|
export { ERC20_ABI } from './ERC20.cjs';
|
|
2
4
|
export { MOCK_ERC20_ABI } from './MockERC20.cjs';
|
|
3
|
-
export { WITHDRAW_POOL_ABI } from './WithdrawPool.cjs';
|
|
4
|
-
export { SPOT_ENGINE_ABI } from './SpotEngine.cjs';
|
|
5
|
-
export { QUERIER_ABI } from './Querier.cjs';
|
|
6
|
-
export { PERP_ENGINE_ABI } from './PerpEngine.cjs';
|
|
7
|
-
export { ENDPOINT_ABI } from './Endpoint.cjs';
|
|
8
|
-
export { CLEARINGHOUSE_ABI } from './Clearinghouse.cjs';
|
|
9
5
|
export { NADO_ABIS, NadoAbis, NadoContractName } from './nadoAbis.cjs';
|
|
6
|
+
export { PERP_ENGINE_ABI } from './PerpEngine.cjs';
|
|
7
|
+
export { QUERIER_ABI } from './Querier.cjs';
|
|
8
|
+
export { SPOT_ENGINE_ABI } from './SpotEngine.cjs';
|
|
9
|
+
export { WITHDRAW_POOL_ABI } from './WithdrawPool.cjs';
|
package/dist/abis/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
export { CLEARINGHOUSE_ABI } from './Clearinghouse.js';
|
|
2
|
+
export { ENDPOINT_ABI } from './Endpoint.js';
|
|
1
3
|
export { ERC20_ABI } from './ERC20.js';
|
|
2
4
|
export { MOCK_ERC20_ABI } from './MockERC20.js';
|
|
3
|
-
export { WITHDRAW_POOL_ABI } from './WithdrawPool.js';
|
|
4
|
-
export { SPOT_ENGINE_ABI } from './SpotEngine.js';
|
|
5
|
-
export { QUERIER_ABI } from './Querier.js';
|
|
6
|
-
export { PERP_ENGINE_ABI } from './PerpEngine.js';
|
|
7
|
-
export { ENDPOINT_ABI } from './Endpoint.js';
|
|
8
|
-
export { CLEARINGHOUSE_ABI } from './Clearinghouse.js';
|
|
9
5
|
export { NADO_ABIS, NadoAbis, NadoContractName } from './nadoAbis.js';
|
|
6
|
+
export { PERP_ENGINE_ABI } from './PerpEngine.js';
|
|
7
|
+
export { QUERIER_ABI } from './Querier.js';
|
|
8
|
+
export { SPOT_ENGINE_ABI } from './SpotEngine.js';
|
|
9
|
+
export { WITHDRAW_POOL_ABI } from './WithdrawPool.js';
|
package/dist/abis/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// src/abis/index.ts
|
|
2
|
+
export * from "./Clearinghouse.js";
|
|
3
|
+
export * from "./Endpoint.js";
|
|
2
4
|
export * from "./ERC20.js";
|
|
3
5
|
export * from "./MockERC20.js";
|
|
4
|
-
export * from "./WithdrawPool.js";
|
|
5
|
-
export * from "./SpotEngine.js";
|
|
6
|
-
export * from "./Querier.js";
|
|
7
|
-
export * from "./PerpEngine.js";
|
|
8
|
-
export * from "./Endpoint.js";
|
|
9
|
-
export * from "./Clearinghouse.js";
|
|
10
6
|
export * from "./nadoAbis.js";
|
|
7
|
+
export * from "./PerpEngine.js";
|
|
8
|
+
export * from "./Querier.js";
|
|
9
|
+
export * from "./SpotEngine.js";
|
|
10
|
+
export * from "./WithdrawPool.js";
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
package/dist/abis/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/abis/index.ts"],"sourcesContent":["export * from './
|
|
1
|
+
{"version":3,"sources":["../../src/abis/index.ts"],"sourcesContent":["export * from './Clearinghouse';\nexport * from './Endpoint';\nexport * from './ERC20';\nexport * from './MockERC20';\nexport * from './nadoAbis';\nexport * from './PerpEngine';\nexport * from './Querier';\nexport * from './SpotEngine';\nexport * from './WithdrawPool';\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as abitype from 'abitype';
|
|
1
2
|
import * as viem_chains from 'viem/chains';
|
|
2
3
|
import * as viem from 'viem';
|
|
3
4
|
import { ChainEnv } from '../types/ChainEnv.cjs';
|
|
@@ -159,7 +160,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
159
160
|
gasUsed: bigint;
|
|
160
161
|
hash: `0x${string}` | null;
|
|
161
162
|
logsBloom: `0x${string}` | null;
|
|
162
|
-
miner:
|
|
163
|
+
miner: abitype.Address;
|
|
163
164
|
mixHash: viem.Hash;
|
|
164
165
|
nonce: `0x${string}` | null;
|
|
165
166
|
number: bigint | null;
|
|
@@ -185,14 +186,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
185
186
|
format: (args: viem_chains.OpStackRpcTransaction) => ({
|
|
186
187
|
blockHash: `0x${string}` | null;
|
|
187
188
|
blockNumber: bigint | null;
|
|
188
|
-
from:
|
|
189
|
+
from: abitype.Address;
|
|
189
190
|
gas: bigint;
|
|
190
191
|
hash: viem.Hash;
|
|
191
192
|
input: viem.Hex;
|
|
192
193
|
nonce: number;
|
|
193
194
|
r: viem.Hex;
|
|
194
195
|
s: viem.Hex;
|
|
195
|
-
to:
|
|
196
|
+
to: abitype.Address | null;
|
|
196
197
|
transactionIndex: number | null;
|
|
197
198
|
typeHex: viem.Hex | null;
|
|
198
199
|
v: bigint;
|
|
@@ -210,8 +211,8 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
210
211
|
r: viem.Hex;
|
|
211
212
|
s: viem.Hex;
|
|
212
213
|
v: bigint;
|
|
213
|
-
to:
|
|
214
|
-
from:
|
|
214
|
+
to: abitype.Address | null;
|
|
215
|
+
from: abitype.Address;
|
|
215
216
|
gas: bigint;
|
|
216
217
|
nonce: number;
|
|
217
218
|
value: bigint;
|
|
@@ -237,14 +238,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
237
238
|
} | {
|
|
238
239
|
blockHash: `0x${string}` | null;
|
|
239
240
|
blockNumber: bigint | null;
|
|
240
|
-
from:
|
|
241
|
+
from: abitype.Address;
|
|
241
242
|
gas: bigint;
|
|
242
243
|
hash: viem.Hash;
|
|
243
244
|
input: viem.Hex;
|
|
244
245
|
nonce: number;
|
|
245
246
|
r: viem.Hex;
|
|
246
247
|
s: viem.Hex;
|
|
247
|
-
to:
|
|
248
|
+
to: abitype.Address | null;
|
|
248
249
|
transactionIndex: number | null;
|
|
249
250
|
typeHex: viem.Hex | null;
|
|
250
251
|
v: bigint;
|
|
@@ -265,14 +266,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
265
266
|
} | {
|
|
266
267
|
blockHash: `0x${string}` | null;
|
|
267
268
|
blockNumber: bigint | null;
|
|
268
|
-
from:
|
|
269
|
+
from: abitype.Address;
|
|
269
270
|
gas: bigint;
|
|
270
271
|
hash: viem.Hash;
|
|
271
272
|
input: viem.Hex;
|
|
272
273
|
nonce: number;
|
|
273
274
|
r: viem.Hex;
|
|
274
275
|
s: viem.Hex;
|
|
275
|
-
to:
|
|
276
|
+
to: abitype.Address | null;
|
|
276
277
|
transactionIndex: number | null;
|
|
277
278
|
typeHex: viem.Hex | null;
|
|
278
279
|
v: bigint;
|
|
@@ -293,14 +294,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
293
294
|
} | {
|
|
294
295
|
blockHash: `0x${string}` | null;
|
|
295
296
|
blockNumber: bigint | null;
|
|
296
|
-
from:
|
|
297
|
+
from: abitype.Address;
|
|
297
298
|
gas: bigint;
|
|
298
299
|
hash: viem.Hash;
|
|
299
300
|
input: viem.Hex;
|
|
300
301
|
nonce: number;
|
|
301
302
|
r: viem.Hex;
|
|
302
303
|
s: viem.Hex;
|
|
303
|
-
to:
|
|
304
|
+
to: abitype.Address | null;
|
|
304
305
|
transactionIndex: number | null;
|
|
305
306
|
typeHex: viem.Hex | null;
|
|
306
307
|
v: bigint;
|
|
@@ -321,14 +322,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
321
322
|
} | {
|
|
322
323
|
blockHash: `0x${string}` | null;
|
|
323
324
|
blockNumber: bigint | null;
|
|
324
|
-
from:
|
|
325
|
+
from: abitype.Address;
|
|
325
326
|
gas: bigint;
|
|
326
327
|
hash: viem.Hash;
|
|
327
328
|
input: viem.Hex;
|
|
328
329
|
nonce: number;
|
|
329
330
|
r: viem.Hex;
|
|
330
331
|
s: viem.Hex;
|
|
331
|
-
to:
|
|
332
|
+
to: abitype.Address | null;
|
|
332
333
|
transactionIndex: number | null;
|
|
333
334
|
typeHex: viem.Hex | null;
|
|
334
335
|
v: bigint;
|
|
@@ -356,16 +357,16 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
356
357
|
blobGasUsed?: bigint | undefined;
|
|
357
358
|
blockHash: viem.Hash;
|
|
358
359
|
blockNumber: bigint;
|
|
359
|
-
contractAddress:
|
|
360
|
+
contractAddress: abitype.Address | null | undefined;
|
|
360
361
|
cumulativeGasUsed: bigint;
|
|
361
362
|
effectiveGasPrice: bigint;
|
|
362
|
-
from:
|
|
363
|
+
from: abitype.Address;
|
|
363
364
|
gasUsed: bigint;
|
|
364
365
|
logs: viem.Log<bigint, number, false>[];
|
|
365
366
|
logsBloom: viem.Hex;
|
|
366
367
|
root?: `0x${string}` | undefined;
|
|
367
368
|
status: "success" | "reverted";
|
|
368
|
-
to:
|
|
369
|
+
to: abitype.Address | null;
|
|
369
370
|
transactionHash: viem.Hash;
|
|
370
371
|
transactionIndex: number;
|
|
371
372
|
type: viem.TransactionType;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as abitype from 'abitype';
|
|
1
2
|
import * as viem_chains from 'viem/chains';
|
|
2
3
|
import * as viem from 'viem';
|
|
3
4
|
import { ChainEnv } from '../types/ChainEnv.js';
|
|
@@ -159,7 +160,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
159
160
|
gasUsed: bigint;
|
|
160
161
|
hash: `0x${string}` | null;
|
|
161
162
|
logsBloom: `0x${string}` | null;
|
|
162
|
-
miner:
|
|
163
|
+
miner: abitype.Address;
|
|
163
164
|
mixHash: viem.Hash;
|
|
164
165
|
nonce: `0x${string}` | null;
|
|
165
166
|
number: bigint | null;
|
|
@@ -185,14 +186,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
185
186
|
format: (args: viem_chains.OpStackRpcTransaction) => ({
|
|
186
187
|
blockHash: `0x${string}` | null;
|
|
187
188
|
blockNumber: bigint | null;
|
|
188
|
-
from:
|
|
189
|
+
from: abitype.Address;
|
|
189
190
|
gas: bigint;
|
|
190
191
|
hash: viem.Hash;
|
|
191
192
|
input: viem.Hex;
|
|
192
193
|
nonce: number;
|
|
193
194
|
r: viem.Hex;
|
|
194
195
|
s: viem.Hex;
|
|
195
|
-
to:
|
|
196
|
+
to: abitype.Address | null;
|
|
196
197
|
transactionIndex: number | null;
|
|
197
198
|
typeHex: viem.Hex | null;
|
|
198
199
|
v: bigint;
|
|
@@ -210,8 +211,8 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
210
211
|
r: viem.Hex;
|
|
211
212
|
s: viem.Hex;
|
|
212
213
|
v: bigint;
|
|
213
|
-
to:
|
|
214
|
-
from:
|
|
214
|
+
to: abitype.Address | null;
|
|
215
|
+
from: abitype.Address;
|
|
215
216
|
gas: bigint;
|
|
216
217
|
nonce: number;
|
|
217
218
|
value: bigint;
|
|
@@ -237,14 +238,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
237
238
|
} | {
|
|
238
239
|
blockHash: `0x${string}` | null;
|
|
239
240
|
blockNumber: bigint | null;
|
|
240
|
-
from:
|
|
241
|
+
from: abitype.Address;
|
|
241
242
|
gas: bigint;
|
|
242
243
|
hash: viem.Hash;
|
|
243
244
|
input: viem.Hex;
|
|
244
245
|
nonce: number;
|
|
245
246
|
r: viem.Hex;
|
|
246
247
|
s: viem.Hex;
|
|
247
|
-
to:
|
|
248
|
+
to: abitype.Address | null;
|
|
248
249
|
transactionIndex: number | null;
|
|
249
250
|
typeHex: viem.Hex | null;
|
|
250
251
|
v: bigint;
|
|
@@ -265,14 +266,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
265
266
|
} | {
|
|
266
267
|
blockHash: `0x${string}` | null;
|
|
267
268
|
blockNumber: bigint | null;
|
|
268
|
-
from:
|
|
269
|
+
from: abitype.Address;
|
|
269
270
|
gas: bigint;
|
|
270
271
|
hash: viem.Hash;
|
|
271
272
|
input: viem.Hex;
|
|
272
273
|
nonce: number;
|
|
273
274
|
r: viem.Hex;
|
|
274
275
|
s: viem.Hex;
|
|
275
|
-
to:
|
|
276
|
+
to: abitype.Address | null;
|
|
276
277
|
transactionIndex: number | null;
|
|
277
278
|
typeHex: viem.Hex | null;
|
|
278
279
|
v: bigint;
|
|
@@ -293,14 +294,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
293
294
|
} | {
|
|
294
295
|
blockHash: `0x${string}` | null;
|
|
295
296
|
blockNumber: bigint | null;
|
|
296
|
-
from:
|
|
297
|
+
from: abitype.Address;
|
|
297
298
|
gas: bigint;
|
|
298
299
|
hash: viem.Hash;
|
|
299
300
|
input: viem.Hex;
|
|
300
301
|
nonce: number;
|
|
301
302
|
r: viem.Hex;
|
|
302
303
|
s: viem.Hex;
|
|
303
|
-
to:
|
|
304
|
+
to: abitype.Address | null;
|
|
304
305
|
transactionIndex: number | null;
|
|
305
306
|
typeHex: viem.Hex | null;
|
|
306
307
|
v: bigint;
|
|
@@ -321,14 +322,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
321
322
|
} | {
|
|
322
323
|
blockHash: `0x${string}` | null;
|
|
323
324
|
blockNumber: bigint | null;
|
|
324
|
-
from:
|
|
325
|
+
from: abitype.Address;
|
|
325
326
|
gas: bigint;
|
|
326
327
|
hash: viem.Hash;
|
|
327
328
|
input: viem.Hex;
|
|
328
329
|
nonce: number;
|
|
329
330
|
r: viem.Hex;
|
|
330
331
|
s: viem.Hex;
|
|
331
|
-
to:
|
|
332
|
+
to: abitype.Address | null;
|
|
332
333
|
transactionIndex: number | null;
|
|
333
334
|
typeHex: viem.Hex | null;
|
|
334
335
|
v: bigint;
|
|
@@ -356,16 +357,16 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
356
357
|
blobGasUsed?: bigint | undefined;
|
|
357
358
|
blockHash: viem.Hash;
|
|
358
359
|
blockNumber: bigint;
|
|
359
|
-
contractAddress:
|
|
360
|
+
contractAddress: abitype.Address | null | undefined;
|
|
360
361
|
cumulativeGasUsed: bigint;
|
|
361
362
|
effectiveGasPrice: bigint;
|
|
362
|
-
from:
|
|
363
|
+
from: abitype.Address;
|
|
363
364
|
gasUsed: bigint;
|
|
364
365
|
logs: viem.Log<bigint, number, false>[];
|
|
365
366
|
logsBloom: viem.Hex;
|
|
366
367
|
root?: `0x${string}` | undefined;
|
|
367
368
|
status: "success" | "reverted";
|
|
368
|
-
to:
|
|
369
|
+
to: abitype.Address | null;
|
|
369
370
|
transactionHash: viem.Hash;
|
|
370
371
|
transactionIndex: number;
|
|
371
372
|
type: viem.TransactionType;
|
package/dist/consts/index.d.cts
CHANGED
package/dist/consts/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Hex } from 'viem';
|
|
2
2
|
import { BigDecimalish } from '../utils/math/bigDecimal.cjs';
|
|
3
|
-
import {
|
|
3
|
+
import { EIP712WithdrawCollateralParams, EIP712LiquidateSubaccountParams, EIP712OrderParams, EIP712ListTriggerOrdersParams, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LinkSignerParams, EIP712TransferQuoteParams, EIP712LeaderboardAuthenticationParams, EIP712MintNlpParams, EIP712BurnNlpParams } from './signatureParamTypes.cjs';
|
|
4
4
|
import 'bignumber.js';
|
|
5
5
|
import '../types/subaccountTypes.cjs';
|
|
6
6
|
import '../types/bytes.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Hex } from 'viem';
|
|
2
2
|
import { BigDecimalish } from '../utils/math/bigDecimal.js';
|
|
3
|
-
import {
|
|
3
|
+
import { EIP712WithdrawCollateralParams, EIP712LiquidateSubaccountParams, EIP712OrderParams, EIP712ListTriggerOrdersParams, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LinkSignerParams, EIP712TransferQuoteParams, EIP712LeaderboardAuthenticationParams, EIP712MintNlpParams, EIP712BurnNlpParams } from './signatureParamTypes.js';
|
|
4
4
|
import 'bignumber.js';
|
|
5
5
|
import '../types/subaccountTypes.js';
|
|
6
6
|
import '../types/bytes.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/eip712/getNadoEIP712Domain.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/eip712/getNadoEIP712Domain.ts"],"sourcesContent":["import { TypedDataDomain } from 'abitype';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\n\n/**\n * Gives the EIP712 data domain for order signing\n *\n * @param contractAddress usually the address of the orderbook (for orders) or sequencer (for other operations)\n * @param chainId\n */\nexport function getNadoEIP712Domain(\n contractAddress: string,\n chainId: number,\n): TypedDataDomain {\n return {\n name: 'Nado',\n version: '0.0.1',\n chainId,\n verifyingContract: getValidatedAddress(contractAddress),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,iCAAoC;AAQ7B,SAAS,oBACd,iBACA,SACiB;AACjB,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT;AAAA,IACA,uBAAmB,gDAAoB,eAAe;AAAA,EACxD;AACF;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/eip712/getNadoEIP712Domain.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/eip712/getNadoEIP712Domain.ts"],"sourcesContent":["import { TypedDataDomain } from 'abitype';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\n\n/**\n * Gives the EIP712 data domain for order signing\n *\n * @param contractAddress usually the address of the orderbook (for orders) or sequencer (for other operations)\n * @param chainId\n */\nexport function getNadoEIP712Domain(\n contractAddress: string,\n chainId: number,\n): TypedDataDomain {\n return {\n name: 'Nado',\n version: '0.0.1',\n chainId,\n verifyingContract: getValidatedAddress(contractAddress),\n };\n}\n"],"mappings":";;;AACA,SAAS,2BAA2B;AAQ7B,SAAS,oBACd,iBACA,SACiB;AACjB,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT;AAAA,IACA,mBAAmB,oBAAoB,eAAe;AAAA,EACxD;AACF;","names":[]}
|
package/dist/eip712/index.cjs
CHANGED
|
@@ -17,27 +17,27 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
17
17
|
// src/eip712/index.ts
|
|
18
18
|
var eip712_exports = {};
|
|
19
19
|
module.exports = __toCommonJS(eip712_exports);
|
|
20
|
-
__reExport(eip712_exports, require("./
|
|
21
|
-
__reExport(eip712_exports, require("./getNadoEIP712Values.cjs"), module.exports);
|
|
22
|
-
__reExport(eip712_exports, require("./getNadoEIP712Types.cjs"), module.exports);
|
|
23
|
-
__reExport(eip712_exports, require("./getNadoEIP712PrimaryType.cjs"), module.exports);
|
|
20
|
+
__reExport(eip712_exports, require("./eip712ValueTypes.cjs"), module.exports);
|
|
24
21
|
__reExport(eip712_exports, require("./getNadoEIP712Domain.cjs"), module.exports);
|
|
22
|
+
__reExport(eip712_exports, require("./getNadoEIP712PrimaryType.cjs"), module.exports);
|
|
23
|
+
__reExport(eip712_exports, require("./getNadoEIP712Types.cjs"), module.exports);
|
|
24
|
+
__reExport(eip712_exports, require("./getNadoEIP712Values.cjs"), module.exports);
|
|
25
|
+
__reExport(eip712_exports, require("./getOrderVerifyingAddress.cjs"), module.exports);
|
|
26
|
+
__reExport(eip712_exports, require("./getSignedTransactionRequest.cjs"), module.exports);
|
|
25
27
|
__reExport(eip712_exports, require("./orderDigest.cjs"), module.exports);
|
|
26
28
|
__reExport(eip712_exports, require("./signableRequestType.cjs"), module.exports);
|
|
27
29
|
__reExport(eip712_exports, require("./signatureParamTypes.cjs"), module.exports);
|
|
28
|
-
__reExport(eip712_exports, require("./eip712ValueTypes.cjs"), module.exports);
|
|
29
|
-
__reExport(eip712_exports, require("./getOrderVerifyingAddress.cjs"), module.exports);
|
|
30
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
31
|
0 && (module.exports = {
|
|
32
|
-
...require("./
|
|
33
|
-
...require("./getNadoEIP712Values.cjs"),
|
|
34
|
-
...require("./getNadoEIP712Types.cjs"),
|
|
35
|
-
...require("./getNadoEIP712PrimaryType.cjs"),
|
|
32
|
+
...require("./eip712ValueTypes.cjs"),
|
|
36
33
|
...require("./getNadoEIP712Domain.cjs"),
|
|
34
|
+
...require("./getNadoEIP712PrimaryType.cjs"),
|
|
35
|
+
...require("./getNadoEIP712Types.cjs"),
|
|
36
|
+
...require("./getNadoEIP712Values.cjs"),
|
|
37
|
+
...require("./getOrderVerifyingAddress.cjs"),
|
|
38
|
+
...require("./getSignedTransactionRequest.cjs"),
|
|
37
39
|
...require("./orderDigest.cjs"),
|
|
38
40
|
...require("./signableRequestType.cjs"),
|
|
39
|
-
...require("./signatureParamTypes.cjs")
|
|
40
|
-
...require("./eip712ValueTypes.cjs"),
|
|
41
|
-
...require("./getOrderVerifyingAddress.cjs")
|
|
41
|
+
...require("./signatureParamTypes.cjs")
|
|
42
42
|
});
|
|
43
43
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/eip712/index.ts"],"sourcesContent":["export * from './
|
|
1
|
+
{"version":3,"sources":["../../src/eip712/index.ts"],"sourcesContent":["export * from './eip712ValueTypes';\nexport * from './getNadoEIP712Domain';\nexport * from './getNadoEIP712PrimaryType';\nexport * from './getNadoEIP712Types';\nexport * from './getNadoEIP712Values';\nexport * from './getOrderVerifyingAddress';\nexport * from './getSignedTransactionRequest';\nexport * from './orderDigest';\nexport * from './signableRequestType';\nexport * from './signatureParamTypes';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAc,mCAAd;AACA,2BAAc,sCADd;AAEA,2BAAc,2CAFd;AAGA,2BAAc,qCAHd;AAIA,2BAAc,sCAJd;AAKA,2BAAc,2CALd;AAMA,2BAAc,8CANd;AAOA,2BAAc,8BAPd;AAQA,2BAAc,sCARd;AASA,2BAAc,sCATd;","names":[]}
|
package/dist/eip712/index.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { getNadoEIP712Values } from './getNadoEIP712Values.cjs';
|
|
3
|
-
export { getNadoEIP712Types } from './getNadoEIP712Types.cjs';
|
|
4
|
-
export { getNadoEIP712PrimaryType } from './getNadoEIP712PrimaryType.cjs';
|
|
1
|
+
export { EIP712BurnNlpValues, EIP712LeaderboardAuthenticationValues, EIP712LinkSignerValues, EIP712LiquidateSubaccountValues, EIP712ListTriggerOrdersValues, EIP712MintNlpValues, EIP712OrderCancellationValues, EIP712OrderValues, EIP712ProductOrdersCancellationValues, EIP712TransferQuoteValues, EIP712WithdrawCollateralValues, SignableRequestTypeToEIP712Values } from './eip712ValueTypes.cjs';
|
|
5
2
|
export { getNadoEIP712Domain } from './getNadoEIP712Domain.cjs';
|
|
3
|
+
export { getNadoEIP712PrimaryType } from './getNadoEIP712PrimaryType.cjs';
|
|
4
|
+
export { getNadoEIP712Types } from './getNadoEIP712Types.cjs';
|
|
5
|
+
export { getNadoEIP712Values } from './getNadoEIP712Values.cjs';
|
|
6
|
+
export { getOrderVerifyingAddress } from './getOrderVerifyingAddress.cjs';
|
|
7
|
+
export { getSignedTransactionRequest } from './getSignedTransactionRequest.cjs';
|
|
6
8
|
export { getOrderDigest } from './orderDigest.cjs';
|
|
7
9
|
export { SignableRequestType, SignableRequestTypeToParams } from './signableRequestType.cjs';
|
|
8
10
|
export { EIP712BurnNlpParams, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LeaderboardAuthenticationParams, EIP712LinkSignerParams, EIP712LiquidateSubaccountParams, EIP712ListTriggerOrdersParams, EIP712MintNlpParams, EIP712OrderParams, EIP712TransferQuoteParams, EIP712WithdrawCollateralParams, SignedEIP712OrderParams, SignedTx } from './signatureParamTypes.cjs';
|
|
9
|
-
export { EIP712BurnNlpValues, EIP712LeaderboardAuthenticationValues, EIP712LinkSignerValues, EIP712LiquidateSubaccountValues, EIP712ListTriggerOrdersValues, EIP712MintNlpValues, EIP712OrderCancellationValues, EIP712OrderValues, EIP712ProductOrdersCancellationValues, EIP712TransferQuoteValues, EIP712WithdrawCollateralValues, SignableRequestTypeToEIP712Values } from './eip712ValueTypes.cjs';
|
|
10
|
-
export { getOrderVerifyingAddress } from './getOrderVerifyingAddress.cjs';
|
|
11
|
-
import '../types/viemTypes.cjs';
|
|
12
11
|
import 'viem';
|
|
12
|
+
import '../utils/math/bigDecimal.cjs';
|
|
13
|
+
import 'bignumber.js';
|
|
13
14
|
import 'abitype';
|
|
15
|
+
import '../types/viemTypes.cjs';
|
|
14
16
|
import '../types/subaccountTypes.cjs';
|
|
15
17
|
import '../types/bytes.cjs';
|
|
16
|
-
import '../utils/math/bigDecimal.cjs';
|
|
17
|
-
import 'bignumber.js';
|
package/dist/eip712/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { getNadoEIP712Values } from './getNadoEIP712Values.js';
|
|
3
|
-
export { getNadoEIP712Types } from './getNadoEIP712Types.js';
|
|
4
|
-
export { getNadoEIP712PrimaryType } from './getNadoEIP712PrimaryType.js';
|
|
1
|
+
export { EIP712BurnNlpValues, EIP712LeaderboardAuthenticationValues, EIP712LinkSignerValues, EIP712LiquidateSubaccountValues, EIP712ListTriggerOrdersValues, EIP712MintNlpValues, EIP712OrderCancellationValues, EIP712OrderValues, EIP712ProductOrdersCancellationValues, EIP712TransferQuoteValues, EIP712WithdrawCollateralValues, SignableRequestTypeToEIP712Values } from './eip712ValueTypes.js';
|
|
5
2
|
export { getNadoEIP712Domain } from './getNadoEIP712Domain.js';
|
|
3
|
+
export { getNadoEIP712PrimaryType } from './getNadoEIP712PrimaryType.js';
|
|
4
|
+
export { getNadoEIP712Types } from './getNadoEIP712Types.js';
|
|
5
|
+
export { getNadoEIP712Values } from './getNadoEIP712Values.js';
|
|
6
|
+
export { getOrderVerifyingAddress } from './getOrderVerifyingAddress.js';
|
|
7
|
+
export { getSignedTransactionRequest } from './getSignedTransactionRequest.js';
|
|
6
8
|
export { getOrderDigest } from './orderDigest.js';
|
|
7
9
|
export { SignableRequestType, SignableRequestTypeToParams } from './signableRequestType.js';
|
|
8
10
|
export { EIP712BurnNlpParams, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LeaderboardAuthenticationParams, EIP712LinkSignerParams, EIP712LiquidateSubaccountParams, EIP712ListTriggerOrdersParams, EIP712MintNlpParams, EIP712OrderParams, EIP712TransferQuoteParams, EIP712WithdrawCollateralParams, SignedEIP712OrderParams, SignedTx } from './signatureParamTypes.js';
|
|
9
|
-
export { EIP712BurnNlpValues, EIP712LeaderboardAuthenticationValues, EIP712LinkSignerValues, EIP712LiquidateSubaccountValues, EIP712ListTriggerOrdersValues, EIP712MintNlpValues, EIP712OrderCancellationValues, EIP712OrderValues, EIP712ProductOrdersCancellationValues, EIP712TransferQuoteValues, EIP712WithdrawCollateralValues, SignableRequestTypeToEIP712Values } from './eip712ValueTypes.js';
|
|
10
|
-
export { getOrderVerifyingAddress } from './getOrderVerifyingAddress.js';
|
|
11
|
-
import '../types/viemTypes.js';
|
|
12
11
|
import 'viem';
|
|
12
|
+
import '../utils/math/bigDecimal.js';
|
|
13
|
+
import 'bignumber.js';
|
|
13
14
|
import 'abitype';
|
|
15
|
+
import '../types/viemTypes.js';
|
|
14
16
|
import '../types/subaccountTypes.js';
|
|
15
17
|
import '../types/bytes.js';
|
|
16
|
-
import '../utils/math/bigDecimal.js';
|
|
17
|
-
import 'bignumber.js';
|
package/dist/eip712/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// src/eip712/index.ts
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./getNadoEIP712Values.js";
|
|
4
|
-
export * from "./getNadoEIP712Types.js";
|
|
5
|
-
export * from "./getNadoEIP712PrimaryType.js";
|
|
2
|
+
export * from "./eip712ValueTypes.js";
|
|
6
3
|
export * from "./getNadoEIP712Domain.js";
|
|
4
|
+
export * from "./getNadoEIP712PrimaryType.js";
|
|
5
|
+
export * from "./getNadoEIP712Types.js";
|
|
6
|
+
export * from "./getNadoEIP712Values.js";
|
|
7
|
+
export * from "./getOrderVerifyingAddress.js";
|
|
8
|
+
export * from "./getSignedTransactionRequest.js";
|
|
7
9
|
export * from "./orderDigest.js";
|
|
8
10
|
export * from "./signableRequestType.js";
|
|
9
11
|
export * from "./signatureParamTypes.js";
|
|
10
|
-
export * from "./eip712ValueTypes.js";
|
|
11
|
-
export * from "./getOrderVerifyingAddress.js";
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
package/dist/eip712/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/eip712/index.ts"],"sourcesContent":["export * from './
|
|
1
|
+
{"version":3,"sources":["../../src/eip712/index.ts"],"sourcesContent":["export * from './eip712ValueTypes';\nexport * from './getNadoEIP712Domain';\nexport * from './getNadoEIP712PrimaryType';\nexport * from './getNadoEIP712Types';\nexport * from './getNadoEIP712Values';\nexport * from './getOrderVerifyingAddress';\nexport * from './getSignedTransactionRequest';\nexport * from './orderDigest';\nexport * from './signableRequestType';\nexport * from './signatureParamTypes';\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|