@meshsdk/core 1.5.0 → 1.5.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.
package/dist/core.js CHANGED
@@ -1,12 +1,12 @@
1
- import { customAlphabet as we } from "nanoid";
2
- import * as i from "@emurgo/cardano-serialization-lib-nodejs";
1
+ import { customAlphabet as ye } from "nanoid";
2
+ import * as n from "@emurgo/cardano-serialization-lib-nodejs";
3
3
  import j from "axios";
4
- import { mnemonicToEntropy as ye, generateMnemonic as qe } from "bip39";
5
- import { COSEKey as me, COSESign1 as ze, Label as W, Int as wt, BigNum as Ut, KeyType as Je, AlgorithmId as Ee, CBORValue as Nt, HeaderMap as Jt, Headers as We, ProtectedHeaderMap as je, COSESign1Builder as Xe } from "@emurgo/cardano-message-signing-nodejs";
6
- const Ze = ["testnet", "preview", "preprod", "mainnet"], ts = (s) => Ze.includes(s), Be = {
4
+ import { mnemonicToEntropy as Ce, generateMnemonic as $e } from "bip39";
5
+ import { COSEKey as we, COSESign1 as ze, Label as W, Int as yt, BigNum as Kt, KeyType as Je, AlgorithmId as Be, CBORValue as Nt, HeaderMap as Jt, Headers as We, ProtectedHeaderMap as je, COSESign1Builder as Xe } from "@emurgo/cardano-message-signing-nodejs";
6
+ const Ze = ["testnet", "preview", "preprod", "mainnet"], ts = (s) => Ze.includes(s), Ee = {
7
7
  mem: 7e6,
8
8
  steps: 3e9
9
- }, G = {
9
+ }, q = {
10
10
  epoch: 0,
11
11
  coinsPerUTxOSize: "4310",
12
12
  priceMem: 0.0577,
@@ -27,22 +27,370 @@ const Ze = ["testnet", "preview", "preprod", "mainnet"], ts = (s) => Ze.includes
27
27
  maxTxExSteps: "10000000000",
28
28
  maxBlockExMem: "80000000",
29
29
  maxBlockExSteps: "40000000000"
30
- }, kt = 2147483648, Bt = {
31
- V1: i.Language.new_plutus_v1(),
32
- V2: i.Language.new_plutus_v2()
33
- }, F = 56, es = {
34
- CERT: i.RedeemerTag.new_cert(),
35
- MINT: i.RedeemerTag.new_mint(),
36
- REWARD: i.RedeemerTag.new_reward(),
37
- SPEND: i.RedeemerTag.new_spend()
30
+ }, kt = 2147483648, Et = {
31
+ V1: n.Language.new_plutus_v1(),
32
+ V2: n.Language.new_plutus_v2()
33
+ }, P = 56, es = {
34
+ CERT: n.RedeemerTag.new_cert(),
35
+ MINT: n.RedeemerTag.new_mint(),
36
+ REWARD: n.RedeemerTag.new_reward(),
37
+ SPEND: n.RedeemerTag.new_spend()
38
38
  }, xt = {
39
39
  testnet: ["74", "1598400", "1595967616", "432000"],
40
40
  preview: ["0", "0", "1660003200", "86400"],
41
41
  preprod: ["0", "0", "1654041600", "432000"],
42
42
  mainnet: ["208", "4492800", "1596059091", "432000"]
43
43
  }, Wt = {
44
- ALONZO: i.TxBuilderConstants.plutus_alonzo_cost_models(),
45
- BABBAGE: i.TxBuilderConstants.plutus_vasil_cost_models()
44
+ ALONZO: n.TxBuilderConstants.plutus_alonzo_cost_models(),
45
+ BABBAGE: (() => {
46
+ const s = n.Costmdls.new(), e = n.CostModel.new();
47
+ Object.values({
48
+ "addInteger-cpu-arguments-intercept": 205665,
49
+ "addInteger-cpu-arguments-slope": 812,
50
+ "addInteger-memory-arguments-intercept": 1,
51
+ "addInteger-memory-arguments-slope": 1,
52
+ "appendByteString-cpu-arguments-intercept": 1e3,
53
+ "appendByteString-cpu-arguments-slope": 571,
54
+ "appendByteString-memory-arguments-intercept": 0,
55
+ "appendByteString-memory-arguments-slope": 1,
56
+ "appendString-cpu-arguments-intercept": 1e3,
57
+ "appendString-cpu-arguments-slope": 24177,
58
+ "appendString-memory-arguments-intercept": 4,
59
+ "appendString-memory-arguments-slope": 1,
60
+ "bData-cpu-arguments": 1e3,
61
+ "bData-memory-arguments": 32,
62
+ "blake2b_256-cpu-arguments-intercept": 117366,
63
+ "blake2b_256-cpu-arguments-slope": 10475,
64
+ "blake2b_256-memory-arguments": 4,
65
+ "cekApplyCost-exBudgetCPU": 23e3,
66
+ "cekApplyCost-exBudgetMemory": 100,
67
+ "cekBuiltinCost-exBudgetCPU": 23e3,
68
+ "cekBuiltinCost-exBudgetMemory": 100,
69
+ "cekConstCost-exBudgetCPU": 23e3,
70
+ "cekConstCost-exBudgetMemory": 100,
71
+ "cekDelayCost-exBudgetCPU": 23e3,
72
+ "cekDelayCost-exBudgetMemory": 100,
73
+ "cekForceCost-exBudgetCPU": 23e3,
74
+ "cekForceCost-exBudgetMemory": 100,
75
+ "cekLamCost-exBudgetCPU": 23e3,
76
+ "cekLamCost-exBudgetMemory": 100,
77
+ "cekStartupCost-exBudgetCPU": 100,
78
+ "cekStartupCost-exBudgetMemory": 100,
79
+ "cekVarCost-exBudgetCPU": 23e3,
80
+ "cekVarCost-exBudgetMemory": 100,
81
+ "chooseData-cpu-arguments": 19537,
82
+ "chooseData-memory-arguments": 32,
83
+ "chooseList-cpu-arguments": 175354,
84
+ "chooseList-memory-arguments": 32,
85
+ "chooseUnit-cpu-arguments": 46417,
86
+ "chooseUnit-memory-arguments": 4,
87
+ "consByteString-cpu-arguments-intercept": 221973,
88
+ "consByteString-cpu-arguments-slope": 511,
89
+ "consByteString-memory-arguments-intercept": 0,
90
+ "consByteString-memory-arguments-slope": 1,
91
+ "constrData-cpu-arguments": 89141,
92
+ "constrData-memory-arguments": 32,
93
+ "decodeUtf8-cpu-arguments-intercept": 497525,
94
+ "decodeUtf8-cpu-arguments-slope": 14068,
95
+ "decodeUtf8-memory-arguments-intercept": 4,
96
+ "decodeUtf8-memory-arguments-slope": 2,
97
+ "divideInteger-cpu-arguments-constant": 196500,
98
+ "divideInteger-cpu-arguments-model-arguments-intercept": 453240,
99
+ "divideInteger-cpu-arguments-model-arguments-slope": 220,
100
+ "divideInteger-memory-arguments-intercept": 0,
101
+ "divideInteger-memory-arguments-minimum": 1,
102
+ "divideInteger-memory-arguments-slope": 1,
103
+ "encodeUtf8-cpu-arguments-intercept": 1e3,
104
+ "encodeUtf8-cpu-arguments-slope": 28662,
105
+ "encodeUtf8-memory-arguments-intercept": 4,
106
+ "encodeUtf8-memory-arguments-slope": 2,
107
+ "equalsByteString-cpu-arguments-constant": 245e3,
108
+ "equalsByteString-cpu-arguments-intercept": 216773,
109
+ "equalsByteString-cpu-arguments-slope": 62,
110
+ "equalsByteString-memory-arguments": 1,
111
+ "equalsData-cpu-arguments-intercept": 1060367,
112
+ "equalsData-cpu-arguments-slope": 12586,
113
+ "equalsData-memory-arguments": 1,
114
+ "equalsInteger-cpu-arguments-intercept": 208512,
115
+ "equalsInteger-cpu-arguments-slope": 421,
116
+ "equalsInteger-memory-arguments": 1,
117
+ "equalsString-cpu-arguments-constant": 187e3,
118
+ "equalsString-cpu-arguments-intercept": 1e3,
119
+ "equalsString-cpu-arguments-slope": 52998,
120
+ "equalsString-memory-arguments": 1,
121
+ "fstPair-cpu-arguments": 80436,
122
+ "fstPair-memory-arguments": 32,
123
+ "headList-cpu-arguments": 43249,
124
+ "headList-memory-arguments": 32,
125
+ "iData-cpu-arguments": 1e3,
126
+ "iData-memory-arguments": 32,
127
+ "ifThenElse-cpu-arguments": 80556,
128
+ "ifThenElse-memory-arguments": 1,
129
+ "indexByteString-cpu-arguments": 57667,
130
+ "indexByteString-memory-arguments": 4,
131
+ "lengthOfByteString-cpu-arguments": 1e3,
132
+ "lengthOfByteString-memory-arguments": 10,
133
+ "lessThanByteString-cpu-arguments-intercept": 197145,
134
+ "lessThanByteString-cpu-arguments-slope": 156,
135
+ "lessThanByteString-memory-arguments": 1,
136
+ "lessThanEqualsByteString-cpu-arguments-intercept": 197145,
137
+ "lessThanEqualsByteString-cpu-arguments-slope": 156,
138
+ "lessThanEqualsByteString-memory-arguments": 1,
139
+ "lessThanEqualsInteger-cpu-arguments-intercept": 204924,
140
+ "lessThanEqualsInteger-cpu-arguments-slope": 473,
141
+ "lessThanEqualsInteger-memory-arguments": 1,
142
+ "lessThanInteger-cpu-arguments-intercept": 208896,
143
+ "lessThanInteger-cpu-arguments-slope": 511,
144
+ "lessThanInteger-memory-arguments": 1,
145
+ "listData-cpu-arguments": 52467,
146
+ "listData-memory-arguments": 32,
147
+ "mapData-cpu-arguments": 64832,
148
+ "mapData-memory-arguments": 32,
149
+ "mkCons-cpu-arguments": 65493,
150
+ "mkCons-memory-arguments": 32,
151
+ "mkNilData-cpu-arguments": 22558,
152
+ "mkNilData-memory-arguments": 32,
153
+ "mkNilPairData-cpu-arguments": 16563,
154
+ "mkNilPairData-memory-arguments": 32,
155
+ "mkPairData-cpu-arguments": 76511,
156
+ "mkPairData-memory-arguments": 32,
157
+ "modInteger-cpu-arguments-constant": 196500,
158
+ "modInteger-cpu-arguments-model-arguments-intercept": 453240,
159
+ "modInteger-cpu-arguments-model-arguments-slope": 220,
160
+ "modInteger-memory-arguments-intercept": 0,
161
+ "modInteger-memory-arguments-minimum": 1,
162
+ "modInteger-memory-arguments-slope": 1,
163
+ "multiplyInteger-cpu-arguments-intercept": 69522,
164
+ "multiplyInteger-cpu-arguments-slope": 11687,
165
+ "multiplyInteger-memory-arguments-intercept": 0,
166
+ "multiplyInteger-memory-arguments-slope": 1,
167
+ "nullList-cpu-arguments": 60091,
168
+ "nullList-memory-arguments": 32,
169
+ "quotientInteger-cpu-arguments-constant": 196500,
170
+ "quotientInteger-cpu-arguments-model-arguments-intercept": 453240,
171
+ "quotientInteger-cpu-arguments-model-arguments-slope": 220,
172
+ "quotientInteger-memory-arguments-intercept": 0,
173
+ "quotientInteger-memory-arguments-minimum": 1,
174
+ "quotientInteger-memory-arguments-slope": 1,
175
+ "remainderInteger-cpu-arguments-constant": 196500,
176
+ "remainderInteger-cpu-arguments-model-arguments-intercept": 453240,
177
+ "remainderInteger-cpu-arguments-model-arguments-slope": 220,
178
+ "remainderInteger-memory-arguments-intercept": 0,
179
+ "remainderInteger-memory-arguments-minimum": 1,
180
+ "remainderInteger-memory-arguments-slope": 1,
181
+ "sha2_256-cpu-arguments-intercept": 806990,
182
+ "sha2_256-cpu-arguments-slope": 30482,
183
+ "sha2_256-memory-arguments": 4,
184
+ "sha3_256-cpu-arguments-intercept": 1927926,
185
+ "sha3_256-cpu-arguments-slope": 82523,
186
+ "sha3_256-memory-arguments": 4,
187
+ "sliceByteString-cpu-arguments-intercept": 265318,
188
+ "sliceByteString-cpu-arguments-slope": 0,
189
+ "sliceByteString-memory-arguments-intercept": 4,
190
+ "sliceByteString-memory-arguments-slope": 0,
191
+ "sndPair-cpu-arguments": 85931,
192
+ "sndPair-memory-arguments": 32,
193
+ "subtractInteger-cpu-arguments-intercept": 205665,
194
+ "subtractInteger-cpu-arguments-slope": 812,
195
+ "subtractInteger-memory-arguments-intercept": 1,
196
+ "subtractInteger-memory-arguments-slope": 1,
197
+ "tailList-cpu-arguments": 41182,
198
+ "tailList-memory-arguments": 32,
199
+ "trace-cpu-arguments": 212342,
200
+ "trace-memory-arguments": 32,
201
+ "unBData-cpu-arguments": 31220,
202
+ "unBData-memory-arguments": 32,
203
+ "unConstrData-cpu-arguments": 32696,
204
+ "unConstrData-memory-arguments": 32,
205
+ "unIData-cpu-arguments": 43357,
206
+ "unIData-memory-arguments": 32,
207
+ "unListData-cpu-arguments": 32247,
208
+ "unListData-memory-arguments": 32,
209
+ "unMapData-cpu-arguments": 38314,
210
+ "unMapData-memory-arguments": 32,
211
+ "verifyEd25519Signature-cpu-arguments-intercept": 57996947,
212
+ "verifyEd25519Signature-cpu-arguments-slope": 18975,
213
+ "verifyEd25519Signature-memory-arguments": 10
214
+ }).forEach((r, a) => e.set(a, n.Int.new_i32(r)));
215
+ const t = n.CostModel.new();
216
+ return Object.values({
217
+ "addInteger-cpu-arguments-intercept": 205665,
218
+ "addInteger-cpu-arguments-slope": 812,
219
+ "addInteger-memory-arguments-intercept": 1,
220
+ "addInteger-memory-arguments-slope": 1,
221
+ "appendByteString-cpu-arguments-intercept": 1e3,
222
+ "appendByteString-cpu-arguments-slope": 571,
223
+ "appendByteString-memory-arguments-intercept": 0,
224
+ "appendByteString-memory-arguments-slope": 1,
225
+ "appendString-cpu-arguments-intercept": 1e3,
226
+ "appendString-cpu-arguments-slope": 24177,
227
+ "appendString-memory-arguments-intercept": 4,
228
+ "appendString-memory-arguments-slope": 1,
229
+ "bData-cpu-arguments": 1e3,
230
+ "bData-memory-arguments": 32,
231
+ "blake2b_256-cpu-arguments-intercept": 117366,
232
+ "blake2b_256-cpu-arguments-slope": 10475,
233
+ "blake2b_256-memory-arguments": 4,
234
+ "cekApplyCost-exBudgetCPU": 23e3,
235
+ "cekApplyCost-exBudgetMemory": 100,
236
+ "cekBuiltinCost-exBudgetCPU": 23e3,
237
+ "cekBuiltinCost-exBudgetMemory": 100,
238
+ "cekConstCost-exBudgetCPU": 23e3,
239
+ "cekConstCost-exBudgetMemory": 100,
240
+ "cekDelayCost-exBudgetCPU": 23e3,
241
+ "cekDelayCost-exBudgetMemory": 100,
242
+ "cekForceCost-exBudgetCPU": 23e3,
243
+ "cekForceCost-exBudgetMemory": 100,
244
+ "cekLamCost-exBudgetCPU": 23e3,
245
+ "cekLamCost-exBudgetMemory": 100,
246
+ "cekStartupCost-exBudgetCPU": 100,
247
+ "cekStartupCost-exBudgetMemory": 100,
248
+ "cekVarCost-exBudgetCPU": 23e3,
249
+ "cekVarCost-exBudgetMemory": 100,
250
+ "chooseData-cpu-arguments": 19537,
251
+ "chooseData-memory-arguments": 32,
252
+ "chooseList-cpu-arguments": 175354,
253
+ "chooseList-memory-arguments": 32,
254
+ "chooseUnit-cpu-arguments": 46417,
255
+ "chooseUnit-memory-arguments": 4,
256
+ "consByteString-cpu-arguments-intercept": 221973,
257
+ "consByteString-cpu-arguments-slope": 511,
258
+ "consByteString-memory-arguments-intercept": 0,
259
+ "consByteString-memory-arguments-slope": 1,
260
+ "constrData-cpu-arguments": 89141,
261
+ "constrData-memory-arguments": 32,
262
+ "decodeUtf8-cpu-arguments-intercept": 497525,
263
+ "decodeUtf8-cpu-arguments-slope": 14068,
264
+ "decodeUtf8-memory-arguments-intercept": 4,
265
+ "decodeUtf8-memory-arguments-slope": 2,
266
+ "divideInteger-cpu-arguments-constant": 196500,
267
+ "divideInteger-cpu-arguments-model-arguments-intercept": 453240,
268
+ "divideInteger-cpu-arguments-model-arguments-slope": 220,
269
+ "divideInteger-memory-arguments-intercept": 0,
270
+ "divideInteger-memory-arguments-minimum": 1,
271
+ "divideInteger-memory-arguments-slope": 1,
272
+ "encodeUtf8-cpu-arguments-intercept": 1e3,
273
+ "encodeUtf8-cpu-arguments-slope": 28662,
274
+ "encodeUtf8-memory-arguments-intercept": 4,
275
+ "encodeUtf8-memory-arguments-slope": 2,
276
+ "equalsByteString-cpu-arguments-constant": 245e3,
277
+ "equalsByteString-cpu-arguments-intercept": 216773,
278
+ "equalsByteString-cpu-arguments-slope": 62,
279
+ "equalsByteString-memory-arguments": 1,
280
+ "equalsData-cpu-arguments-intercept": 1060367,
281
+ "equalsData-cpu-arguments-slope": 12586,
282
+ "equalsData-memory-arguments": 1,
283
+ "equalsInteger-cpu-arguments-intercept": 208512,
284
+ "equalsInteger-cpu-arguments-slope": 421,
285
+ "equalsInteger-memory-arguments": 1,
286
+ "equalsString-cpu-arguments-constant": 187e3,
287
+ "equalsString-cpu-arguments-intercept": 1e3,
288
+ "equalsString-cpu-arguments-slope": 52998,
289
+ "equalsString-memory-arguments": 1,
290
+ "fstPair-cpu-arguments": 80436,
291
+ "fstPair-memory-arguments": 32,
292
+ "headList-cpu-arguments": 43249,
293
+ "headList-memory-arguments": 32,
294
+ "iData-cpu-arguments": 1e3,
295
+ "iData-memory-arguments": 32,
296
+ "ifThenElse-cpu-arguments": 80556,
297
+ "ifThenElse-memory-arguments": 1,
298
+ "indexByteString-cpu-arguments": 57667,
299
+ "indexByteString-memory-arguments": 4,
300
+ "lengthOfByteString-cpu-arguments": 1e3,
301
+ "lengthOfByteString-memory-arguments": 10,
302
+ "lessThanByteString-cpu-arguments-intercept": 197145,
303
+ "lessThanByteString-cpu-arguments-slope": 156,
304
+ "lessThanByteString-memory-arguments": 1,
305
+ "lessThanEqualsByteString-cpu-arguments-intercept": 197145,
306
+ "lessThanEqualsByteString-cpu-arguments-slope": 156,
307
+ "lessThanEqualsByteString-memory-arguments": 1,
308
+ "lessThanEqualsInteger-cpu-arguments-intercept": 204924,
309
+ "lessThanEqualsInteger-cpu-arguments-slope": 473,
310
+ "lessThanEqualsInteger-memory-arguments": 1,
311
+ "lessThanInteger-cpu-arguments-intercept": 208896,
312
+ "lessThanInteger-cpu-arguments-slope": 511,
313
+ "lessThanInteger-memory-arguments": 1,
314
+ "listData-cpu-arguments": 52467,
315
+ "listData-memory-arguments": 32,
316
+ "mapData-cpu-arguments": 64832,
317
+ "mapData-memory-arguments": 32,
318
+ "mkCons-cpu-arguments": 65493,
319
+ "mkCons-memory-arguments": 32,
320
+ "mkNilData-cpu-arguments": 22558,
321
+ "mkNilData-memory-arguments": 32,
322
+ "mkNilPairData-cpu-arguments": 16563,
323
+ "mkNilPairData-memory-arguments": 32,
324
+ "mkPairData-cpu-arguments": 76511,
325
+ "mkPairData-memory-arguments": 32,
326
+ "modInteger-cpu-arguments-constant": 196500,
327
+ "modInteger-cpu-arguments-model-arguments-intercept": 453240,
328
+ "modInteger-cpu-arguments-model-arguments-slope": 220,
329
+ "modInteger-memory-arguments-intercept": 0,
330
+ "modInteger-memory-arguments-minimum": 1,
331
+ "modInteger-memory-arguments-slope": 1,
332
+ "multiplyInteger-cpu-arguments-intercept": 69522,
333
+ "multiplyInteger-cpu-arguments-slope": 11687,
334
+ "multiplyInteger-memory-arguments-intercept": 0,
335
+ "multiplyInteger-memory-arguments-slope": 1,
336
+ "nullList-cpu-arguments": 60091,
337
+ "nullList-memory-arguments": 32,
338
+ "quotientInteger-cpu-arguments-constant": 196500,
339
+ "quotientInteger-cpu-arguments-model-arguments-intercept": 453240,
340
+ "quotientInteger-cpu-arguments-model-arguments-slope": 220,
341
+ "quotientInteger-memory-arguments-intercept": 0,
342
+ "quotientInteger-memory-arguments-minimum": 1,
343
+ "quotientInteger-memory-arguments-slope": 1,
344
+ "remainderInteger-cpu-arguments-constant": 196500,
345
+ "remainderInteger-cpu-arguments-model-arguments-intercept": 453240,
346
+ "remainderInteger-cpu-arguments-model-arguments-slope": 220,
347
+ "remainderInteger-memory-arguments-intercept": 0,
348
+ "remainderInteger-memory-arguments-minimum": 1,
349
+ "remainderInteger-memory-arguments-slope": 1,
350
+ "serialiseData-cpu-arguments-intercept": 1159724,
351
+ "serialiseData-cpu-arguments-slope": 392670,
352
+ "serialiseData-memory-arguments-intercept": 0,
353
+ "serialiseData-memory-arguments-slope": 2,
354
+ "sha2_256-cpu-arguments-intercept": 806990,
355
+ "sha2_256-cpu-arguments-slope": 30482,
356
+ "sha2_256-memory-arguments": 4,
357
+ "sha3_256-cpu-arguments-intercept": 1927926,
358
+ "sha3_256-cpu-arguments-slope": 82523,
359
+ "sha3_256-memory-arguments": 4,
360
+ "sliceByteString-cpu-arguments-intercept": 265318,
361
+ "sliceByteString-cpu-arguments-slope": 0,
362
+ "sliceByteString-memory-arguments-intercept": 4,
363
+ "sliceByteString-memory-arguments-slope": 0,
364
+ "sndPair-cpu-arguments": 85931,
365
+ "sndPair-memory-arguments": 32,
366
+ "subtractInteger-cpu-arguments-intercept": 205665,
367
+ "subtractInteger-cpu-arguments-slope": 812,
368
+ "subtractInteger-memory-arguments-intercept": 1,
369
+ "subtractInteger-memory-arguments-slope": 1,
370
+ "tailList-cpu-arguments": 41182,
371
+ "tailList-memory-arguments": 32,
372
+ "trace-cpu-arguments": 212342,
373
+ "trace-memory-arguments": 32,
374
+ "unBData-cpu-arguments": 31220,
375
+ "unBData-memory-arguments": 32,
376
+ "unConstrData-cpu-arguments": 32696,
377
+ "unConstrData-memory-arguments": 32,
378
+ "unIData-cpu-arguments": 43357,
379
+ "unIData-memory-arguments": 32,
380
+ "unListData-cpu-arguments": 32247,
381
+ "unListData-memory-arguments": 32,
382
+ "unMapData-cpu-arguments": 38314,
383
+ "unMapData-memory-arguments": 32,
384
+ "verifyEcdsaSecp256k1Signature-cpu-arguments": 35892428,
385
+ "verifyEcdsaSecp256k1Signature-memory-arguments": 10,
386
+ "verifyEd25519Signature-cpu-arguments-intercept": 57996947,
387
+ "verifyEd25519Signature-cpu-arguments-slope": 18975,
388
+ "verifyEd25519Signature-memory-arguments": 10,
389
+ "verifySchnorrSecp256k1Signature-cpu-arguments-intercept": 38887044,
390
+ "verifySchnorrSecp256k1Signature-cpu-arguments-slope": 32947,
391
+ "verifySchnorrSecp256k1Signature-memory-arguments": 10
392
+ }).forEach((r, a) => t.set(a, n.Int.new_i32(r))), s.insert(n.Language.new_plutus_v1(), e), s.insert(n.Language.new_plutus_v2(), t), s;
393
+ })()
46
394
  }, ss = {
47
395
  ALONZO: {
48
396
  V1: "a141005901d59f1a000302590001011a00060bc719026d00011a000249f01903e800011a000249f018201a0025cea81971f70419744d186419744d186419744d186419744d186419744d186419744d18641864186419744d18641a000249f018201a000249f018201a000249f018201a000249f01903e800011a000249f018201a000249f01903e800081a000242201a00067e2318760001011a000249f01903e800081a000249f01a0001b79818f7011a000249f0192710011a0002155e19052e011903e81a000249f01903e8011a000249f018201a000249f018201a000249f0182001011a000249f0011a000249f0041a000194af18f8011a000194af18f8011a0002377c190556011a0002bdea1901f1011a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000242201a00067e23187600010119f04c192bd200011a000249f018201a000242201a00067e2318760001011a000242201a00067e2318760001011a0025cea81971f704001a000141bb041a000249f019138800011a000249f018201a000302590001011a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a000249f018201a00330da70101ff"
@@ -51,9 +399,9 @@ const Ze = ["testnet", "preview", "preprod", "mainnet"], ts = (s) => Ze.includes
51
399
  V1: "a141005901b69f1a0003236119032c01011903e819023b00011903e8195e7104011903e818201a0001ca761928eb041959d818641959d818641959d818641959d818641959d818641959d81864186418641959d81864194c5118201a0002acfa182019b551041a000363151901ff00011a00015c3518201a000797751936f404021a0002ff941a0006ea7818dc0001011903e8196ff604021a0003bd081a00034ec5183e011a00102e0f19312a011a00032e801901a5011a0002da781903e819cf06011a00013a34182019a8f118201903e818201a00013aac0119e143041903e80a1a00030219189c011a00030219189c011a0003207c1901d9011a000330001901ff0119ccf3182019fd40182019ffd5182019581e18201940b318201a00012adf18201a0002ff941a0006ea7818dc0001011a00010f92192da7000119eabb18201a0002ff941a0006ea7818dc0001011a0002ff941a0006ea7818dc0001011a000c504e197712041a001d6af61a0001425b041a00040c660004001a00014fab18201a0003236119032c010119a0de18201a00033d7618201979f41820197fb8182019a95d1820197df718201995aa18201a009063b91903fd0aff",
52
400
  V2: "a20198af1a0003236119032c01011903e819023b00011903e8195e7104011903e818201a0001ca761928eb041959d818641959d818641959d818641959d818641959d818641959d81864186418641959d81864194c5118201a0002acfa182019b551041a000363151901ff00011a00015c3518201a000797751936f404021a0002ff941a0006ea7818dc0001011903e8196ff604021a0003bd081a00034ec5183e011a00102e0f19312a011a00032e801901a5011a0002da781903e819cf06011a00013a34182019a8f118201903e818201a00013aac0119e143041903e80a1a00030219189c011a00030219189c011a0003207c1901d9011a000330001901ff0119ccf3182019fd40182019ffd5182019581e18201940b318201a00012adf18201a0002ff941a0006ea7818dc0001011a00010f92192da7000119eabb18201a0002ff941a0006ea7818dc0001011a0002ff941a0006ea7818dc0001011a0011b22c1a0005fdde00021a000c504e197712041a001d6af61a0001425b041a00040c660004001a00014fab18201a0003236119032c010119a0de18201a00033d7618201979f41820197fb8182019a95d1820197df718201995aa18201b00000004a817c8001b00000004a817c8001a009063b91903fd0a1b00000004a817c800001b00000004a817c80041005901b69f1a0003236119032c01011903e819023b00011903e8195e7104011903e818201a0001ca761928eb041959d818641959d818641959d818641959d818641959d818641959d81864186418641959d81864194c5118201a0002acfa182019b551041a000363151901ff00011a00015c3518201a000797751936f404021a0002ff941a0006ea7818dc0001011903e8196ff604021a0003bd081a00034ec5183e011a00102e0f19312a011a00032e801901a5011a0002da781903e819cf06011a00013a34182019a8f118201903e818201a00013aac0119e143041903e80a1a00030219189c011a00030219189c011a0003207c1901d9011a000330001901ff0119ccf3182019fd40182019ffd5182019581e18201940b318201a00012adf18201a0002ff941a0006ea7818dc0001011a00010f92192da7000119eabb18201a0002ff941a0006ea7818dc0001011a0002ff941a0006ea7818dc0001011a000c504e197712041a001d6af61a0001425b041a00040c660004001a00014fab18201a0003236119032c010119a0de18201a00033d7618201979f41820197fb8182019a95d1820197df718201995aa18201a009063b91903fd0aff"
53
401
  }
54
- }, Pt = {
55
- [i.NetworkInfo.testnet().network_id()]: "8d18d786e92776c824607fd8e193ec535c79dc61ea2405ddf3b09fe3",
56
- [i.NetworkInfo.mainnet().network_id()]: "f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a"
402
+ }, Tt = {
403
+ [n.NetworkInfo.testnet().network_id()]: "8d18d786e92776c824607fd8e193ec535c79dc61ea2405ddf3b09fe3",
404
+ [n.NetworkInfo.mainnet().network_id()]: "f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a"
57
405
  }, rs = {
58
406
  mainnet: "wss://ogmios-api.mainnet.dandelion.link",
59
407
  preprod: "wss://ogmios-api.iohk-preprod.dandelion.link",
@@ -96,131 +444,131 @@ const Ze = ["testnet", "preview", "preprod", "mainnet"], ts = (s) => Ze.includes
96
444
  "nufi",
97
445
  "gerowallet",
98
446
  "typhoncip30"
99
- ], is = (s, e, t = "5000000") => {
100
- const r = i.BigNum.from_str(s.get("lovelace") ?? "0").checked_add(i.BigNum.from_str(t)), a = e.filter((c) => c.output.amount.filter((A) => A.unit !== "lovelace").some((A) => s.has(A.unit))), n = As(a);
447
+ ], ns = (s, e, t = "5000000") => {
448
+ const r = n.BigNum.from_str(s.get("lovelace") ?? "0").checked_add(n.BigNum.from_str(t)), a = e.filter((c) => c.output.amount.filter((u) => u.unit !== "lovelace").some((u) => s.has(u.unit))), i = us(a);
101
449
  return [
102
- ...n.less_than(r) ? us(r.clamped_sub(n).to_str(), e.filter((c) => !a.map((A) => A.input.txHash).includes(c.input.txHash))) : [],
450
+ ...i.less_than(r) ? As(r.clamped_sub(i).to_str(), e.filter((c) => !a.map((u) => u.input.txHash).includes(c.input.txHash))) : [],
103
451
  ...a
104
452
  ];
105
- }, nr = (s, e, t = !1, { maxTxSize: r, minFeeA: a, minFeeB: n } = G) => {
106
- const o = e.filter((h) => xe(h) === !1).sort(Tt), c = i.BigNum.from_str(Re(r, a, n)), A = t ? i.BigNum.from_str(s).checked_add(c).to_str() : s;
453
+ }, ir = (s, e, t = !1, { maxTxSize: r, minFeeA: a, minFeeB: i } = q) => {
454
+ const o = e.filter((g) => xe(g) === !1).sort(Mt), c = n.BigNum.from_str(Ge(r, a, i)), u = t ? n.BigNum.from_str(s).checked_add(c).to_str() : s;
107
455
  return dt(o, /* @__PURE__ */ new Map([
108
- ["lovelace", A]
456
+ ["lovelace", u]
109
457
  ]));
110
- }, ns = (s, e, t = !1, r = G) => {
111
- const a = e.filter(xe).sort(Tt), n = cs(r), o = s.get("lovelace") ?? "0", c = t ? i.BigNum.from_str(o).checked_add(n).to_str() : o;
458
+ }, is = (s, e, t = !1, r = q) => {
459
+ const a = e.filter(xe).sort(Mt), i = cs(r), o = s.get("lovelace") ?? "0", c = t ? n.BigNum.from_str(o).checked_add(i).to_str() : o;
112
460
  return s.set("lovelace", c), dt(a, s);
113
- }, os = (s, e) => Array.from(e, (t) => ({ unit: t[0], quantity: i.BigNum.from_str(t[1]) })).every((t) => s.filter((r) => r.output.amount.find((a) => a.unit === t.unit) !== void 0).reduce((r, a) => {
114
- const n = a.output.amount.reduce((o, c) => o.checked_add(i.BigNum.from_str(t.unit === c.unit ? c.quantity : "0")), i.BigNum.from_str("0"));
115
- return r.checked_add(n);
116
- }, i.BigNum.from_str("0")).less_than(t.quantity) === !1), Tt = (s, e) => {
117
- var a, n;
118
- const t = i.BigNum.from_str(((a = s.output.amount.find((o) => o.unit === "lovelace")) == null ? void 0 : a.quantity) ?? "0");
119
- return i.BigNum.from_str(((n = e.output.amount.find((o) => o.unit === "lovelace")) == null ? void 0 : n.quantity) ?? "0").compare(t);
461
+ }, os = (s, e) => Array.from(e, (t) => ({ unit: t[0], quantity: n.BigNum.from_str(t[1]) })).every((t) => s.filter((r) => r.output.amount.find((a) => a.unit === t.unit) !== void 0).reduce((r, a) => {
462
+ const i = a.output.amount.reduce((o, c) => o.checked_add(n.BigNum.from_str(t.unit === c.unit ? c.quantity : "0")), n.BigNum.from_str("0"));
463
+ return r.checked_add(i);
464
+ }, n.BigNum.from_str("0")).less_than(t.quantity) === !1), Mt = (s, e) => {
465
+ var a, i;
466
+ const t = n.BigNum.from_str(((a = s.output.amount.find((o) => o.unit === "lovelace")) == null ? void 0 : a.quantity) ?? "0");
467
+ return n.BigNum.from_str(((i = e.output.amount.find((o) => o.unit === "lovelace")) == null ? void 0 : i.quantity) ?? "0").compare(t);
120
468
  }, cs = (s) => {
121
469
  const { maxTxSize: e, minFeeA: t, minFeeB: r } = s;
122
- return i.BigNum.from_str(Re(e, t, r));
123
- }, xe = (s) => s.output.amount.length > 1, As = (s) => s.reduce((e, t) => {
470
+ return n.BigNum.from_str(Ge(e, t, r));
471
+ }, xe = (s) => s.output.amount.length > 1, us = (s) => s.reduce((e, t) => {
124
472
  var a;
125
- const r = ((a = t.output.amount.find((n) => n.unit === "lovelace")) == null ? void 0 : a.quantity) ?? "0";
126
- return e.checked_add(i.BigNum.from_str(r));
127
- }, i.BigNum.from_str("0")), us = (s, e) => {
128
- const t = e.sort(Tt);
473
+ const r = ((a = t.output.amount.find((i) => i.unit === "lovelace")) == null ? void 0 : a.quantity) ?? "0";
474
+ return e.checked_add(n.BigNum.from_str(r));
475
+ }, n.BigNum.from_str("0")), As = (s, e) => {
476
+ const t = e.sort(Mt);
129
477
  return dt(t, /* @__PURE__ */ new Map([
130
478
  ["lovelace", s]
131
479
  ]));
132
- }, dt = (s, e, t = []) => s.length === 0 || os(t, e) ? t : hs(s[0], e) ? dt(s.slice(1), e, [...t, s[0]]) : dt(s.slice(1), e, t), hs = (s, e) => Array.from(e.keys()).some((t) => s.output.amount.find((r) => r.unit === t) !== void 0), ds = (s, e) => {
133
- const t = ls(e), r = fs(s, e);
480
+ }, dt = (s, e, t = []) => s.length === 0 || os(t, e) ? t : gs(s[0], e) ? dt(s.slice(1), e, [...t, s[0]]) : dt(s.slice(1), e, t), gs = (s, e) => Array.from(e.keys()).some((t) => s.output.amount.find((r) => r.unit === t) !== void 0), ds = (s, e) => {
481
+ const t = hs(e), r = Is(s, e);
134
482
  return {
135
483
  coseKey: b(t.to_bytes()),
136
484
  coseSign1: b(r.to_bytes())
137
485
  };
138
486
  }, or = (s, e, { key: t, signature: r }) => {
139
487
  var o, c;
140
- const a = me.from_bytes(g(t)), n = ze.from_bytes(g(r));
488
+ const a = we.from_bytes(m(t)), i = ze.from_bytes(m(r));
141
489
  if ((s == null ? void 0 : s.length) > 0) {
142
- const A = b(n.payload() ?? new Uint8Array());
143
- if (Q(s) !== A)
490
+ const u = b(i.payload() ?? new Uint8Array());
491
+ if (S(s) !== u)
144
492
  return !1;
145
493
  }
146
494
  if ((e == null ? void 0 : e.length) > 0) {
147
- const u = (o = n.headers().protected().deserialized_headers().header(W.new_text("address"))) == null ? void 0 : o.as_bytes();
148
- if (u === void 0)
495
+ const A = (o = i.headers().protected().deserialized_headers().header(W.new_text("address"))) == null ? void 0 : o.as_bytes();
496
+ if (A === void 0)
149
497
  throw new Error("Couldn't find a signer address in signature");
150
- const d = (c = a.header(W.new_int(wt.new_negative(Ut.from_str("2"))))) == null ? void 0 : c.as_bytes();
498
+ const d = (c = a.header(W.new_int(yt.new_negative(Kt.from_str("2"))))) == null ? void 0 : c.as_bytes();
151
499
  if (d === void 0)
152
500
  throw new Error("Couldn't find a signer key in signature");
153
- const h = et(b(u)), f = Vs(b(d));
154
- if (Is(e, h, f) === !1)
501
+ const g = et(b(A)), I = Vs(b(d));
502
+ if (ls(e, g, I) === !1)
155
503
  throw new Error("Couldn't check signature because of address mismatch");
156
- const C = Os(b(n.signature())), x = n.signed_data().to_bytes();
157
- return f.verify(x, C);
504
+ const _ = Os(b(i.signature())), x = i.signed_data().to_bytes();
505
+ return I.verify(x, _);
158
506
  }
159
507
  return !1;
160
- }, Is = (s, e, t) => {
508
+ }, ls = (s, e, t) => {
161
509
  if (s !== e.to_bech32())
162
510
  return !1;
163
511
  try {
164
- return ut(s) === t.hash().to_hex();
512
+ return At(s) === t.hash().to_hex();
165
513
  } catch {
166
514
  return !1;
167
515
  }
168
- }, ls = (s) => {
169
- const e = me.new(W.from_key_type(Je.OKP));
170
- return e.set_algorithm_id(W.from_algorithm_id(Ee.EdDSA)), e.set_header(W.new_int(wt.new_negative(Ut.from_str("1"))), Nt.new_int(wt.new_i32(6))), e.set_header(W.new_int(wt.new_negative(Ut.from_str("2"))), Nt.new_bytes(s.key.to_public().as_bytes())), e;
171
- }, fs = (s, e) => {
516
+ }, hs = (s) => {
517
+ const e = we.new(W.from_key_type(Je.OKP));
518
+ return e.set_algorithm_id(W.from_algorithm_id(Be.EdDSA)), e.set_header(W.new_int(yt.new_negative(Kt.from_str("1"))), Nt.new_int(yt.new_i32(6))), e.set_header(W.new_int(yt.new_negative(Kt.from_str("2"))), Nt.new_bytes(s.key.to_public().as_bytes())), e;
519
+ }, Is = (s, e) => {
172
520
  const t = Jt.new(), r = Jt.new();
173
- t.set_algorithm_id(W.from_algorithm_id(Ee.EdDSA)), t.set_header(W.new_text("address"), Nt.new_bytes(e.address.to_bytes()));
174
- const a = We.new(je.new(t), r), n = Xe.new(a, g(s.payload), !1);
175
- s.externalAAD !== void 0 && n.set_external_aad(g(s.externalAAD));
176
- const o = n.make_data_to_sign(), c = e.key.sign(o.to_bytes());
177
- return n.build(c.to_bytes());
521
+ t.set_algorithm_id(W.from_algorithm_id(Be.EdDSA)), t.set_header(W.new_text("address"), Nt.new_bytes(e.address.to_bytes()));
522
+ const a = We.new(je.new(t), r), i = Xe.new(a, m(s.payload), !1);
523
+ s.externalAAD !== void 0 && i.set_external_aad(m(s.externalAAD));
524
+ const o = i.make_data_to_sign(), c = e.key.sign(o.to_bytes());
525
+ return i.build(c.to_bytes());
178
526
  };
179
- var Xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Qe = {}, S = { exports: {} };
180
- R.notEqual = _s;
181
- R.notOk = ps;
182
- R.equal = gs;
183
- R.ok = R;
184
- var Se = R;
185
- function gs(s, e, t) {
186
- R(s == e, t);
527
+ var Xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Se = {}, Q = { exports: {} };
528
+ G.notEqual = fs;
529
+ G.notOk = ps;
530
+ G.equal = ms;
531
+ G.ok = G;
532
+ var Qe = G;
533
+ function ms(s, e, t) {
534
+ G(s == e, t);
187
535
  }
188
- function _s(s, e, t) {
189
- R(s != e, t);
536
+ function fs(s, e, t) {
537
+ G(s != e, t);
190
538
  }
191
539
  function ps(s, e) {
192
- R(!s, e);
540
+ G(!s, e);
193
541
  }
194
- function R(s, e) {
542
+ function G(s, e) {
195
543
  if (!s)
196
544
  throw new Error(e || "AssertionError");
197
545
  }
198
- var P = { exports: {} };
199
- function Cs(s) {
546
+ var T = { exports: {} };
547
+ function _s(s) {
200
548
  throw new Error('Could not dynamically require "' + s + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
201
549
  }
202
- var ws = Mt;
203
- Mt.supported = typeof WebAssembly < "u";
204
- function Mt(s) {
205
- if (!Mt.supported)
550
+ var ys = Ht;
551
+ Ht.supported = typeof WebAssembly < "u";
552
+ function Ht(s) {
553
+ if (!Ht.supported)
206
554
  return null;
207
- var e = s && s.imports, t = ys("AGFzbQEAAAABEANgAn9/AGADf39/AGABfwADBQQAAQICBQUBAQroBwdNBQZtZW1vcnkCAAxibGFrZTJiX2luaXQAAA5ibGFrZTJiX3VwZGF0ZQABDWJsYWtlMmJfZmluYWwAAhBibGFrZTJiX2NvbXByZXNzAAMK00AElgMAIABCADcDACAAQQhqQgA3AwAgAEEQakIANwMAIABBGGpCADcDACAAQSBqQgA3AwAgAEEoakIANwMAIABBMGpCADcDACAAQThqQgA3AwAgAEHAAGpCADcDACAAQcgAakIANwMAIABB0ABqQgA3AwAgAEHYAGpCADcDACAAQeAAakIANwMAIABB6ABqQgA3AwAgAEHwAGpCADcDACAAQfgAakIANwMAIABBgAFqQoiS853/zPmE6gBBACkDAIU3AwAgAEGIAWpCu86qptjQ67O7f0EIKQMAhTcDACAAQZABakKr8NP0r+68tzxBECkDAIU3AwAgAEGYAWpC8e30+KWn/aelf0EYKQMAhTcDACAAQaABakLRhZrv+s+Uh9EAQSApAwCFNwMAIABBqAFqQp/Y+dnCkdqCm39BKCkDAIU3AwAgAEGwAWpC6/qG2r+19sEfQTApAwCFNwMAIABBuAFqQvnC+JuRo7Pw2wBBOCkDAIU3AwAgAEHAAWpCADcDACAAQcgBakIANwMAIABB0AFqQgA3AwALbQEDfyAAQcABaiEDIABByAFqIQQgBCkDAKchBQJAA0AgASACRg0BIAVBgAFGBEAgAyADKQMAIAWtfDcDAEEAIQUgABADCyAAIAVqIAEtAAA6AAAgBUEBaiEFIAFBAWohAQwACwsgBCAFrTcDAAtkAQN/IABBwAFqIQEgAEHIAWohAiABIAEpAwAgAikDAHw3AwAgAEHQAWpCfzcDACACKQMApyEDAkADQCADQYABRg0BIAAgA2pBADoAACADQQFqIQMMAAsLIAIgA603AwAgABADC+U7AiB+CX8gAEGAAWohISAAQYgBaiEiIABBkAFqISMgAEGYAWohJCAAQaABaiElIABBqAFqISYgAEGwAWohJyAAQbgBaiEoICEpAwAhASAiKQMAIQIgIykDACEDICQpAwAhBCAlKQMAIQUgJikDACEGICcpAwAhByAoKQMAIQhCiJLznf/M+YTqACEJQrvOqqbY0Ouzu38hCkKr8NP0r+68tzwhC0Lx7fT4paf9p6V/IQxC0YWa7/rPlIfRACENQp/Y+dnCkdqCm38hDkLr+obav7X2wR8hD0L5wvibkaOz8NsAIRAgAC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AwAgBSANhYU3AwAgJiAmKQMAIAYgDoWFNwMAICcgJykDACAHIA+FhTcDACAoICgpAwAgCCAQhYU3AwAL"), r = null, a = {
555
+ var e = s && s.imports, t = Cs("AGFzbQEAAAABEANgAn9/AGADf39/AGABfwADBQQAAQICBQUBAQroBwdNBQZtZW1vcnkCAAxibGFrZTJiX2luaXQAAA5ibGFrZTJiX3VwZGF0ZQABDWJsYWtlMmJfZmluYWwAAhBibGFrZTJiX2NvbXByZXNzAAMK00AElgMAIABCADcDACAAQQhqQgA3AwAgAEEQakIANwMAIABBGGpCADcDACAAQSBqQgA3AwAgAEEoakIANwMAIABBMGpCADcDACAAQThqQgA3AwAgAEHAAGpCADcDACAAQcgAakIANwMAIABB0ABqQgA3AwAgAEHYAGpCADcDACAAQeAAakIANwMAIABB6ABqQgA3AwAgAEHwAGpCADcDACAAQfgAakIANwMAIABBgAFqQoiS853/zPmE6gBBACkDAIU3AwAgAEGIAWpCu86qptjQ67O7f0EIKQMAhTcDACAAQZABakKr8NP0r+68tzxBECkDAIU3AwAgAEGYAWpC8e30+KWn/aelf0EYKQMAhTcDACAAQaABakLRhZrv+s+Uh9EAQSApAwCFNwMAIABBqAFqQp/Y+dnCkdqCm39BKCkDAIU3AwAgAEGwAWpC6/qG2r+19sEfQTApAwCFNwMAIABBuAFqQvnC+JuRo7Pw2wBBOCkDAIU3AwAgAEHAAWpCADcDACAAQcgBakIANwMAIABB0AFqQgA3AwALbQEDfyAAQcABaiEDIABByAFqIQQgBCkDAKchBQJAA0AgASACRg0BIAVBgAFGBEAgAyADKQMAIAWtfDcDAEEAIQUgABADCyAAIAVqIAEtAAA6AAAgBUEBaiEFIAFBAWohAQwACwsgBCAFrTcDAAtkAQN/IABBwAFqIQEgAEHIAWohAiABIAEpAwAgAikDAHw3AwAgAEHQAWpCfzcDACACKQMApyEDAkADQCADQYABRg0BIAAgA2pBADoAACADQQFqIQMMAAsLIAIgA603AwAgABADC+U7AiB+CX8gAEGAAWohISAAQYgBai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4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAYfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgFnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBR8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFICEgISkDACABIAmFhTcDACAiICIpAwAgAiAKhYU3AwAgIyAjKQMAIAMgC4WFNwMAICQgJCkDACAEIAyFhTcDACAlICUpAwAgBSANhYU3AwAgJiAmKQMAIAYgDoWFNwMAICcgJykDACAHIA+FhTcDACAoICgpAwAgCCAQhYU3AwAL"), r = null, a = {
208
556
  buffer: t,
209
557
  memory: null,
210
558
  exports: null,
211
- realloc: n,
559
+ realloc: i,
212
560
  onload: o
213
561
  };
214
562
  return o(function() {
215
563
  }), a;
216
- function n(A) {
217
- a.exports.memory.grow(Math.ceil(Math.abs(A - a.memory.length) / 65536)), a.memory = new Uint8Array(a.exports.memory.buffer);
564
+ function i(u) {
565
+ a.exports.memory.grow(Math.ceil(Math.abs(u - a.memory.length) / 65536)), a.memory = new Uint8Array(a.exports.memory.buffer);
218
566
  }
219
- function o(A) {
567
+ function o(u) {
220
568
  if (a.exports)
221
- return A();
569
+ return u();
222
570
  if (r) {
223
- r.then(A.bind(null, null)).catch(A);
571
+ r.then(u.bind(null, null)).catch(u);
224
572
  return;
225
573
  }
226
574
  try {
@@ -230,50 +578,50 @@ function Mt(s) {
230
578
  } catch {
231
579
  r = WebAssembly.instantiate(t, e).then(c);
232
580
  }
233
- o(A);
581
+ o(u);
234
582
  }
235
- function c(A) {
236
- a.exports = A.instance.exports, a.memory = a.exports.memory && a.exports.memory.buffer && new Uint8Array(a.exports.memory.buffer);
583
+ function c(u) {
584
+ a.exports = u.instance.exports, a.memory = a.exports.memory && a.exports.memory.buffer && new Uint8Array(a.exports.memory.buffer);
237
585
  }
238
586
  }
239
- function ys(s) {
240
- return typeof atob == "function" ? new Uint8Array(atob(s).split("").map(ms)) : new (Cs("buffer")).Buffer(s, "base64");
587
+ function Cs(s) {
588
+ return typeof atob == "function" ? new Uint8Array(atob(s).split("").map(ws)) : new (_s("buffer")).Buffer(s, "base64");
241
589
  }
242
- function ms(s) {
590
+ function ws(s) {
243
591
  return s.charCodeAt(0);
244
592
  }
245
- var U = Se, p = ws(), O = 64, yt = [];
246
- P.exports = v;
247
- var Zt = P.exports.BYTES_MIN = 16, te = P.exports.BYTES_MAX = 64;
248
- P.exports.BYTES = 32;
249
- var ee = P.exports.KEYBYTES_MIN = 16, se = P.exports.KEYBYTES_MAX = 64;
250
- P.exports.KEYBYTES = 32;
251
- var re = P.exports.SALTBYTES = 16, ae = P.exports.PERSONALBYTES = 16;
252
- function v(s, e, t, r, a) {
253
- if (!(this instanceof v))
254
- return new v(s, e, t, r, a);
593
+ var K = Qe, p = ys(), O = 64, Ct = [];
594
+ T.exports = D;
595
+ var Zt = T.exports.BYTES_MIN = 16, te = T.exports.BYTES_MAX = 64;
596
+ T.exports.BYTES = 32;
597
+ var ee = T.exports.KEYBYTES_MIN = 16, se = T.exports.KEYBYTES_MAX = 64;
598
+ T.exports.KEYBYTES = 32;
599
+ var re = T.exports.SALTBYTES = 16, ae = T.exports.PERSONALBYTES = 16;
600
+ function D(s, e, t, r, a) {
601
+ if (!(this instanceof D))
602
+ return new D(s, e, t, r, a);
255
603
  if (!(p && p.exports))
256
604
  throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");
257
- s || (s = 32), a !== !0 && (U(s >= Zt, "digestLength must be at least " + Zt + ", was given " + s), U(s <= te, "digestLength must be at most " + te + ", was given " + s), e != null && U(e.length >= ee, "key must be at least " + ee + ", was given " + e.length), e != null && U(e.length <= se, "key must be at least " + se + ", was given " + e.length), t != null && U(t.length === re, "salt must be exactly " + re + ", was given " + t.length), r != null && U(r.length === ae, "personal must be exactly " + ae + ", was given " + r.length)), yt.length || (yt.push(O), O += 216), this.digestLength = s, this.finalized = !1, this.pointer = yt.pop(), p.memory.fill(0, 0, 64), p.memory[0] = this.digestLength, p.memory[1] = e ? e.length : 0, p.memory[2] = 1, p.memory[3] = 1, t && p.memory.set(t, 32), r && p.memory.set(r, 48), this.pointer + 216 > p.memory.length && p.realloc(this.pointer + 216), p.exports.blake2b_init(this.pointer, this.digestLength), e && (this.update(e), p.memory.fill(0, O, O + e.length), p.memory[this.pointer + 200] = 128);
605
+ s || (s = 32), a !== !0 && (K(s >= Zt, "digestLength must be at least " + Zt + ", was given " + s), K(s <= te, "digestLength must be at most " + te + ", was given " + s), e != null && K(e.length >= ee, "key must be at least " + ee + ", was given " + e.length), e != null && K(e.length <= se, "key must be at least " + se + ", was given " + e.length), t != null && K(t.length === re, "salt must be exactly " + re + ", was given " + t.length), r != null && K(r.length === ae, "personal must be exactly " + ae + ", was given " + r.length)), Ct.length || (Ct.push(O), O += 216), this.digestLength = s, this.finalized = !1, this.pointer = Ct.pop(), p.memory.fill(0, 0, 64), p.memory[0] = this.digestLength, p.memory[1] = e ? e.length : 0, p.memory[2] = 1, p.memory[3] = 1, t && p.memory.set(t, 32), r && p.memory.set(r, 48), this.pointer + 216 > p.memory.length && p.realloc(this.pointer + 216), p.exports.blake2b_init(this.pointer, this.digestLength), e && (this.update(e), p.memory.fill(0, O, O + e.length), p.memory[this.pointer + 200] = 128);
258
606
  }
259
- v.prototype.update = function(s) {
260
- return U(this.finalized === !1, "Hash instance finalized"), U(s, "input must be TypedArray or Buffer"), O + s.length > p.memory.length && p.realloc(O + s.length), p.memory.set(s, O), p.exports.blake2b_update(this.pointer, O, O + s.length), this;
607
+ D.prototype.update = function(s) {
608
+ return K(this.finalized === !1, "Hash instance finalized"), K(s, "input must be TypedArray or Buffer"), O + s.length > p.memory.length && p.realloc(O + s.length), p.memory.set(s, O), p.exports.blake2b_update(this.pointer, O, O + s.length), this;
261
609
  };
262
- v.prototype.digest = function(s) {
263
- if (U(this.finalized === !1, "Hash instance finalized"), this.finalized = !0, yt.push(this.pointer), p.exports.blake2b_final(this.pointer), !s || s === "binary")
610
+ D.prototype.digest = function(s) {
611
+ if (K(this.finalized === !1, "Hash instance finalized"), this.finalized = !0, Ct.push(this.pointer), p.exports.blake2b_final(this.pointer), !s || s === "binary")
264
612
  return p.memory.slice(this.pointer + 128, this.pointer + 128 + this.digestLength);
265
613
  if (s === "hex")
266
- return Bs(p.memory, this.pointer + 128, this.digestLength);
267
- U(s.length >= this.digestLength, "input must be TypedArray or Buffer");
614
+ return Es(p.memory, this.pointer + 128, this.digestLength);
615
+ K(s.length >= this.digestLength, "input must be TypedArray or Buffer");
268
616
  for (var e = 0; e < this.digestLength; e++)
269
617
  s[e] = p.memory[this.pointer + 128 + e];
270
618
  return s;
271
619
  };
272
- v.prototype.final = v.prototype.digest;
273
- v.WASM = p && p.buffer;
274
- v.SUPPORTED = typeof WebAssembly < "u";
275
- v.ready = function(s) {
276
- if (s || (s = Es), !p)
620
+ D.prototype.final = D.prototype.digest;
621
+ D.WASM = p && p.buffer;
622
+ D.SUPPORTED = typeof WebAssembly < "u";
623
+ D.ready = function(s) {
624
+ if (s || (s = Bs), !p)
277
625
  return s(new Error("WebAssembly not supported"));
278
626
  var e = new Promise(function(t, r) {
279
627
  p.onload(function(a) {
@@ -282,10 +630,10 @@ v.ready = function(s) {
282
630
  });
283
631
  return e;
284
632
  };
285
- v.prototype.ready = v.ready;
286
- function Es() {
633
+ D.prototype.ready = D.ready;
634
+ function Bs() {
287
635
  }
288
- function Bs(s, e, t) {
636
+ function Es(s, e, t) {
289
637
  for (var r = "", a = 0; a < t; a++)
290
638
  r += xs(s[e + a]);
291
639
  return r;
@@ -293,27 +641,27 @@ function Bs(s, e, t) {
293
641
  function xs(s) {
294
642
  return s < 16 ? "0" + s.toString(16) : s.toString(16);
295
643
  }
296
- var J = Se, It = P.exports;
297
- function gt(s, e, t) {
644
+ var J = Qe, lt = T.exports;
645
+ function mt(s, e, t) {
298
646
  var r = s[e] + s[t], a = s[e + 1] + s[t + 1];
299
647
  r >= 4294967296 && a++, s[e] = r, s[e + 1] = a;
300
648
  }
301
- function ie(s, e, t, r) {
649
+ function ne(s, e, t, r) {
302
650
  var a = s[e] + t;
303
651
  t < 0 && (a += 4294967296);
304
- var n = s[e + 1] + r;
305
- a >= 4294967296 && n++, s[e] = a, s[e + 1] = n;
652
+ var i = s[e + 1] + r;
653
+ a >= 4294967296 && i++, s[e] = a, s[e + 1] = i;
306
654
  }
307
655
  function be(s, e) {
308
656
  return s[e] ^ s[e + 1] << 8 ^ s[e + 2] << 16 ^ s[e + 3] << 24;
309
657
  }
310
- function q(s, e, t, r, a, n) {
311
- var o = At[a], c = At[a + 1], A = At[n], u = At[n + 1];
312
- gt(l, s, e), ie(l, s, o, c);
313
- var d = l[r] ^ l[s], h = l[r + 1] ^ l[s + 1];
314
- l[r] = h, l[r + 1] = d, gt(l, t, r), d = l[e] ^ l[t], h = l[e + 1] ^ l[t + 1], l[e] = d >>> 24 ^ h << 8, l[e + 1] = h >>> 24 ^ d << 8, gt(l, s, e), ie(l, s, A, u), d = l[r] ^ l[s], h = l[r + 1] ^ l[s + 1], l[r] = d >>> 16 ^ h << 16, l[r + 1] = h >>> 16 ^ d << 16, gt(l, t, r), d = l[e] ^ l[t], h = l[e + 1] ^ l[t + 1], l[e] = h >>> 31 ^ d << 1, l[e + 1] = d >>> 31 ^ h << 1;
658
+ function $(s, e, t, r, a, i) {
659
+ var o = ut[a], c = ut[a + 1], u = ut[i], A = ut[i + 1];
660
+ mt(h, s, e), ne(h, s, o, c);
661
+ var d = h[r] ^ h[s], g = h[r + 1] ^ h[s + 1];
662
+ h[r] = g, h[r + 1] = d, mt(h, t, r), d = h[e] ^ h[t], g = h[e + 1] ^ h[t + 1], h[e] = d >>> 24 ^ g << 8, h[e + 1] = g >>> 24 ^ d << 8, mt(h, s, e), ne(h, s, u, A), d = h[r] ^ h[s], g = h[r + 1] ^ h[s + 1], h[r] = d >>> 16 ^ g << 16, h[r + 1] = g >>> 16 ^ d << 16, mt(h, t, r), d = h[e] ^ h[t], g = h[e + 1] ^ h[t + 1], h[e] = g >>> 31 ^ d << 1, h[e + 1] = d >>> 31 ^ g << 1;
315
663
  }
316
- var ve = new Uint32Array([
664
+ var De = new Uint32Array([
317
665
  4089235720,
318
666
  1779033703,
319
667
  2227873595,
@@ -330,7 +678,7 @@ var ve = new Uint32Array([
330
678
  528734635,
331
679
  327033209,
332
680
  1541459225
333
- ]), Qs = [
681
+ ]), Ss = [
334
682
  0,
335
683
  1,
336
684
  2,
@@ -523,19 +871,19 @@ var ve = new Uint32Array([
523
871
  7,
524
872
  5,
525
873
  3
526
- ], E = new Uint8Array(Qs.map(function(s) {
874
+ ], B = new Uint8Array(Ss.map(function(s) {
527
875
  return s * 2;
528
- })), l = new Uint32Array(32), At = new Uint32Array(32);
529
- function De(s, e) {
876
+ })), h = new Uint32Array(32), ut = new Uint32Array(32);
877
+ function ve(s, e) {
530
878
  var t = 0;
531
879
  for (t = 0; t < 16; t++)
532
- l[t] = s.h[t], l[t + 16] = ve[t];
533
- for (l[24] = l[24] ^ s.t, l[25] = l[25] ^ s.t / 4294967296, e && (l[28] = ~l[28], l[29] = ~l[29]), t = 0; t < 32; t++)
534
- At[t] = be(s.b, 4 * t);
880
+ h[t] = s.h[t], h[t + 16] = De[t];
881
+ for (h[24] = h[24] ^ s.t, h[25] = h[25] ^ s.t / 4294967296, e && (h[28] = ~h[28], h[29] = ~h[29]), t = 0; t < 32; t++)
882
+ ut[t] = be(s.b, 4 * t);
535
883
  for (t = 0; t < 12; t++)
536
- q(0, 8, 16, 24, E[t * 16 + 0], E[t * 16 + 1]), q(2, 10, 18, 26, E[t * 16 + 2], E[t * 16 + 3]), q(4, 12, 20, 28, E[t * 16 + 4], E[t * 16 + 5]), q(6, 14, 22, 30, E[t * 16 + 6], E[t * 16 + 7]), q(0, 10, 20, 30, E[t * 16 + 8], E[t * 16 + 9]), q(2, 12, 22, 24, E[t * 16 + 10], E[t * 16 + 11]), q(4, 14, 16, 26, E[t * 16 + 12], E[t * 16 + 13]), q(6, 8, 18, 28, E[t * 16 + 14], E[t * 16 + 15]);
884
+ $(0, 8, 16, 24, B[t * 16 + 0], B[t * 16 + 1]), $(2, 10, 18, 26, B[t * 16 + 2], B[t * 16 + 3]), $(4, 12, 20, 28, B[t * 16 + 4], B[t * 16 + 5]), $(6, 14, 22, 30, B[t * 16 + 6], B[t * 16 + 7]), $(0, 10, 20, 30, B[t * 16 + 8], B[t * 16 + 9]), $(2, 12, 22, 24, B[t * 16 + 10], B[t * 16 + 11]), $(4, 14, 16, 26, B[t * 16 + 12], B[t * 16 + 13]), $(6, 8, 18, 28, B[t * 16 + 14], B[t * 16 + 15]);
537
885
  for (t = 0; t < 16; t++)
538
- s.h[t] = s.h[t] ^ l[t] ^ l[t + 16];
886
+ s.h[t] = s.h[t] ^ h[t] ^ h[t + 16];
539
887
  }
540
888
  var z = new Uint8Array([
541
889
  0,
@@ -606,7 +954,7 @@ var z = new Uint8Array([
606
954
  function at(s, e, t, r) {
607
955
  z.fill(0), this.b = new Uint8Array(128), this.h = new Uint32Array(16), this.t = 0, this.c = 0, this.outlen = s, z[0] = s, e && (z[1] = e.length), z[2] = 1, z[3] = 1, t && z.set(t, 32), r && z.set(r, 48);
608
956
  for (var a = 0; a < 16; a++)
609
- this.h[a] = ve[a] ^ be(z, a * 4);
957
+ this.h[a] = De[a] ^ be(z, a * 4);
610
958
  e && (ke(this, e), this.c = 128);
611
959
  }
612
960
  at.prototype.update = function(s) {
@@ -614,60 +962,60 @@ at.prototype.update = function(s) {
614
962
  };
615
963
  at.prototype.digest = function(s) {
616
964
  var e = !s || s === "binary" || s === "hex" ? new Uint8Array(this.outlen) : s;
617
- return J(e.length >= this.outlen, "out must have at least outlen bytes of space"), Ss(this, e), s === "hex" ? bs(e) : e;
965
+ return J(e.length >= this.outlen, "out must have at least outlen bytes of space"), Qs(this, e), s === "hex" ? bs(e) : e;
618
966
  };
619
967
  at.prototype.final = at.prototype.digest;
620
968
  at.ready = function(s) {
621
- It.ready(function() {
969
+ lt.ready(function() {
622
970
  s();
623
971
  });
624
972
  };
625
973
  function ke(s, e) {
626
974
  for (var t = 0; t < e.length; t++)
627
- s.c === 128 && (s.t += s.c, De(s, !1), s.c = 0), s.b[s.c++] = e[t];
975
+ s.c === 128 && (s.t += s.c, ve(s, !1), s.c = 0), s.b[s.c++] = e[t];
628
976
  }
629
- function Ss(s, e) {
977
+ function Qs(s, e) {
630
978
  for (s.t += s.c; s.c < 128; )
631
979
  s.b[s.c++] = 0;
632
- De(s, !0);
980
+ ve(s, !0);
633
981
  for (var t = 0; t < s.outlen; t++)
634
982
  e[t] = s.h[t >> 2] >> 8 * (t & 3);
635
983
  return e;
636
984
  }
637
985
  function bs(s) {
638
986
  for (var e = "", t = 0; t < s.length; t++)
639
- e += vs(s[t]);
987
+ e += Ds(s[t]);
640
988
  return e;
641
989
  }
642
- function vs(s) {
990
+ function Ds(s) {
643
991
  return s < 16 ? "0" + s.toString(16) : s.toString(16);
644
992
  }
645
- var Ke = at;
646
- S.exports = function(e, t, r, a, n) {
647
- return n !== !0 && (J(e >= ne, "outlen must be at least " + ne + ", was given " + e), J(e <= oe, "outlen must be at most " + oe + ", was given " + e), t != null && J(t.length >= ce, "key must be at least " + ce + ", was given " + t.length), t != null && J(t.length <= Ae, "key must be at most " + Ae + ", was given " + t.length), r != null && J(r.length === ue, "salt must be exactly " + ue + ", was given " + r.length), a != null && J(a.length === he, "personal must be exactly " + he + ", was given " + a.length)), new Ke(e, t, r, a);
993
+ var Ue = at;
994
+ Q.exports = function(e, t, r, a, i) {
995
+ return i !== !0 && (J(e >= ie, "outlen must be at least " + ie + ", was given " + e), J(e <= oe, "outlen must be at most " + oe + ", was given " + e), t != null && J(t.length >= ce, "key must be at least " + ce + ", was given " + t.length), t != null && J(t.length <= ue, "key must be at most " + ue + ", was given " + t.length), r != null && J(r.length === Ae, "salt must be exactly " + Ae + ", was given " + r.length), a != null && J(a.length === ge, "personal must be exactly " + ge + ", was given " + a.length)), new Ue(e, t, r, a);
648
996
  };
649
- S.exports.ready = function(s) {
650
- It.ready(function() {
997
+ Q.exports.ready = function(s) {
998
+ lt.ready(function() {
651
999
  s();
652
1000
  });
653
1001
  };
654
- S.exports.WASM_SUPPORTED = It.SUPPORTED;
655
- S.exports.WASM_LOADED = !1;
656
- var ne = S.exports.BYTES_MIN = 16, oe = S.exports.BYTES_MAX = 64;
657
- S.exports.BYTES = 32;
658
- var ce = S.exports.KEYBYTES_MIN = 16, Ae = S.exports.KEYBYTES_MAX = 64;
659
- S.exports.KEYBYTES = 32;
660
- var ue = S.exports.SALTBYTES = 16, he = S.exports.PERSONALBYTES = 16;
661
- It.ready(function(s) {
662
- s || (S.exports.WASM_LOADED = !0, Ke = It);
1002
+ Q.exports.WASM_SUPPORTED = lt.SUPPORTED;
1003
+ Q.exports.WASM_LOADED = !1;
1004
+ var ie = Q.exports.BYTES_MIN = 16, oe = Q.exports.BYTES_MAX = 64;
1005
+ Q.exports.BYTES = 32;
1006
+ var ce = Q.exports.KEYBYTES_MIN = 16, ue = Q.exports.KEYBYTES_MAX = 64;
1007
+ Q.exports.KEYBYTES = 32;
1008
+ var Ae = Q.exports.SALTBYTES = 16, ge = Q.exports.PERSONALBYTES = 16;
1009
+ lt.ready(function(s) {
1010
+ s || (Q.exports.WASM_LOADED = !0, Ue = lt);
663
1011
  });
664
- var it = {};
665
- Object.defineProperty(it, "__esModule", { value: !0 });
666
- it.bech32m = it.bech32 = void 0;
667
- const Qt = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", Ue = {};
668
- for (let s = 0; s < Qt.length; s++) {
669
- const e = Qt.charAt(s);
670
- Ue[e] = s;
1012
+ var nt = {};
1013
+ Object.defineProperty(nt, "__esModule", { value: !0 });
1014
+ nt.bech32m = nt.bech32 = void 0;
1015
+ const St = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", Ke = {};
1016
+ for (let s = 0; s < St.length; s++) {
1017
+ const e = St.charAt(s);
1018
+ Ke[e] = s;
671
1019
  }
672
1020
  function rt(s) {
673
1021
  const e = s >> 25;
@@ -689,22 +1037,22 @@ function de(s) {
689
1037
  return e;
690
1038
  }
691
1039
  function Ot(s, e, t, r) {
692
- let a = 0, n = 0;
1040
+ let a = 0, i = 0;
693
1041
  const o = (1 << t) - 1, c = [];
694
- for (let A = 0; A < s.length; ++A)
695
- for (a = a << e | s[A], n += e; n >= t; )
696
- n -= t, c.push(a >> n & o);
1042
+ for (let u = 0; u < s.length; ++u)
1043
+ for (a = a << e | s[u], i += e; i >= t; )
1044
+ i -= t, c.push(a >> i & o);
697
1045
  if (r)
698
- n > 0 && c.push(a << t - n & o);
1046
+ i > 0 && c.push(a << t - i & o);
699
1047
  else {
700
- if (n >= e)
1048
+ if (i >= e)
701
1049
  return "Excess padding";
702
- if (a << t - n & o)
1050
+ if (a << t - i & o)
703
1051
  return "Non-zero padding";
704
1052
  }
705
1053
  return c;
706
1054
  }
707
- function Ds(s) {
1055
+ function vs(s) {
708
1056
  return Ot(s, 8, 5, !0);
709
1057
  }
710
1058
  function ks(s) {
@@ -712,7 +1060,7 @@ function ks(s) {
712
1060
  if (Array.isArray(e))
713
1061
  return e;
714
1062
  }
715
- function Ks(s) {
1063
+ function Us(s) {
716
1064
  const e = Ot(s, 5, 8, !1);
717
1065
  if (Array.isArray(e))
718
1066
  return e;
@@ -721,26 +1069,26 @@ function Ks(s) {
721
1069
  function Ne(s) {
722
1070
  let e;
723
1071
  s === "bech32" ? e = 1 : e = 734539939;
724
- function t(o, c, A) {
725
- if (A = A || 90, o.length + 7 + c.length > A)
1072
+ function t(o, c, u) {
1073
+ if (u = u || 90, o.length + 7 + c.length > u)
726
1074
  throw new TypeError("Exceeds length limit");
727
1075
  o = o.toLowerCase();
728
- let u = de(o);
729
- if (typeof u == "string")
730
- throw new Error(u);
1076
+ let A = de(o);
1077
+ if (typeof A == "string")
1078
+ throw new Error(A);
731
1079
  let d = o + "1";
732
- for (let h = 0; h < c.length; ++h) {
733
- const f = c[h];
734
- if (f >> 5 !== 0)
1080
+ for (let g = 0; g < c.length; ++g) {
1081
+ const I = c[g];
1082
+ if (I >> 5 !== 0)
735
1083
  throw new Error("Non 5-bit word");
736
- u = rt(u) ^ f, d += Qt.charAt(f);
1084
+ A = rt(A) ^ I, d += St.charAt(I);
737
1085
  }
738
- for (let h = 0; h < 6; ++h)
739
- u = rt(u);
740
- u ^= e;
741
- for (let h = 0; h < 6; ++h) {
742
- const f = u >> (5 - h) * 5 & 31;
743
- d += Qt.charAt(f);
1086
+ for (let g = 0; g < 6; ++g)
1087
+ A = rt(A);
1088
+ A ^= e;
1089
+ for (let g = 0; g < 6; ++g) {
1090
+ const I = A >> (5 - g) * 5 & 31;
1091
+ d += St.charAt(I);
744
1092
  }
745
1093
  return d;
746
1094
  }
@@ -749,116 +1097,116 @@ function Ne(s) {
749
1097
  return o + " too short";
750
1098
  if (o.length > c)
751
1099
  return "Exceeds length limit";
752
- const A = o.toLowerCase(), u = o.toUpperCase();
753
- if (o !== A && o !== u)
1100
+ const u = o.toLowerCase(), A = o.toUpperCase();
1101
+ if (o !== u && o !== A)
754
1102
  return "Mixed-case string " + o;
755
- o = A;
1103
+ o = u;
756
1104
  const d = o.lastIndexOf("1");
757
1105
  if (d === -1)
758
1106
  return "No separator character for " + o;
759
1107
  if (d === 0)
760
1108
  return "Missing prefix for " + o;
761
- const h = o.slice(0, d), f = o.slice(d + 1);
762
- if (f.length < 6)
1109
+ const g = o.slice(0, d), I = o.slice(d + 1);
1110
+ if (I.length < 6)
763
1111
  return "Data too short";
764
- let C = de(h);
765
- if (typeof C == "string")
766
- return C;
1112
+ let _ = de(g);
1113
+ if (typeof _ == "string")
1114
+ return _;
767
1115
  const x = [];
768
- for (let T = 0; T < f.length; ++T) {
769
- const $ = f.charAt(T), _ = Ue[$];
770
- if (_ === void 0)
771
- return "Unknown character " + $;
772
- C = rt(C) ^ _, !(T + 6 >= f.length) && x.push(_);
1116
+ for (let M = 0; M < I.length; ++M) {
1117
+ const R = I.charAt(M), f = Ke[R];
1118
+ if (f === void 0)
1119
+ return "Unknown character " + R;
1120
+ _ = rt(_) ^ f, !(M + 6 >= I.length) && x.push(f);
773
1121
  }
774
- return C !== e ? "Invalid checksum for " + o : { prefix: h, words: x };
1122
+ return _ !== e ? "Invalid checksum for " + o : { prefix: g, words: x };
775
1123
  }
776
1124
  function a(o, c) {
777
- const A = r(o, c);
778
- if (typeof A == "object")
779
- return A;
1125
+ const u = r(o, c);
1126
+ if (typeof u == "object")
1127
+ return u;
780
1128
  }
781
- function n(o, c) {
782
- const A = r(o, c);
783
- if (typeof A == "object")
784
- return A;
785
- throw new Error(A);
1129
+ function i(o, c) {
1130
+ const u = r(o, c);
1131
+ if (typeof u == "object")
1132
+ return u;
1133
+ throw new Error(u);
786
1134
  }
787
1135
  return {
788
1136
  decodeUnsafe: a,
789
- decode: n,
1137
+ decode: i,
790
1138
  encode: t,
791
- toWords: Ds,
1139
+ toWords: vs,
792
1140
  fromWordsUnsafe: ks,
793
- fromWords: Ks
1141
+ fromWords: Us
794
1142
  };
795
1143
  }
796
- it.bech32 = Ne("bech32");
797
- it.bech32m = Ne("bech32m");
798
- var Us = Xt && Xt.__importDefault || function(s) {
1144
+ nt.bech32 = Ne("bech32");
1145
+ nt.bech32m = Ne("bech32m");
1146
+ var Ks = Xt && Xt.__importDefault || function(s) {
799
1147
  return s && s.__esModule ? s : { default: s };
800
1148
  };
801
- Object.defineProperty(Qe, "__esModule", { value: !0 });
802
- const Ns = Us(S.exports), _t = it, Kt = "asset";
803
- class ht {
1149
+ Object.defineProperty(Se, "__esModule", { value: !0 });
1150
+ const Ns = Ks(Q.exports), ft = nt, Ut = "asset";
1151
+ class gt {
804
1152
  constructor(e) {
805
1153
  this.hashBuf = e;
806
1154
  }
807
1155
  static fromHash(e) {
808
- return new ht(e);
1156
+ return new gt(e);
809
1157
  }
810
1158
  static fromParts(e, t) {
811
1159
  const r = (0, Ns.default)(20).update(new Uint8Array([...e, ...t])).digest("binary");
812
- return ht.fromHash(r);
1160
+ return gt.fromHash(r);
813
1161
  }
814
1162
  static fromBech32(e) {
815
- const { prefix: t, words: r } = _t.bech32.decode(e);
816
- if (t !== Kt)
1163
+ const { prefix: t, words: r } = ft.bech32.decode(e);
1164
+ if (t !== Ut)
817
1165
  throw new Error("Invalid asset fingerprint");
818
- const a = Buffer.from(_t.bech32.fromWords(r));
819
- return ht.fromHash(a);
1166
+ const a = Buffer.from(ft.bech32.fromWords(r));
1167
+ return gt.fromHash(a);
820
1168
  }
821
1169
  fingerprint() {
822
- const e = _t.bech32.toWords(this.hashBuf);
823
- return _t.bech32.encode(Kt, e);
1170
+ const e = ft.bech32.toWords(this.hashBuf);
1171
+ return ft.bech32.encode(Ut, e);
824
1172
  }
825
1173
  hash() {
826
1174
  return Buffer.from(this.hashBuf).toString("hex");
827
1175
  }
828
1176
  prefix() {
829
- return Kt;
1177
+ return Ut;
830
1178
  }
831
1179
  checksum() {
832
1180
  return this.fingerprint().slice(-6);
833
1181
  }
834
1182
  }
835
- var Fs = Qe.default = ht;
836
- const Hs = Fs, Ps = (s, e) => {
837
- const t = Ts(s), r = t.derive(kt + 1852).derive(kt + 1815).derive(kt + e), a = r.derive(0).derive(0).to_raw_key(), n = r.derive(2).derive(0).to_raw_key();
838
- return r.free(), t.free(), { paymentKey: a, stakeKey: n };
839
- }, et = (s) => i.Address.from_bytes(g(s)), Ts = (s) => i.Bip32PrivateKey.from_bytes(g(s)), Ms = (s) => i.DataHash.from_bytes(g(s)), N = (s) => i.Ed25519KeyHash.from_bytes(g(s)), Os = (s) => i.Ed25519Signature.from_bytes(g(s)), bt = (s) => i.NativeScript.from_bytes(g(s)), Vs = (s) => i.PublicKey.from_bytes(g(s)), Fe = (s) => i.PlutusData.from_bytes(g(s)), nt = (s, e) => i.PlutusScript.from_bytes_with_version(g(s), Bt[e]), Ys = (s) => i.ScriptRef.from_bytes(g(s)), Gs = (s) => i.ScriptHash.from_bytes(g(s)), Y = (s) => i.Transaction.from_bytes(g(s)), He = (s) => i.TransactionHash.from_bytes(g(s)), Ie = (s) => i.TransactionUnspentOutput.from_bytes(g(s)), Rs = (s) => i.TransactionWitnessSet.from_bytes(g(s)), Ls = (s) => i.Value.from_bytes(g(s)), H = (s) => i.Address.from_bech32(s), Vt = (s) => i.BaseAddress.from_address(H(s)), Pe = (s) => i.EnterpriseAddress.from_address(H(s)), Te = (s) => i.RewardAddress.from_address(H(s)), b = (s) => Buffer.from(s).toString("hex"), g = (s) => s.length % 2 === 0 && /^[0-9A-F]*$/i.test(s) ? Buffer.from(s, "hex") : Buffer.from(s, "utf-8"), vt = (s) => {
1183
+ var Ps = Se.default = gt;
1184
+ const Fs = Ps, Ts = (s, e) => {
1185
+ const t = Ms(s), r = t.derive(kt + 1852).derive(kt + 1815).derive(kt + e), a = r.derive(0).derive(0).to_raw_key(), i = r.derive(2).derive(0).to_raw_key();
1186
+ return r.free(), t.free(), { paymentKey: a, stakeKey: i };
1187
+ }, et = (s) => n.Address.from_bytes(m(s)), Ms = (s) => n.Bip32PrivateKey.from_bytes(m(s)), Hs = (s) => n.DataHash.from_bytes(m(s)), N = (s) => n.Ed25519KeyHash.from_bytes(m(s)), Os = (s) => n.Ed25519Signature.from_bytes(m(s)), bt = (s) => n.NativeScript.from_bytes(m(s)), Vs = (s) => n.PublicKey.from_bytes(m(s)), Pe = (s) => n.PlutusData.from_bytes(m(s)), it = (s, e) => n.PlutusScript.from_bytes_with_version(m(s), Et[e]), Ys = (s) => n.ScriptRef.from_bytes(m(s)), qs = (s) => n.ScriptHash.from_bytes(m(s)), Y = (s) => n.Transaction.from_bytes(m(s)), Fe = (s) => n.TransactionHash.from_bytes(m(s)), le = (s) => n.TransactionUnspentOutput.from_bytes(m(s)), Gs = (s) => n.TransactionWitnessSet.from_bytes(m(s)), Ls = (s) => n.Value.from_bytes(m(s)), F = (s) => n.Address.from_bech32(s), Vt = (s) => n.BaseAddress.from_address(F(s)), Te = (s) => n.EnterpriseAddress.from_address(F(s)), Me = (s) => n.RewardAddress.from_address(F(s)), b = (s) => Buffer.from(s).toString("hex"), m = (s) => s.length % 2 === 0 && /^[0-9A-F]*$/i.test(s) ? Buffer.from(s, "hex") : Buffer.from(s, "utf-8"), Dt = (s) => {
840
1188
  const e = (t) => {
841
1189
  const r = new Array();
842
1190
  for (let a = 0; a < t.len(); a += 1)
843
- r.push(vt(t.get(a)));
1191
+ r.push(Dt(t.get(a)));
844
1192
  return r;
845
1193
  };
846
1194
  switch (s.kind()) {
847
- case i.NativeScriptKind.ScriptAll: {
1195
+ case n.NativeScriptKind.ScriptAll: {
848
1196
  const t = s.as_script_all();
849
1197
  return {
850
1198
  type: "all",
851
1199
  scripts: e(t.native_scripts())
852
1200
  };
853
1201
  }
854
- case i.NativeScriptKind.ScriptAny: {
1202
+ case n.NativeScriptKind.ScriptAny: {
855
1203
  const t = s.as_script_any();
856
1204
  return {
857
1205
  type: "any",
858
1206
  scripts: e(t.native_scripts())
859
1207
  };
860
1208
  }
861
- case i.NativeScriptKind.ScriptNOfK: {
1209
+ case n.NativeScriptKind.ScriptNOfK: {
862
1210
  const t = s.as_script_n_of_k();
863
1211
  return {
864
1212
  type: "atLeast",
@@ -866,21 +1214,21 @@ const Hs = Fs, Ps = (s, e) => {
866
1214
  scripts: e(t.native_scripts())
867
1215
  };
868
1216
  }
869
- case i.NativeScriptKind.TimelockStart: {
1217
+ case n.NativeScriptKind.TimelockStart: {
870
1218
  const t = s.as_timelock_start();
871
1219
  return {
872
1220
  type: "after",
873
1221
  slot: t.slot_bignum().to_str()
874
1222
  };
875
1223
  }
876
- case i.NativeScriptKind.TimelockExpiry: {
1224
+ case n.NativeScriptKind.TimelockExpiry: {
877
1225
  const t = s.as_timelock_expiry();
878
1226
  return {
879
1227
  type: "before",
880
1228
  slot: t.slot_bignum().to_str()
881
1229
  };
882
1230
  }
883
- case i.NativeScriptKind.ScriptPubkey: {
1231
+ case n.NativeScriptKind.ScriptPubkey: {
884
1232
  const t = s.as_script_pubkey();
885
1233
  return {
886
1234
  type: "sig",
@@ -890,121 +1238,121 @@ const Hs = Fs, Ps = (s, e) => {
890
1238
  default:
891
1239
  throw new Error(`Script Kind: ${s.kind()}, is not supported`);
892
1240
  }
893
- }, Dt = (s) => {
1241
+ }, vt = (s) => {
894
1242
  const e = (t) => {
895
- const r = i.NativeScripts.new();
1243
+ const r = n.NativeScripts.new();
896
1244
  return t.forEach((a) => {
897
- r.add(Dt(a));
1245
+ r.add(vt(a));
898
1246
  }), r;
899
1247
  };
900
1248
  switch (s.type) {
901
1249
  case "all":
902
- return i.NativeScript.new_script_all(i.ScriptAll.new(e(s.scripts)));
1250
+ return n.NativeScript.new_script_all(n.ScriptAll.new(e(s.scripts)));
903
1251
  case "any":
904
- return i.NativeScript.new_script_any(i.ScriptAny.new(e(s.scripts)));
1252
+ return n.NativeScript.new_script_any(n.ScriptAny.new(e(s.scripts)));
905
1253
  case "atLeast":
906
- return i.NativeScript.new_script_n_of_k(i.ScriptNOfK.new(s.required, e(s.scripts)));
1254
+ return n.NativeScript.new_script_n_of_k(n.ScriptNOfK.new(s.required, e(s.scripts)));
907
1255
  case "after":
908
- return i.NativeScript.new_timelock_start(i.TimelockStart.new_timelockstart(i.BigNum.from_str(s.slot)));
1256
+ return n.NativeScript.new_timelock_start(n.TimelockStart.new_timelockstart(n.BigNum.from_str(s.slot)));
909
1257
  case "before":
910
- return i.NativeScript.new_timelock_expiry(i.TimelockExpiry.new_timelockexpiry(i.BigNum.from_str(s.slot)));
1258
+ return n.NativeScript.new_timelock_expiry(n.TimelockExpiry.new_timelockexpiry(n.BigNum.from_str(s.slot)));
911
1259
  case "sig":
912
- return i.NativeScript.new_script_pubkey(i.ScriptPubkey.new(N(s.keyHash)));
1260
+ return n.NativeScript.new_script_pubkey(n.ScriptPubkey.new(N(s.keyHash)));
913
1261
  }
914
- }, mt = (s) => {
915
- var r, a, n;
1262
+ }, wt = (s) => {
1263
+ var r, a, i;
916
1264
  const e = (o) => {
917
1265
  const c = [];
918
- for (let A = 0; A < o.len(); A += 1)
919
- c.push(mt(o.get(A)));
1266
+ for (let u = 0; u < o.len(); u += 1)
1267
+ c.push(wt(o.get(u)));
920
1268
  return c;
921
1269
  }, t = (o) => {
922
1270
  const c = /* @__PURE__ */ new Map();
923
- for (let A = 0; A < o.len(); A += 1) {
924
- const u = o.keys().get(A), d = o.get(u) ?? i.PlutusData.from_hex(Q("NO_ITEM_FOUND_INSIDE_GOLD_ROOM"));
925
- c.set(mt(u), mt(d));
1271
+ for (let u = 0; u < o.len(); u += 1) {
1272
+ const A = o.keys().get(u), d = o.get(A) ?? n.PlutusData.from_hex(S("NO_ITEM_FOUND_INSIDE_GOLD_ROOM"));
1273
+ c.set(wt(A), wt(d));
926
1274
  }
927
1275
  return c;
928
1276
  };
929
1277
  switch (s.kind()) {
930
- case i.PlutusDataKind.Bytes:
1278
+ case n.PlutusDataKind.Bytes:
931
1279
  return b(s.as_bytes() ?? new Uint8Array());
932
- case i.PlutusDataKind.Integer:
1280
+ case n.PlutusDataKind.Integer:
933
1281
  return parseInt(((r = s.as_integer()) == null ? void 0 : r.to_str()) ?? "0", 10);
934
- case i.PlutusDataKind.List:
935
- return e(s.as_list() ?? i.PlutusList.new());
936
- case i.PlutusDataKind.Map:
937
- return t(s.as_map() ?? i.PlutusMap.new());
938
- case i.PlutusDataKind.ConstrPlutusData:
1282
+ case n.PlutusDataKind.List:
1283
+ return e(s.as_list() ?? n.PlutusList.new());
1284
+ case n.PlutusDataKind.Map:
1285
+ return t(s.as_map() ?? n.PlutusMap.new());
1286
+ case n.PlutusDataKind.ConstrPlutusData:
939
1287
  return {
940
1288
  alternative: parseInt(((a = s.as_constr_plutus_data()) == null ? void 0 : a.alternative().to_str()) ?? "0", 10),
941
- fields: e(((n = s.as_constr_plutus_data()) == null ? void 0 : n.data()) ?? i.PlutusList.new())
1289
+ fields: e(((i = s.as_constr_plutus_data()) == null ? void 0 : i.data()) ?? n.PlutusList.new())
942
1290
  };
943
1291
  default:
944
1292
  throw new Error(`PlutusData Kind: ${s.kind()}, is not supported`);
945
1293
  }
946
1294
  }, Z = (s) => {
947
1295
  const e = (t) => {
948
- const r = i.PlutusList.new();
1296
+ const r = n.PlutusList.new();
949
1297
  return t.forEach((a) => {
950
1298
  r.add(Z(a));
951
1299
  }), r;
952
1300
  };
953
1301
  switch (typeof s) {
954
1302
  case "string":
955
- return i.PlutusData.new_bytes(g(s));
1303
+ return n.PlutusData.new_bytes(m(s));
956
1304
  case "number":
957
- return i.PlutusData.new_integer(i.BigInt.from_str(s.toString()));
1305
+ return n.PlutusData.new_integer(n.BigInt.from_str(s.toString()));
958
1306
  case "object":
959
1307
  if (s instanceof Array) {
960
1308
  const t = e(s);
961
- return i.PlutusData.new_list(t);
1309
+ return n.PlutusData.new_list(t);
962
1310
  } else if (s instanceof Map) {
963
- const t = i.PlutusMap.new();
1311
+ const t = n.PlutusMap.new();
964
1312
  return s.forEach((r, a) => {
965
1313
  t.insert(Z(a), Z(r));
966
- }), i.PlutusData.new_map(t);
1314
+ }), n.PlutusData.new_map(t);
967
1315
  } else
968
- return i.PlutusData.new_constr_plutus_data(i.ConstrPlutusData.new(i.BigNum.from_str(s.alternative.toString()), e(s.fields)));
1316
+ return n.PlutusData.new_constr_plutus_data(n.ConstrPlutusData.new(n.BigNum.from_str(s.alternative.toString()), e(s.fields)));
969
1317
  }
970
- }, $s = (s) => {
971
- const e = i.Relays.new();
1318
+ }, Rs = (s) => {
1319
+ const e = n.Relays.new();
972
1320
  throw s.relays.forEach((t) => {
973
- e.add(qs(t));
1321
+ e.add($s(t));
974
1322
  }), new Error("toPoolParams not implemented.");
975
- }, Me = (s) => {
1323
+ }, He = (s) => {
976
1324
  const e = (t) => es[t];
977
- return i.Redeemer.new(e(s.tag), i.BigNum.from_str(s.index.toString()), Z(s.data), i.ExUnits.new(i.BigNum.from_str(s.budget.mem.toString()), i.BigNum.from_str(s.budget.steps.toString())));
978
- }, qs = (s) => {
1325
+ return n.Redeemer.new(e(s.tag), n.BigNum.from_str(s.index.toString()), Z(s.data), n.ExUnits.new(n.BigNum.from_str(s.budget.mem.toString()), n.BigNum.from_str(s.budget.steps.toString())));
1326
+ }, $s = (s) => {
979
1327
  switch (s.type) {
980
1328
  case "SingleHostAddr": {
981
- const e = s.IPV4 ? i.Ipv4.new(new Uint8Array(s.IPV4.split(".").map((r) => parseInt(r)))) : void 0, t = s.IPV6 ? i.Ipv6.new(g(s.IPV6.replaceAll(":", ""))) : void 0;
982
- return i.Relay.new_single_host_addr(i.SingleHostAddr.new(s.port, e, t));
1329
+ const e = s.IPV4 ? n.Ipv4.new(new Uint8Array(s.IPV4.split(".").map((r) => parseInt(r)))) : void 0, t = s.IPV6 ? n.Ipv6.new(m(s.IPV6.replaceAll(":", ""))) : void 0;
1330
+ return n.Relay.new_single_host_addr(n.SingleHostAddr.new(s.port, e, t));
983
1331
  }
984
1332
  case "SingleHostName":
985
- return i.Relay.new_single_host_name(i.SingleHostName.new(s.port, i.DNSRecordAorAAAA.new(s.domainName)));
1333
+ return n.Relay.new_single_host_name(n.SingleHostName.new(s.port, n.DNSRecordAorAAAA.new(s.domainName)));
986
1334
  case "MultiHostName":
987
- return i.Relay.new_multi_host_name(i.MultiHostName.new(i.DNSRecordSRV.new(s.domainName)));
1335
+ return n.Relay.new_multi_host_name(n.MultiHostName.new(n.DNSRecordSRV.new(s.domainName)));
988
1336
  }
989
1337
  }, Oe = (s) => {
990
1338
  if (s.is_plutus_script()) {
991
1339
  const t = s.plutus_script();
992
1340
  return {
993
1341
  code: t.to_hex(),
994
- version: Object.keys(Bt).find((r) => Bt[r].to_hex() === t.language_version().to_hex())
1342
+ version: Object.keys(Et).find((r) => Et[r].to_hex() === t.language_version().to_hex())
995
1343
  };
996
1344
  }
997
1345
  const e = s.native_script();
998
- return vt(e);
999
- }, lt = (s) => {
1346
+ return Dt(e);
1347
+ }, ht = (s) => {
1000
1348
  if ("code" in s) {
1001
- const e = nt(s.code, s.version);
1002
- return i.ScriptRef.new_plutus_script(e);
1349
+ const e = it(s.code, s.version);
1350
+ return n.ScriptRef.new_plutus_script(e);
1003
1351
  }
1004
- return i.ScriptRef.new_native_script(Dt(s));
1005
- }, St = (s) => {
1006
- var a, n, o;
1007
- const e = s.output().has_data_hash() ? (a = s.output().data_hash()) == null ? void 0 : a.to_hex() : void 0, t = s.output().has_plutus_data() ? (n = s.output().plutus_data()) == null ? void 0 : n.to_hex() : void 0, r = s.output().has_script_ref() ? (o = s.output().script_ref()) == null ? void 0 : o.to_hex() : void 0;
1352
+ return n.ScriptRef.new_native_script(vt(s));
1353
+ }, Qt = (s) => {
1354
+ var a, i, o;
1355
+ const e = s.output().has_data_hash() ? (a = s.output().data_hash()) == null ? void 0 : a.to_hex() : void 0, t = s.output().has_plutus_data() ? (i = s.output().plutus_data()) == null ? void 0 : i.to_hex() : void 0, r = s.output().has_script_ref() ? (o = s.output().script_ref()) == null ? void 0 : o.to_hex() : void 0;
1008
1356
  return {
1009
1357
  input: {
1010
1358
  outputIndex: s.input().index(),
@@ -1019,121 +1367,121 @@ const Hs = Fs, Ps = (s, e) => {
1019
1367
  }
1020
1368
  };
1021
1369
  }, V = (s) => {
1022
- const e = i.TransactionInput.new(He(s.input.txHash), s.input.outputIndex), t = i.TransactionOutput.new(H(s.output.address), Et(s.output.amount));
1023
- return s.output.dataHash !== void 0 && t.set_data_hash(Ms(s.output.dataHash)), s.output.plutusData !== void 0 && t.set_plutus_data(Fe(s.output.plutusData)), s.output.scriptRef !== void 0 && t.set_script_ref(Ys(s.output.scriptRef)), i.TransactionUnspentOutput.new(e, t);
1024
- }, le = (s) => {
1370
+ const e = n.TransactionInput.new(Fe(s.input.txHash), s.input.outputIndex), t = n.TransactionOutput.new(F(s.output.address), Bt(s.output.amount));
1371
+ return s.output.dataHash !== void 0 && t.set_data_hash(Hs(s.output.dataHash)), s.output.plutusData !== void 0 && t.set_plutus_data(Pe(s.output.plutusData)), s.output.scriptRef !== void 0 && t.set_script_ref(Ys(s.output.scriptRef)), n.TransactionUnspentOutput.new(e, t);
1372
+ }, he = (s) => {
1025
1373
  const e = s.split(".")[1] ?? "0", t = `${parseInt(e, 10)}`, r = "1" + "0".repeat(e.length);
1026
- return i.UnitInterval.new(i.BigNum.from_str(t), i.BigNum.from_str(r));
1027
- }, Q = (s) => s.length % 2 === 0 && /^[0-9A-F]*$/i.test(s) ? s : b(Buffer.from(s, "utf-8")), Yt = (s) => Buffer.from(s, "hex").toString("utf-8"), Ve = (s) => {
1374
+ return n.UnitInterval.new(n.BigNum.from_str(t), n.BigNum.from_str(r));
1375
+ }, S = (s) => s.length % 2 === 0 && /^[0-9A-F]*$/i.test(s) ? s : b(Buffer.from(s, "utf-8")), Yt = (s) => Buffer.from(s, "hex").toString("utf-8"), Ve = (s) => {
1028
1376
  const e = [
1029
1377
  { unit: "lovelace", quantity: s.coin().to_str() }
1030
1378
  ], t = s.multiasset();
1031
1379
  if (t !== void 0) {
1032
1380
  const r = t.keys();
1033
1381
  for (let a = 0; a < r.len(); a += 1) {
1034
- const n = r.get(a), o = t.get(n);
1382
+ const i = r.get(a), o = t.get(i);
1035
1383
  if (o !== void 0) {
1036
1384
  const c = o.keys();
1037
- for (let A = 0; A < c.len(); A += 1) {
1038
- const u = c.get(A), d = o.get(u) ?? i.BigNum.from_str("0"), h = n.to_hex() + b(u.name());
1039
- e.push({ unit: h, quantity: d.to_str() });
1385
+ for (let u = 0; u < c.len(); u += 1) {
1386
+ const A = c.get(u), d = o.get(A) ?? n.BigNum.from_str("0"), g = i.to_hex() + b(A.name());
1387
+ e.push({ unit: g, quantity: d.to_str() });
1040
1388
  }
1041
1389
  }
1042
1390
  }
1043
1391
  }
1044
1392
  return e;
1045
- }, Et = (s) => {
1046
- const e = s.find((n) => n.unit === "lovelace"), t = Array.from(new Set(s.filter((n) => n.unit !== "lovelace").map((n) => n.unit.slice(0, F)))), r = i.MultiAsset.new();
1047
- t.forEach((n) => {
1048
- const o = i.Assets.new();
1049
- s.filter((c) => c.unit.slice(0, F) === n).forEach((c) => {
1050
- o.insert(i.AssetName.new(g(c.unit.slice(F))), i.BigNum.from_str(c.quantity));
1051
- }), r.insert(Gs(n), o);
1393
+ }, Bt = (s) => {
1394
+ const e = s.find((i) => i.unit === "lovelace"), t = Array.from(new Set(s.filter((i) => i.unit !== "lovelace").map((i) => i.unit.slice(0, P)))), r = n.MultiAsset.new();
1395
+ t.forEach((i) => {
1396
+ const o = n.Assets.new();
1397
+ s.filter((c) => c.unit.slice(0, P) === i).forEach((c) => {
1398
+ o.insert(n.AssetName.new(m(c.unit.slice(P))), n.BigNum.from_str(c.quantity));
1399
+ }), r.insert(qs(i), o);
1052
1400
  });
1053
- const a = i.Value.new(i.BigNum.from_str(e ? e.quantity : "0"));
1401
+ const a = n.Value.new(n.BigNum.from_str(e ? e.quantity : "0"));
1054
1402
  return (s.length > 1 || !e) && a.set_multiasset(r), a;
1055
- }, fe = (s, e, t) => i.BaseAddress.new(s, i.StakeCredential.from_keyhash(e), i.StakeCredential.from_keyhash(t)), Ye = (s, e = "") => i.Bip32PrivateKey.from_bip39_entropy(g(s), g(Q(e))), ge = (s) => i.DataCost.new_coins_per_byte(i.BigNum.from_str(s)), zs = (s) => {
1403
+ }, Ie = (s, e, t) => n.BaseAddress.new(s, n.StakeCredential.from_keyhash(e), n.StakeCredential.from_keyhash(t)), Ye = (s, e = "") => n.Bip32PrivateKey.from_bip39_entropy(m(s), m(S(e))), me = (s) => n.DataCost.new_coins_per_byte(n.BigNum.from_str(s)), zs = (s) => {
1056
1404
  if (typeof s != "object" || !("input" in s))
1057
- return i.DatumSource.new(Z(s));
1405
+ return n.DatumSource.new(Z(s));
1058
1406
  const e = V(s);
1059
1407
  if (e.output().has_plutus_data())
1060
- return i.DatumSource.new_ref_input(e.input());
1408
+ return n.DatumSource.new_ref_input(e.input());
1061
1409
  throw new Error(`No inline datum found in UTxO: ${e.input().transaction_id().to_hex()}`);
1062
- }, _e = (s, e) => i.EnterpriseAddress.new(s, i.StakeCredential.from_keyhash(e)), pe = (s, e) => {
1410
+ }, fe = (s, e) => n.EnterpriseAddress.new(s, n.StakeCredential.from_keyhash(e)), pe = (s, e) => {
1063
1411
  if (typeof s == "string")
1064
- return i.MintWitness.new_native_script(bt(s));
1412
+ return n.MintWitness.new_native_script(bt(s));
1065
1413
  if (e === void 0)
1066
1414
  throw new Error("Minting with plutus requires a redeemer to be defined");
1067
1415
  if (e.tag !== "MINT")
1068
1416
  throw new Error("Minting redeemer's tag must be defined as 'MINT'");
1069
- return i.MintWitness.new_plutus_script(Ge(s), Me({
1417
+ return n.MintWitness.new_plutus_script(qe(s), He({
1070
1418
  tag: "MINT",
1071
1419
  index: 0,
1072
- budget: Be,
1420
+ budget: Ee,
1073
1421
  data: {
1074
1422
  alternative: 0,
1075
1423
  fields: []
1076
1424
  },
1077
1425
  ...e
1078
1426
  }));
1079
- }, Ft = (s, e) => i.RewardAddress.new(s, i.StakeCredential.from_keyhash(e)), Ge = (s) => {
1427
+ }, Pt = (s, e) => n.RewardAddress.new(s, n.StakeCredential.from_keyhash(e)), qe = (s) => {
1080
1428
  if ("code" in s)
1081
- return i.PlutusScriptSource.new(nt(s.code, s.version));
1429
+ return n.PlutusScriptSource.new(it(s.code, s.version));
1082
1430
  const e = V(s);
1083
1431
  if (e.output().has_script_ref()) {
1084
1432
  const t = e.output().script_ref();
1085
1433
  if (t.is_plutus_script()) {
1086
- const r = Oe(t), a = nt(r.code, r.version).hash();
1087
- return i.PlutusScriptSource.new_ref_input_with_lang_ver(a, e.input(), Bt[r.version]);
1434
+ const r = Oe(t), a = it(r.code, r.version).hash();
1435
+ return n.PlutusScriptSource.new_ref_input_with_lang_ver(a, e.input(), Et[r.version]);
1088
1436
  }
1089
1437
  }
1090
1438
  throw new Error(`No plutus script reference found in UTxO: ${e.input().transaction_id().to_hex()}`);
1091
1439
  }, pt = (s) => {
1092
- const e = i.ScriptPubkey.new(s);
1093
- return i.NativeScript.new_script_pubkey(e);
1094
- }, Js = (s = G) => {
1095
- const e = i.TransactionBuilderConfigBuilder.new().coins_per_utxo_byte(i.BigNum.from_str(s.coinsPerUTxOSize)).ex_unit_prices(i.ExUnitPrices.new(le(s.priceMem.toString()), le(s.priceStep.toString()))).fee_algo(i.LinearFee.new(i.BigNum.from_str(s.minFeeA.toString()), i.BigNum.from_str(s.minFeeB.toString()))).key_deposit(i.BigNum.from_str(s.keyDeposit)).max_tx_size(s.maxTxSize).max_value_size(parseInt(s.maxValSize, 10)).pool_deposit(i.BigNum.from_str(s.poolDeposit)).build();
1096
- return i.TransactionBuilder.new(e);
1097
- }, Ce = (s) => {
1098
- const e = i.TxInputsBuilder.new();
1099
- return s.map((t) => t instanceof i.TransactionUnspentOutput ? t : V(t)).forEach((t) => {
1440
+ const e = n.ScriptPubkey.new(s);
1441
+ return n.NativeScript.new_script_pubkey(e);
1442
+ }, Js = (s = q) => {
1443
+ const e = n.TransactionBuilderConfigBuilder.new().coins_per_utxo_byte(n.BigNum.from_str(s.coinsPerUTxOSize)).ex_unit_prices(n.ExUnitPrices.new(he(s.priceMem.toString()), he(s.priceStep.toString()))).fee_algo(n.LinearFee.new(n.BigNum.from_str(s.minFeeA.toString()), n.BigNum.from_str(s.minFeeB.toString()))).key_deposit(n.BigNum.from_str(s.keyDeposit)).max_tx_size(s.maxTxSize).max_value_size(parseInt(s.maxValSize, 10)).pool_deposit(n.BigNum.from_str(s.poolDeposit)).build();
1444
+ return n.TransactionBuilder.new(e);
1445
+ }, _e = (s) => {
1446
+ const e = n.TxInputsBuilder.new();
1447
+ return s.map((t) => t instanceof n.TransactionUnspentOutput ? t : V(t)).forEach((t) => {
1100
1448
  e.add_input(t.output().address(), t.input(), t.output().amount());
1101
1449
  }), e;
1102
- }, Ct = (s) => {
1450
+ }, _t = (s) => {
1103
1451
  if (typeof s == "string")
1104
- return i.TransactionOutputBuilder.new().with_address(H(s));
1105
- let e = i.TransactionOutputBuilder.new().with_address(H(s.address));
1452
+ return n.TransactionOutputBuilder.new().with_address(F(s));
1453
+ let e = n.TransactionOutputBuilder.new().with_address(F(s.address));
1106
1454
  if (s.datum) {
1107
1455
  const { value: t, inline: r } = s.datum, a = Z(t);
1108
- e = e.with_data_hash(i.hash_plutus_data(a)), r && (e = e.with_plutus_data(a));
1456
+ e = e.with_data_hash(n.hash_plutus_data(a)), r && (e = e.with_plutus_data(a));
1109
1457
  }
1110
1458
  if (s.script) {
1111
- const t = lt(s.script);
1459
+ const t = ht(s.script);
1112
1460
  e = e.with_script_ref(t);
1113
1461
  }
1114
1462
  return e;
1115
1463
  }, ot = (s) => {
1116
- const e = s.slice(0, F), t = s.includes(".") ? Q(s.split(".")[1]) : s.slice(F);
1464
+ const e = s.slice(0, P), t = s.includes(".") ? S(s.split(".")[1]) : s.slice(P);
1117
1465
  return { policyId: e, assetName: t };
1118
- }, I = (s) => j.isAxiosError(s) ? s.response ? JSON.stringify({
1466
+ }, l = (s) => j.isAxiosError(s) ? s.response ? JSON.stringify({
1119
1467
  data: s.response.data,
1120
1468
  headers: s.response.headers,
1121
1469
  status: s.response.status
1122
1470
  }) : s.request ? JSON.stringify(s.request) : s.message : JSON.stringify(s), cr = (s) => {
1123
1471
  const e = Z(s);
1124
- return i.hash_plutus_data(e).to_hex();
1125
- }, Ar = (s, e = Date.now()) => {
1472
+ return n.hash_plutus_data(e).to_hex();
1473
+ }, ur = (s, e = Date.now()) => {
1126
1474
  if (xt[s]) {
1127
- const [t, r, a, n] = xt[s];
1128
- return parseInt(i.BigNum.from_str(e.toString()).div_floor(i.BigNum.from_str("1000")).checked_sub(i.BigNum.from_str(a)).div_floor(i.BigNum.from_str(n)).checked_add(i.BigNum.from_str(t)).to_str(), 10);
1475
+ const [t, r, a, i] = xt[s];
1476
+ return parseInt(n.BigNum.from_str(e.toString()).div_floor(n.BigNum.from_str("1000")).checked_sub(n.BigNum.from_str(a)).div_floor(n.BigNum.from_str(i)).checked_add(n.BigNum.from_str(t)).to_str(), 10);
1129
1477
  }
1130
1478
  throw new Error(`Couldn't resolve EpochNo for network: ${s}`);
1131
- }, Ws = (s, e) => Hs.fromParts(g(s), g(e)).fingerprint(), ur = (s, e) => ss[s][e], hr = (s) => Dt(s).hash().to_hex(), st = (s) => {
1479
+ }, Ws = (s, e) => Fs.fromParts(m(s), m(e)).fingerprint(), Ar = (s, e) => ss[s][e], gr = (s) => vt(s).hash().to_hex(), st = (s) => {
1132
1480
  var e, t;
1133
1481
  try {
1134
1482
  const r = [
1135
1483
  (e = Vt(s)) == null ? void 0 : e.payment_cred().to_keyhash(),
1136
- (t = Pe(s)) == null ? void 0 : t.payment_cred().to_keyhash()
1484
+ (t = Te(s)) == null ? void 0 : t.payment_cred().to_keyhash()
1137
1485
  ].find((a) => a !== void 0);
1138
1486
  if (r !== void 0)
1139
1487
  return r.to_hex();
@@ -1142,41 +1490,41 @@ const Hs = Fs, Ps = (s, e) => {
1142
1490
  throw new Error(`An error occurred during resolvePaymentKeyHash: ${r}.`);
1143
1491
  }
1144
1492
  }, dr = (s, e = 0) => {
1145
- const t = nt(s.code, s.version);
1146
- return i.EnterpriseAddress.new(e, i.StakeCredential.from_scripthash(t.hash())).to_address().to_bech32();
1147
- }, Ir = (s) => {
1493
+ const t = it(s.code, s.version);
1494
+ return n.EnterpriseAddress.new(e, n.StakeCredential.from_scripthash(t.hash())).to_address().to_bech32();
1495
+ }, lr = (s) => {
1148
1496
  try {
1149
- const e = Pe(s), t = e == null ? void 0 : e.payment_cred().to_scripthash();
1497
+ const e = Te(s), t = e == null ? void 0 : e.payment_cred().to_scripthash();
1150
1498
  if (t !== void 0)
1151
1499
  return t.to_hex();
1152
1500
  throw new Error(`Couldn't resolve script hash from address: ${s}`);
1153
1501
  } catch (e) {
1154
1502
  throw new Error(`An error occurred during resolveScriptHash: ${e}.`);
1155
1503
  }
1156
- }, lr = (s) => i.Ed25519KeyHash.from_hex(s).to_bech32("pool1"), fr = (s) => {
1157
- const e = ye(s.join(" ")), t = Ye(e), r = t.to_bech32();
1504
+ }, hr = (s) => n.Ed25519KeyHash.from_hex(s).to_bech32("pool1"), Ir = (s) => {
1505
+ const e = Ce(s.join(" ")), t = Ye(e), r = t.to_bech32();
1158
1506
  return t.free(), r;
1159
- }, gr = (s) => lt(s).to_hex(), _r = (s, e = Date.now()) => {
1507
+ }, mr = (s) => ht(s).to_hex(), fr = (s, e = Date.now()) => {
1160
1508
  if (xt[s]) {
1161
1509
  const [t, r, a] = xt[s];
1162
- return i.BigNum.from_str(e.toString()).div_floor(i.BigNum.from_str("1000")).checked_sub(i.BigNum.from_str(a)).checked_add(i.BigNum.from_str(r)).to_str();
1510
+ return n.BigNum.from_str(e.toString()).div_floor(n.BigNum.from_str("1000")).checked_sub(n.BigNum.from_str(a)).checked_add(n.BigNum.from_str(r)).to_str();
1163
1511
  }
1164
1512
  throw new Error(`Couldn't resolve SlotNo for network: ${s}`);
1165
- }, Gt = (s) => {
1513
+ }, qt = (s) => {
1166
1514
  try {
1167
- const e = H(s), t = Vt(s), r = t == null ? void 0 : t.stake_cred().to_keyhash();
1515
+ const e = F(s), t = Vt(s), r = t == null ? void 0 : t.stake_cred().to_keyhash();
1168
1516
  if (r !== void 0)
1169
- return Ft(e.network_id(), r).to_address().to_bech32();
1517
+ return Pt(e.network_id(), r).to_address().to_bech32();
1170
1518
  throw new Error(`Couldn't resolve reward address from address: ${s}`);
1171
1519
  } catch (e) {
1172
1520
  throw new Error(`An error occurred during resolveRewardAddress: ${e}.`);
1173
1521
  }
1174
- }, ut = (s) => {
1522
+ }, At = (s) => {
1175
1523
  var e, t;
1176
1524
  try {
1177
1525
  const r = [
1178
1526
  (e = Vt(s)) == null ? void 0 : e.stake_cred().to_keyhash(),
1179
- (t = Te(s)) == null ? void 0 : t.payment_cred().to_keyhash()
1527
+ (t = Me(s)) == null ? void 0 : t.payment_cred().to_keyhash()
1180
1528
  ].find((a) => a !== void 0);
1181
1529
  if (r !== void 0)
1182
1530
  return r.to_hex();
@@ -1184,30 +1532,30 @@ const Hs = Fs, Ps = (s, e) => {
1184
1532
  } catch (r) {
1185
1533
  throw new Error(`An error occurred during resolveStakeKeyHash: ${r}.`);
1186
1534
  }
1187
- }, Re = (s, e = G.minFeeA, t = G.minFeeB) => (BigInt(e) * BigInt(s) + BigInt(t)).toString(), js = (s) => {
1535
+ }, Ge = (s, e = q.minFeeA, t = q.minFeeB) => (BigInt(e) * BigInt(s) + BigInt(t)).toString(), js = (s) => {
1188
1536
  const e = Y(s).body();
1189
- return i.hash_transaction(e).to_hex();
1537
+ return n.hash_transaction(e).to_hex();
1190
1538
  }, pr = (s = "", e = 32) => {
1191
1539
  if (e <= 0 || e > 2048)
1192
1540
  throw new Error("Length must be bewteen 1 and 2048");
1193
- const r = we("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")(e);
1194
- return Q(`${s}${r}`);
1541
+ const r = ye("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")(e);
1542
+ return S(`${s}${r}`);
1195
1543
  }, Le = (s, e) => {
1196
1544
  const t = s.vkeys();
1197
1545
  if (t !== void 0) {
1198
1546
  const r = /* @__PURE__ */ new Set();
1199
- for (let n = 0; n < t.len(); n += 1)
1200
- r.add(t.get(n).to_hex());
1201
- for (let n = 0; n < e.len(); n += 1)
1202
- r.add(e.get(n).to_hex());
1203
- const a = i.Vkeywitnesses.new();
1204
- return r.forEach((n) => {
1205
- a.add(i.Vkeywitness.from_hex(n));
1547
+ for (let i = 0; i < t.len(); i += 1)
1548
+ r.add(t.get(i).to_hex());
1549
+ for (let i = 0; i < e.len(); i += 1)
1550
+ r.add(e.get(i).to_hex());
1551
+ const a = n.Vkeywitnesses.new();
1552
+ return r.forEach((i) => {
1553
+ a.add(n.Vkeywitness.from_hex(i));
1206
1554
  }), a;
1207
1555
  }
1208
1556
  return e;
1209
- }, Cr = (s) => mt(Fe(s)), wr = (s) => Y(s).to_js_value();
1210
- class yr {
1557
+ }, _r = (s) => wt(Pe(s)), yr = (s) => Y(s).to_js_value();
1558
+ class Cr {
1211
1559
  _axiosInstance;
1212
1560
  constructor(...e) {
1213
1561
  if (typeof e[0] == "string" && e[0].startsWith("http"))
@@ -1221,7 +1569,7 @@ class yr {
1221
1569
  }
1222
1570
  }
1223
1571
  async fetchAccountInfo(e) {
1224
- const t = e.startsWith("addr") ? Gt(e) : e;
1572
+ const t = e.startsWith("addr") ? qt(e) : e;
1225
1573
  try {
1226
1574
  const { data: r, status: a } = await this._axiosInstance.get(`accounts/${t}`);
1227
1575
  if (a === 200)
@@ -1232,54 +1580,54 @@ class yr {
1232
1580
  rewards: r.withdrawable_amount,
1233
1581
  withdrawals: r.withdrawals_sum
1234
1582
  };
1235
- throw I(r);
1583
+ throw l(r);
1236
1584
  } catch (r) {
1237
- throw I(r);
1585
+ throw l(r);
1238
1586
  }
1239
1587
  }
1240
1588
  async fetchAddressUTxOs(e, t) {
1241
- const r = t !== void 0 ? `/${t}` : "", a = `addresses/${e}/utxos` + r, n = async (A = 1, u = []) => {
1242
- const { data: d, status: h } = await this._axiosInstance.get(`${a}?page=${A}`);
1243
- if (h === 200)
1244
- return d.length > 0 ? n(A + 1, [...u, ...await Promise.all(d.map(c))]) : u;
1245
- throw I(d);
1246
- }, o = async (A) => {
1247
- if (A) {
1248
- const { data: u, status: d } = await this._axiosInstance.get(`scripts/${A}`);
1589
+ const r = t !== void 0 ? `/${t}` : "", a = `addresses/${e}/utxos` + r, i = async (u = 1, A = []) => {
1590
+ const { data: d, status: g } = await this._axiosInstance.get(`${a}?page=${u}`);
1591
+ if (g === 200)
1592
+ return d.length > 0 ? i(u + 1, [...A, ...await Promise.all(d.map(c))]) : A;
1593
+ throw l(d);
1594
+ }, o = async (u) => {
1595
+ if (u) {
1596
+ const { data: A, status: d } = await this._axiosInstance.get(`scripts/${u}`);
1249
1597
  if (d === 200) {
1250
- const h = u.type.startsWith("plutus") ? {
1251
- code: await this.fetchPlutusScriptCBOR(A),
1252
- version: u.type.replace("plutus", "")
1253
- } : await this.fetchNativeScriptJSON(A);
1254
- return lt(h).to_hex();
1598
+ const g = A.type.startsWith("plutus") ? {
1599
+ code: await this.fetchPlutusScriptCBOR(u),
1600
+ version: A.type.replace("plutus", "")
1601
+ } : await this.fetchNativeScriptJSON(u);
1602
+ return ht(g).to_hex();
1255
1603
  }
1256
- throw I(u);
1604
+ throw l(A);
1257
1605
  }
1258
- }, c = async (A) => ({
1606
+ }, c = async (u) => ({
1259
1607
  input: {
1260
- outputIndex: A.output_index,
1261
- txHash: A.tx_hash
1608
+ outputIndex: u.output_index,
1609
+ txHash: u.tx_hash
1262
1610
  },
1263
1611
  output: {
1264
1612
  address: e,
1265
- amount: A.amount,
1266
- dataHash: A.data_hash ?? void 0,
1267
- plutusData: A.inline_datum ?? void 0,
1268
- scriptRef: await o(A.reference_script_hash)
1613
+ amount: u.amount,
1614
+ dataHash: u.data_hash ?? void 0,
1615
+ plutusData: u.inline_datum ?? void 0,
1616
+ scriptRef: await o(u.reference_script_hash)
1269
1617
  }
1270
1618
  });
1271
1619
  try {
1272
- return await n();
1620
+ return await i();
1273
1621
  } catch {
1274
1622
  return [];
1275
1623
  }
1276
1624
  }
1277
1625
  async fetchAssetAddresses(e) {
1278
1626
  const t = async (r = 1, a = []) => {
1279
- const { policyId: n, assetName: o } = ot(e), { data: c, status: A } = await this._axiosInstance.get(`assets/${n}${o}/addresses?page=${r}`);
1280
- if (A === 200)
1627
+ const { policyId: i, assetName: o } = ot(e), { data: c, status: u } = await this._axiosInstance.get(`assets/${i}${o}/addresses?page=${r}`);
1628
+ if (u === 200)
1281
1629
  return c.length > 0 ? t(r + 1, [...a, ...c]) : a;
1282
- throw I(c);
1630
+ throw l(c);
1283
1631
  };
1284
1632
  try {
1285
1633
  return await t();
@@ -1289,14 +1637,14 @@ class yr {
1289
1637
  }
1290
1638
  async fetchAssetMetadata(e) {
1291
1639
  try {
1292
- const { policyId: t, assetName: r } = ot(e), { data: a, status: n } = await this._axiosInstance.get(`assets/${t}${r}`);
1293
- if (n === 200)
1640
+ const { policyId: t, assetName: r } = ot(e), { data: a, status: i } = await this._axiosInstance.get(`assets/${t}${r}`);
1641
+ if (i === 200)
1294
1642
  return {
1295
1643
  ...a.onchain_metadata
1296
1644
  };
1297
- throw I(a);
1645
+ throw l(a);
1298
1646
  } catch (t) {
1299
- throw I(t);
1647
+ throw l(t);
1300
1648
  }
1301
1649
  }
1302
1650
  async fetchBlockInfo(e) {
@@ -1320,9 +1668,9 @@ class yr {
1320
1668
  txCount: t.tx_count,
1321
1669
  VRFKey: t.block_vrf
1322
1670
  };
1323
- throw I(t);
1671
+ throw l(t);
1324
1672
  } catch (t) {
1325
- throw I(t);
1673
+ throw l(t);
1326
1674
  }
1327
1675
  }
1328
1676
  async fetchCollectionAssets(e, t = 1) {
@@ -1330,25 +1678,25 @@ class yr {
1330
1678
  const { data: r, status: a } = await this._axiosInstance.get(`assets/policy/${e}?page=${t}`);
1331
1679
  if (a === 200)
1332
1680
  return {
1333
- assets: r.map((n) => ({
1334
- unit: n.asset,
1335
- quantity: n.quantity
1681
+ assets: r.map((i) => ({
1682
+ unit: i.asset,
1683
+ quantity: i.quantity
1336
1684
  })),
1337
1685
  next: r.length === 100 ? t + 1 : null
1338
1686
  };
1339
- throw I(r);
1687
+ throw l(r);
1340
1688
  } catch {
1341
1689
  return { assets: [], next: null };
1342
1690
  }
1343
1691
  }
1344
1692
  async fetchHandleAddress(e) {
1345
1693
  try {
1346
- const t = Q(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`assets/${Pt[1]}${t}/addresses`);
1694
+ const t = S(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`assets/${Tt[1]}${t}/addresses`);
1347
1695
  if (a === 200)
1348
1696
  return r[0].address;
1349
- throw I(r);
1697
+ throw l(r);
1350
1698
  } catch (t) {
1351
- throw I(t);
1699
+ throw l(t);
1352
1700
  }
1353
1701
  }
1354
1702
  async fetchProtocolParameters(e = Number.NaN) {
@@ -1377,9 +1725,9 @@ class yr {
1377
1725
  priceMem: t.price_mem,
1378
1726
  priceStep: t.price_step
1379
1727
  };
1380
- throw I(t);
1728
+ throw l(t);
1381
1729
  } catch (t) {
1382
- throw I(t);
1730
+ throw l(t);
1383
1731
  }
1384
1732
  }
1385
1733
  async fetchTxInfo(e) {
@@ -1397,17 +1745,17 @@ class yr {
1397
1745
  slot: t.slot.toString(),
1398
1746
  size: t.size
1399
1747
  };
1400
- throw I(t);
1748
+ throw l(t);
1401
1749
  } catch (t) {
1402
- throw I(t);
1750
+ throw l(t);
1403
1751
  }
1404
1752
  }
1405
1753
  onTxConfirmed(e, t, r = 20) {
1406
1754
  let a = 0;
1407
- const n = setInterval(() => {
1408
- a >= r && clearInterval(n), this.fetchTxInfo(e).then((o) => {
1755
+ const i = setInterval(() => {
1756
+ a >= r && clearInterval(i), this.fetchTxInfo(e).then((o) => {
1409
1757
  this.fetchBlockInfo(o.block).then((c) => {
1410
- (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(n), t());
1758
+ (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(i), t());
1411
1759
  }).catch(() => {
1412
1760
  a += 1;
1413
1761
  });
@@ -1418,48 +1766,48 @@ class yr {
1418
1766
  }
1419
1767
  async submitTx(e) {
1420
1768
  try {
1421
- const t = { "Content-Type": "application/cbor" }, { data: r, status: a } = await this._axiosInstance.post("tx/submit", g(e), { headers: t });
1769
+ const t = { "Content-Type": "application/cbor" }, { data: r, status: a } = await this._axiosInstance.post("tx/submit", m(e), { headers: t });
1422
1770
  if (a === 200)
1423
1771
  return r;
1424
- throw I(r);
1772
+ throw l(r);
1425
1773
  } catch (t) {
1426
- throw I(t);
1774
+ throw l(t);
1427
1775
  }
1428
1776
  }
1429
1777
  async fetchPlutusScriptCBOR(e) {
1430
1778
  const { data: t, status: r } = await this._axiosInstance.get(`scripts/${e}/cbor`);
1431
1779
  if (r === 200)
1432
1780
  return t.cbor;
1433
- throw I(t);
1781
+ throw l(t);
1434
1782
  }
1435
1783
  async fetchNativeScriptJSON(e) {
1436
1784
  const { data: t, status: r } = await this._axiosInstance.get(`scripts/${e}/json`);
1437
1785
  if (r === 200)
1438
1786
  return t.json;
1439
- throw I(t);
1787
+ throw l(t);
1440
1788
  }
1441
1789
  }
1442
- class mr {
1790
+ class wr {
1443
1791
  _axiosInstance;
1444
1792
  constructor(e, t, r) {
1445
- const a = r.host ?? "ipfs.infura.io", n = r.port ?? 5001, o = r.version ?? 0;
1793
+ const a = r.host ?? "ipfs.infura.io", i = r.port ?? 5001, o = r.version ?? 0;
1446
1794
  this._axiosInstance = j.create({
1447
- baseURL: `https://${a}:${n}/api/v${o}`,
1795
+ baseURL: `https://${a}:${i}/api/v${o}`,
1448
1796
  auth: { username: e, password: t }
1449
1797
  });
1450
1798
  }
1451
1799
  async uploadContent(e, t = !1) {
1452
1800
  try {
1453
- const r = { "Content-Type": "multipart/form-data" }, { data: a, status: n } = await this._axiosInstance.post(`add?recursive=${t}`, e, { headers: r });
1454
- if (n === 200)
1801
+ const r = { "Content-Type": "multipart/form-data" }, { data: a, status: i } = await this._axiosInstance.post(`add?recursive=${t}`, e, { headers: r });
1802
+ if (i === 200)
1455
1803
  return a;
1456
- throw I(a);
1804
+ throw l(a);
1457
1805
  } catch (r) {
1458
- throw I(r);
1806
+ throw l(r);
1459
1807
  }
1460
1808
  }
1461
1809
  }
1462
- class Er {
1810
+ class Br {
1463
1811
  _axiosInstance;
1464
1812
  constructor(...e) {
1465
1813
  typeof e[0] == "string" && e[0].startsWith("http") ? this._axiosInstance = j.create({ baseURL: e[0] }) : this._axiosInstance = j.create({
@@ -1468,7 +1816,7 @@ class Er {
1468
1816
  }
1469
1817
  async fetchAccountInfo(e) {
1470
1818
  try {
1471
- const t = e.startsWith("addr") ? Gt(e) : e, { data: r, status: a } = await this._axiosInstance.post("account_info", { _stake_addresses: [t] });
1819
+ const t = e.startsWith("addr") ? qt(e) : e, { data: r, status: a } = await this._axiosInstance.post("account_info", { _stake_addresses: [t] });
1472
1820
  if (a === 200)
1473
1821
  return {
1474
1822
  poolId: r[0].delegated_pool,
@@ -1477,26 +1825,26 @@ class Er {
1477
1825
  rewards: r[0].rewards_available,
1478
1826
  withdrawals: r[0].withdrawals
1479
1827
  };
1480
- throw I(r);
1828
+ throw l(r);
1481
1829
  } catch (t) {
1482
- throw I(t);
1830
+ throw l(t);
1483
1831
  }
1484
1832
  }
1485
1833
  async fetchAddressUTxOs(e, t) {
1486
1834
  const r = (a) => {
1487
1835
  if (a) {
1488
- const n = a.type.startsWith("plutus") ? {
1836
+ const i = a.type.startsWith("plutus") ? {
1489
1837
  code: a.bytes,
1490
1838
  version: a.type.replace("plutus", "")
1491
- } : vt(bt(a.bytes));
1492
- return lt(n).to_hex();
1839
+ } : Dt(bt(a.bytes));
1840
+ return ht(i).to_hex();
1493
1841
  }
1494
1842
  };
1495
1843
  try {
1496
- const { data: a, status: n } = await this._axiosInstance.post("address_info", { _addresses: [e] });
1497
- if (n === 200) {
1844
+ const { data: a, status: i } = await this._axiosInstance.post("address_info", { _addresses: [e] });
1845
+ if (i === 200) {
1498
1846
  const o = a.flatMap((c) => c.utxo_set).map((c) => {
1499
- var A;
1847
+ var u;
1500
1848
  return {
1501
1849
  input: {
1502
1850
  outputIndex: c.tx_index,
@@ -1506,47 +1854,47 @@ class Er {
1506
1854
  address: e,
1507
1855
  amount: [
1508
1856
  { unit: "lovelace", quantity: c.value },
1509
- ...c.asset_list.map((u) => ({
1510
- unit: `${u.policy_id}${u.asset_name}`,
1511
- quantity: `${u.quantity}`
1857
+ ...c.asset_list.map((A) => ({
1858
+ unit: `${A.policy_id}${A.asset_name}`,
1859
+ quantity: `${A.quantity}`
1512
1860
  }))
1513
1861
  ],
1514
1862
  dataHash: c.datum_hash ?? void 0,
1515
- plutusData: ((A = c.inline_datum) == null ? void 0 : A.bytes) ?? void 0,
1863
+ plutusData: ((u = c.inline_datum) == null ? void 0 : u.bytes) ?? void 0,
1516
1864
  scriptRef: r(c.reference_script)
1517
1865
  }
1518
1866
  };
1519
1867
  });
1520
- return t !== void 0 ? o.filter((c) => c.output.amount.find((A) => A.unit === t) !== void 0) : o;
1868
+ return t !== void 0 ? o.filter((c) => c.output.amount.find((u) => u.unit === t) !== void 0) : o;
1521
1869
  }
1522
- throw I(a);
1870
+ throw l(a);
1523
1871
  } catch {
1524
1872
  return [];
1525
1873
  }
1526
1874
  }
1527
1875
  async fetchAssetAddresses(e) {
1528
1876
  try {
1529
- const { policyId: t, assetName: r } = ot(e), { data: a, status: n } = await this._axiosInstance.get(`asset_address_list?_asset_policy=${t}&_asset_name=${r}`);
1530
- if (n === 200)
1877
+ const { policyId: t, assetName: r } = ot(e), { data: a, status: i } = await this._axiosInstance.get(`asset_address_list?_asset_policy=${t}&_asset_name=${r}`);
1878
+ if (i === 200)
1531
1879
  return a.map((o) => ({
1532
1880
  address: o.payment_address,
1533
1881
  quantity: o.quantity
1534
1882
  }));
1535
- throw I(a);
1883
+ throw l(a);
1536
1884
  } catch (t) {
1537
- throw I(t);
1885
+ throw l(t);
1538
1886
  }
1539
1887
  }
1540
1888
  async fetchAssetMetadata(e) {
1541
1889
  try {
1542
- const { policyId: t, assetName: r } = ot(e), { data: a, status: n } = await this._axiosInstance.get(`asset_info?_asset_policy=${t}&_asset_name=${r}`);
1543
- if (n === 200)
1890
+ const { policyId: t, assetName: r } = ot(e), { data: a, status: i } = await this._axiosInstance.get(`asset_info?_asset_policy=${t}&_asset_name=${r}`);
1891
+ if (i === 200)
1544
1892
  return {
1545
1893
  ...a[0].minting_tx_metadata[721][t][Yt(r)]
1546
1894
  };
1547
- throw I(a);
1895
+ throw l(a);
1548
1896
  } catch (t) {
1549
- throw I(t);
1897
+ throw l(t);
1550
1898
  }
1551
1899
  }
1552
1900
  async fetchBlockInfo(e) {
@@ -1570,9 +1918,9 @@ class Er {
1570
1918
  txCount: t[0].tx_count,
1571
1919
  VRFKey: t[0].vrf_key
1572
1920
  };
1573
- throw I(t);
1921
+ throw l(t);
1574
1922
  } catch (t) {
1575
- throw I(t);
1923
+ throw l(t);
1576
1924
  }
1577
1925
  }
1578
1926
  async fetchCollectionAssets(e, t = 0) {
@@ -1580,25 +1928,25 @@ class Er {
1580
1928
  const { data: r, status: a } = await this._axiosInstance.get(`asset_policy_info?_asset_policy=${e}&limit=100&offset=${t}`);
1581
1929
  if (a === 200)
1582
1930
  return {
1583
- assets: r.map((n) => ({
1584
- unit: `${e}${n.asset_name}`,
1585
- quantity: n.total_supply
1931
+ assets: r.map((i) => ({
1932
+ unit: `${e}${i.asset_name}`,
1933
+ quantity: i.total_supply
1586
1934
  })),
1587
1935
  next: r.length === 100 ? t + 100 : null
1588
1936
  };
1589
- throw I(r);
1937
+ throw l(r);
1590
1938
  } catch (r) {
1591
- throw I(r);
1939
+ throw l(r);
1592
1940
  }
1593
1941
  }
1594
1942
  async fetchHandleAddress(e) {
1595
1943
  try {
1596
- const t = Q(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`asset_address_list?_asset_policy=${Pt[1]}&_asset_name=${t}`);
1944
+ const t = S(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`asset_address_list?_asset_policy=${Tt[1]}&_asset_name=${t}`);
1597
1945
  if (a === 200)
1598
1946
  return r[0].payment_address;
1599
- throw I(r);
1947
+ throw l(r);
1600
1948
  } catch (t) {
1601
- throw I(t);
1949
+ throw l(t);
1602
1950
  }
1603
1951
  }
1604
1952
  async fetchProtocolParameters(e) {
@@ -1627,16 +1975,16 @@ class Er {
1627
1975
  priceMem: t[0].price_mem,
1628
1976
  priceStep: t[0].price_step
1629
1977
  };
1630
- throw I(t);
1978
+ throw l(t);
1631
1979
  } catch (t) {
1632
- throw I(t);
1980
+ throw l(t);
1633
1981
  }
1634
1982
  }
1635
1983
  async fetchTxInfo(e) {
1636
1984
  var t, r;
1637
1985
  try {
1638
- const { data: a, status: n } = await this._axiosInstance.post("tx_info", { _tx_hashes: [e] });
1639
- if (n === 200)
1986
+ const { data: a, status: i } = await this._axiosInstance.post("tx_info", { _tx_hashes: [e] });
1987
+ if (i === 200)
1640
1988
  return {
1641
1989
  block: a[0].block_hash,
1642
1990
  deposit: a[0].deposit,
@@ -1648,17 +1996,17 @@ class Er {
1648
1996
  slot: a[0].absolute_slot.toString(),
1649
1997
  size: a[0].tx_size
1650
1998
  };
1651
- throw I(a);
1999
+ throw l(a);
1652
2000
  } catch (a) {
1653
- throw I(a);
2001
+ throw l(a);
1654
2002
  }
1655
2003
  }
1656
2004
  onTxConfirmed(e, t, r = 20) {
1657
2005
  let a = 0;
1658
- const n = setInterval(() => {
1659
- a >= r && clearInterval(n), this.fetchTxInfo(e).then((o) => {
2006
+ const i = setInterval(() => {
2007
+ a >= r && clearInterval(i), this.fetchTxInfo(e).then((o) => {
1660
2008
  this.fetchBlockInfo(o.block).then((c) => {
1661
- (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(n), t());
2009
+ (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(i), t());
1662
2010
  }).catch(() => {
1663
2011
  a += 1;
1664
2012
  });
@@ -1669,16 +2017,16 @@ class Er {
1669
2017
  }
1670
2018
  async submitTx(e) {
1671
2019
  try {
1672
- const t = { "Content-Type": "application/cbor" }, { data: r, status: a } = await this._axiosInstance.post("submittx", g(e), { headers: t });
2020
+ const t = { "Content-Type": "application/cbor" }, { data: r, status: a } = await this._axiosInstance.post("submittx", m(e), { headers: t });
1673
2021
  if (a === 202)
1674
2022
  return r;
1675
- throw I(r);
2023
+ throw l(r);
1676
2024
  } catch (t) {
1677
- throw I(t);
2025
+ throw l(t);
1678
2026
  }
1679
2027
  }
1680
2028
  }
1681
- class Br {
2029
+ class Er {
1682
2030
  _baseUrl;
1683
2031
  constructor(...e) {
1684
2032
  this._baseUrl = ts(e[0]) ? rs[e[0]] : e[0];
@@ -1688,9 +2036,9 @@ class Br {
1688
2036
  return this.send(t, "EvaluateTx", {
1689
2037
  evaluate: e
1690
2038
  }), new Promise((r, a) => {
1691
- t.addEventListener("message", (n) => {
2039
+ t.addEventListener("message", (i) => {
1692
2040
  try {
1693
- const { result: o } = JSON.parse(n.data);
2041
+ const { result: o } = JSON.parse(i.data);
1694
2042
  o.EvaluationResult ? r(Object.keys(o.EvaluationResult).map((c) => ({
1695
2043
  index: parseInt(c.split(":")[1], 10),
1696
2044
  tag: c.split(":")[0].toUpperCase(),
@@ -1719,9 +2067,9 @@ class Br {
1719
2067
  return this.send(t, "SubmitTx", {
1720
2068
  submit: e
1721
2069
  }), new Promise((r, a) => {
1722
- t.addEventListener("message", (n) => {
2070
+ t.addEventListener("message", (i) => {
1723
2071
  try {
1724
- const { result: o } = JSON.parse(n.data);
2072
+ const { result: o } = JSON.parse(i.data);
1725
2073
  o.SubmitSuccess ? r(o.SubmitSuccess.txId) : a(o.SubmitFail), t.close();
1726
2074
  } catch (o) {
1727
2075
  a(o);
@@ -1765,14 +2113,14 @@ class xr {
1765
2113
  steps: a.unit_steps
1766
2114
  }
1767
2115
  }));
1768
- throw I(t);
2116
+ throw l(t);
1769
2117
  } catch (t) {
1770
- throw I(t);
2118
+ throw l(t);
1771
2119
  }
1772
2120
  }
1773
2121
  async fetchAccountInfo(e) {
1774
2122
  try {
1775
- const t = e.startsWith("addr") ? Gt(e) : e, { data: r, status: a } = await this._axiosInstance.get(`wallets/${t}`);
2123
+ const t = e.startsWith("addr") ? qt(e) : e, { data: r, status: a } = await this._axiosInstance.get(`wallets/${t}`);
1776
2124
  if (a === 200)
1777
2125
  return {
1778
2126
  poolId: r.pool_id,
@@ -1781,56 +2129,56 @@ class xr {
1781
2129
  rewards: r.rewards_sum,
1782
2130
  withdrawals: r.withdrawals_sum
1783
2131
  };
1784
- throw I(r);
2132
+ throw l(r);
1785
2133
  } catch (t) {
1786
- throw I(t);
2134
+ throw l(t);
1787
2135
  }
1788
2136
  }
1789
2137
  async fetchAddressUTxOs(e, t) {
1790
- const r = t !== void 0 ? `/assets/${t}` : "", a = `addresses/${e}${r}/utxos?size=50`, n = async (u = "", d = []) => {
1791
- var C;
1792
- const { data: h, status: f } = await this._axiosInstance.get(`${a}&cursor=${u}`);
1793
- if (f === 200)
1794
- return h.cursor !== null && ((C = h.cursor) == null ? void 0 : C.length) > 0 ? n(h.cursor, [...d, ...h.data.map(A)]) : h.data.map(A);
1795
- throw I(h);
1796
- }, o = (u, d) => {
1797
- const h = [{
2138
+ const r = t !== void 0 ? `/assets/${t}` : "", a = `addresses/${e}${r}/utxos?size=50`, i = async (A = "", d = []) => {
2139
+ var _;
2140
+ const { data: g, status: I } = await this._axiosInstance.get(`${a}&cursor=${A}`);
2141
+ if (I === 200)
2142
+ return g.cursor !== null && ((_ = g.cursor) == null ? void 0 : _.length) > 0 ? i(g.cursor, [...d, ...g.data.map(u)]) : g.data.map(u);
2143
+ throw l(g);
2144
+ }, o = (A, d) => {
2145
+ const g = [{
1798
2146
  unit: "lovelace",
1799
- quantity: u.toString()
2147
+ quantity: A.toString()
1800
2148
  }];
1801
- return d.forEach((f) => {
1802
- const C = Q(f.asset_name);
1803
- h.push({
1804
- unit: `${f.policy_id}${C}`,
1805
- quantity: f.quantity.toString()
2149
+ return d.forEach((I) => {
2150
+ const _ = S(I.asset_name);
2151
+ g.push({
2152
+ unit: `${I.policy_id}${_}`,
2153
+ quantity: I.quantity.toString()
1806
2154
  });
1807
- }), h;
1808
- }, c = (u) => {
1809
- if (u) {
1810
- const d = u.type.startsWith("plutus") ? {
1811
- code: u.code,
1812
- version: u.type.replace("plutus", "")
1813
- } : vt(bt(u.json));
1814
- return lt(d).to_hex();
2155
+ }), g;
2156
+ }, c = (A) => {
2157
+ if (A) {
2158
+ const d = A.type.startsWith("plutus") ? {
2159
+ code: A.code,
2160
+ version: A.type.replace("plutus", "")
2161
+ } : Dt(bt(A.json));
2162
+ return ht(d).to_hex();
1815
2163
  }
1816
- }, A = (u) => {
2164
+ }, u = (A) => {
1817
2165
  var d;
1818
2166
  return {
1819
2167
  input: {
1820
- outputIndex: u.index,
1821
- txHash: u.hash
2168
+ outputIndex: A.index,
2169
+ txHash: A.hash
1822
2170
  },
1823
2171
  output: {
1824
2172
  address: e,
1825
- amount: o(u.value, u.assets),
2173
+ amount: o(A.value, A.assets),
1826
2174
  dataHash: void 0,
1827
- plutusData: ((d = u.inline_datum) == null ? void 0 : d.value_raw) ?? void 0,
1828
- scriptRef: c(u.reference_script)
2175
+ plutusData: ((d = A.inline_datum) == null ? void 0 : d.value_raw) ?? void 0,
2176
+ scriptRef: c(A.reference_script)
1829
2177
  }
1830
2178
  };
1831
2179
  };
1832
2180
  try {
1833
- return await n();
2181
+ return await i();
1834
2182
  } catch {
1835
2183
  return [];
1836
2184
  }
@@ -1839,12 +2187,12 @@ class xr {
1839
2187
  const t = (a) => ({
1840
2188
  address: a.address,
1841
2189
  quantity: a.quantity.toString()
1842
- }), r = async (a = "", n = []) => {
2190
+ }), r = async (a = "", i = []) => {
1843
2191
  var d;
1844
- const { policyId: o, assetName: c } = ot(e), { data: A, status: u } = await this._axiosInstance.get(`assets/${o}${c}/addresses?size=100&cursor=${a}`);
1845
- if (u === 200)
1846
- return A.cursor !== null && ((d = A.cursor) == null ? void 0 : d.length) > 0 ? r(A.cursor, [...n, ...A.data.map(t)]) : A.data.map(t);
1847
- throw I(A);
2192
+ const { policyId: o, assetName: c } = ot(e), { data: u, status: A } = await this._axiosInstance.get(`assets/${o}${c}/addresses?size=100&cursor=${a}`);
2193
+ if (A === 200)
2194
+ return u.cursor !== null && ((d = u.cursor) == null ? void 0 : d.length) > 0 ? r(u.cursor, [...i, ...u.data.map(t)]) : u.data.map(t);
2195
+ throw l(u);
1848
2196
  };
1849
2197
  try {
1850
2198
  return await r();
@@ -1855,14 +2203,14 @@ class xr {
1855
2203
  async fetchAssetMetadata(e) {
1856
2204
  var t;
1857
2205
  try {
1858
- const { policyId: r, assetName: a } = ot(e), { data: n, status: o } = await this._axiosInstance.get(`assets/${r}${a}`);
2206
+ const { policyId: r, assetName: a } = ot(e), { data: i, status: o } = await this._axiosInstance.get(`assets/${r}${a}`);
1859
2207
  if (o === 200)
1860
2208
  return {
1861
- ...(t = n.metadata.find((c) => c.label === 721)) == null ? void 0 : t.json[r][Yt(a)]
2209
+ ...(t = i.metadata.find((c) => c.label === 721)) == null ? void 0 : t.json[r][Yt(a)]
1862
2210
  };
1863
- throw I(n);
2211
+ throw l(i);
1864
2212
  } catch (r) {
1865
- throw I(r);
2213
+ throw l(r);
1866
2214
  }
1867
2215
  }
1868
2216
  async fetchBlockInfo(e) {
@@ -1886,9 +2234,9 @@ class xr {
1886
2234
  txCount: t.tx_count,
1887
2235
  VRFKey: t.vrf_key
1888
2236
  };
1889
- throw I(t);
2237
+ throw l(t);
1890
2238
  } catch (t) {
1891
- throw I(t);
2239
+ throw l(t);
1892
2240
  }
1893
2241
  }
1894
2242
  async fetchCollectionAssets(e, t = "") {
@@ -1896,25 +2244,25 @@ class xr {
1896
2244
  const { data: r, status: a } = await this._axiosInstance.get(`policies/${e}/assets?size=100&cursor=${t}`);
1897
2245
  if (a === 200)
1898
2246
  return {
1899
- assets: r.data.map((n) => ({
1900
- unit: `${n.policy_id}${n.asset_name}`,
1901
- quantity: n.quantity
2247
+ assets: r.data.map((i) => ({
2248
+ unit: `${i.policy_id}${i.asset_name}`,
2249
+ quantity: i.quantity
1902
2250
  })),
1903
2251
  next: r.cursor
1904
2252
  };
1905
- throw I(r);
2253
+ throw l(r);
1906
2254
  } catch {
1907
2255
  return { assets: [], next: null };
1908
2256
  }
1909
2257
  }
1910
2258
  async fetchHandleAddress(e) {
1911
2259
  try {
1912
- const t = Q(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`assets/${Pt[1]}${t}/addresses`);
2260
+ const t = S(e.replace("$", "")), { data: r, status: a } = await this._axiosInstance.get(`assets/${Tt[1]}${t}/addresses`);
1913
2261
  if (a === 200)
1914
2262
  return r.data[0].address;
1915
- throw I(r);
2263
+ throw l(r);
1916
2264
  } catch (t) {
1917
- throw I(t);
2265
+ throw l(t);
1918
2266
  }
1919
2267
  }
1920
2268
  async fetchProtocolParameters(e) {
@@ -1943,9 +2291,9 @@ class xr {
1943
2291
  priceMem: t.price_mem,
1944
2292
  priceStep: t.price_step
1945
2293
  };
1946
- throw I(t);
2294
+ throw l(t);
1947
2295
  } catch (t) {
1948
- throw I(t);
2296
+ throw l(t);
1949
2297
  }
1950
2298
  }
1951
2299
  async fetchTxInfo(e) {
@@ -1963,17 +2311,17 @@ class xr {
1963
2311
  slot: t.block.slot_no.toString(),
1964
2312
  size: t.size
1965
2313
  };
1966
- throw I(t);
2314
+ throw l(t);
1967
2315
  } catch (t) {
1968
- throw I(t);
2316
+ throw l(t);
1969
2317
  }
1970
2318
  }
1971
2319
  onTxConfirmed(e, t, r = 20) {
1972
2320
  let a = 0;
1973
- const n = setInterval(() => {
1974
- a >= r && clearInterval(n), this.fetchTxInfo(e).then((o) => {
2321
+ const i = setInterval(() => {
2322
+ a >= r && clearInterval(i), this.fetchTxInfo(e).then((o) => {
1975
2323
  this.fetchBlockInfo(o.block).then((c) => {
1976
- (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(n), t());
2324
+ (c == null ? void 0 : c.confirmations) > 0 && (clearInterval(i), t());
1977
2325
  }).catch(() => {
1978
2326
  a += 1;
1979
2327
  });
@@ -1987,64 +2335,64 @@ class xr {
1987
2335
  const t = { "Content-Type": "application/json" }, { data: r, status: a } = await this._axiosInstance.post("transactions/submit", { tx: e }, { headers: t });
1988
2336
  if (a === 200)
1989
2337
  return r.tx_id;
1990
- throw I(r);
2338
+ throw l(r);
1991
2339
  } catch (t) {
1992
- throw I(t);
2340
+ throw l(t);
1993
2341
  }
1994
2342
  }
1995
2343
  }
1996
- class Qr {
2344
+ class Sr {
1997
2345
  static withOneSignature(e) {
1998
2346
  const t = N(st(e));
1999
2347
  return pt(t).to_hex();
2000
2348
  }
2001
2349
  static withAtLeastNSignatures(e, t) {
2002
- const r = i.NativeScripts.new();
2003
- e.forEach((n) => {
2004
- const o = N(st(n));
2350
+ const r = n.NativeScripts.new();
2351
+ e.forEach((i) => {
2352
+ const o = N(st(i));
2005
2353
  r.add(pt(o));
2006
2354
  });
2007
- const a = i.ScriptNOfK.new(t, r);
2008
- return i.NativeScript.new_script_any(a).to_hex();
2355
+ const a = n.ScriptNOfK.new(t, r);
2356
+ return n.NativeScript.new_script_any(a).to_hex();
2009
2357
  }
2010
2358
  static withAnySignature(e) {
2011
- const t = i.NativeScripts.new();
2359
+ const t = n.NativeScripts.new();
2012
2360
  e.forEach((a) => {
2013
- const n = N(st(a));
2014
- t.add(pt(n));
2361
+ const i = N(st(a));
2362
+ t.add(pt(i));
2015
2363
  });
2016
- const r = i.ScriptAny.new(t);
2017
- return i.NativeScript.new_script_any(r).to_hex();
2364
+ const r = n.ScriptAny.new(t);
2365
+ return n.NativeScript.new_script_any(r).to_hex();
2018
2366
  }
2019
2367
  static withAllSignatures(e) {
2020
- const t = i.NativeScripts.new();
2368
+ const t = n.NativeScripts.new();
2021
2369
  e.forEach((a) => {
2022
- const n = N(st(a));
2023
- t.add(pt(n));
2370
+ const i = N(st(a));
2371
+ t.add(pt(i));
2024
2372
  });
2025
- const r = i.ScriptAll.new(t);
2026
- return i.NativeScript.new_script_any(r).to_hex();
2373
+ const r = n.ScriptAll.new(t);
2374
+ return n.NativeScript.new_script_any(r).to_hex();
2027
2375
  }
2028
2376
  static fromNativeScript(e) {
2029
- return Dt(e).to_hex();
2377
+ return vt(e).to_hex();
2030
2378
  }
2031
2379
  }
2032
2380
  function X(s, e, t, r) {
2033
- var a = arguments.length, n = a < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, t) : r, o;
2381
+ var a = arguments.length, i = a < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, t) : r, o;
2034
2382
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2035
- n = Reflect.decorate(s, e, t, r);
2383
+ i = Reflect.decorate(s, e, t, r);
2036
2384
  else
2037
2385
  for (var c = s.length - 1; c >= 0; c--)
2038
- (o = s[c]) && (n = (a < 3 ? o(n) : a > 3 ? o(e, t, n) : o(e, t)) || n);
2039
- return a > 3 && n && Object.defineProperty(e, t, n), n;
2386
+ (o = s[c]) && (i = (a < 3 ? o(i) : a > 3 ? o(e, t, i) : o(e, t)) || i);
2387
+ return a > 3 && i && Object.defineProperty(e, t, i), i;
2040
2388
  }
2041
2389
  const Xs = (s) => class extends s {
2042
2390
  __visits = [];
2043
2391
  }, tt = () => function(s, e, t) {
2044
2392
  const r = t.value;
2045
2393
  t.value = function(...a) {
2046
- const n = r.call(this, ...a);
2047
- return this.__visits && this.__visits.push(e), n;
2394
+ const i = r.call(this, ...a);
2395
+ return this.__visits && this.__visits.push(e), i;
2048
2396
  };
2049
2397
  };
2050
2398
  let L = class {
@@ -2062,19 +2410,19 @@ let L = class {
2062
2410
  _txInputsBuilder;
2063
2411
  _txWithdrawals;
2064
2412
  constructor(e = {}) {
2065
- this._era = e.era, this._initiator = e.initiator, this._mintBuilder = i.MintBuilder.new(), this._protocolParameters = e.parameters ?? G, this._txBuilder = Js(e.parameters), this._txCertificates = i.Certificates.new(), this._txInputsBuilder = i.TxInputsBuilder.new(), this._txWithdrawals = i.Withdrawals.new();
2413
+ this._era = e.era, this._initiator = e.initiator, this._mintBuilder = n.MintBuilder.new(), this._protocolParameters = e.parameters ?? q, this._txBuilder = Js(e.parameters), this._txCertificates = n.Certificates.new(), this._txInputsBuilder = n.TxInputsBuilder.new(), this._txWithdrawals = n.Withdrawals.new();
2066
2414
  }
2067
2415
  static maskMetadata(e, t = "BABBAGE") {
2068
- var n;
2069
- const r = Y(e), a = (n = r.auxiliary_data()) == null ? void 0 : n.metadata();
2416
+ var i;
2417
+ const r = Y(e), a = (i = r.auxiliary_data()) == null ? void 0 : i.metadata();
2070
2418
  if (a !== void 0) {
2071
- const o = i.GeneralTransactionMetadata.new();
2072
- for (let A = 0; A < a.len(); A += 1) {
2073
- const u = a.keys().get(A), d = a.get(u);
2074
- o.insert(u, i.TransactionMetadatum.from_hex("0".repeat(((d == null ? void 0 : d.to_hex()) ?? "").length)));
2419
+ const o = n.GeneralTransactionMetadata.new();
2420
+ for (let u = 0; u < a.len(); u += 1) {
2421
+ const A = a.keys().get(u), d = a.get(A);
2422
+ o.insert(A, n.TransactionMetadatum.from_hex("0".repeat(((d == null ? void 0 : d.to_hex()) ?? "").length)));
2075
2423
  }
2076
2424
  const c = r.auxiliary_data();
2077
- return c !== void 0 && (c.set_metadata(o), c.set_prefer_alonzo_format(t === "ALONZO")), i.Transaction.new(r.body(), r.witness_set(), c).to_hex();
2425
+ return c !== void 0 && (c.set_metadata(o), c.set_prefer_alonzo_format(t === "ALONZO")), n.Transaction.new(r.body(), r.witness_set(), c).to_hex();
2078
2426
  }
2079
2427
  return e;
2080
2428
  }
@@ -2083,8 +2431,8 @@ let L = class {
2083
2431
  return ((a = (r = Y(e).auxiliary_data()) == null ? void 0 : r.metadata()) == null ? void 0 : a.to_hex()) ?? "";
2084
2432
  }
2085
2433
  static writeMetadata(e, t, r = "BABBAGE") {
2086
- const a = Y(e), n = a.auxiliary_data() ?? i.AuxiliaryData.new();
2087
- return n.set_metadata(i.GeneralTransactionMetadata.from_hex(t)), n.set_prefer_alonzo_format(r === "ALONZO"), i.Transaction.new(a.body(), a.witness_set(), n).to_hex();
2434
+ const a = Y(e), i = a.auxiliary_data() ?? n.AuxiliaryData.new();
2435
+ return i.set_metadata(n.GeneralTransactionMetadata.from_hex(t)), i.set_prefer_alonzo_format(r === "ALONZO"), n.Transaction.new(a.body(), a.witness_set(), i).to_hex();
2088
2436
  }
2089
2437
  get size() {
2090
2438
  return this._txBuilder.full_size();
@@ -2097,79 +2445,79 @@ let L = class {
2097
2445
  }
2098
2446
  }
2099
2447
  burnAsset(e, t, r) {
2100
- const a = this._totalBurns.has(t.unit) ? i.BigNum.from_str(this._totalBurns.get(t.unit) ?? "0").checked_add(i.BigNum.from_str(t.quantity)).to_str() : t.quantity;
2101
- return this._mintBuilder.add_asset(pe(e, r), i.AssetName.new(g(t.unit.slice(F))), i.Int.new_negative(i.BigNum.from_str(t.quantity))), this._totalBurns.set(t.unit, a), this;
2448
+ const a = this._totalBurns.has(t.unit) ? n.BigNum.from_str(this._totalBurns.get(t.unit) ?? "0").checked_add(n.BigNum.from_str(t.quantity)).to_str() : t.quantity;
2449
+ return this._mintBuilder.add_asset(pe(e, r), n.AssetName.new(m(t.unit.slice(P))), n.Int.new_negative(n.BigNum.from_str(t.quantity))), this._totalBurns.set(t.unit, a), this;
2102
2450
  }
2103
2451
  delegateStake(e, t) {
2104
- const r = i.Certificate.new_stake_delegation(i.StakeDelegation.new(i.StakeCredential.from_keyhash(N(ut(e))), i.Ed25519KeyHash.from_bech32(t)));
2452
+ const r = n.Certificate.new_stake_delegation(n.StakeDelegation.new(n.StakeCredential.from_keyhash(N(At(e))), n.Ed25519KeyHash.from_bech32(t)));
2105
2453
  return this._txCertificates.add(r), this;
2106
2454
  }
2107
2455
  deregisterStake(e) {
2108
- const t = i.Certificate.new_stake_deregistration(i.StakeDeregistration.new(i.StakeCredential.from_keyhash(N(ut(e)))));
2456
+ const t = n.Certificate.new_stake_deregistration(n.StakeDeregistration.new(n.StakeCredential.from_keyhash(N(At(e)))));
2109
2457
  return this._txCertificates.add(t), this;
2110
2458
  }
2111
2459
  mintAsset(e, t, r) {
2112
- var u, d;
2113
- const a = (h, f) => {
2114
- const C = typeof h == "string" ? bt(h).hash().to_hex() : n(h).hash().to_hex(), x = Q(f.assetName);
2460
+ var A, d;
2461
+ const a = (g, I) => {
2462
+ const _ = typeof g == "string" ? bt(g).hash().to_hex() : i(g).hash().to_hex(), x = S(I.assetName);
2115
2463
  return {
2116
- unit: `${C}${x}`,
2117
- quantity: f.assetQuantity
2464
+ unit: `${_}${x}`,
2465
+ quantity: I.assetQuantity
2118
2466
  };
2119
- }, n = (h) => {
2120
- if ("code" in h)
2121
- return nt(h.code, h.version);
2122
- const f = V(h);
2123
- if (f.output().has_script_ref()) {
2124
- const C = f.output().script_ref();
2125
- if (C.is_plutus_script()) {
2126
- const x = Oe(C);
2127
- return nt(x.code, x.version);
2467
+ }, i = (g) => {
2468
+ if ("code" in g)
2469
+ return it(g.code, g.version);
2470
+ const I = V(g);
2471
+ if (I.output().has_script_ref()) {
2472
+ const _ = I.output().script_ref();
2473
+ if (_.is_plutus_script()) {
2474
+ const x = Oe(_);
2475
+ return it(x.code, x.version);
2128
2476
  }
2129
2477
  }
2130
- throw new Error(`No plutus script reference found in UTxO: ${f.input().transaction_id().to_hex()}`);
2131
- }, o = a(e, t), A = i.BigNum.from_str(((u = this._totalMints.get(o.unit)) == null ? void 0 : u.assetQuantity) ?? "0").checked_add(i.BigNum.from_str(o.quantity));
2132
- return this._mintBuilder.add_asset(pe(e, r), i.AssetName.new(g(Q(t.assetName))), i.Int.new(i.BigNum.from_str(o.quantity))), this._recipients.has(t.recipient) ? (d = this._recipients.get(t.recipient)) == null || d.push(o) : this._recipients.set(t.recipient, [o]), this._totalMints.set(o.unit, {
2478
+ throw new Error(`No plutus script reference found in UTxO: ${I.input().transaction_id().to_hex()}`);
2479
+ }, o = a(e, t), u = n.BigNum.from_str(((A = this._totalMints.get(o.unit)) == null ? void 0 : A.assetQuantity) ?? "0").checked_add(n.BigNum.from_str(o.quantity));
2480
+ return this._mintBuilder.add_asset(pe(e, r), n.AssetName.new(m(S(t.assetName))), n.Int.new(n.BigNum.from_str(o.quantity))), this._recipients.has(t.recipient) ? (d = this._recipients.get(t.recipient)) == null || d.push(o) : this._recipients.set(t.recipient, [o]), this._totalMints.set(o.unit, {
2133
2481
  ...t,
2134
- assetQuantity: A.to_str()
2482
+ assetQuantity: u.to_str()
2135
2483
  }), this;
2136
2484
  }
2137
2485
  redeemValue(e) {
2138
2486
  const t = {
2139
2487
  tag: "SPEND",
2140
- budget: Be,
2488
+ budget: Ee,
2141
2489
  index: this._txInputsBuilder.inputs().len(),
2142
2490
  data: {
2143
2491
  alternative: 0,
2144
2492
  fields: []
2145
2493
  },
2146
2494
  ...e.redeemer
2147
- }, r = V(e.value), a = i.PlutusWitness.new_with_ref(Ge(e.script), zs(e.datum), Me(t));
2495
+ }, r = V(e.value), a = n.PlutusWitness.new_with_ref(qe(e.script), zs(e.datum), He(t));
2148
2496
  return this._txInputsBuilder.add_plutus_script_input(a, r.input(), r.output().amount()), this;
2149
2497
  }
2150
2498
  registerStake(e) {
2151
- const t = i.Certificate.new_stake_registration(i.StakeRegistration.new(i.StakeCredential.from_keyhash(N(ut(e)))));
2499
+ const t = n.Certificate.new_stake_registration(n.StakeRegistration.new(n.StakeCredential.from_keyhash(N(At(e)))));
2152
2500
  return this._txCertificates.add(t), this;
2153
2501
  }
2154
2502
  registerPool(e) {
2155
- const t = i.Certificate.new_pool_registration(i.PoolRegistration.new($s(e)));
2503
+ const t = n.Certificate.new_pool_registration(n.PoolRegistration.new(Rs(e)));
2156
2504
  return this._txCertificates.add(t), this;
2157
2505
  }
2158
2506
  retirePool(e, t) {
2159
- const r = i.Certificate.new_pool_retirement(i.PoolRetirement.new(i.Ed25519KeyHash.from_bech32(e), t));
2507
+ const r = n.Certificate.new_pool_retirement(n.PoolRetirement.new(n.Ed25519KeyHash.from_bech32(e), t));
2160
2508
  return this._txCertificates.add(r), this;
2161
2509
  }
2162
2510
  sendAssets(e, t) {
2163
- const r = Et(t), a = r.multiasset();
2511
+ const r = Bt(t), a = r.multiasset();
2164
2512
  if (r.is_zero() || a === void 0)
2165
2513
  return this;
2166
- const n = Ct(e).next(), o = r.coin().is_zero() ? n.with_asset_and_min_required_coin_by_utxo_cost(a, ge(this._protocolParameters.coinsPerUTxOSize)).build() : n.with_coin_and_asset(r.coin(), a).build();
2514
+ const i = _t(e).next(), o = r.coin().is_zero() ? i.with_asset_and_min_required_coin_by_utxo_cost(a, me(this._protocolParameters.coinsPerUTxOSize)).build() : i.with_coin_and_asset(r.coin(), a).build();
2167
2515
  return t.forEach((c) => {
2168
2516
  this.setTxOutput(c);
2169
2517
  }), this._txBuilder.add_output(o), this;
2170
2518
  }
2171
2519
  sendLovelace(e, t) {
2172
- const a = Ct(e).next().with_coin(i.BigNum.from_str(t)).build();
2520
+ const a = _t(e).next().with_coin(n.BigNum.from_str(t)).build();
2173
2521
  return this.setTxOutput({
2174
2522
  unit: "lovelace",
2175
2523
  quantity: t
@@ -2182,31 +2530,31 @@ let L = class {
2182
2530
  }]), this;
2183
2531
  }
2184
2532
  sendValue(e, t) {
2185
- const r = Et(t.output.amount), n = Ct(e).next().with_value(r).build();
2533
+ const r = Bt(t.output.amount), i = _t(e).next().with_value(r).build();
2186
2534
  return t.output.amount.forEach((o) => {
2187
2535
  this.setTxOutput(o);
2188
- }), this._txBuilder.add_output(n), this;
2536
+ }), this._txBuilder.add_output(i), this;
2189
2537
  }
2190
2538
  setChangeAddress(e) {
2191
- return this._changeAddress = H(e), this;
2539
+ return this._changeAddress = F(e), this;
2192
2540
  }
2193
2541
  setCollateral(e) {
2194
- const t = Ce(e);
2542
+ const t = _e(e);
2195
2543
  return this._txBuilder.set_collateral(t), this;
2196
2544
  }
2197
2545
  setMetadata(e, t) {
2198
- return this._txBuilder.add_json_metadatum_with_schema(i.BigNum.from_str(e.toString()), JSON.stringify(t), i.MetadataJsonSchema.NoConversions), this;
2546
+ return this._txBuilder.add_json_metadatum_with_schema(n.BigNum.from_str(e.toString()), JSON.stringify(t), n.MetadataJsonSchema.NoConversions), this;
2199
2547
  }
2200
2548
  setRequiredSigners(e) {
2201
- return Array.from(new Set(e.map((r) => r.startsWith("addr") ? st(r) : ut(r)).map((r) => N(r)))).forEach((r) => {
2549
+ return Array.from(new Set(e.map((r) => r.startsWith("addr") ? st(r) : At(r)).map((r) => N(r)))).forEach((r) => {
2202
2550
  this._txBuilder.add_required_signer(r);
2203
2551
  }), this;
2204
2552
  }
2205
2553
  setTimeToStart(e) {
2206
- return this._txBuilder.set_validity_start_interval_bignum(i.BigNum.from_str(e)), this;
2554
+ return this._txBuilder.set_validity_start_interval_bignum(n.BigNum.from_str(e)), this;
2207
2555
  }
2208
2556
  setTimeToExpire(e) {
2209
- return this._txBuilder.set_ttl_bignum(i.BigNum.from_str(e)), this;
2557
+ return this._txBuilder.set_ttl_bignum(n.BigNum.from_str(e)), this;
2210
2558
  }
2211
2559
  setTxInputs(e) {
2212
2560
  return e.map((t) => V(t)).forEach((t) => {
@@ -2214,13 +2562,13 @@ let L = class {
2214
2562
  }), this;
2215
2563
  }
2216
2564
  withdrawRewards(e, t) {
2217
- const r = Te(e);
2218
- return r !== void 0 && this._txWithdrawals.insert(r, i.BigNum.from_str(t)), this;
2565
+ const r = Me(e);
2566
+ return r !== void 0 && this._txWithdrawals.insert(r, n.BigNum.from_str(t)), this;
2219
2567
  }
2220
2568
  async addBurnInputsIfNeeded() {
2221
2569
  if (this._initiator && this._totalBurns.size > 0 && this.notVisited("setTxInputs")) {
2222
2570
  const e = await this._initiator.getUsedUTxOs();
2223
- ns(this._totalBurns, e.map((r) => St(r))).map((r) => V(r)).forEach((r) => {
2571
+ is(this._totalBurns, e.map((r) => Qt(r))).map((r) => V(r)).forEach((r) => {
2224
2572
  this._txInputsBuilder.add_input(r.output().address(), r.input(), r.output().amount());
2225
2573
  });
2226
2574
  }
@@ -2235,7 +2583,7 @@ let L = class {
2235
2583
  async addCollateralIfNeeded() {
2236
2584
  if (this._initiator && this.notVisited("setCollateral")) {
2237
2585
  const e = await this._initiator.getUsedCollateral();
2238
- this._txBuilder.set_collateral(Ce(e));
2586
+ this._txBuilder.set_collateral(_e(e));
2239
2587
  }
2240
2588
  }
2241
2589
  async addRequiredSignersIfNeeded() {
@@ -2247,7 +2595,7 @@ let L = class {
2247
2595
  async addTxInputsAsNeeded() {
2248
2596
  if (this.notVisited("setTxInputs")) {
2249
2597
  const e = await this.filterAvailableUTxOs();
2250
- is(this._txOutputs, e.map((r) => St(r))).map((r) => V(r)).forEach((r) => {
2598
+ ns(this._txOutputs, e.map((r) => Qt(r))).map((r) => V(r)).forEach((r) => {
2251
2599
  this._txInputsBuilder.add_input(r.output().address(), r.input(), r.output().amount());
2252
2600
  });
2253
2601
  }
@@ -2258,33 +2606,33 @@ let L = class {
2258
2606
  }
2259
2607
  async forgeAssetsIfNeeded() {
2260
2608
  const e = (t, r) => {
2261
- const a = t.data.assetName, n = t.data.metadata, o = t.unit.slice(0, F);
2609
+ const a = t.data.assetName, i = t.data.metadata, o = t.unit.slice(0, P);
2262
2610
  if (r && r[o]) {
2263
- const { [o]: c, ...A } = r, u = {
2264
- [a]: n,
2611
+ const { [o]: c, ...u } = r, A = {
2612
+ [a]: i,
2265
2613
  ...c
2266
2614
  };
2267
2615
  return {
2268
2616
  [o]: {
2269
- ...u
2617
+ ...A
2270
2618
  },
2271
- ...A
2619
+ ...u
2272
2620
  };
2273
2621
  }
2274
2622
  return r !== void 0 ? {
2275
2623
  [o]: {
2276
- [a]: n
2624
+ [a]: i
2277
2625
  },
2278
2626
  ...r
2279
2627
  } : {
2280
- [o]: { [a]: n }
2628
+ [o]: { [a]: i }
2281
2629
  };
2282
2630
  };
2283
2631
  await this.addBurnInputsIfNeeded(), Array.from(this._totalMints, (t) => ({
2284
2632
  unit: t[0],
2285
2633
  data: t[1]
2286
2634
  })).reduce((t, r) => t.set(r.data.label, e(r, t.get(r.data.label))), /* @__PURE__ */ new Map()).forEach((t, r) => {
2287
- this._txBuilder.add_json_metadatum(i.BigNum.from_str(r), JSON.stringify(t));
2635
+ this._txBuilder.add_json_metadatum(n.BigNum.from_str(r), JSON.stringify(t));
2288
2636
  }), this.addMintOutputs();
2289
2637
  }
2290
2638
  async filterAvailableUTxOs(e = []) {
@@ -2292,9 +2640,9 @@ let L = class {
2292
2640
  }
2293
2641
  addMintOutputs() {
2294
2642
  this._recipients.forEach((e, t) => {
2295
- const a = Et(e).multiasset();
2643
+ const a = Bt(e).multiasset();
2296
2644
  if (a !== void 0) {
2297
- const o = Ct(t).next().with_asset_and_min_required_coin_by_utxo_cost(a, ge(this._protocolParameters.coinsPerUTxOSize)).build();
2645
+ const o = _t(t).next().with_asset_and_min_required_coin_by_utxo_cost(a, me(this._protocolParameters.coinsPerUTxOSize)).build();
2298
2646
  this._txBuilder.add_output(o);
2299
2647
  }
2300
2648
  });
@@ -2303,7 +2651,7 @@ let L = class {
2303
2651
  return this.__visits.includes(e) === !1;
2304
2652
  }
2305
2653
  setTxOutput(e) {
2306
- const r = i.BigNum.from_str(this._txOutputs.get(e.unit) ?? "0").checked_add(i.BigNum.from_str(e.quantity)).to_str();
2654
+ const r = n.BigNum.from_str(this._txOutputs.get(e.unit) ?? "0").checked_add(n.BigNum.from_str(e.quantity)).to_str();
2307
2655
  this._txOutputs.set(e.unit, r);
2308
2656
  }
2309
2657
  };
@@ -2331,7 +2679,7 @@ X([
2331
2679
  L = X([
2332
2680
  Xs
2333
2681
  ], L);
2334
- class y {
2682
+ class C {
2335
2683
  _networkId;
2336
2684
  _encryptedSecret;
2337
2685
  constructor(e, t) {
@@ -2339,9 +2687,9 @@ class y {
2339
2687
  }
2340
2688
  getAccount(e, t) {
2341
2689
  return this.accountContext(e, t, (r, a) => {
2342
- const n = fe(this._networkId, r.to_public().hash(), a.to_public().hash()).to_address().to_bech32(), o = _e(this._networkId, r.to_public().hash()).to_address().to_bech32(), c = Ft(this._networkId, a.to_public().hash()).to_address().to_bech32();
2690
+ const i = Ie(this._networkId, r.to_public().hash(), a.to_public().hash()).to_address().to_bech32(), o = fe(this._networkId, r.to_public().hash()).to_address().to_bech32(), c = Pt(this._networkId, a.to_public().hash()).to_address().to_bech32();
2343
2691
  return {
2344
- baseAddress: n,
2692
+ baseAddress: i,
2345
2693
  enterpriseAddress: o,
2346
2694
  rewardAddress: c
2347
2695
  };
@@ -2349,175 +2697,175 @@ class y {
2349
2697
  }
2350
2698
  signData(e, t, r, a) {
2351
2699
  try {
2352
- return this.accountContext(e, t, (n, o) => {
2353
- const c = { payload: a }, A = {
2354
- address: y.resolveAddress(this._networkId, r, n, o),
2355
- key: r.startsWith("stake") ? o : n
2356
- }, { coseSign1: u, coseKey: d } = ds(c, A);
2357
- return { signature: u, key: d };
2700
+ return this.accountContext(e, t, (i, o) => {
2701
+ const c = { payload: a }, u = {
2702
+ address: C.resolveAddress(this._networkId, r, i, o),
2703
+ key: r.startsWith("stake") ? o : i
2704
+ }, { coseSign1: A, coseKey: d } = ds(c, u);
2705
+ return { signature: A, key: d };
2358
2706
  });
2359
- } catch (n) {
2360
- throw new Error(`An error occurred during signData: ${n}.`);
2707
+ } catch (i) {
2708
+ throw new Error(`An error occurred during signData: ${i}.`);
2361
2709
  }
2362
2710
  }
2363
- signTx(e, t, r, a, n) {
2711
+ signTx(e, t, r, a, i) {
2364
2712
  try {
2365
- const o = He(js(a));
2366
- return this.accountContext(e, t, (c, A) => {
2367
- const u = i.Vkeywitnesses.new();
2368
- return y.resolveSigners(a, r, c.to_public().hash().to_hex()).forEach((h) => {
2369
- if (h === c.to_public().hash().to_hex())
2370
- u.add(i.make_vkey_witness(o, c));
2371
- else if (h === A.to_public().hash().to_hex())
2372
- u.add(i.make_vkey_witness(o, A));
2373
- else if (n === !1)
2374
- throw new Error(`Missing key witness for: ${h}`);
2375
- }), u;
2713
+ const o = Fe(js(a));
2714
+ return this.accountContext(e, t, (c, u) => {
2715
+ const A = n.Vkeywitnesses.new();
2716
+ return C.resolveSigners(a, r, c.to_public().hash().to_hex()).forEach((g) => {
2717
+ if (g === c.to_public().hash().to_hex())
2718
+ A.add(n.make_vkey_witness(o, c));
2719
+ else if (g === u.to_public().hash().to_hex())
2720
+ A.add(n.make_vkey_witness(o, u));
2721
+ else if (i === !1)
2722
+ throw new Error(`Missing key witness for: ${g}`);
2723
+ }), A;
2376
2724
  });
2377
2725
  } catch (o) {
2378
2726
  throw new Error(`An error occurred during signTx: ${o}.`);
2379
2727
  }
2380
2728
  }
2381
2729
  static encryptMnemonic(e, t) {
2382
- const r = ye(e.join(" ")), a = Ye(r), n = b(a.as_bytes());
2383
- return a.free(), y.encrypt(n, t);
2730
+ const r = Ce(e.join(" ")), a = Ye(r), i = b(a.as_bytes());
2731
+ return a.free(), C.encrypt(i, t);
2384
2732
  }
2385
2733
  static encryptPrivateKey(e, t) {
2386
- const r = i.Bip32PrivateKey.from_bech32(e), a = b(r.as_bytes());
2387
- return r.free(), y.encrypt(a, t);
2734
+ const r = n.Bip32PrivateKey.from_bech32(e), a = b(r.as_bytes());
2735
+ return r.free(), C.encrypt(a, t);
2388
2736
  }
2389
2737
  static encryptSigningKeys(e, t, r) {
2390
- const a = y.encrypt(e.slice(4), r), n = y.encrypt(t.slice(4), r);
2391
- return [a, n];
2738
+ const a = C.encrypt(e.slice(4), r), i = C.encrypt(t.slice(4), r);
2739
+ return [a, i];
2392
2740
  }
2393
2741
  static generateMnemonic(e = 256) {
2394
- return qe(e).split(" ");
2742
+ return $e(e).split(" ");
2395
2743
  }
2396
2744
  accountContext(e, t, r) {
2397
- const { paymentKey: a, stakeKey: n } = y.resolveKeys(e, t, this._encryptedSecret), o = r(a, n);
2398
- return a.free(), n.free(), o;
2745
+ const { paymentKey: a, stakeKey: i } = C.resolveKeys(e, t, this._encryptedSecret), o = r(a, i);
2746
+ return a.free(), i.free(), o;
2399
2747
  }
2400
2748
  static decrypt(e, t) {
2401
2749
  try {
2402
- return i.decrypt_with_password(Q(t), e);
2750
+ return n.decrypt_with_password(S(t), e);
2403
2751
  } catch {
2404
2752
  throw new Error("The password is incorrect.");
2405
2753
  }
2406
2754
  }
2407
2755
  static encrypt(e, t) {
2408
- const r = we("0123456789abcdef"), a = r(64), n = r(24);
2409
- return i.encrypt_with_password(Q(t), a, n, e);
2756
+ const r = ye("0123456789abcdef"), a = r(64), i = r(24);
2757
+ return n.encrypt_with_password(S(t), a, i, e);
2410
2758
  }
2411
2759
  static resolveAddress(e, t, r, a) {
2412
- const n = [
2413
- fe(e, r.to_public().hash(), a.to_public().hash()),
2414
- _e(e, r.to_public().hash()),
2415
- Ft(e, a.to_public().hash())
2760
+ const i = [
2761
+ Ie(e, r.to_public().hash(), a.to_public().hash()),
2762
+ fe(e, r.to_public().hash()),
2763
+ Pt(e, a.to_public().hash())
2416
2764
  ].find((o) => o.to_address().to_bech32() === t);
2417
- if (n !== void 0)
2418
- return n.to_address();
2765
+ if (i !== void 0)
2766
+ return i.to_address();
2419
2767
  throw new Error(`Address: ${t} doesn't belong to this account.`);
2420
2768
  }
2421
2769
  static resolveKeys(e, t, r) {
2422
2770
  if (typeof r == "string") {
2423
- const o = y.decrypt(r, t);
2424
- return Ps(o, e);
2771
+ const o = C.decrypt(r, t);
2772
+ return Ts(o, e);
2425
2773
  }
2426
- const a = y.decrypt(r[0], t), n = y.decrypt(r[1], t);
2774
+ const a = C.decrypt(r[0], t), i = C.decrypt(r[1], t);
2427
2775
  return {
2428
- paymentKey: i.PrivateKey.from_hex(a),
2429
- stakeKey: i.PrivateKey.from_hex(n)
2776
+ paymentKey: n.PrivateKey.from_hex(a),
2777
+ stakeKey: n.PrivateKey.from_hex(i)
2430
2778
  };
2431
2779
  }
2432
2780
  static resolveSigners(e, t, r) {
2433
2781
  const a = (c) => {
2434
- const A = (_, B = [], m = 0) => {
2435
- var ft, ct, Rt, Lt, $t;
2436
- if (_ === void 0 || m >= _.len())
2437
- return B;
2438
- const D = _.get(m), k = new Array();
2439
- switch (D.kind()) {
2440
- case i.CertificateKind.StakeDeregistration: {
2441
- const w = (ft = D.as_stake_deregistration()) == null ? void 0 : ft.stake_credential(), M = (w == null ? void 0 : w.kind()) === i.StakeCredKind.Key ? w.to_keyhash() : void 0;
2442
- M && k.push(M.to_hex());
2782
+ const u = (f, E = [], w = 0) => {
2783
+ var It, ct, Gt, Lt, Rt;
2784
+ if (f === void 0 || w >= f.len())
2785
+ return E;
2786
+ const v = f.get(w), k = new Array();
2787
+ switch (v.kind()) {
2788
+ case n.CertificateKind.StakeDeregistration: {
2789
+ const y = (It = v.as_stake_deregistration()) == null ? void 0 : It.stake_credential(), H = (y == null ? void 0 : y.kind()) === n.StakeCredKind.Key ? y.to_keyhash() : void 0;
2790
+ H && k.push(H.to_hex());
2443
2791
  break;
2444
2792
  }
2445
- case i.CertificateKind.StakeDelegation: {
2446
- const w = (ct = D.as_stake_delegation()) == null ? void 0 : ct.stake_credential(), M = (w == null ? void 0 : w.kind()) === i.StakeCredKind.Key ? w.to_keyhash() : void 0;
2447
- M && k.push(M.to_hex());
2793
+ case n.CertificateKind.StakeDelegation: {
2794
+ const y = (ct = v.as_stake_delegation()) == null ? void 0 : ct.stake_credential(), H = (y == null ? void 0 : y.kind()) === n.StakeCredKind.Key ? y.to_keyhash() : void 0;
2795
+ H && k.push(H.to_hex());
2448
2796
  break;
2449
2797
  }
2450
- case i.CertificateKind.PoolRegistration: {
2451
- const w = (Rt = D.as_pool_registration()) == null ? void 0 : Rt.pool_params().pool_owners();
2452
- k.push(...d(w));
2798
+ case n.CertificateKind.PoolRegistration: {
2799
+ const y = (Gt = v.as_pool_registration()) == null ? void 0 : Gt.pool_params().pool_owners();
2800
+ k.push(...d(y));
2453
2801
  break;
2454
2802
  }
2455
- case i.CertificateKind.PoolRetirement: {
2456
- const w = (Lt = D.as_pool_retirement()) == null ? void 0 : Lt.pool_keyhash();
2457
- w && k.push(w.to_hex());
2803
+ case n.CertificateKind.PoolRetirement: {
2804
+ const y = (Lt = v.as_pool_retirement()) == null ? void 0 : Lt.pool_keyhash();
2805
+ y && k.push(y.to_hex());
2458
2806
  break;
2459
2807
  }
2460
- case i.CertificateKind.MoveInstantaneousRewardsCert: {
2461
- const w = ($t = D.as_move_instantaneous_rewards_cert()) == null ? void 0 : $t.move_instantaneous_reward().as_to_stake_creds();
2462
- if (w)
2463
- for (let M = 0; M < w.len(); M += 1) {
2464
- const qt = w.keys().get(M), zt = qt.kind() === i.StakeCredKind.Key ? qt.to_keyhash() : void 0;
2808
+ case n.CertificateKind.MoveInstantaneousRewardsCert: {
2809
+ const y = (Rt = v.as_move_instantaneous_rewards_cert()) == null ? void 0 : Rt.move_instantaneous_reward().as_to_stake_creds();
2810
+ if (y)
2811
+ for (let H = 0; H < y.len(); H += 1) {
2812
+ const $t = y.keys().get(H), zt = $t.kind() === n.StakeCredKind.Key ? $t.to_keyhash() : void 0;
2465
2813
  zt && k.push(zt.to_hex());
2466
2814
  }
2467
2815
  break;
2468
2816
  }
2469
2817
  }
2470
- return A(_, [...B, ...k], m + 1);
2471
- }, u = (_, B = [], m = 0) => {
2472
- if (_ === void 0 || m >= _.len())
2473
- return B;
2474
- const D = _.get(m).index(), k = _.get(m).transaction_id(), ft = t.find((ct) => ct.input.outputIndex === D && ct.input.txHash === k.to_hex()) !== void 0 ? r : "OUR_PRINCESS_IS_IN_ANOTHER_CASTLE";
2475
- return u(_, [...B, ft], m + 1);
2476
- }, d = (_, B = [], m = 0) => _ === void 0 || m >= _.len() ? B : d(_, [...B, _.get(m).to_hex()], m + 1), h = (_, B = [], m = 0) => {
2477
- if (_ === void 0 || m >= _.len())
2478
- return B;
2479
- const D = _.keys().get(m).payment_cred(), k = D.kind() === i.StakeCredKind.Key ? D.to_keyhash() : void 0;
2480
- return h(_, k ? [...B, k.to_hex()] : B, m + 1);
2481
- }, f = c.certs(), C = c.collateral(), x = c.inputs(), T = c.required_signers(), $ = c.withdrawals();
2818
+ return u(f, [...E, ...k], w + 1);
2819
+ }, A = (f, E = [], w = 0) => {
2820
+ if (f === void 0 || w >= f.len())
2821
+ return E;
2822
+ const v = f.get(w).index(), k = f.get(w).transaction_id(), It = t.find((ct) => ct.input.outputIndex === v && ct.input.txHash === k.to_hex()) !== void 0 ? r : "OUR_PRINCESS_IS_IN_ANOTHER_CASTLE";
2823
+ return A(f, [...E, It], w + 1);
2824
+ }, d = (f, E = [], w = 0) => f === void 0 || w >= f.len() ? E : d(f, [...E, f.get(w).to_hex()], w + 1), g = (f, E = [], w = 0) => {
2825
+ if (f === void 0 || w >= f.len())
2826
+ return E;
2827
+ const v = f.keys().get(w).payment_cred(), k = v.kind() === n.StakeCredKind.Key ? v.to_keyhash() : void 0;
2828
+ return g(f, k ? [...E, k.to_hex()] : E, w + 1);
2829
+ }, I = c.certs(), _ = c.collateral(), x = c.inputs(), M = c.required_signers(), R = c.withdrawals();
2482
2830
  return [
2483
- ...A(f),
2484
- ...u(C),
2485
- ...u(x),
2486
- ...d(T),
2487
- ...h($)
2831
+ ...u(I),
2832
+ ...A(_),
2833
+ ...A(x),
2834
+ ...d(M),
2835
+ ...g(R)
2488
2836
  ];
2489
- }, n = (c) => {
2490
- const A = (d, h = []) => {
2491
- var f, C, x, T;
2837
+ }, i = (c) => {
2838
+ const u = (d, g = []) => {
2839
+ var I, _, x, M;
2492
2840
  if (d)
2493
- for (let $ = 0; $ < d.len(); $ += 1) {
2494
- const _ = d.get($);
2495
- switch (_.kind()) {
2496
- case i.NativeScriptKind.ScriptPubkey: {
2497
- const B = (f = _.as_script_pubkey()) == null ? void 0 : f.addr_keyhash().to_hex();
2498
- return B ? [...h, B] : h;
2841
+ for (let R = 0; R < d.len(); R += 1) {
2842
+ const f = d.get(R);
2843
+ switch (f.kind()) {
2844
+ case n.NativeScriptKind.ScriptPubkey: {
2845
+ const E = (I = f.as_script_pubkey()) == null ? void 0 : I.addr_keyhash().to_hex();
2846
+ return E ? [...g, E] : g;
2499
2847
  }
2500
- case i.NativeScriptKind.ScriptAll:
2501
- return A((C = _.as_script_all()) == null ? void 0 : C.native_scripts(), h);
2502
- case i.NativeScriptKind.ScriptAny:
2503
- return A((x = _.as_script_any()) == null ? void 0 : x.native_scripts(), h);
2504
- case i.NativeScriptKind.ScriptNOfK:
2505
- return A((T = _.as_script_n_of_k()) == null ? void 0 : T.native_scripts(), h);
2848
+ case n.NativeScriptKind.ScriptAll:
2849
+ return u((_ = f.as_script_all()) == null ? void 0 : _.native_scripts(), g);
2850
+ case n.NativeScriptKind.ScriptAny:
2851
+ return u((x = f.as_script_any()) == null ? void 0 : x.native_scripts(), g);
2852
+ case n.NativeScriptKind.ScriptNOfK:
2853
+ return u((M = f.as_script_n_of_k()) == null ? void 0 : M.native_scripts(), g);
2506
2854
  }
2507
2855
  }
2508
- return h;
2509
- }, u = c.native_scripts();
2856
+ return g;
2857
+ }, A = c.native_scripts();
2510
2858
  return [
2511
- ...A(u)
2859
+ ...u(A)
2512
2860
  ];
2513
2861
  }, o = Y(e);
2514
2862
  return /* @__PURE__ */ new Set([
2515
2863
  ...a(o.body()),
2516
- ...n(o.witness_set())
2864
+ ...i(o.witness_set())
2517
2865
  ]);
2518
2866
  }
2519
2867
  }
2520
- const K = "MARI0TIME";
2868
+ const U = "MARI0TIME";
2521
2869
  class br {
2522
2870
  _fetcher;
2523
2871
  _submitter;
@@ -2525,43 +2873,43 @@ class br {
2525
2873
  constructor(e) {
2526
2874
  switch (this._fetcher = e.fetcher, this._submitter = e.submitter, e.key.type) {
2527
2875
  case "mnemonic":
2528
- this._wallet = new y(e.networkId, y.encryptMnemonic(e.key.words, K));
2876
+ this._wallet = new C(e.networkId, C.encryptMnemonic(e.key.words, U));
2529
2877
  break;
2530
2878
  case "root":
2531
- this._wallet = new y(e.networkId, y.encryptPrivateKey(e.key.bech32, K));
2879
+ this._wallet = new C(e.networkId, C.encryptPrivateKey(e.key.bech32, U));
2532
2880
  break;
2533
2881
  case "cli":
2534
- this._wallet = new y(e.networkId, y.encryptSigningKeys(e.key.payment, e.key.stake ?? "f0".repeat(34), K));
2882
+ this._wallet = new C(e.networkId, C.encryptSigningKeys(e.key.payment, e.key.stake ?? "f0".repeat(34), U));
2535
2883
  }
2536
2884
  }
2537
2885
  getPaymentAddress(e = 0) {
2538
- return this._wallet.getAccount(e, K).enterpriseAddress;
2886
+ return this._wallet.getAccount(e, U).enterpriseAddress;
2539
2887
  }
2540
2888
  getRewardAddress(e = 0) {
2541
- return this._wallet.getAccount(e, K).rewardAddress;
2889
+ return this._wallet.getAccount(e, U).rewardAddress;
2542
2890
  }
2543
2891
  getUsedAddress(e = 0) {
2544
- const t = this._wallet.getAccount(e, K);
2545
- return H(t.enterpriseAddress);
2892
+ const t = this._wallet.getAccount(e, U);
2893
+ return F(t.enterpriseAddress);
2546
2894
  }
2547
- getUsedCollateral(e = G.maxCollateralInputs) {
2895
+ getUsedCollateral(e = q.maxCollateralInputs) {
2548
2896
  throw new Error("getUsedCollateral not implemented.");
2549
2897
  }
2550
2898
  async getUsedUTxOs(e = 0) {
2551
- const t = this._wallet.getAccount(e, K);
2899
+ const t = this._wallet.getAccount(e, U);
2552
2900
  return (await this._fetcher.fetchAddressUTxOs(t.enterpriseAddress)).map((a) => V(a));
2553
2901
  }
2554
2902
  signData(e, t, r = 0) {
2555
2903
  try {
2556
- return this._wallet.signData(r, K, e, t);
2904
+ return this._wallet.signData(r, U, e, t);
2557
2905
  } catch (a) {
2558
2906
  throw new Error(`[AppWallet] An error occurred during signData: ${a}.`);
2559
2907
  }
2560
2908
  }
2561
2909
  async signTx(e, t = !1, r = 0) {
2562
2910
  try {
2563
- const a = this._wallet.getAccount(r, K), n = await this._fetcher.fetchAddressUTxOs(a.enterpriseAddress), o = this._wallet.signTx(r, K, n, e, t), c = Y(e), A = c.witness_set(), u = Le(A, o);
2564
- return A.set_vkeys(u), i.Transaction.new(c.body(), A, c.auxiliary_data()).to_hex();
2911
+ const a = this._wallet.getAccount(r, U), i = await this._fetcher.fetchAddressUTxOs(a.enterpriseAddress), o = this._wallet.signTx(r, U, i, e, t), c = Y(e), u = c.witness_set(), A = Le(u, o);
2912
+ return u.set_vkeys(A), n.Transaction.new(c.body(), u, c.auxiliary_data()).to_hex();
2565
2913
  } catch (a) {
2566
2914
  throw new Error(`[AppWallet] An error occurred during signTx: ${a}.`);
2567
2915
  }
@@ -2570,10 +2918,10 @@ class br {
2570
2918
  return this._submitter.submitTx(e);
2571
2919
  }
2572
2920
  static brew(e = 256) {
2573
- return y.generateMnemonic(e);
2921
+ return C.generateMnemonic(e);
2574
2922
  }
2575
2923
  }
2576
- class Ht {
2924
+ class Ft {
2577
2925
  _walletInstance;
2578
2926
  constructor(e) {
2579
2927
  this._walletInstance = e;
@@ -2587,9 +2935,9 @@ class Ht {
2587
2935
  }
2588
2936
  static async enable(e) {
2589
2937
  try {
2590
- const t = await Ht.resolveInstance(e);
2938
+ const t = await Ft.resolveInstance(e);
2591
2939
  if (t !== void 0)
2592
- return new Ht(t);
2940
+ return new Ft(t);
2593
2941
  throw new Error(`Couldn't create an instance of wallet: ${e}`);
2594
2942
  } catch (t) {
2595
2943
  throw new Error(`[BrowserWallet] An error occurred during enable: ${t}.`);
@@ -2603,8 +2951,8 @@ class Ht {
2603
2951
  const e = await this._walletInstance.getChangeAddress();
2604
2952
  return et(e).to_bech32();
2605
2953
  }
2606
- async getCollateral(e = G.maxCollateralInputs) {
2607
- return (await this.getUsedCollateral(e)).map((r) => St(r));
2954
+ async getCollateral(e = q.maxCollateralInputs) {
2955
+ return (await this.getUsedCollateral(e)).map((r) => Qt(r));
2608
2956
  }
2609
2957
  getNetworkId() {
2610
2958
  return this._walletInstance.getNetworkId();
@@ -2619,16 +2967,16 @@ class Ht {
2619
2967
  return (await this._walletInstance.getUsedAddresses()).map((t) => et(t).to_bech32());
2620
2968
  }
2621
2969
  async getUtxos() {
2622
- return (await this.getUsedUTxOs()).map((t) => St(t));
2970
+ return (await this.getUsedUTxOs()).map((t) => Qt(t));
2623
2971
  }
2624
2972
  signData(e, t) {
2625
- const r = H(e).to_hex();
2626
- return this._walletInstance.signData(r, Q(t));
2973
+ const r = F(e).to_hex();
2974
+ return this._walletInstance.signData(r, S(t));
2627
2975
  }
2628
2976
  async signTx(e, t = !1) {
2629
2977
  try {
2630
- const r = Y(e), a = r.witness_set(), n = await this._walletInstance.signTx(e, t), o = Rs(n).vkeys() ?? i.Vkeywitnesses.new(), c = Le(a, o);
2631
- return a.set_vkeys(c), b(i.Transaction.new(r.body(), a, r.auxiliary_data()).to_bytes());
2978
+ const r = Y(e), a = r.witness_set(), i = await this._walletInstance.signTx(e, t), o = Gs(i).vkeys() ?? n.Vkeywitnesses.new(), c = Le(a, o);
2979
+ return a.set_vkeys(c), b(n.Transaction.new(r.body(), a, r.auxiliary_data()).to_bytes());
2632
2980
  } catch (r) {
2633
2981
  throw new Error(`[BrowserWallet] An error occurred during signTx: ${JSON.stringify(r)}.`);
2634
2982
  }
@@ -2640,20 +2988,20 @@ class Ht {
2640
2988
  const e = await this._walletInstance.getUsedAddresses();
2641
2989
  return et(e[0]);
2642
2990
  }
2643
- async getUsedCollateral(e = G.maxCollateralInputs) {
2644
- return (await this._walletInstance.experimental.getCollateral() ?? []).map((r) => Ie(r)).slice(0, e);
2991
+ async getUsedCollateral(e = q.maxCollateralInputs) {
2992
+ return (await this._walletInstance.experimental.getCollateral() ?? []).map((r) => le(r)).slice(0, e);
2645
2993
  }
2646
2994
  async getUsedUTxOs() {
2647
- return (await this._walletInstance.getUtxos() ?? []).map((t) => Ie(t));
2995
+ return (await this._walletInstance.getUtxos() ?? []).map((t) => le(t));
2648
2996
  }
2649
2997
  async getAssets() {
2650
2998
  return (await this.getBalance()).filter((t) => t.unit !== "lovelace").map((t) => {
2651
- const r = t.unit.slice(0, F), a = t.unit.slice(F), n = Ws(r, a);
2999
+ const r = t.unit.slice(0, P), a = t.unit.slice(P), i = Ws(r, a);
2652
3000
  return {
2653
3001
  unit: t.unit,
2654
3002
  policyId: r,
2655
3003
  assetName: Yt(a),
2656
- fingerprint: n,
3004
+ fingerprint: i,
2657
3005
  quantity: t.quantity
2658
3006
  };
2659
3007
  });
@@ -2667,7 +3015,7 @@ class Ht {
2667
3015
  }
2668
3016
  async getPolicyIds() {
2669
3017
  const e = await this.getBalance();
2670
- return Array.from(new Set(e.map((t) => t.unit.slice(0, F)))).filter((t) => t !== "lovelace");
3018
+ return Array.from(new Set(e.map((t) => t.unit.slice(0, P)))).filter((t) => t !== "lovelace");
2671
3019
  }
2672
3020
  static resolveInstance(e) {
2673
3021
  if (window.cardano === void 0)
@@ -2676,8 +3024,8 @@ class Ht {
2676
3024
  return t == null ? void 0 : t.enable();
2677
3025
  }
2678
3026
  }
2679
- const $e = "http://localhost:4000/", Zs = "http://localhost:5000/", tr = `${$e}access`, er = `${$e}transaction/signtx`;
2680
- class vr {
3027
+ const Re = "http://localhost:4000/", Zs = "http://localhost:5000/", tr = `${Re}access`, er = `${Re}transaction/signtx`;
3028
+ class Dr {
2681
3029
  static getAxiosInstance() {
2682
3030
  return j.create({
2683
3031
  baseURL: Zs,
@@ -2691,9 +3039,9 @@ class vr {
2691
3039
  const t = this.getAppId();
2692
3040
  e.includes("?") ? e = `${e}&appId=${t}` : e = `${e}?appId=${t}`;
2693
3041
  const r = "left=100,top=100,width=540,height=540", a = window.open(e, "meshWindow", r);
2694
- return a || console.error("the window did not open", a), await (async () => new Promise((n) => {
3042
+ return a || console.error("the window did not open", a), await (async () => new Promise((i) => {
2695
3043
  window.addEventListener("message", async (o) => {
2696
- o.data.target == "minaWallet" && n(o.data);
3044
+ o.data.target == "minaWallet" && i(o.data);
2697
3045
  });
2698
3046
  }))();
2699
3047
  }
@@ -2731,10 +3079,10 @@ class vr {
2731
3079
  const r = await this.get("wallet/getuserwalletsmeta");
2732
3080
  if (console.log("userWalletsMeta", r), r) {
2733
3081
  const a = await this.openMinaFrontend(`${er}?unsignedTx=${e}&partialSign=${t}`);
2734
- if (a instanceof i.Vkeywitnesses) {
2735
- const n = Y(e), o = n.witness_set();
3082
+ if (a instanceof n.Vkeywitnesses) {
3083
+ const i = Y(e), o = i.witness_set();
2736
3084
  o.set_vkeys(a);
2737
- const c = i.Transaction.new(n.body(), o, n.auxiliary_data()).to_hex();
3085
+ const c = n.Transaction.new(i.body(), o, i.auxiliary_data()).to_hex();
2738
3086
  return console.log("signedTx", c), c;
2739
3087
  }
2740
3088
  } else
@@ -2743,38 +3091,40 @@ class vr {
2743
3091
  }
2744
3092
  export {
2745
3093
  br as AppWallet,
2746
- yr as BlockfrostProvider,
2747
- Ht as BrowserWallet,
2748
- y as EmbeddedWallet,
2749
- Qr as ForgeScript,
2750
- mr as InfuraProvider,
2751
- Er as KoiosProvider,
2752
- vr as MinaWallet,
2753
- Br as OgmiosProvider,
3094
+ Cr as BlockfrostProvider,
3095
+ Ft as BrowserWallet,
3096
+ C as EmbeddedWallet,
3097
+ Sr as ForgeScript,
3098
+ wr as InfuraProvider,
3099
+ Br as KoiosProvider,
3100
+ Dr as MinaWallet,
3101
+ Er as OgmiosProvider,
2754
3102
  xr as TangoProvider,
2755
3103
  L as Transaction,
2756
3104
  or as checkSignature,
2757
3105
  pr as generateNonce,
2758
3106
  ts as isNetwork,
2759
- is as keepRelevant,
2760
- nr as largestFirst,
2761
- ns as largestFirstMultiAsset,
2762
- Cr as readPlutusData,
2763
- wr as readTransaction,
3107
+ ns as keepRelevant,
3108
+ ir as largestFirst,
3109
+ is as largestFirstMultiAsset,
3110
+ ot as parseAssetUnit,
3111
+ l as parseHttpError,
3112
+ _r as readPlutusData,
3113
+ yr as readTransaction,
2764
3114
  cr as resolveDataHash,
2765
- Ar as resolveEpochNo,
3115
+ ur as resolveEpochNo,
2766
3116
  Ws as resolveFingerprint,
2767
- ur as resolveLanguageView,
2768
- hr as resolveNativeScriptHash,
3117
+ Ar as resolveLanguageView,
3118
+ gr as resolveNativeScriptHash,
2769
3119
  st as resolvePaymentKeyHash,
2770
3120
  dr as resolvePlutusScriptAddress,
2771
- Ir as resolvePlutusScriptHash,
2772
- lr as resolvePoolId,
2773
- fr as resolvePrivateKey,
2774
- Gt as resolveRewardAddress,
2775
- gr as resolveScriptRef,
2776
- _r as resolveSlotNo,
2777
- ut as resolveStakeKeyHash,
2778
- Re as resolveTxFees,
3121
+ lr as resolvePlutusScriptHash,
3122
+ hr as resolvePoolId,
3123
+ Ir as resolvePrivateKey,
3124
+ qt as resolveRewardAddress,
3125
+ mr as resolveScriptRef,
3126
+ fr as resolveSlotNo,
3127
+ At as resolveStakeKeyHash,
3128
+ Ge as resolveTxFees,
2779
3129
  js as resolveTxHash
2780
3130
  };