@imtbl/orderbook 2.23.0 → 2.24.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.
Files changed (32) hide show
  1. package/dist/browser/index.js +1 -11
  2. package/dist/node/index.cjs +1 -24
  3. package/dist/node/index.js +1 -11
  4. package/dist/types/seaport/lib/utils.d.ts +5 -5
  5. package/package.json +19 -20
  6. package/dist/types/api-client/api-client.test.d.ts +0 -1
  7. package/dist/types/erc721/erc721.test.d.ts +0 -1
  8. package/dist/types/openapi/mapper.test.d.ts +0 -1
  9. package/dist/types/seaport/seaport.test.d.ts +0 -1
  10. package/dist/types/test/bulk-listings.e2e.d.ts +0 -1
  11. package/dist/types/test/cancel.e2e.d.ts +0 -1
  12. package/dist/types/test/create.e2e.d.ts +0 -1
  13. package/dist/types/test/expiry.demo.d.ts +0 -1
  14. package/dist/types/test/fulfil.e2e.d.ts +0 -1
  15. package/dist/types/test/fulfill.demo.d.ts +0 -1
  16. package/dist/types/test/fulfillBulk.demo.d.ts +0 -1
  17. package/dist/types/test/helpers/actions.d.ts +0 -3
  18. package/dist/types/test/helpers/config.d.ts +0 -2
  19. package/dist/types/test/helpers/erc721.d.ts +0 -6
  20. package/dist/types/test/helpers/gas.d.ts +0 -4
  21. package/dist/types/test/helpers/index.d.ts +0 -8
  22. package/dist/types/test/helpers/order.d.ts +0 -4
  23. package/dist/types/test/helpers/provider.d.ts +0 -2
  24. package/dist/types/test/helpers/sign-and-submit.d.ts +0 -7
  25. package/dist/types/test/helpers/signers.d.ts +0 -3
  26. package/dist/types/test/helpers/test-token/TestERC721Token.d.ts +0 -715
  27. package/dist/types/test/helpers/test-token/TestERC721Token__factory.d.ts +0 -1043
  28. package/dist/types/test/helpers/test-token/common.d.ts +0 -50
  29. package/dist/types/test/helpers/test-token/index.d.ts +0 -2
  30. package/dist/types/test/helpers/token.d.ts +0 -1
  31. package/dist/types/test/list.e2e.d.ts +0 -1
  32. package/dist/types/test/metadata-bid.e2e.d.ts +0 -1
@@ -2,9 +2,9 @@ import { BytesLike } from 'ethers';
2
2
  export declare const makeArray: <T>(len: number, getValue: (i: number) => T) => T[];
3
3
  export declare const chunk: <T>(array: T[], size: number) => T[][];
4
4
  export declare const bufferToHex: (buf: Buffer) => string;
5
- export declare const hexToBuffer: (value: string) => Buffer;
6
- export declare const bufferKeccak: (value: BytesLike) => Buffer;
7
- export declare const hashConcat: (arr: BytesLike[]) => Buffer;
5
+ export declare const hexToBuffer: (value: string) => Buffer<ArrayBuffer>;
6
+ export declare const bufferKeccak: (value: BytesLike) => Buffer<ArrayBuffer>;
7
+ export declare const hashConcat: (arr: BytesLike[]) => Buffer<ArrayBuffer>;
8
8
  export declare const fillArray: <T>(arr: T[], length: number, value: T) => T[];
9
- export declare const getRoot: (elements: (Buffer | string)[], hashLeaves?: boolean) => Buffer;
10
- export declare const getNextLayer: (elements: Buffer[]) => Buffer[];
9
+ export declare const getRoot: (elements: (Buffer | string)[], hashLeaves?: boolean) => Buffer<ArrayBufferLike>;
10
+ export declare const getNextLayer: (elements: Buffer[]) => Buffer<ArrayBuffer>[];
package/package.json CHANGED
@@ -1,30 +1,29 @@
1
1
  {
2
2
  "name": "@imtbl/orderbook",
3
- "version": "2.23.0",
3
+ "version": "2.24.0",
4
4
  "author": "Immutable",
5
+ "browser": "dist/browser/index.js",
5
6
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
6
7
  "dependencies": {
7
- "@imtbl/config": "2.23.0",
8
- "@imtbl/metrics": "2.23.0",
9
8
  "@opensea/seaport-js": "4.0.3",
10
- "axios": "^1.6.5",
11
- "ethers": "^6.13.4",
9
+ "axios": "^1.18.1",
10
+ "ethers": "^6.17.0",
12
11
  "form-data": "^4.0.0",
13
- "merkletreejs": "^0.3.11"
12
+ "merkletreejs": "^0.3.11",
13
+ "@imtbl/config": "2.24.0",
14
+ "@imtbl/metrics": "2.24.0"
14
15
  },
15
16
  "devDependencies": {
16
- "@swc/core": "^1.4.2",
17
+ "@swc/core": "^1.15.46",
17
18
  "@swc/jest": "^0.2.37",
18
19
  "@typechain/ethers-v6": "^0.5.1",
19
20
  "@types/jest": "^29.5.12",
20
- "dotenv": "^16.0.3",
21
- "eslint": "^8.56.0",
21
+ "@typescript/native": "npm:typescript@^7.0.2",
22
+ "dotenv": "^16.3.1",
22
23
  "jest": "^29.7.0",
23
- "jest-environment-jsdom": "^29.4.3",
24
24
  "ts-mockito": "^2.6.1",
25
- "tsup": "^8.3.0",
26
25
  "typechain": "^8.1.1",
27
- "typescript": "^5.6.2"
26
+ "typescript": "npm:@typescript/typescript6@^6.0.2"
28
27
  },
29
28
  "exports": {
30
29
  "development": {
@@ -47,21 +46,19 @@
47
46
  "license": "Apache-2.0",
48
47
  "main": "dist/node/index.cjs",
49
48
  "module": "dist/node/index.js",
50
- "browser": "dist/browser/index.js",
51
49
  "publishConfig": {
52
50
  "access": "public"
53
51
  },
54
- "repository": "immutable/ts-immutable-sdk.git",
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "immutable/ts-immutable-sdk.git"
55
+ },
55
56
  "type": "module",
56
57
  "types": "./dist/types/index.d.ts",
57
58
  "scripts": {
58
59
  "build": "pnpm transpile && pnpm typegen",
59
- "transpile": "tsup src/index.ts --config ../../tsup.config.js",
60
- "typegen": "tsc --customConditions default --emitDeclarationOnly --outDir dist/types",
61
- "pack:root": "pnpm pack --pack-destination $(dirname $(pnpm root -w))",
62
60
  "generate-types": "typechain --target=ethers-v6 --out-dir=src/typechain/types 'abi/*.json'",
63
- "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0",
64
- "lint:fix": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0 --fix",
61
+ "pack:root": "pnpm pack --pack-destination $(dirname $(pnpm root -w))",
65
62
  "run:demo": "jest --runInBand --testMatch \"**/?(*.)+(demo).[jt]s?(x)\"",
66
63
  "run:demo-expiry": "jest --runInBand --testMatch \"**/(expiry.demo).[jt]s?(x)\"",
67
64
  "run:demo-fulfill": "jest --runInBand --testMatch \"**/(fulfill.demo).[jt]s?(x)\"",
@@ -69,6 +66,8 @@
69
66
  "test": "jest",
70
67
  "test:e2e": "jest --runInBand --testMatch \"**/?(*.)+(e2e).[jt]s?(x)\"",
71
68
  "test:watch": "jest --watch",
72
- "typecheck": "tsc --customConditions default --noEmit --jsx preserve"
69
+ "transpile": "tsdown",
70
+ "typecheck": "tsc --customConditions default --noEmit --jsx preserve",
71
+ "typegen": "tsc --customConditions default --emitDeclarationOnly --outDir dist/types"
73
72
  }
74
73
  }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { Wallet } from 'ethers';
2
- import { Action } from '../../types';
3
- export declare function actionAll(actions: Action[], wallet: Wallet): Promise<string[]>;
@@ -1,2 +0,0 @@
1
- import { OrderbookModuleConfiguration } from '../../config';
2
- export declare function getConfigFromEnv(): OrderbookModuleConfiguration;
@@ -1,6 +0,0 @@
1
- import { Wallet } from 'ethers';
2
- import { TestERC721Token } from './test-token';
3
- export interface TestTokenContract {
4
- contract: TestERC721Token;
5
- }
6
- export declare function deployTestToken(deployer: Wallet, royaltyAddress?: string): Promise<TestTokenContract>;
@@ -1,4 +0,0 @@
1
- export declare const GAS_OVERRIDES: {
2
- maxFeePerGas: bigint;
3
- maxPriorityFeePerGas: bigint;
4
- };
@@ -1,8 +0,0 @@
1
- export * from './config';
2
- export * from './erc721';
3
- export * from './order';
4
- export * from './provider';
5
- export * from './sign-and-submit';
6
- export * from './signers';
7
- export * from './test-token';
8
- export * from './token';
@@ -1,4 +0,0 @@
1
- import { Orderbook } from '../../orderbook';
2
- import { MetadataBid, Order, OrderStatusName } from '../../types';
3
- export declare function waitForOrderToBeOfStatus(sdk: Orderbook, orderId: string, status: OrderStatusName, attemps?: number): Promise<Order>;
4
- export declare function waitForMetadataBidToBeOfStatus(sdk: Orderbook, metadataBidId: string, status: OrderStatusName, attempts?: number): Promise<MetadataBid>;
@@ -1,2 +0,0 @@
1
- import { JsonRpcProvider } from 'ethers';
2
- export declare function getLocalhostProvider(): JsonRpcProvider;
@@ -1,7 +0,0 @@
1
- import { PreparedTransactionRequest, Signer, TypedDataDomain, Wallet } from 'ethers';
2
- export declare function signAndSubmitTx(transaction: PreparedTransactionRequest, signer: Signer): Promise<void>;
3
- export declare function signMessage({ domain, types, value, }: {
4
- domain: TypedDataDomain;
5
- types: any;
6
- value: Record<string, any>;
7
- }, signer: Wallet): Promise<string>;
@@ -1,3 +0,0 @@
1
- import { Provider, Wallet } from 'ethers';
2
- export declare function getOffererWallet(provider: Provider): Wallet;
3
- export declare function getFulfillerWallet(provider: Provider): Wallet;