@ckb-ccc/core 0.0.7-alpha.0 → 0.0.7-alpha.2

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 (118) hide show
  1. package/dist/ckb/transaction.d.ts.map +1 -1
  2. package/dist/ckb/transaction.js +6 -3
  3. package/dist.commonjs/address/address.advanced.d.ts +24 -29
  4. package/dist.commonjs/address/address.advanced.js +89 -115
  5. package/dist.commonjs/address/advanced.d.ts +1 -1
  6. package/dist.commonjs/address/advanced.js +14 -30
  7. package/dist.commonjs/address/index.d.ts +44 -51
  8. package/dist.commonjs/address/index.js +65 -84
  9. package/dist.commonjs/advanced.d.ts +1 -1
  10. package/dist.commonjs/advanced.js +22 -47
  11. package/dist.commonjs/advancedBarrel.d.ts +1 -1
  12. package/dist.commonjs/advancedBarrel.js +14 -30
  13. package/dist.commonjs/barrel.d.ts +1 -1
  14. package/dist.commonjs/barrel.js +14 -30
  15. package/dist.commonjs/bytes/advanced.d.ts +2 -11
  16. package/dist.commonjs/bytes/index.d.ts +3 -9
  17. package/dist.commonjs/bytes/index.js +26 -28
  18. package/dist.commonjs/ckb/advanced.d.ts +1 -1
  19. package/dist.commonjs/ckb/advanced.js +22 -47
  20. package/dist.commonjs/ckb/index.d.ts +1 -1
  21. package/dist.commonjs/ckb/index.js +14 -30
  22. package/dist.commonjs/ckb/molecule.advanced/generated.d.ts +260 -420
  23. package/dist.commonjs/ckb/molecule.advanced/generated.js +1332 -1536
  24. package/dist.commonjs/ckb/molecule.advanced/index.d.ts +3 -3
  25. package/dist.commonjs/ckb/molecule.advanced/index.js +18 -34
  26. package/dist.commonjs/ckb/script.advanced.d.ts +1 -1
  27. package/dist.commonjs/ckb/script.advanced.js +9 -12
  28. package/dist.commonjs/ckb/script.d.ts +117 -121
  29. package/dist.commonjs/ckb/script.js +176 -220
  30. package/dist.commonjs/ckb/transaction.advanced.d.ts +1 -1
  31. package/dist.commonjs/ckb/transaction.advanced.js +4 -4
  32. package/dist.commonjs/ckb/transaction.d.ts +717 -792
  33. package/dist.commonjs/ckb/transaction.d.ts.map +1 -1
  34. package/dist.commonjs/ckb/transaction.js +1156 -1382
  35. package/dist.commonjs/client/advanced.d.ts +1 -1
  36. package/dist.commonjs/client/advanced.js +14 -30
  37. package/dist.commonjs/client/client.advanced.d.ts +6 -23
  38. package/dist.commonjs/client/client.advanced.js +61 -89
  39. package/dist.commonjs/client/client.d.ts +53 -113
  40. package/dist.commonjs/client/client.js +181 -214
  41. package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts +4 -8
  42. package/dist.commonjs/client/clientPublicMainnet.advanced.js +127 -144
  43. package/dist.commonjs/client/clientPublicMainnet.d.ts +6 -8
  44. package/dist.commonjs/client/clientPublicMainnet.js +15 -17
  45. package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts +3 -6
  46. package/dist.commonjs/client/clientPublicTestnet.advanced.js +179 -204
  47. package/dist.commonjs/client/clientPublicTestnet.d.ts +6 -8
  48. package/dist.commonjs/client/clientPublicTestnet.js +13 -13
  49. package/dist.commonjs/client/clientTypes.advanced.d.ts +14 -14
  50. package/dist.commonjs/client/clientTypes.advanced.js +1 -1
  51. package/dist.commonjs/client/clientTypes.d.ts +26 -51
  52. package/dist.commonjs/client/clientTypes.js +22 -56
  53. package/dist.commonjs/client/index.d.ts +1 -1
  54. package/dist.commonjs/client/index.js +14 -30
  55. package/dist.commonjs/client/jsonRpc/advanced.d.ts +1 -1
  56. package/dist.commonjs/client/jsonRpc/advanced.js +14 -30
  57. package/dist.commonjs/client/jsonRpc/index.d.ts +75 -94
  58. package/dist.commonjs/client/jsonRpc/index.js +108 -135
  59. package/dist.commonjs/client/jsonRpc/transformers.d.ts +36 -76
  60. package/dist.commonjs/client/jsonRpc/transformers.js +152 -174
  61. package/dist.commonjs/client/jsonRpc/types.d.ts +38 -38
  62. package/dist.commonjs/fixedPoint/index.d.ts +3 -9
  63. package/dist.commonjs/fixedPoint/index.js +20 -26
  64. package/dist.commonjs/fixedPoint/index.test.d.ts +1 -1
  65. package/dist.commonjs/fixedPoint/index.test.js +36 -42
  66. package/dist.commonjs/hasher/advanced.d.ts +1 -1
  67. package/dist.commonjs/hasher/index.d.ts +36 -36
  68. package/dist.commonjs/hasher/index.js +47 -54
  69. package/dist.commonjs/hex/index.d.ts +1 -1
  70. package/dist.commonjs/hex/index.js +1 -1
  71. package/dist.commonjs/index.d.ts +1 -1
  72. package/dist.commonjs/index.js +22 -47
  73. package/dist.commonjs/num/index.d.ts +1 -1
  74. package/dist.commonjs/num/index.js +27 -39
  75. package/dist.commonjs/signer/btc/index.d.ts +1 -1
  76. package/dist.commonjs/signer/btc/index.js +14 -30
  77. package/dist.commonjs/signer/btc/signerBtc.d.ts +47 -47
  78. package/dist.commonjs/signer/btc/signerBtc.js +66 -89
  79. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.d.ts +45 -45
  80. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.js +52 -52
  81. package/dist.commonjs/signer/btc/verify.d.ts +2 -6
  82. package/dist.commonjs/signer/btc/verify.js +3 -10
  83. package/dist.commonjs/signer/ckb/index.d.ts +1 -1
  84. package/dist.commonjs/signer/ckb/index.js +14 -30
  85. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.d.ts +45 -45
  86. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.js +56 -56
  87. package/dist.commonjs/signer/ckb/verifyJoyId.d.ts +2 -6
  88. package/dist.commonjs/signer/ckb/verifyJoyId.js +8 -11
  89. package/dist.commonjs/signer/dummy/alwaysError.d.ts +4 -4
  90. package/dist.commonjs/signer/dummy/alwaysError.js +7 -7
  91. package/dist.commonjs/signer/dummy/dummy.d.ts +7 -7
  92. package/dist.commonjs/signer/dummy/dummy.js +16 -16
  93. package/dist.commonjs/signer/dummy/index.d.ts +1 -1
  94. package/dist.commonjs/signer/dummy/index.js +14 -30
  95. package/dist.commonjs/signer/dummy/openLink.d.ts +4 -4
  96. package/dist.commonjs/signer/dummy/openLink.js +7 -7
  97. package/dist.commonjs/signer/evm/index.d.ts +1 -1
  98. package/dist.commonjs/signer/evm/index.js +14 -30
  99. package/dist.commonjs/signer/evm/signerEvm.d.ts +38 -42
  100. package/dist.commonjs/signer/evm/signerEvm.js +70 -105
  101. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.d.ts +37 -37
  102. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.js +42 -42
  103. package/dist.commonjs/signer/evm/verify.d.ts +2 -6
  104. package/dist.commonjs/signer/evm/verify.js +2 -7
  105. package/dist.commonjs/signer/index.d.ts +1 -1
  106. package/dist.commonjs/signer/index.js +14 -30
  107. package/dist.commonjs/signer/nostr/index.d.ts +1 -1
  108. package/dist.commonjs/signer/nostr/index.js +14 -30
  109. package/dist.commonjs/signer/nostr/signerNostr.d.ts +57 -57
  110. package/dist.commonjs/signer/nostr/signerNostr.js +71 -100
  111. package/dist.commonjs/signer/nostr/verify.d.ts +3 -9
  112. package/dist.commonjs/signer/nostr/verify.js +39 -50
  113. package/dist.commonjs/signer/signer/index.d.ts +150 -156
  114. package/dist.commonjs/signer/signer/index.js +181 -208
  115. package/dist.commonjs/utils/index.d.ts +8 -38
  116. package/dist.commonjs/utils/index.js +12 -18
  117. package/package.json +2 -2
  118. package/src/ckb/transaction.ts +9 -5
@@ -10,227 +10,194 @@ const client_advanced_1 = require("./client.advanced");
10
10
  const clientTypes_1 = require("./clientTypes");
11
11
  var KnownScript;
12
12
  (function (KnownScript) {
13
- KnownScript["Secp256k1Blake160"] = "Secp256k1Blake160";
14
- KnownScript["Secp256k1Multisig"] = "Secp256k1Multisig";
15
- KnownScript["AnyoneCanPay"] = "AnyoneCanPay";
16
- KnownScript["TypeId"] = "TypeId";
17
- KnownScript["XUdt"] = "XUdt";
18
- KnownScript["JoyId"] = "JoyId";
19
- KnownScript["COTA"] = "COTA";
20
- KnownScript["OmniLock"] = "OmniLock";
21
- KnownScript["NostrLock"] = "NostrLock";
22
- KnownScript["SingleUseLock"] = "SingleUseLock";
23
- KnownScript["OutputTypeProxyLock"] = "OutputTypeProxyLock";
13
+ KnownScript["Secp256k1Blake160"] = "Secp256k1Blake160";
14
+ KnownScript["Secp256k1Multisig"] = "Secp256k1Multisig";
15
+ KnownScript["AnyoneCanPay"] = "AnyoneCanPay";
16
+ KnownScript["TypeId"] = "TypeId";
17
+ KnownScript["XUdt"] = "XUdt";
18
+ KnownScript["JoyId"] = "JoyId";
19
+ KnownScript["COTA"] = "COTA";
20
+ KnownScript["OmniLock"] = "OmniLock";
21
+ KnownScript["NostrLock"] = "NostrLock";
22
+ KnownScript["SingleUseLock"] = "SingleUseLock";
23
+ KnownScript["OutputTypeProxyLock"] = "OutputTypeProxyLock";
24
24
  })(KnownScript || (exports.KnownScript = KnownScript = {}));
25
25
  class CellDepInfo {
26
- constructor(cellDep, type) {
27
- this.cellDep = cellDep;
28
- this.type = type;
29
- }
30
- static from(cellDepInfoLike) {
31
- return new CellDepInfo(
32
- ckb_1.CellDep.from(cellDepInfoLike.cellDep),
33
- (0, utils_1.apply)(ckb_1.Script.from, cellDepInfoLike.type),
34
- );
35
- }
26
+ constructor(cellDep, type) {
27
+ this.cellDep = cellDep;
28
+ this.type = type;
29
+ }
30
+ static from(cellDepInfoLike) {
31
+ return new CellDepInfo(ckb_1.CellDep.from(cellDepInfoLike.cellDep), (0, utils_1.apply)(ckb_1.Script.from, cellDepInfoLike.type));
32
+ }
36
33
  }
37
34
  exports.CellDepInfo = CellDepInfo;
38
35
  class Client {
39
- constructor() {
40
- this.cachedTransactions = [];
41
- this.unusableOutPoints = [];
42
- this.usableCells = [];
43
- this.knownCells = [];
44
- }
45
- async markUsable(cellLike) {
46
- const cell = ckb_1.Cell.from(cellLike).clone();
47
- this.usableCells.push(cell);
48
- this.knownCells.push(cell);
49
- const index = this.unusableOutPoints.findIndex((o) => cell.outPoint.eq(o));
50
- if (index !== -1) {
51
- this.unusableOutPoints.splice(index, 1);
52
- }
53
- }
54
- async markUnusable(outPointLike) {
55
- const outPoint = ckb_1.OutPoint.from(outPointLike);
56
- this.unusableOutPoints.push(outPoint.clone());
57
- const index = this.usableCells.findIndex((c) => c.outPoint.eq(outPoint));
58
- if (index !== -1) {
59
- this.usableCells.splice(index, 1);
60
- }
61
- }
62
- async getCell(outPointLike) {
63
- const outPoint = ckb_1.OutPoint.from(outPointLike);
64
- const cached = this.knownCells.find((cell) => cell.outPoint.eq(outPoint));
65
- if (cached) {
66
- return cached.clone();
67
- }
68
- const transaction = await this.getTransactionNoCache(outPoint.txHash);
69
- if (!transaction) {
70
- return null;
71
- }
72
- const index = Number((0, num_1.numFrom)(outPoint.index));
73
- if (index >= transaction.transaction.outputs.length) {
74
- return null;
75
- }
76
- const cell = ckb_1.Cell.from({
77
- outPoint,
78
- cellOutput: transaction.transaction.outputs[index],
79
- outputData: transaction.transaction.outputsData[index] ?? "0x",
80
- });
81
- this.knownCells.push(cell);
82
- return cell.clone();
83
- }
84
- async findCellsPaged(key, order, limit, after) {
85
- const res = await this.findCellsPagedNoCache(key, order, limit, after);
86
- this.knownCells.push(...res.cells);
87
- return res;
88
- }
89
- async *findCells(key, order, limit = 10) {
90
- let last = undefined;
91
- while (true) {
92
- const { cells, lastCursor } = await this.findCellsPaged(
93
- key,
94
- order,
95
- limit,
96
- last,
97
- );
98
- for (const cell of cells) {
99
- yield cell;
100
- }
101
- if (cells.length === 0 || cells.length < limit) {
102
- return;
103
- }
104
- last = lastCursor;
105
- }
106
- }
107
- /**
108
- * Find cells by search key designed for collectable cells.
109
- *
110
- * @param key - The search key.
111
- * @returns A async generator for yielding cells.
112
- */
113
- async *findCellsByCollectableSearchKey(keyLike, order, limit = 10) {
114
- const key = clientTypes_1.ClientIndexerSearchKey.from(keyLike);
115
- for (const cell of this.usableCells) {
116
- if ((0, client_advanced_1.filterCell)(key, cell)) {
117
- yield cell;
118
- }
119
- }
120
- for await (const cell of this.findCells(key, order, limit)) {
121
- if (!this.unusableOutPoints.some((o) => o.eq(cell.outPoint))) {
122
- yield cell;
123
- }
124
- }
125
- }
126
- findCellsByLockAndType(lock, type, withData = true, order, limit = 10) {
127
- return this.findCellsByCollectableSearchKey(
128
- {
129
- script: lock,
130
- scriptType: "lock",
131
- scriptSearchMode: "exact",
132
- filter: {
133
- script: type,
134
- },
135
- withData,
136
- },
137
- order,
138
- limit,
139
- );
140
- }
141
- findCellsByType(type, withData = true, order, limit = 10) {
142
- return this.findCellsByCollectableSearchKey(
143
- {
144
- script: type,
145
- scriptType: "type",
146
- scriptSearchMode: "exact",
147
- withData,
148
- },
149
- order,
150
- limit,
151
- );
152
- }
153
- async findSingletonCellByType(type, withData = false) {
154
- for await (const cell of this.findCellsByType(
155
- type,
156
- withData,
157
- undefined,
158
- 1,
159
- )) {
160
- return cell;
161
- }
162
- }
163
- async getCellDeps(...cellDepsInfoLike) {
164
- return Promise.all(
165
- cellDepsInfoLike.flat().map(async (infoLike) => {
166
- const { cellDep, type } = CellDepInfo.from(infoLike);
167
- if (type === undefined) {
168
- return cellDep;
36
+ constructor() {
37
+ this.cachedTransactions = [];
38
+ this.unusableOutPoints = [];
39
+ this.usableCells = [];
40
+ this.knownCells = [];
41
+ }
42
+ async markUsable(cellLike) {
43
+ const cell = ckb_1.Cell.from(cellLike).clone();
44
+ this.usableCells.push(cell);
45
+ this.knownCells.push(cell);
46
+ const index = this.unusableOutPoints.findIndex((o) => cell.outPoint.eq(o));
47
+ if (index !== -1) {
48
+ this.unusableOutPoints.splice(index, 1);
49
+ }
50
+ }
51
+ async markUnusable(outPointLike) {
52
+ const outPoint = ckb_1.OutPoint.from(outPointLike);
53
+ this.unusableOutPoints.push(outPoint.clone());
54
+ const index = this.usableCells.findIndex((c) => c.outPoint.eq(outPoint));
55
+ if (index !== -1) {
56
+ this.usableCells.splice(index, 1);
57
+ }
58
+ }
59
+ async getCell(outPointLike) {
60
+ const outPoint = ckb_1.OutPoint.from(outPointLike);
61
+ const cached = this.knownCells.find((cell) => cell.outPoint.eq(outPoint));
62
+ if (cached) {
63
+ return cached.clone();
169
64
  }
170
- const found = await this.findSingletonCellByType(type);
171
- if (!found) {
172
- return cellDep;
65
+ const transaction = await this.getTransactionNoCache(outPoint.txHash);
66
+ if (!transaction) {
67
+ return null;
173
68
  }
174
- return ckb_1.CellDep.from({
175
- outPoint: found.outPoint,
176
- depType: cellDep.depType,
69
+ const index = Number((0, num_1.numFrom)(outPoint.index));
70
+ if (index >= transaction.transaction.outputs.length) {
71
+ return null;
72
+ }
73
+ const cell = ckb_1.Cell.from({
74
+ outPoint,
75
+ cellOutput: transaction.transaction.outputs[index],
76
+ outputData: transaction.transaction.outputsData[index] ?? "0x",
177
77
  });
178
- }),
179
- );
180
- }
181
- async getBalanceSingle(lock) {
182
- return this.getCellsCapacity({
183
- script: lock,
184
- scriptType: "lock",
185
- scriptSearchMode: "exact",
186
- filter: {
187
- scriptLenRange: [0, 1],
188
- outputDataLenRange: [0, 1],
189
- },
190
- });
191
- }
192
- async getBalance(locks) {
193
- return (0, utils_1.reduceAsync)(
194
- locks,
195
- async (acc, lock) => acc + (await this.getBalanceSingle(lock)),
196
- fixedPoint_1.Zero,
197
- );
198
- }
199
- async sendTransaction(transaction, validator) {
200
- const tx = ckb_1.Transaction.from(transaction);
201
- const txHash = await this.sendTransactionNoCache(tx, validator);
202
- this.cachedTransactions.push(tx.clone());
203
- await Promise.all(
204
- tx.inputs.map((i) => this.markUnusable(i.previousOutput)),
205
- );
206
- await Promise.all(
207
- tx.outputs.map((o, i) =>
208
- this.markUsable({
209
- cellOutput: o,
210
- outputData: tx.outputsData[i],
211
- outPoint: {
212
- txHash,
213
- index: i,
214
- },
215
- }),
216
- ),
217
- );
218
- return txHash;
219
- }
220
- async getTransaction(txHashLike) {
221
- const txHash = (0, hex_1.hexFrom)(txHashLike);
222
- const res = await this.getTransactionNoCache(txHash);
223
- if (res !== null) {
224
- return res;
225
- }
226
- const tx = this.cachedTransactions.find((t) => t.hash() === txHash);
227
- if (!tx) {
228
- return null;
229
- }
230
- return {
231
- transaction: tx,
232
- status: "proposed",
233
- };
234
- }
78
+ this.knownCells.push(cell);
79
+ return cell.clone();
80
+ }
81
+ async findCellsPaged(key, order, limit, after) {
82
+ const res = await this.findCellsPagedNoCache(key, order, limit, after);
83
+ this.knownCells.push(...res.cells);
84
+ return res;
85
+ }
86
+ async *findCells(key, order, limit = 10) {
87
+ let last = undefined;
88
+ while (true) {
89
+ const { cells, lastCursor } = await this.findCellsPaged(key, order, limit, last);
90
+ for (const cell of cells) {
91
+ yield cell;
92
+ }
93
+ if (cells.length === 0 || cells.length < limit) {
94
+ return;
95
+ }
96
+ last = lastCursor;
97
+ }
98
+ }
99
+ /**
100
+ * Find cells by search key designed for collectable cells.
101
+ *
102
+ * @param key - The search key.
103
+ * @returns A async generator for yielding cells.
104
+ */
105
+ async *findCellsByCollectableSearchKey(keyLike, order, limit = 10) {
106
+ const key = clientTypes_1.ClientIndexerSearchKey.from(keyLike);
107
+ for (const cell of this.usableCells) {
108
+ if ((0, client_advanced_1.filterCell)(key, cell)) {
109
+ yield cell;
110
+ }
111
+ }
112
+ for await (const cell of this.findCells(key, order, limit)) {
113
+ if (!this.unusableOutPoints.some((o) => o.eq(cell.outPoint))) {
114
+ yield cell;
115
+ }
116
+ }
117
+ }
118
+ findCellsByLockAndType(lock, type, withData = true, order, limit = 10) {
119
+ return this.findCellsByCollectableSearchKey({
120
+ script: lock,
121
+ scriptType: "lock",
122
+ scriptSearchMode: "exact",
123
+ filter: {
124
+ script: type,
125
+ },
126
+ withData,
127
+ }, order, limit);
128
+ }
129
+ findCellsByType(type, withData = true, order, limit = 10) {
130
+ return this.findCellsByCollectableSearchKey({
131
+ script: type,
132
+ scriptType: "type",
133
+ scriptSearchMode: "exact",
134
+ withData,
135
+ }, order, limit);
136
+ }
137
+ async findSingletonCellByType(type, withData = false) {
138
+ for await (const cell of this.findCellsByType(type, withData, undefined, 1)) {
139
+ return cell;
140
+ }
141
+ }
142
+ async getCellDeps(...cellDepsInfoLike) {
143
+ return Promise.all(cellDepsInfoLike.flat().map(async (infoLike) => {
144
+ const { cellDep, type } = CellDepInfo.from(infoLike);
145
+ if (type === undefined) {
146
+ return cellDep;
147
+ }
148
+ const found = await this.findSingletonCellByType(type);
149
+ if (!found) {
150
+ return cellDep;
151
+ }
152
+ return ckb_1.CellDep.from({
153
+ outPoint: found.outPoint,
154
+ depType: cellDep.depType,
155
+ });
156
+ }));
157
+ }
158
+ async getBalanceSingle(lock) {
159
+ return this.getCellsCapacity({
160
+ script: lock,
161
+ scriptType: "lock",
162
+ scriptSearchMode: "exact",
163
+ filter: {
164
+ scriptLenRange: [0, 1],
165
+ outputDataLenRange: [0, 1],
166
+ },
167
+ });
168
+ }
169
+ async getBalance(locks) {
170
+ return (0, utils_1.reduceAsync)(locks, async (acc, lock) => acc + (await this.getBalanceSingle(lock)), fixedPoint_1.Zero);
171
+ }
172
+ async sendTransaction(transaction, validator) {
173
+ const tx = ckb_1.Transaction.from(transaction);
174
+ const txHash = await this.sendTransactionNoCache(tx, validator);
175
+ this.cachedTransactions.push(tx.clone());
176
+ await Promise.all(tx.inputs.map((i) => this.markUnusable(i.previousOutput)));
177
+ await Promise.all(tx.outputs.map((o, i) => this.markUsable({
178
+ cellOutput: o,
179
+ outputData: tx.outputsData[i],
180
+ outPoint: {
181
+ txHash,
182
+ index: i,
183
+ },
184
+ })));
185
+ return txHash;
186
+ }
187
+ async getTransaction(txHashLike) {
188
+ const txHash = (0, hex_1.hexFrom)(txHashLike);
189
+ const res = await this.getTransactionNoCache(txHash);
190
+ if (res !== null) {
191
+ return res;
192
+ }
193
+ const tx = this.cachedTransactions.find((t) => t.hash() === txHash);
194
+ if (!tx) {
195
+ return null;
196
+ }
197
+ return {
198
+ transaction: tx,
199
+ status: "proposed",
200
+ };
201
+ }
235
202
  }
236
203
  exports.Client = Client;
@@ -1,10 +1,6 @@
1
1
  import { Script } from "../ckb";
2
2
  import { CellDepInfoLike, KnownScript } from "./client";
3
- export declare const MAINNET_SCRIPTS: Record<
4
- KnownScript,
5
- | (Pick<Script, "codeHash" | "hashType"> & {
6
- cellDeps: CellDepInfoLike[];
7
- })
8
- | undefined
9
- >;
10
- //# sourceMappingURL=clientPublicMainnet.advanced.d.ts.map
3
+ export declare const MAINNET_SCRIPTS: Record<KnownScript, (Pick<Script, "codeHash" | "hashType"> & {
4
+ cellDeps: CellDepInfoLike[];
5
+ }) | undefined>;
6
+ //# sourceMappingURL=clientPublicMainnet.advanced.d.ts.map