@ckb-ccc/core 0.0.7-alpha.2 → 0.0.8-alpha.3

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 (115) hide show
  1. package/README.md +6 -4
  2. package/dist.commonjs/address/address.advanced.d.ts +29 -24
  3. package/dist.commonjs/address/address.advanced.js +115 -89
  4. package/dist.commonjs/address/advanced.d.ts +1 -1
  5. package/dist.commonjs/address/advanced.js +30 -14
  6. package/dist.commonjs/address/index.d.ts +51 -44
  7. package/dist.commonjs/address/index.js +84 -65
  8. package/dist.commonjs/advanced.d.ts +1 -1
  9. package/dist.commonjs/advanced.js +47 -22
  10. package/dist.commonjs/advancedBarrel.d.ts +1 -1
  11. package/dist.commonjs/advancedBarrel.js +30 -14
  12. package/dist.commonjs/barrel.d.ts +1 -1
  13. package/dist.commonjs/barrel.js +30 -14
  14. package/dist.commonjs/bytes/advanced.d.ts +11 -2
  15. package/dist.commonjs/bytes/index.d.ts +9 -3
  16. package/dist.commonjs/bytes/index.js +28 -26
  17. package/dist.commonjs/ckb/advanced.d.ts +1 -1
  18. package/dist.commonjs/ckb/advanced.js +47 -22
  19. package/dist.commonjs/ckb/index.d.ts +1 -1
  20. package/dist.commonjs/ckb/index.js +30 -14
  21. package/dist.commonjs/ckb/molecule.advanced/generated.d.ts +420 -260
  22. package/dist.commonjs/ckb/molecule.advanced/generated.js +1536 -1332
  23. package/dist.commonjs/ckb/molecule.advanced/index.d.ts +3 -3
  24. package/dist.commonjs/ckb/molecule.advanced/index.js +34 -18
  25. package/dist.commonjs/ckb/script.advanced.d.ts +1 -1
  26. package/dist.commonjs/ckb/script.advanced.js +12 -9
  27. package/dist.commonjs/ckb/script.d.ts +121 -117
  28. package/dist.commonjs/ckb/script.js +220 -176
  29. package/dist.commonjs/ckb/transaction.advanced.d.ts +1 -1
  30. package/dist.commonjs/ckb/transaction.advanced.js +4 -4
  31. package/dist.commonjs/ckb/transaction.d.ts +792 -717
  32. package/dist.commonjs/ckb/transaction.js +1383 -1155
  33. package/dist.commonjs/client/advanced.d.ts +1 -1
  34. package/dist.commonjs/client/advanced.js +30 -14
  35. package/dist.commonjs/client/client.advanced.d.ts +23 -6
  36. package/dist.commonjs/client/client.advanced.js +89 -61
  37. package/dist.commonjs/client/client.d.ts +113 -53
  38. package/dist.commonjs/client/client.js +214 -181
  39. package/dist.commonjs/client/clientPublicMainnet.advanced.d.ts +8 -4
  40. package/dist.commonjs/client/clientPublicMainnet.advanced.js +144 -127
  41. package/dist.commonjs/client/clientPublicMainnet.d.ts +8 -6
  42. package/dist.commonjs/client/clientPublicMainnet.js +17 -15
  43. package/dist.commonjs/client/clientPublicTestnet.advanced.d.ts +6 -3
  44. package/dist.commonjs/client/clientPublicTestnet.advanced.js +204 -179
  45. package/dist.commonjs/client/clientPublicTestnet.d.ts +8 -6
  46. package/dist.commonjs/client/clientPublicTestnet.js +13 -13
  47. package/dist.commonjs/client/clientTypes.advanced.d.ts +14 -14
  48. package/dist.commonjs/client/clientTypes.advanced.js +1 -1
  49. package/dist.commonjs/client/clientTypes.d.ts +51 -26
  50. package/dist.commonjs/client/clientTypes.js +56 -22
  51. package/dist.commonjs/client/index.d.ts +1 -1
  52. package/dist.commonjs/client/index.js +30 -14
  53. package/dist.commonjs/client/jsonRpc/advanced.d.ts +1 -1
  54. package/dist.commonjs/client/jsonRpc/advanced.js +30 -14
  55. package/dist.commonjs/client/jsonRpc/index.d.ts +94 -75
  56. package/dist.commonjs/client/jsonRpc/index.js +135 -108
  57. package/dist.commonjs/client/jsonRpc/transformers.d.ts +76 -36
  58. package/dist.commonjs/client/jsonRpc/transformers.js +174 -152
  59. package/dist.commonjs/client/jsonRpc/types.d.ts +38 -38
  60. package/dist.commonjs/fixedPoint/index.d.ts +9 -3
  61. package/dist.commonjs/fixedPoint/index.js +26 -20
  62. package/dist.commonjs/fixedPoint/index.test.d.ts +1 -1
  63. package/dist.commonjs/fixedPoint/index.test.js +42 -36
  64. package/dist.commonjs/hasher/advanced.d.ts +1 -1
  65. package/dist.commonjs/hasher/index.d.ts +36 -36
  66. package/dist.commonjs/hasher/index.js +54 -47
  67. package/dist.commonjs/hex/index.d.ts +1 -1
  68. package/dist.commonjs/hex/index.js +1 -1
  69. package/dist.commonjs/index.d.ts +1 -1
  70. package/dist.commonjs/index.js +47 -22
  71. package/dist.commonjs/num/index.d.ts +1 -1
  72. package/dist.commonjs/num/index.js +39 -27
  73. package/dist.commonjs/signer/btc/index.d.ts +1 -1
  74. package/dist.commonjs/signer/btc/index.js +30 -14
  75. package/dist.commonjs/signer/btc/signerBtc.d.ts +47 -47
  76. package/dist.commonjs/signer/btc/signerBtc.js +89 -66
  77. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.d.ts +45 -45
  78. package/dist.commonjs/signer/btc/signerBtcPublicKeyReadonly.js +52 -52
  79. package/dist.commonjs/signer/btc/verify.d.ts +6 -2
  80. package/dist.commonjs/signer/btc/verify.js +10 -3
  81. package/dist.commonjs/signer/ckb/index.d.ts +1 -1
  82. package/dist.commonjs/signer/ckb/index.js +30 -14
  83. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.d.ts +45 -45
  84. package/dist.commonjs/signer/ckb/signerCkbScriptReadonly.js +56 -56
  85. package/dist.commonjs/signer/ckb/verifyJoyId.d.ts +6 -2
  86. package/dist.commonjs/signer/ckb/verifyJoyId.js +11 -8
  87. package/dist.commonjs/signer/dummy/alwaysError.d.ts +4 -4
  88. package/dist.commonjs/signer/dummy/alwaysError.js +7 -7
  89. package/dist.commonjs/signer/dummy/dummy.d.ts +7 -7
  90. package/dist.commonjs/signer/dummy/dummy.js +16 -16
  91. package/dist.commonjs/signer/dummy/index.d.ts +1 -1
  92. package/dist.commonjs/signer/dummy/index.js +30 -14
  93. package/dist.commonjs/signer/dummy/openLink.d.ts +4 -4
  94. package/dist.commonjs/signer/dummy/openLink.js +7 -7
  95. package/dist.commonjs/signer/evm/index.d.ts +1 -1
  96. package/dist.commonjs/signer/evm/index.js +30 -14
  97. package/dist.commonjs/signer/evm/signerEvm.d.ts +42 -38
  98. package/dist.commonjs/signer/evm/signerEvm.js +105 -70
  99. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.d.ts +37 -37
  100. package/dist.commonjs/signer/evm/signerEvmAddressReadonly.js +42 -42
  101. package/dist.commonjs/signer/evm/verify.d.ts +6 -2
  102. package/dist.commonjs/signer/evm/verify.js +7 -2
  103. package/dist.commonjs/signer/index.d.ts +1 -1
  104. package/dist.commonjs/signer/index.js +30 -14
  105. package/dist.commonjs/signer/nostr/index.d.ts +1 -1
  106. package/dist.commonjs/signer/nostr/index.js +30 -14
  107. package/dist.commonjs/signer/nostr/signerNostr.d.ts +57 -57
  108. package/dist.commonjs/signer/nostr/signerNostr.js +100 -71
  109. package/dist.commonjs/signer/nostr/verify.d.ts +9 -3
  110. package/dist.commonjs/signer/nostr/verify.js +50 -39
  111. package/dist.commonjs/signer/signer/index.d.ts +156 -150
  112. package/dist.commonjs/signer/signer/index.js +208 -181
  113. package/dist.commonjs/utils/index.d.ts +38 -8
  114. package/dist.commonjs/utils/index.js +18 -12
  115. package/package.json +2 -2
@@ -10,194 +10,227 @@ 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(ckb_1.CellDep.from(cellDepInfoLike.cellDep), (0, utils_1.apply)(ckb_1.Script.from, cellDepInfoLike.type));
32
- }
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
+ }
33
36
  }
34
37
  exports.CellDepInfo = CellDepInfo;
35
38
  class Client {
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();
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;
64
169
  }
65
- const transaction = await this.getTransactionNoCache(outPoint.txHash);
66
- if (!transaction) {
67
- return null;
170
+ const found = await this.findSingletonCellByType(type);
171
+ if (!found) {
172
+ return cellDep;
68
173
  }
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",
174
+ return ckb_1.CellDep.from({
175
+ outPoint: found.outPoint,
176
+ depType: cellDep.depType,
77
177
  });
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
- }
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
+ }
202
235
  }
203
236
  exports.Client = Client;
@@ -1,6 +1,10 @@
1
1
  import { Script } from "../ckb";
2
2
  import { CellDepInfoLike, KnownScript } from "./client";
3
- export declare const MAINNET_SCRIPTS: Record<KnownScript, (Pick<Script, "codeHash" | "hashType"> & {
4
- cellDeps: CellDepInfoLike[];
5
- }) | undefined>;
6
- //# sourceMappingURL=clientPublicMainnet.advanced.d.ts.map
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