|
5 | 5 | * @flow |
6 | 6 | */ |
7 | 7 |
|
| 8 | +/** |
| 9 | + * @param {string} json |
| 10 | + * @param {number} schema |
| 11 | + * @returns {PlutusData} |
| 12 | + */ |
| 13 | +declare export function encode_json_str_to_plutus_datum( |
| 14 | + json: string, |
| 15 | + schema: number |
| 16 | +): PlutusData; |
| 17 | + |
| 18 | +/** |
| 19 | + * @param {PlutusData} datum |
| 20 | + * @param {number} schema |
| 21 | + * @returns {string} |
| 22 | + */ |
| 23 | +declare export function decode_plutus_datum_to_json_str( |
| 24 | + datum: PlutusData, |
| 25 | + schema: number |
| 26 | +): string; |
| 27 | + |
8 | 28 | /** |
9 | 29 | * @param {Uint8Array} bytes |
10 | 30 | * @returns {TransactionMetadatum} |
@@ -41,26 +61,6 @@ declare export function decode_metadatum_to_json_str( |
41 | 61 | schema: number |
42 | 62 | ): string; |
43 | 63 |
|
44 | | -/** |
45 | | - * @param {string} json |
46 | | - * @param {number} schema |
47 | | - * @returns {PlutusData} |
48 | | - */ |
49 | | -declare export function encode_json_str_to_plutus_datum( |
50 | | - json: string, |
51 | | - schema: number |
52 | | -): PlutusData; |
53 | | - |
54 | | -/** |
55 | | - * @param {PlutusData} datum |
56 | | - * @param {number} schema |
57 | | - * @returns {string} |
58 | | - */ |
59 | | -declare export function decode_plutus_datum_to_json_str( |
60 | | - datum: PlutusData, |
61 | | - schema: number |
62 | | -): string; |
63 | | - |
64 | 64 | /** |
65 | 65 | * @param {Transaction} tx |
66 | 66 | * @param {LinearFee} linear_fee |
@@ -333,26 +333,6 @@ declare export var NetworkIdKind: {| |
333 | 333 | +Mainnet: 1, // 1 |
334 | 334 | |}; |
335 | 335 |
|
336 | | -/** |
337 | | - */ |
338 | | - |
339 | | -declare export var TransactionMetadatumKind: {| |
340 | | - +MetadataMap: 0, // 0 |
341 | | - +MetadataList: 1, // 1 |
342 | | - +Int: 2, // 2 |
343 | | - +Bytes: 3, // 3 |
344 | | - +Text: 4, // 4 |
345 | | -|}; |
346 | | - |
347 | | -/** |
348 | | - */ |
349 | | - |
350 | | -declare export var MetadataJsonSchema: {| |
351 | | - +NoConversions: 0, // 0 |
352 | | - +BasicConversions: 1, // 1 |
353 | | - +DetailedSchema: 2, // 2 |
354 | | -|}; |
355 | | - |
356 | 336 | /** |
357 | 337 | */ |
358 | 338 |
|
@@ -399,6 +379,26 @@ declare export var PlutusDatumSchema: {| |
399 | 379 | +DetailedSchema: 1, // 1 |
400 | 380 | |}; |
401 | 381 |
|
| 382 | +/** |
| 383 | + */ |
| 384 | + |
| 385 | +declare export var TransactionMetadatumKind: {| |
| 386 | + +MetadataMap: 0, // 0 |
| 387 | + +MetadataList: 1, // 1 |
| 388 | + +Int: 2, // 2 |
| 389 | + +Bytes: 3, // 3 |
| 390 | + +Text: 4, // 4 |
| 391 | +|}; |
| 392 | + |
| 393 | +/** |
| 394 | + */ |
| 395 | + |
| 396 | +declare export var MetadataJsonSchema: {| |
| 397 | + +NoConversions: 0, // 0 |
| 398 | + +BasicConversions: 1, // 1 |
| 399 | + +DetailedSchema: 2, // 2 |
| 400 | +|}; |
| 401 | + |
402 | 402 | /** |
403 | 403 | */ |
404 | 404 |
|
@@ -4419,6 +4419,18 @@ declare export class NetworkInfo { |
4419 | 4419 | /** |
4420 | 4420 | * @returns {NetworkInfo} |
4421 | 4421 | */ |
| 4422 | + static testnet_preview(): NetworkInfo; |
| 4423 | + |
| 4424 | + /** |
| 4425 | + * @returns {NetworkInfo} |
| 4426 | + */ |
| 4427 | + static testnet_preprod(): NetworkInfo; |
| 4428 | + |
| 4429 | + /** |
| 4430 | + * !!! DEPRECATED !!! |
| 4431 | + * This network does not exist anymore. Use `.testnet_preview()` or `.testnet_preprod()` |
| 4432 | + * @returns {NetworkInfo} |
| 4433 | + */ |
4422 | 4434 | static testnet(): NetworkInfo; |
4423 | 4435 |
|
4424 | 4436 | /** |
|
0 commit comments