@pbgtoken/rwa-contract 1.1.7 → 1.1.17

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.
@@ -0,0 +1,954 @@
1
+ import type { IntLike } from "@helios-lang/codec-utils";
2
+ import type { Cast, CastConfig, UserFunc } from "@helios-lang/contract-utils";
3
+ import type { Address, AssetClass, MintingPolicyHash, PubKeyHash, ScriptHash, TimeLike, TxInput, TxOutputId } from "@helios-lang/ledger";
4
+ import type { UplcData, UplcProgram } from "@helios-lang/uplc";
5
+ export declare const account_aggregate: {
6
+ $name: "account_aggregate";
7
+ $purpose: "mixed";
8
+ $currentScriptIndex: 0;
9
+ $sourceCode: string;
10
+ $dependencies: readonly [];
11
+ $hashDependencies: never[];
12
+ $dependsOnOwnHash: boolean;
13
+ $Redeemer: (config: CastConfig) => Cast<{
14
+ Other: {
15
+ redeemer: UplcData;
16
+ };
17
+ } | {
18
+ Spending: {
19
+ redeemer: UplcData;
20
+ };
21
+ }, {
22
+ Other: {
23
+ redeemer: UplcData;
24
+ };
25
+ } | {
26
+ Spending: {
27
+ redeemer: UplcData;
28
+ };
29
+ }>;
30
+ $Datum: (config: CastConfig) => Cast<UplcData, UplcData>;
31
+ $types: {
32
+ State: (config: CastConfig) => Cast<{
33
+ current_supply: bigint;
34
+ supply_after_last_mint: bigint;
35
+ transfer_id_before_last_mint: number[];
36
+ type: string;
37
+ account: number[];
38
+ name: string;
39
+ description: string;
40
+ decimals: bigint;
41
+ ticker: string;
42
+ url: string;
43
+ logo: string;
44
+ }, {
45
+ current_supply: IntLike;
46
+ supply_after_last_mint: IntLike;
47
+ transfer_id_before_last_mint: number[];
48
+ type: string;
49
+ account: number[];
50
+ name: string;
51
+ description: string;
52
+ decimals: IntLike;
53
+ ticker: string;
54
+ url: string;
55
+ logo: string;
56
+ }>;
57
+ Cip68Extra: (config: CastConfig) => Cast<{
58
+ Unused: {};
59
+ }, {
60
+ Unused: {};
61
+ }>;
62
+ Metadata: (config: CastConfig) => Cast<{
63
+ Cip68: {
64
+ state: {
65
+ current_supply: bigint;
66
+ supply_after_last_mint: bigint;
67
+ transfer_id_before_last_mint: number[];
68
+ type: string;
69
+ account: number[];
70
+ name: string;
71
+ description: string;
72
+ decimals: bigint;
73
+ ticker: string;
74
+ url: string;
75
+ logo: string;
76
+ };
77
+ version: bigint;
78
+ extra: {
79
+ Unused: {};
80
+ };
81
+ };
82
+ }, {
83
+ Cip68: {
84
+ state: {
85
+ current_supply: IntLike;
86
+ supply_after_last_mint: IntLike;
87
+ transfer_id_before_last_mint: number[];
88
+ type: string;
89
+ account: number[];
90
+ name: string;
91
+ description: string;
92
+ decimals: IntLike;
93
+ ticker: string;
94
+ url: string;
95
+ logo: string;
96
+ };
97
+ version: IntLike;
98
+ extra: {
99
+ Unused: {};
100
+ };
101
+ };
102
+ }>;
103
+ Redeemer: (config: CastConfig) => Cast<{
104
+ total_reserves: number;
105
+ reserves_change: number;
106
+ latest_transfer_id: number[];
107
+ }, {
108
+ total_reserves: number;
109
+ reserves_change: number;
110
+ latest_transfer_id: number[];
111
+ }>;
112
+ };
113
+ $functions: {
114
+ "Metadata::state": (uplc: UplcProgram, config: CastConfig) => UserFunc<{
115
+ self: {
116
+ Cip68: {
117
+ state: {
118
+ current_supply: IntLike;
119
+ supply_after_last_mint: IntLike;
120
+ transfer_id_before_last_mint: number[];
121
+ type: string;
122
+ account: number[];
123
+ name: string;
124
+ description: string;
125
+ decimals: IntLike;
126
+ ticker: string;
127
+ url: string;
128
+ logo: string;
129
+ };
130
+ version: IntLike;
131
+ extra: {
132
+ Unused: {};
133
+ };
134
+ };
135
+ };
136
+ }, {
137
+ current_supply: bigint;
138
+ supply_after_last_mint: bigint;
139
+ transfer_id_before_last_mint: number[];
140
+ type: string;
141
+ account: number[];
142
+ name: string;
143
+ description: string;
144
+ decimals: bigint;
145
+ ticker: string;
146
+ url: string;
147
+ logo: string;
148
+ }>;
149
+ SEED_ID: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, TxOutputId>;
150
+ ORACLE_KEYS: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, PubKeyHash[]>;
151
+ INITIAL_PRICE: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number>;
152
+ TYPE: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
153
+ ACCOUNT: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
154
+ TICKER: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
155
+ NAME: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
156
+ DESCRIPTION: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
157
+ DECIMALS: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, bigint>;
158
+ URL: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
159
+ LOGO: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
160
+ ticker_bytes: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
161
+ user_token_name: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
162
+ ref_token_name: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
163
+ own_hash: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, ScriptHash>;
164
+ own_mph: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, MintingPolicyHash>;
165
+ own_address: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, Address>;
166
+ ref_token_asset_class: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, AssetClass>;
167
+ user_token_asset_class: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, AssetClass>;
168
+ validate_initialization: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
169
+ $scriptContext: UplcData;
170
+ }, void>;
171
+ signed_by_quorum: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
172
+ $scriptContext: UplcData;
173
+ }, boolean>;
174
+ calc_token_price: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
175
+ R: number;
176
+ Delta: number;
177
+ current_supply: IntLike;
178
+ supply_after_last_mint: IntLike;
179
+ }, number>;
180
+ validate_state_change: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
181
+ $scriptContext: UplcData;
182
+ redeemer: {
183
+ total_reserves: number;
184
+ reserves_change: number;
185
+ latest_transfer_id: number[];
186
+ };
187
+ input: TxInput;
188
+ }, void>;
189
+ main: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
190
+ $scriptContext: UplcData;
191
+ $datum?: UplcData;
192
+ args: {
193
+ Other: {
194
+ redeemer: UplcData;
195
+ };
196
+ } | {
197
+ Spending: {
198
+ redeemer: UplcData;
199
+ };
200
+ };
201
+ }, void>;
202
+ };
203
+ };
204
+ export declare const corporate_bond_v1: {
205
+ $name: "corporate_bond_v1";
206
+ $purpose: "mixed";
207
+ $currentScriptIndex: 1;
208
+ $sourceCode: string;
209
+ $dependencies: readonly [];
210
+ $hashDependencies: never[];
211
+ $dependsOnOwnHash: boolean;
212
+ $Redeemer: (config: CastConfig) => Cast<{
213
+ Other: {
214
+ redeemer: UplcData;
215
+ };
216
+ } | {
217
+ Spending: {
218
+ redeemer: UplcData;
219
+ };
220
+ }, {
221
+ Other: {
222
+ redeemer: UplcData;
223
+ };
224
+ } | {
225
+ Spending: {
226
+ redeemer: UplcData;
227
+ };
228
+ }>;
229
+ $Datum: (config: CastConfig) => Cast<UplcData, UplcData>;
230
+ $types: {
231
+ Metadata: (config: CastConfig) => Cast<{
232
+ type: string;
233
+ company: string;
234
+ asset: AssetClass;
235
+ principal: bigint;
236
+ rate: bigint;
237
+ start: number;
238
+ duration: bigint;
239
+ interval: bigint;
240
+ ticker: string;
241
+ name: string;
242
+ description: string;
243
+ decimals: bigint;
244
+ url: string;
245
+ logo: string;
246
+ seed: TxOutputId;
247
+ }, {
248
+ type: string;
249
+ company: string;
250
+ asset: AssetClass | string | [string | MintingPolicyHash | number[], string | number[]] | {
251
+ mph: MintingPolicyHash | string | number[];
252
+ tokenName: string | number[];
253
+ };
254
+ principal: IntLike;
255
+ rate: IntLike;
256
+ start: TimeLike;
257
+ duration: IntLike;
258
+ interval: IntLike;
259
+ ticker: string;
260
+ name: string;
261
+ description: string;
262
+ decimals: IntLike;
263
+ url: string;
264
+ logo: string;
265
+ seed: TxOutputId | string;
266
+ }>;
267
+ Cip68Extra: (config: CastConfig) => Cast<{
268
+ Unused: {};
269
+ }, {
270
+ Unused: {};
271
+ }>;
272
+ MetadataWrapper: (config: CastConfig) => Cast<{
273
+ Cip68: {
274
+ metadata: {
275
+ type: string;
276
+ company: string;
277
+ asset: AssetClass;
278
+ principal: bigint;
279
+ rate: bigint;
280
+ start: number;
281
+ duration: bigint;
282
+ interval: bigint;
283
+ ticker: string;
284
+ name: string;
285
+ description: string;
286
+ decimals: bigint;
287
+ url: string;
288
+ logo: string;
289
+ seed: TxOutputId;
290
+ };
291
+ version: bigint;
292
+ extra: {
293
+ Unused: {};
294
+ };
295
+ };
296
+ }, {
297
+ Cip68: {
298
+ metadata: {
299
+ type: string;
300
+ company: string;
301
+ asset: AssetClass | string | [string | MintingPolicyHash | number[], string | number[]] | {
302
+ mph: MintingPolicyHash | string | number[];
303
+ tokenName: string | number[];
304
+ };
305
+ principal: IntLike;
306
+ rate: IntLike;
307
+ start: TimeLike;
308
+ duration: IntLike;
309
+ interval: IntLike;
310
+ ticker: string;
311
+ name: string;
312
+ description: string;
313
+ decimals: IntLike;
314
+ url: string;
315
+ logo: string;
316
+ seed: TxOutputId | string;
317
+ };
318
+ version: IntLike;
319
+ extra: {
320
+ Unused: {};
321
+ };
322
+ };
323
+ }>;
324
+ };
325
+ $functions: {
326
+ "MetadataWrapper::metadata": (uplc: UplcProgram, config: CastConfig) => UserFunc<{
327
+ self: {
328
+ Cip68: {
329
+ metadata: {
330
+ type: string;
331
+ company: string;
332
+ asset: AssetClass | string | [string | MintingPolicyHash | number[], string | number[]] | {
333
+ mph: MintingPolicyHash | string | number[];
334
+ tokenName: string | number[];
335
+ };
336
+ principal: IntLike;
337
+ rate: IntLike;
338
+ start: TimeLike;
339
+ duration: IntLike;
340
+ interval: IntLike;
341
+ ticker: string;
342
+ name: string;
343
+ description: string;
344
+ decimals: IntLike;
345
+ url: string;
346
+ logo: string;
347
+ seed: TxOutputId | string;
348
+ };
349
+ version: IntLike;
350
+ extra: {
351
+ Unused: {};
352
+ };
353
+ };
354
+ };
355
+ }, {
356
+ type: string;
357
+ company: string;
358
+ asset: AssetClass;
359
+ principal: bigint;
360
+ rate: bigint;
361
+ start: number;
362
+ duration: bigint;
363
+ interval: bigint;
364
+ ticker: string;
365
+ name: string;
366
+ description: string;
367
+ decimals: bigint;
368
+ url: string;
369
+ logo: string;
370
+ seed: TxOutputId;
371
+ }>;
372
+ "MetadataWrapper::version": (uplc: UplcProgram, config: CastConfig) => UserFunc<{
373
+ self: {
374
+ Cip68: {
375
+ metadata: {
376
+ type: string;
377
+ company: string;
378
+ asset: AssetClass | string | [string | MintingPolicyHash | number[], string | number[]] | {
379
+ mph: MintingPolicyHash | string | number[];
380
+ tokenName: string | number[];
381
+ };
382
+ principal: IntLike;
383
+ rate: IntLike;
384
+ start: TimeLike;
385
+ duration: IntLike;
386
+ interval: IntLike;
387
+ ticker: string;
388
+ name: string;
389
+ description: string;
390
+ decimals: IntLike;
391
+ url: string;
392
+ logo: string;
393
+ seed: TxOutputId | string;
394
+ };
395
+ version: IntLike;
396
+ extra: {
397
+ Unused: {};
398
+ };
399
+ };
400
+ };
401
+ }, bigint>;
402
+ "MetadataWrapper::extra": (uplc: UplcProgram, config: CastConfig) => UserFunc<{
403
+ self: {
404
+ Cip68: {
405
+ metadata: {
406
+ type: string;
407
+ company: string;
408
+ asset: AssetClass | string | [string | MintingPolicyHash | number[], string | number[]] | {
409
+ mph: MintingPolicyHash | string | number[];
410
+ tokenName: string | number[];
411
+ };
412
+ principal: IntLike;
413
+ rate: IntLike;
414
+ start: TimeLike;
415
+ duration: IntLike;
416
+ interval: IntLike;
417
+ ticker: string;
418
+ name: string;
419
+ description: string;
420
+ decimals: IntLike;
421
+ url: string;
422
+ logo: string;
423
+ seed: TxOutputId | string;
424
+ };
425
+ version: IntLike;
426
+ extra: {
427
+ Unused: {};
428
+ };
429
+ };
430
+ };
431
+ }, {
432
+ Unused: {};
433
+ }>;
434
+ TYPE: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
435
+ COMPANY: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
436
+ ASSET: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, AssetClass>;
437
+ PRINCIPAL: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, bigint>;
438
+ RATE: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, bigint>;
439
+ START: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number>;
440
+ DURATION: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, bigint>;
441
+ INTERVAL: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, bigint>;
442
+ TICKER: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
443
+ SEED: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, TxOutputId>;
444
+ ticker_bytes: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
445
+ user_token_name: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
446
+ ref_token_name: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
447
+ own_hash: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, ScriptHash>;
448
+ own_mph: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, MintingPolicyHash>;
449
+ own_address: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, Address>;
450
+ ref_token_asset_class: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, AssetClass>;
451
+ user_token_asset_class: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, AssetClass>;
452
+ validate_initialization: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
453
+ $scriptContext: UplcData;
454
+ }, void>;
455
+ validate_metadata_change: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
456
+ $scriptContext: UplcData;
457
+ input: TxInput;
458
+ }, void>;
459
+ main: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
460
+ $scriptContext: UplcData;
461
+ $datum?: UplcData;
462
+ args: {
463
+ Other: {
464
+ redeemer: UplcData;
465
+ };
466
+ } | {
467
+ Spending: {
468
+ redeemer: UplcData;
469
+ };
470
+ };
471
+ }, void>;
472
+ };
473
+ };
474
+ export declare const self_reported_asset: {
475
+ $name: "self_reported_asset";
476
+ $purpose: "mixed";
477
+ $currentScriptIndex: 2;
478
+ $sourceCode: string;
479
+ $dependencies: readonly [];
480
+ $hashDependencies: never[];
481
+ $dependsOnOwnHash: boolean;
482
+ $Redeemer: (config: CastConfig) => Cast<{
483
+ Other: {
484
+ redeemer: UplcData;
485
+ };
486
+ } | {
487
+ Spending: {
488
+ redeemer: UplcData;
489
+ };
490
+ }, {
491
+ Other: {
492
+ redeemer: UplcData;
493
+ };
494
+ } | {
495
+ Spending: {
496
+ redeemer: UplcData;
497
+ };
498
+ }>;
499
+ $Datum: (config: CastConfig) => Cast<UplcData, UplcData>;
500
+ $types: {
501
+ State: (config: CastConfig) => Cast<{
502
+ supply: bigint;
503
+ type: string;
504
+ asset: string;
505
+ ticker: string;
506
+ name: string;
507
+ description: string;
508
+ decimals: bigint;
509
+ url: string;
510
+ logo: string;
511
+ owner: PubKeyHash;
512
+ seed: TxOutputId;
513
+ }, {
514
+ supply: IntLike;
515
+ type: string;
516
+ asset: string;
517
+ ticker: string;
518
+ name: string;
519
+ description: string;
520
+ decimals: IntLike;
521
+ url: string;
522
+ logo: string;
523
+ owner: PubKeyHash | string | number[];
524
+ seed: TxOutputId | string;
525
+ }>;
526
+ Cip68Extra: (config: CastConfig) => Cast<{
527
+ Unused: {};
528
+ }, {
529
+ Unused: {};
530
+ }>;
531
+ Metadata: (config: CastConfig) => Cast<{
532
+ Cip68: {
533
+ state: {
534
+ supply: bigint;
535
+ type: string;
536
+ asset: string;
537
+ ticker: string;
538
+ name: string;
539
+ description: string;
540
+ decimals: bigint;
541
+ url: string;
542
+ logo: string;
543
+ owner: PubKeyHash;
544
+ seed: TxOutputId;
545
+ };
546
+ version: bigint;
547
+ extra: {
548
+ Unused: {};
549
+ };
550
+ };
551
+ }, {
552
+ Cip68: {
553
+ state: {
554
+ supply: IntLike;
555
+ type: string;
556
+ asset: string;
557
+ ticker: string;
558
+ name: string;
559
+ description: string;
560
+ decimals: IntLike;
561
+ url: string;
562
+ logo: string;
563
+ owner: PubKeyHash | string | number[];
564
+ seed: TxOutputId | string;
565
+ };
566
+ version: IntLike;
567
+ extra: {
568
+ Unused: {};
569
+ };
570
+ };
571
+ }>;
572
+ Redeemer: (config: CastConfig) => Cast<{
573
+ reserves: bigint;
574
+ }, {
575
+ reserves: IntLike;
576
+ }>;
577
+ };
578
+ $functions: {
579
+ "Metadata::state": (uplc: UplcProgram, config: CastConfig) => UserFunc<{
580
+ self: {
581
+ Cip68: {
582
+ state: {
583
+ supply: IntLike;
584
+ type: string;
585
+ asset: string;
586
+ ticker: string;
587
+ name: string;
588
+ description: string;
589
+ decimals: IntLike;
590
+ url: string;
591
+ logo: string;
592
+ owner: PubKeyHash | string | number[];
593
+ seed: TxOutputId | string;
594
+ };
595
+ version: IntLike;
596
+ extra: {
597
+ Unused: {};
598
+ };
599
+ };
600
+ };
601
+ }, {
602
+ supply: bigint;
603
+ type: string;
604
+ asset: string;
605
+ ticker: string;
606
+ name: string;
607
+ description: string;
608
+ decimals: bigint;
609
+ url: string;
610
+ logo: string;
611
+ owner: PubKeyHash;
612
+ seed: TxOutputId;
613
+ }>;
614
+ "Metadata::version": (uplc: UplcProgram, config: CastConfig) => UserFunc<{
615
+ self: {
616
+ Cip68: {
617
+ state: {
618
+ supply: IntLike;
619
+ type: string;
620
+ asset: string;
621
+ ticker: string;
622
+ name: string;
623
+ description: string;
624
+ decimals: IntLike;
625
+ url: string;
626
+ logo: string;
627
+ owner: PubKeyHash | string | number[];
628
+ seed: TxOutputId | string;
629
+ };
630
+ version: IntLike;
631
+ extra: {
632
+ Unused: {};
633
+ };
634
+ };
635
+ };
636
+ }, bigint>;
637
+ "Metadata::extra": (uplc: UplcProgram, config: CastConfig) => UserFunc<{
638
+ self: {
639
+ Cip68: {
640
+ state: {
641
+ supply: IntLike;
642
+ type: string;
643
+ asset: string;
644
+ ticker: string;
645
+ name: string;
646
+ description: string;
647
+ decimals: IntLike;
648
+ url: string;
649
+ logo: string;
650
+ owner: PubKeyHash | string | number[];
651
+ seed: TxOutputId | string;
652
+ };
653
+ version: IntLike;
654
+ extra: {
655
+ Unused: {};
656
+ };
657
+ };
658
+ };
659
+ }, {
660
+ Unused: {};
661
+ }>;
662
+ TYPE: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
663
+ ASSET: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
664
+ TICKER: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
665
+ DECIMALS: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, bigint>;
666
+ OWNER: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, PubKeyHash>;
667
+ SEED: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, TxOutputId>;
668
+ ticker_bytes: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
669
+ user_token_name: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
670
+ ref_token_name: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
671
+ own_hash: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, ScriptHash>;
672
+ own_mph: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, MintingPolicyHash>;
673
+ own_address: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, Address>;
674
+ ref_token_asset_class: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, AssetClass>;
675
+ user_token_asset_class: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, AssetClass>;
676
+ validate_initialization: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
677
+ $scriptContext: UplcData;
678
+ }, void>;
679
+ validate_state_change: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
680
+ $scriptContext: UplcData;
681
+ input: TxInput;
682
+ }, void>;
683
+ main: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
684
+ $scriptContext: UplcData;
685
+ $datum?: UplcData;
686
+ args: {
687
+ Other: {
688
+ redeemer: UplcData;
689
+ };
690
+ } | {
691
+ Spending: {
692
+ redeemer: UplcData;
693
+ };
694
+ };
695
+ }, void>;
696
+ };
697
+ };
698
+ export declare const wrapped_asset: {
699
+ $name: "wrapped_asset";
700
+ $purpose: "mixed";
701
+ $currentScriptIndex: 3;
702
+ $sourceCode: string;
703
+ $dependencies: readonly [];
704
+ $hashDependencies: never[];
705
+ $dependsOnOwnHash: boolean;
706
+ $Redeemer: (config: CastConfig) => Cast<{
707
+ Other: {
708
+ redeemer: UplcData;
709
+ };
710
+ } | {
711
+ Spending: {
712
+ redeemer: UplcData;
713
+ };
714
+ }, {
715
+ Other: {
716
+ redeemer: UplcData;
717
+ };
718
+ } | {
719
+ Spending: {
720
+ redeemer: UplcData;
721
+ };
722
+ }>;
723
+ $Datum: (config: CastConfig) => Cast<UplcData, UplcData>;
724
+ $types: {
725
+ State: (config: CastConfig) => Cast<{
726
+ supply: bigint;
727
+ type: string;
728
+ venue: string;
729
+ policy: string;
730
+ account: string;
731
+ ticker: string;
732
+ name: string;
733
+ description: string;
734
+ decimals: bigint;
735
+ url: string;
736
+ logo: string;
737
+ quorum: bigint;
738
+ oracles: (PubKeyHash)[];
739
+ seed: TxOutputId;
740
+ }, {
741
+ supply: IntLike;
742
+ type: string;
743
+ venue: string;
744
+ policy: string;
745
+ account: string;
746
+ ticker: string;
747
+ name: string;
748
+ description: string;
749
+ decimals: IntLike;
750
+ url: string;
751
+ logo: string;
752
+ quorum: IntLike;
753
+ oracles: (PubKeyHash | string | number[])[];
754
+ seed: TxOutputId | string;
755
+ }>;
756
+ Cip68Extra: (config: CastConfig) => Cast<{
757
+ Unused: {};
758
+ }, {
759
+ Unused: {};
760
+ }>;
761
+ Metadata: (config: CastConfig) => Cast<{
762
+ Cip68: {
763
+ state: {
764
+ supply: bigint;
765
+ type: string;
766
+ venue: string;
767
+ policy: string;
768
+ account: string;
769
+ ticker: string;
770
+ name: string;
771
+ description: string;
772
+ decimals: bigint;
773
+ url: string;
774
+ logo: string;
775
+ quorum: bigint;
776
+ oracles: (PubKeyHash)[];
777
+ seed: TxOutputId;
778
+ };
779
+ version: bigint;
780
+ extra: {
781
+ Unused: {};
782
+ };
783
+ };
784
+ }, {
785
+ Cip68: {
786
+ state: {
787
+ supply: IntLike;
788
+ type: string;
789
+ venue: string;
790
+ policy: string;
791
+ account: string;
792
+ ticker: string;
793
+ name: string;
794
+ description: string;
795
+ decimals: IntLike;
796
+ url: string;
797
+ logo: string;
798
+ quorum: IntLike;
799
+ oracles: (PubKeyHash | string | number[])[];
800
+ seed: TxOutputId | string;
801
+ };
802
+ version: IntLike;
803
+ extra: {
804
+ Unused: {};
805
+ };
806
+ };
807
+ }>;
808
+ Redeemer: (config: CastConfig) => Cast<{
809
+ reserves: bigint;
810
+ }, {
811
+ reserves: IntLike;
812
+ }>;
813
+ };
814
+ $functions: {
815
+ "Metadata::state": (uplc: UplcProgram, config: CastConfig) => UserFunc<{
816
+ self: {
817
+ Cip68: {
818
+ state: {
819
+ supply: IntLike;
820
+ type: string;
821
+ venue: string;
822
+ policy: string;
823
+ account: string;
824
+ ticker: string;
825
+ name: string;
826
+ description: string;
827
+ decimals: IntLike;
828
+ url: string;
829
+ logo: string;
830
+ quorum: IntLike;
831
+ oracles: (PubKeyHash | string | number[])[];
832
+ seed: TxOutputId | string;
833
+ };
834
+ version: IntLike;
835
+ extra: {
836
+ Unused: {};
837
+ };
838
+ };
839
+ };
840
+ }, {
841
+ supply: bigint;
842
+ type: string;
843
+ venue: string;
844
+ policy: string;
845
+ account: string;
846
+ ticker: string;
847
+ name: string;
848
+ description: string;
849
+ decimals: bigint;
850
+ url: string;
851
+ logo: string;
852
+ quorum: bigint;
853
+ oracles: (PubKeyHash)[];
854
+ seed: TxOutputId;
855
+ }>;
856
+ "Metadata::version": (uplc: UplcProgram, config: CastConfig) => UserFunc<{
857
+ self: {
858
+ Cip68: {
859
+ state: {
860
+ supply: IntLike;
861
+ type: string;
862
+ venue: string;
863
+ policy: string;
864
+ account: string;
865
+ ticker: string;
866
+ name: string;
867
+ description: string;
868
+ decimals: IntLike;
869
+ url: string;
870
+ logo: string;
871
+ quorum: IntLike;
872
+ oracles: (PubKeyHash | string | number[])[];
873
+ seed: TxOutputId | string;
874
+ };
875
+ version: IntLike;
876
+ extra: {
877
+ Unused: {};
878
+ };
879
+ };
880
+ };
881
+ }, bigint>;
882
+ "Metadata::extra": (uplc: UplcProgram, config: CastConfig) => UserFunc<{
883
+ self: {
884
+ Cip68: {
885
+ state: {
886
+ supply: IntLike;
887
+ type: string;
888
+ venue: string;
889
+ policy: string;
890
+ account: string;
891
+ ticker: string;
892
+ name: string;
893
+ description: string;
894
+ decimals: IntLike;
895
+ url: string;
896
+ logo: string;
897
+ quorum: IntLike;
898
+ oracles: (PubKeyHash | string | number[])[];
899
+ seed: TxOutputId | string;
900
+ };
901
+ version: IntLike;
902
+ extra: {
903
+ Unused: {};
904
+ };
905
+ };
906
+ };
907
+ }, {
908
+ Unused: {};
909
+ }>;
910
+ TYPE: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
911
+ VENUE: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
912
+ POLICY: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
913
+ ACCOUNT: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
914
+ TICKER: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, string>;
915
+ DECIMALS: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, bigint>;
916
+ ORACLES: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, PubKeyHash[]>;
917
+ QUORUM: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, bigint>;
918
+ SEED: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, TxOutputId>;
919
+ ticker_bytes: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
920
+ user_token_name: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
921
+ ref_token_name: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, number[]>;
922
+ own_hash: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, ScriptHash>;
923
+ own_mph: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, MintingPolicyHash>;
924
+ own_address: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, Address>;
925
+ ref_token_asset_class: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, AssetClass>;
926
+ user_token_asset_class: (uplc: UplcProgram, config: CastConfig) => UserFunc<{}, AssetClass>;
927
+ validate_initialization: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
928
+ $scriptContext: UplcData;
929
+ }, void>;
930
+ signed_by_quorum: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
931
+ $scriptContext: UplcData;
932
+ }, boolean>;
933
+ validate_state_change: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
934
+ $scriptContext: UplcData;
935
+ redeemer: {
936
+ reserves: IntLike;
937
+ };
938
+ input: TxInput;
939
+ }, void>;
940
+ main: (uplc: UplcProgram, config: CastConfig) => UserFunc<{
941
+ $scriptContext: UplcData;
942
+ $datum?: UplcData;
943
+ args: {
944
+ Other: {
945
+ redeemer: UplcData;
946
+ };
947
+ } | {
948
+ Spending: {
949
+ redeemer: UplcData;
950
+ };
951
+ };
952
+ }, void>;
953
+ };
954
+ };