@clober/v2-sdk 0.0.20 → 0.0.21

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 (73) hide show
  1. package/dist/cjs/abis/core/book-manager-abi.js +112 -0
  2. package/dist/cjs/abis/core/book-manager-abi.js.map +1 -0
  3. package/dist/cjs/abis/core/book-viewer-abi.js +135 -3
  4. package/dist/cjs/abis/core/book-viewer-abi.js.map +1 -1
  5. package/dist/cjs/abis/core/controller-abi.js +1 -6
  6. package/dist/cjs/abis/core/controller-abi.js.map +1 -1
  7. package/dist/cjs/apis/market.js +9 -9
  8. package/dist/cjs/apis/market.js.map +1 -1
  9. package/dist/cjs/apis/open-order.js +15 -15
  10. package/dist/cjs/apis/open-order.js.map +1 -1
  11. package/dist/cjs/call.js +6 -6
  12. package/dist/cjs/call.js.map +1 -1
  13. package/dist/cjs/model/book.js +9 -9
  14. package/dist/cjs/model/book.js.map +1 -1
  15. package/dist/cjs/model/market.js +2 -2
  16. package/dist/cjs/model/market.js.map +1 -1
  17. package/dist/cjs/utils/book-id.js +3 -3
  18. package/dist/cjs/utils/book-id.js.map +1 -1
  19. package/dist/cjs/utils/order.js +7 -114
  20. package/dist/cjs/utils/order.js.map +1 -1
  21. package/dist/cjs/utils/{unit.js → unit-size.js} +10 -10
  22. package/dist/cjs/utils/unit-size.js.map +1 -0
  23. package/dist/esm/abis/core/book-manager-abi.js +109 -0
  24. package/dist/esm/abis/core/book-manager-abi.js.map +1 -0
  25. package/dist/esm/abis/core/book-viewer-abi.js +135 -3
  26. package/dist/esm/abis/core/book-viewer-abi.js.map +1 -1
  27. package/dist/esm/abis/core/controller-abi.js +1 -6
  28. package/dist/esm/abis/core/controller-abi.js.map +1 -1
  29. package/dist/esm/apis/market.js +9 -9
  30. package/dist/esm/apis/market.js.map +1 -1
  31. package/dist/esm/apis/open-order.js +15 -15
  32. package/dist/esm/apis/open-order.js.map +1 -1
  33. package/dist/esm/call.js +6 -6
  34. package/dist/esm/call.js.map +1 -1
  35. package/dist/esm/model/book.js +9 -9
  36. package/dist/esm/model/book.js.map +1 -1
  37. package/dist/esm/model/market.js +2 -2
  38. package/dist/esm/model/market.js.map +1 -1
  39. package/dist/esm/utils/book-id.js +3 -3
  40. package/dist/esm/utils/book-id.js.map +1 -1
  41. package/dist/esm/utils/order.js +7 -114
  42. package/dist/esm/utils/order.js.map +1 -1
  43. package/dist/esm/utils/{unit.js → unit-size.js} +8 -8
  44. package/dist/esm/utils/unit-size.js.map +1 -0
  45. package/dist/tsconfig.build.tsbuildinfo +1 -1
  46. package/dist/types/abis/core/book-manager-abi.d.ts +82 -0
  47. package/dist/types/abis/core/book-manager-abi.d.ts.map +1 -0
  48. package/dist/types/abis/core/book-viewer-abi.d.ts +105 -3
  49. package/dist/types/abis/core/book-viewer-abi.d.ts.map +1 -1
  50. package/dist/types/abis/core/controller-abi.d.ts +1 -5
  51. package/dist/types/abis/core/controller-abi.d.ts.map +1 -1
  52. package/dist/types/model/book.d.ts +6 -27
  53. package/dist/types/model/book.d.ts.map +1 -1
  54. package/dist/types/model/depth.d.ts +2 -2
  55. package/dist/types/model/depth.d.ts.map +1 -1
  56. package/dist/types/model/open-order.d.ts +5 -5
  57. package/dist/types/model/open-order.d.ts.map +1 -1
  58. package/dist/types/utils/book-id.d.ts +1 -1
  59. package/dist/types/utils/book-id.d.ts.map +1 -1
  60. package/dist/types/utils/order.d.ts.map +1 -1
  61. package/dist/types/utils/unit-size.d.ts +4 -0
  62. package/dist/types/utils/unit-size.d.ts.map +1 -0
  63. package/package.json +1 -1
  64. package/dist/cjs/abis/core/params-abi.js +0 -62
  65. package/dist/cjs/abis/core/params-abi.js.map +0 -1
  66. package/dist/cjs/utils/unit.js.map +0 -1
  67. package/dist/esm/abis/core/params-abi.js +0 -59
  68. package/dist/esm/abis/core/params-abi.js.map +0 -1
  69. package/dist/esm/utils/unit.js.map +0 -1
  70. package/dist/types/abis/core/params-abi.d.ts +0 -21
  71. package/dist/types/abis/core/params-abi.d.ts.map +0 -1
  72. package/dist/types/utils/unit.d.ts +0 -4
  73. package/dist/types/utils/unit.d.ts.map +0 -1
@@ -0,0 +1,82 @@
1
+ export declare const BOOK_MANAGER_ABI: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "OrderId";
4
+ readonly name: "id";
5
+ readonly type: "uint256";
6
+ }];
7
+ readonly name: "getOrder";
8
+ readonly outputs: readonly [{
9
+ readonly components: readonly [{
10
+ readonly internalType: "address";
11
+ readonly name: "provider";
12
+ readonly type: "address";
13
+ }, {
14
+ readonly internalType: "uint64";
15
+ readonly name: "open";
16
+ readonly type: "uint64";
17
+ }, {
18
+ readonly internalType: "uint64";
19
+ readonly name: "claimable";
20
+ readonly type: "uint64";
21
+ }];
22
+ readonly internalType: "struct IBookManager.OrderInfo";
23
+ readonly name: "";
24
+ readonly type: "tuple";
25
+ }];
26
+ readonly stateMutability: "view";
27
+ readonly type: "function";
28
+ }, {
29
+ readonly inputs: readonly [{
30
+ readonly internalType: "uint256";
31
+ readonly name: "tokenId";
32
+ readonly type: "uint256";
33
+ }];
34
+ readonly name: "ownerOf";
35
+ readonly outputs: readonly [{
36
+ readonly internalType: "address";
37
+ readonly name: "";
38
+ readonly type: "address";
39
+ }];
40
+ readonly stateMutability: "view";
41
+ readonly type: "function";
42
+ }, {
43
+ readonly inputs: readonly [{
44
+ readonly internalType: "BookId";
45
+ readonly name: "id";
46
+ readonly type: "uint192";
47
+ }];
48
+ readonly name: "getBookKey";
49
+ readonly outputs: readonly [{
50
+ readonly components: readonly [{
51
+ readonly internalType: "Currency";
52
+ readonly name: "base";
53
+ readonly type: "address";
54
+ }, {
55
+ readonly internalType: "uint64";
56
+ readonly name: "unitSize";
57
+ readonly type: "uint64";
58
+ }, {
59
+ readonly internalType: "Currency";
60
+ readonly name: "quote";
61
+ readonly type: "address";
62
+ }, {
63
+ readonly internalType: "FeePolicy";
64
+ readonly name: "makerPolicy";
65
+ readonly type: "uint24";
66
+ }, {
67
+ readonly internalType: "contract IHooks";
68
+ readonly name: "hooks";
69
+ readonly type: "address";
70
+ }, {
71
+ readonly internalType: "FeePolicy";
72
+ readonly name: "takerPolicy";
73
+ readonly type: "uint24";
74
+ }];
75
+ readonly internalType: "struct IBookManager.BookKey";
76
+ readonly name: "";
77
+ readonly type: "tuple";
78
+ }];
79
+ readonly stateMutability: "view";
80
+ readonly type: "function";
81
+ }];
82
+ //# sourceMappingURL=book-manager-abi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"book-manager-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/core/book-manager-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2GnB,CAAA"}
@@ -1,11 +1,97 @@
1
1
  export declare const BOOK_VIEWER_ABI: readonly [{
2
+ readonly anonymous: false;
2
3
  readonly inputs: readonly [{
3
- readonly internalType: "contract IBookManager";
4
- readonly name: "bookManager_";
4
+ readonly indexed: true;
5
+ readonly internalType: "address";
6
+ readonly name: "previousOwner";
7
+ readonly type: "address";
8
+ }, {
9
+ readonly indexed: true;
10
+ readonly internalType: "address";
11
+ readonly name: "newOwner";
12
+ readonly type: "address";
13
+ }];
14
+ readonly name: "OwnershipTransferred";
15
+ readonly type: "event";
16
+ }, {
17
+ readonly anonymous: false;
18
+ readonly inputs: readonly [{
19
+ readonly indexed: true;
20
+ readonly internalType: "address";
21
+ readonly name: "previousImplementation";
22
+ readonly type: "address";
23
+ }, {
24
+ readonly indexed: true;
25
+ readonly internalType: "address";
26
+ readonly name: "newImplementation";
27
+ readonly type: "address";
28
+ }];
29
+ readonly name: "ProxyImplementationUpdated";
30
+ readonly type: "event";
31
+ }, {
32
+ readonly stateMutability: "payable";
33
+ readonly type: "fallback";
34
+ }, {
35
+ readonly inputs: readonly [];
36
+ readonly name: "owner";
37
+ readonly outputs: readonly [{
38
+ readonly internalType: "address";
39
+ readonly name: "";
40
+ readonly type: "address";
41
+ }];
42
+ readonly stateMutability: "view";
43
+ readonly type: "function";
44
+ }, {
45
+ readonly inputs: readonly [{
46
+ readonly internalType: "bytes4";
47
+ readonly name: "id";
48
+ readonly type: "bytes4";
49
+ }];
50
+ readonly name: "supportsInterface";
51
+ readonly outputs: readonly [{
52
+ readonly internalType: "bool";
53
+ readonly name: "";
54
+ readonly type: "bool";
55
+ }];
56
+ readonly stateMutability: "view";
57
+ readonly type: "function";
58
+ }, {
59
+ readonly inputs: readonly [{
60
+ readonly internalType: "address";
61
+ readonly name: "newOwner";
5
62
  readonly type: "address";
6
63
  }];
64
+ readonly name: "transferOwnership";
65
+ readonly outputs: readonly [];
7
66
  readonly stateMutability: "nonpayable";
8
- readonly type: "constructor";
67
+ readonly type: "function";
68
+ }, {
69
+ readonly inputs: readonly [{
70
+ readonly internalType: "address";
71
+ readonly name: "newImplementation";
72
+ readonly type: "address";
73
+ }];
74
+ readonly name: "upgradeTo";
75
+ readonly outputs: readonly [];
76
+ readonly stateMutability: "nonpayable";
77
+ readonly type: "function";
78
+ }, {
79
+ readonly inputs: readonly [{
80
+ readonly internalType: "address";
81
+ readonly name: "newImplementation";
82
+ readonly type: "address";
83
+ }, {
84
+ readonly internalType: "bytes";
85
+ readonly name: "data";
86
+ readonly type: "bytes";
87
+ }];
88
+ readonly name: "upgradeToAndCall";
89
+ readonly outputs: readonly [];
90
+ readonly stateMutability: "payable";
91
+ readonly type: "function";
92
+ }, {
93
+ readonly stateMutability: "payable";
94
+ readonly type: "receive";
9
95
  }, {
10
96
  readonly inputs: readonly [];
11
97
  readonly name: "InvalidTick";
@@ -137,5 +223,21 @@ export declare const BOOK_VIEWER_ABI: readonly [{
137
223
  }];
138
224
  readonly stateMutability: "view";
139
225
  readonly type: "function";
226
+ }, {
227
+ readonly inputs: readonly [{
228
+ readonly internalType: "address";
229
+ readonly name: "implementationAddress";
230
+ readonly type: "address";
231
+ }, {
232
+ readonly internalType: "address";
233
+ readonly name: "ownerAddress";
234
+ readonly type: "address";
235
+ }, {
236
+ readonly internalType: "bytes";
237
+ readonly name: "data";
238
+ readonly type: "bytes";
239
+ }];
240
+ readonly stateMutability: "payable";
241
+ readonly type: "constructor";
140
242
  }];
141
243
  //# sourceMappingURL=book-viewer-abi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"book-viewer-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/core/book-viewer-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwLlB,CAAA"}
1
+ {"version":3,"file":"book-viewer-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/core/book-viewer-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4TlB,CAAA"}
@@ -54,10 +54,6 @@ export declare const CONTROLLER_ABI: readonly [{
54
54
  readonly inputs: readonly [];
55
55
  readonly name: "InvalidLength";
56
56
  readonly type: "error";
57
- }, {
58
- readonly inputs: readonly [];
59
- readonly name: "InvalidMarket";
60
- readonly type: "error";
61
57
  }, {
62
58
  readonly inputs: readonly [];
63
59
  readonly name: "InvalidPrice";
@@ -559,7 +555,7 @@ export declare const CONTROLLER_ABI: readonly [{
559
555
  readonly type: "address";
560
556
  }, {
561
557
  readonly internalType: "uint64";
562
- readonly name: "unit";
558
+ readonly name: "unitSize";
563
559
  readonly type: "uint64";
564
560
  }, {
565
561
  readonly internalType: "Currency";
@@ -1 +1 @@
1
- {"version":3,"file":"controller-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/core/controller-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAk+BjB,CAAA"}
1
+ {"version":3,"file":"controller-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/core/controller-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA69BjB,CAAA"}
@@ -1,39 +1,18 @@
1
1
  import type { Currency } from './currency';
2
- import type { RawDepth } from './depth';
3
- export type BookDto = {
4
- id: string;
5
- base: {
6
- id: string;
7
- name: string;
8
- symbol: string;
9
- decimals: string;
10
- };
11
- quote: {
12
- id: string;
13
- name: string;
14
- symbol: string;
15
- decimals: string;
16
- };
17
- unit: string;
18
- depths: {
19
- tick: string;
20
- price: string;
21
- rawAmount: string;
22
- }[];
23
- };
2
+ import type { DepthDto } from './depth';
24
3
  export declare class Book {
25
4
  id: bigint;
26
5
  base: Currency;
27
- unit: bigint;
6
+ unitSize: bigint;
28
7
  quote: Currency;
29
- depths: RawDepth[];
8
+ depths: DepthDto[];
30
9
  isOpened: boolean;
31
- constructor({ id, base, quote, unit, depths, isOpened, }: {
10
+ constructor({ id, base, quote, unitSize, depths, isOpened, }: {
32
11
  id: bigint;
33
12
  base: Currency;
34
13
  quote: Currency;
35
- unit: bigint;
36
- depths: RawDepth[];
14
+ unitSize: bigint;
15
+ depths: DepthDto[];
37
16
  isOpened: boolean;
38
17
  });
39
18
  take: ({ limitPrice, amountOut, }: {
@@ -1 +1 @@
1
- {"version":3,"file":"book.d.ts","sourceRoot":"","sources":["../../../src/model/book.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,KAAK,EAAE;QACL,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;KAClB,EAAE,CAAA;CACJ,CAAA;AAED,qBAAa,IAAI;IACf,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,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,EAAE,CAAA;QAClB,QAAQ,EAAE,OAAO,CAAA;KAClB;IASD,IAAI,+BAGD;QACD,UAAU,EAAE,MAAM,CAAA;QAClB,SAAS,EAAE,MAAM,CAAA;KAClB;;;MA2DA;IAED,KAAK,8BAGF;QACD,UAAU,EAAE,MAAM,CAAA;QAClB,QAAQ,EAAE,MAAM,CAAA;KACjB;;;MAwDA;CACF"}
@@ -1,6 +1,6 @@
1
- export type RawDepth = {
1
+ export type DepthDto = {
2
2
  tick: bigint;
3
- rawAmount: bigint;
3
+ unitAmount: bigint;
4
4
  };
5
5
  export type Depth = {
6
6
  price: number;
@@ -1 +1 @@
1
- {"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../../src/model/depth.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA"}
1
+ {"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../../src/model/depth.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA"}
@@ -16,15 +16,15 @@ export type OpenOrderDto = {
16
16
  symbol: string;
17
17
  decimals: string;
18
18
  };
19
- unit: string;
19
+ unitSize: string;
20
20
  };
21
21
  tick: string;
22
22
  txHash: string;
23
23
  createdAt: string;
24
- rawAmount: string;
25
- rawFilledAmount: string;
26
- rawClaimedAmount: string;
27
- rawClaimableAmount: string;
24
+ unitAmount: string;
25
+ unitFilledAmount: string;
26
+ unitClaimedAmount: string;
27
+ unitClaimableAmount: string;
28
28
  };
29
29
  export type OpenOrder = {
30
30
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"open-order.d.ts","sourceRoot":"","sources":["../../../src/model/open-order.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE;YACJ,EAAE,EAAE,MAAM,CAAA;YACV,IAAI,EAAE,MAAM,CAAA;YACZ,MAAM,EAAE,MAAM,CAAA;YACd,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,KAAK,EAAE;YACL,EAAE,EAAE,MAAM,CAAA;YACV,IAAI,EAAE,MAAM,CAAA;YACZ,MAAM,EAAE,MAAM,CAAA;YACd,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;IACxB,kBAAkB,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,KAAK,MAAM,EAAE,CAAA;IACnB,KAAK,EAAE,OAAO,CAAA;IACd,aAAa,EAAE,QAAQ,CAAA;IACvB,cAAc,EAAE,QAAQ,CAAA;IACxB,MAAM,EAAE,KAAK,MAAM,EAAE,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE;QAAE,QAAQ,EAAE,QAA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B,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,KAAK,MAAM,EAAE,CAAA;IACnB,KAAK,EAAE,OAAO,CAAA;IACd,aAAa,EAAE,QAAQ,CAAA;IACvB,cAAc,EAAE,QAAQ,CAAA;IACxB,MAAM,EAAE,KAAK,MAAM,EAAE,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC7C,MAAM,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC7C,OAAO,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9C,SAAS,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAChD,UAAU,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAClD,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const toBookId: (quote: `0x${string}`, base: `0x${string}`, unit: bigint) => bigint;
1
+ export declare const toBookId: (quote: `0x${string}`, base: `0x${string}`, unitSize: bigint) => bigint;
2
2
  //# sourceMappingURL=book-id.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"book-id.d.ts","sourceRoot":"","sources":["../../../src/utils/book-id.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,UACZ,KAAK,MAAM,EAAE,QACd,KAAK,MAAM,EAAE,QACb,MAAM,WAuBb,CAAA"}
1
+ {"version":3,"file":"book-id.d.ts","sourceRoot":"","sources":["../../../src/utils/book-id.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,UACZ,KAAK,MAAM,EAAE,QACd,KAAK,MAAM,EAAE,YACT,MAAM,WAuBjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../src/utils/order.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAyH/C,eAAO,MAAM,WAAW,YACb,SAAS,YACR,MAAM,EAAE,KACjB,QAAQ,SAAS,EAAE,CAsGrB,CAAA;AAED,eAAO,MAAM,WAAW,YACb,MAAM,KACd;IACD,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CAQd,CAAA"}
1
+ {"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../src/utils/order.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAa/C,eAAO,MAAM,WAAW,YACb,SAAS,YACR,MAAM,EAAE,KACjB,QAAQ,SAAS,EAAE,CAsGrB,CAAA;AAED,eAAO,MAAM,WAAW,YACb,MAAM,KACd;IACD,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CAQd,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { type Currency } from '../model/currency';
2
+ import { CHAIN_IDS } from '../constants/chain';
3
+ export declare const calculateUnitSize: (chainId: CHAIN_IDS, quote: Currency) => Promise<bigint>;
4
+ //# sourceMappingURL=unit-size.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-size.d.ts","sourceRoot":"","sources":["../../../src/utils/unit-size.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAiC9C,eAAO,MAAM,iBAAiB,YACnB,SAAS,SACX,QAAQ,oBAShB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clober/v2-sdk",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "🛠 An SDK for building applications on top of Clober V2",
5
5
  "files": [
6
6
  "dist"
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MAKE_ORDER_PARAMS_ABI = exports.TAKE_ORDER_PARAMS_ABI = void 0;
4
- exports.TAKE_ORDER_PARAMS_ABI = [
5
- {
6
- components: [
7
- {
8
- internalType: 'BookId',
9
- name: 'id',
10
- type: 'uint192',
11
- },
12
- {
13
- internalType: 'uint256',
14
- name: 'limitPrice',
15
- type: 'uint256',
16
- },
17
- {
18
- internalType: 'uint256',
19
- name: 'quoteAmount',
20
- type: 'uint256',
21
- },
22
- {
23
- internalType: 'bytes',
24
- name: 'hookData',
25
- type: 'bytes',
26
- },
27
- ],
28
- internalType: 'struct IController.TakeOrderParams',
29
- name: 'params',
30
- type: 'tuple',
31
- },
32
- ];
33
- exports.MAKE_ORDER_PARAMS_ABI = [
34
- {
35
- components: [
36
- {
37
- internalType: 'BookId',
38
- name: 'id',
39
- type: 'uint192',
40
- },
41
- {
42
- internalType: 'Tick',
43
- name: 'tick',
44
- type: 'int24',
45
- },
46
- {
47
- internalType: 'uint256',
48
- name: 'quoteAmount',
49
- type: 'uint256',
50
- },
51
- {
52
- internalType: 'bytes',
53
- name: 'hookData',
54
- type: 'bytes',
55
- },
56
- ],
57
- internalType: 'struct IController.MakeOrderParams',
58
- name: 'params',
59
- type: 'tuple',
60
- },
61
- ];
62
- //# sourceMappingURL=params-abi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"params-abi.js","sourceRoot":"","sources":["../../../../src/abis/core/params-abi.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACnC;QACE,UAAU,EAAE;YACV;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,OAAO;aACd;SACF;QACD,YAAY,EAAE,oCAAoC;QAClD,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,OAAO;KACd;CACF,CAAA;AAEY,QAAA,qBAAqB,GAAG;IACnC;QACE,UAAU,EAAE;YACV;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,MAAM;gBACpB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,OAAO;aACd;SACF;QACD,YAAY,EAAE,oCAAoC;QAClD,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,OAAO;KACd;CACF,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"unit.js","sourceRoot":"","sources":["../../../src/utils/unit.ts"],"names":[],"mappings":";;;AAAA,+BAAkD;AAIlD,gDAAyD;AAEzD,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QAC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AC,YAAY,CAAC;QAClE,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,GAAG,EAAE,IAAI;QACT,YAAY,EAAE,aAAa;KAC5B,CAAC,CAAA;IACF,OAAO,CACL,GAAG;QACH,MAAM,CAAC,WAAW,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CACxE,CAAA;AACH,CAAC,CAAA"}
@@ -1,59 +0,0 @@
1
- export const TAKE_ORDER_PARAMS_ABI = [
2
- {
3
- components: [
4
- {
5
- internalType: 'BookId',
6
- name: 'id',
7
- type: 'uint192',
8
- },
9
- {
10
- internalType: 'uint256',
11
- name: 'limitPrice',
12
- type: 'uint256',
13
- },
14
- {
15
- internalType: 'uint256',
16
- name: 'quoteAmount',
17
- type: 'uint256',
18
- },
19
- {
20
- internalType: 'bytes',
21
- name: 'hookData',
22
- type: 'bytes',
23
- },
24
- ],
25
- internalType: 'struct IController.TakeOrderParams',
26
- name: 'params',
27
- type: 'tuple',
28
- },
29
- ];
30
- export const MAKE_ORDER_PARAMS_ABI = [
31
- {
32
- components: [
33
- {
34
- internalType: 'BookId',
35
- name: 'id',
36
- type: 'uint192',
37
- },
38
- {
39
- internalType: 'Tick',
40
- name: 'tick',
41
- type: 'int24',
42
- },
43
- {
44
- internalType: 'uint256',
45
- name: 'quoteAmount',
46
- type: 'uint256',
47
- },
48
- {
49
- internalType: 'bytes',
50
- name: 'hookData',
51
- type: 'bytes',
52
- },
53
- ],
54
- internalType: 'struct IController.MakeOrderParams',
55
- name: 'params',
56
- type: 'tuple',
57
- },
58
- ];
59
- //# sourceMappingURL=params-abi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"params-abi.js","sourceRoot":"","sources":["../../../../src/abis/core/params-abi.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC;QACE,UAAU,EAAE;YACV;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,OAAO;aACd;SACF;QACD,YAAY,EAAE,oCAAoC;QAClD,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,OAAO;KACd;CACF,CAAA;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC;QACE,UAAU,EAAE;YACV;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,MAAM;gBACpB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,OAAO;aACd;SACF;QACD,YAAY,EAAE,oCAAoC;QAClD,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,OAAO;KACd;CACF,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"unit.js","sourceRoot":"","sources":["../../../src/utils/unit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,MAAM,CAAA;AAIlD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,aAAa;QACnB,O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AAG,CAAA;IACnB,CAAC;IACD,MAAM,WAAW,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC;QAClE,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,GAAG,EAAE,IAAI;QACT,YAAY,EAAE,aAAa;KAC5B,CAAC,CAAA;IACF,OAAO,CACL,GAAG;QACH,MAAM,CAAC,WAAW,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CACxE,CAAA;AACH,CAAC,CAAA"}
@@ -1,21 +0,0 @@
1
- export declare const TAKE_ORDER_PARAMS_ABI: {
2
- components: {
3
- internalType: string;
4
- name: string;
5
- type: string;
6
- }[];
7
- internalType: string;
8
- name: string;
9
- type: string;
10
- }[];
11
- export declare const MAKE_ORDER_PARAMS_ABI: {
12
- components: {
13
- internalType: string;
14
- name: string;
15
- type: string;
16
- }[];
17
- internalType: string;
18
- name: string;
19
- type: string;
20
- }[];
21
- //# sourceMappingURL=params-abi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"params-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/core/params-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;;;;;;GA4BjC,CAAA;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;GA4BjC,CAAA"}
@@ -1,4 +0,0 @@
1
- import { type Currency } from '../model/currency';
2
- import { CHAIN_IDS } from '../constants/chain';
3
- export declare const calculateUnit: (chainId: CHAIN_IDS, quote: Currency) => Promise<bigint>;
4
- //# sourceMappingURL=unit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../../src/utils/unit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAgC9C,eAAO,MAAM,aAAa,YAAmB,SAAS,SAAS,QAAQ,oBAQtE,CAAA"}