Skip to content

Commit b5686ba

Browse files
committed
bump csl version
1 parent 4840c51 commit b5686ba

File tree

5 files changed

+141
-141
lines changed

5 files changed

+141
-141
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cardano-serialization-lib",
3-
"version": "12.0.0-alpha.32",
3+
"version": "12.0.0-beta.1",
44
"description": "(De)serialization functions for the Cardano blockchain along with related utility functions",
55
"scripts": {
66
"rust:build-nodejs": "(rimraf ./rust/pkg && cd rust; wasm-pack build --target=nodejs; cd ..; npm run js:ts-json-gen; cd rust; wasm-pack pack) && npm run js:flowgen",

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cardano-serialization-lib"
3-
version = "12.0.0-alpha.32"
3+
version = "12.0.0-beta.1"
44
edition = "2018"
55
authors = ["EMURGO"]
66
license = "MIT"

rust/json-gen/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/pkg/cardano_serialization_lib.js.flow

Lines changed: 136 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -270,84 +270,31 @@ declare export function encode_json_str_to_native_script(
270270
/**
271271
*/
272272

273-
declare export var AddressKind: {|
274-
+Base: 0, // 0
275-
+Pointer: 1, // 1
276-
+Enterprise: 2, // 2
277-
+Reward: 3, // 3
278-
+Byron: 4, // 4
279-
+Malformed: 5, // 5
280-
|};
281-
282-
/**
283-
*/
284-
285-
declare export var CborContainerType: {|
286-
+Array: 0, // 0
287-
+Map: 1, // 1
288-
|};
289-
290-
/**
291-
*/
292-
293-
declare export var CoinSelectionStrategyCIP2: {|
294-
+LargestFirst: 0, // 0
295-
+RandomImprove: 1, // 1
296-
+LargestFirstMultiAsset: 2, // 2
297-
+RandomImproveMultiAsset: 3, // 3
298-
|};
299-
300-
/**
301-
*/
302-
303-
declare export var MIRKind: {|
304-
+ToOtherPot: 0, // 0
305-
+ToStakeCredentials: 1, // 1
306-
|};
307-
308-
/**
309-
*/
310-
311-
declare export var GovernanceActionKind: {|
312-
+ParameterChangeAction: 0, // 0
313-
+HardForkInitiationAction: 1, // 1
314-
+TreasuryWithdrawalsAction: 2, // 2
315-
+NoConfidenceAction: 3, // 3
316-
+UpdateCommitteeAction: 4, // 4
317-
+NewConstitutionAction: 5, // 5
318-
+InfoAction: 6, // 6
319-
|};
320-
321-
/**
322-
*/
323-
324-
declare export var BlockEra: {|
325-
+Byron: 0, // 0
326-
+Shelley: 1, // 1
327-
+Allegra: 2, // 2
328-
+Mary: 3, // 3
329-
+Alonzo: 4, // 4
330-
+Babbage: 5, // 5
331-
+Conway: 6, // 6
332-
+Unknown: 7, // 7
273+
declare export var CredKind: {|
274+
+Key: 0, // 0
275+
+Script: 1, // 1
333276
|};
334277

335278
/**
336279
*/
337280

338-
declare export var MetadataJsonSchema: {|
339-
+NoConversions: 0, // 0
340-
+BasicConversions: 1, // 1
341-
+DetailedSchema: 2, // 2
281+
declare export var TransactionMetadatumKind: {|
282+
+MetadataMap: 0, // 0
283+
+MetadataList: 1, // 1
284+
+Int: 2, // 2
285+
+Bytes: 3, // 3
286+
+Text: 4, // 4
342287
|};
343288

344289
/**
345290
*/
346291

347-
declare export var RelayKind: {|
348-
+SingleHostAddr: 0, // 0
349-
+SingleHostName: 1, // 1
350-
+MultiHostName: 2, // 2
292+
declare export var PlutusDataKind: {|
293+
+ConstrPlutusData: 0, // 0
294+
+Map: 1, // 1
295+
+List: 2, // 2
296+
+Integer: 3, // 3
297+
+Bytes: 4, // 4
351298
|};
352299

353300
/**
@@ -374,61 +321,65 @@ declare export var CertificateKind: {|
374321
|};
375322

376323
/**
324+
* JSON <-> PlutusData conversion schemas.
325+
* Follows ScriptDataJsonSchema in cardano-cli defined at:
326+
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
327+
*
328+
* All methods here have the following restrictions due to limitations on dependencies:
329+
* * JSON numbers above u64::MAX (positive) or below i64::MIN (negative) will throw errors
330+
* * Hex strings for bytes don't accept odd-length (half-byte) strings.
331+
* cardano-cli seems to support these however but it seems to be different than just 0-padding
332+
* on either side when tested so proceed with caution
377333
*/
378334

379-
declare export var VoterKind: {|
380-
+ConstitutionalCommitteeHotKeyHash: 0, // 0
381-
+ConstitutionalCommitteeHotScriptHash: 1, // 1
382-
+DRepKeyHash: 2, // 2
383-
+DRepScriptHash: 3, // 3
384-
+StakingPoolKeyHash: 4, // 4
335+
declare export var PlutusDatumSchema: {|
336+
+BasicConversions: 0, // 0
337+
+DetailedSchema: 1, // 1
385338
|};
386339

387340
/**
388341
*/
389342

390-
declare export var MIRPot: {|
391-
+Reserves: 0, // 0
392-
+Treasury: 1, // 1
343+
declare export var LanguageKind: {|
344+
+PlutusV1: 0, // 0
345+
+PlutusV2: 1, // 1
346+
+PlutusV3: 2, // 2
393347
|};
394348

395349
/**
396350
*/
397351

398-
declare export var PlutusDataKind: {|
399-
+ConstrPlutusData: 0, // 0
400-
+Map: 1, // 1
401-
+List: 2, // 2
402-
+Integer: 3, // 3
403-
+Bytes: 4, // 4
352+
declare export var DRepKind: {|
353+
+KeyHash: 0, // 0
354+
+ScriptHash: 1, // 1
355+
+AlwaysAbstain: 2, // 2
356+
+AlwaysNoConfidence: 3, // 3
404357
|};
405358

406359
/**
407-
* JSON <-> PlutusData conversion schemas.
408-
* Follows ScriptDataJsonSchema in cardano-cli defined at:
409-
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
410-
*
411-
* All methods here have the following restrictions due to limitations on dependencies:
412-
* * JSON numbers above u64::MAX (positive) or below i64::MIN (negative) will throw errors
413-
* * Hex strings for bytes don't accept odd-length (half-byte) strings.
414-
* cardano-cli seems to support these however but it seems to be different than just 0-padding
415-
* on either side when tested so proceed with caution
416360
*/
417361

418-
declare export var PlutusDatumSchema: {|
419-
+BasicConversions: 0, // 0
420-
+DetailedSchema: 1, // 1
362+
declare export var NativeScriptKind: {|
363+
+ScriptPubkey: 0, // 0
364+
+ScriptAll: 1, // 1
365+
+ScriptAny: 2, // 2
366+
+ScriptNOfK: 3, // 3
367+
+TimelockStart: 4, // 4
368+
+TimelockExpiry: 5, // 5
421369
|};
422370

423371
/**
372+
* Each new language uses a different namespace for hashing its script
373+
* This is because you could have a language where the same bytes have different semantics
374+
* So this avoids scripts in different languages mapping to the same hash
375+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
424376
*/
425377

426-
declare export var TransactionMetadatumKind: {|
427-
+MetadataMap: 0, // 0
428-
+MetadataList: 1, // 1
429-
+Int: 2, // 2
430-
+Bytes: 3, // 3
431-
+Text: 4, // 4
378+
declare export var ScriptHashNamespace: {|
379+
+NativeScript: 0, // 0
380+
+PlutusScript: 1, // 1
381+
+PlutusScriptV2: 2, // 2
382+
+PlutusScriptV3: 3, // 3
432383
|};
433384

434385
/**
@@ -443,20 +394,50 @@ declare export var VoteKind: {|
443394
/**
444395
*/
445396

446-
declare export var LanguageKind: {|
447-
+PlutusV1: 0, // 0
448-
+PlutusV2: 1, // 1
449-
+PlutusV3: 2, // 2
397+
declare export var CoinSelectionStrategyCIP2: {|
398+
+LargestFirst: 0, // 0
399+
+RandomImprove: 1, // 1
400+
+LargestFirstMultiAsset: 2, // 2
401+
+RandomImproveMultiAsset: 3, // 3
450402
|};
451403

452404
/**
453405
*/
454406

455-
declare export var DRepKind: {|
456-
+KeyHash: 0, // 0
457-
+ScriptHash: 1, // 1
458-
+AlwaysAbstain: 2, // 2
459-
+AlwaysNoConfidence: 3, // 3
407+
declare export var NetworkIdKind: {|
408+
+Testnet: 0, // 0
409+
+Mainnet: 1, // 1
410+
|};
411+
412+
/**
413+
*/
414+
415+
declare export var MIRPot: {|
416+
+Reserves: 0, // 0
417+
+Treasury: 1, // 1
418+
|};
419+
420+
/**
421+
*/
422+
423+
declare export var MetadataJsonSchema: {|
424+
+NoConversions: 0, // 0
425+
+BasicConversions: 1, // 1
426+
+DetailedSchema: 2, // 2
427+
|};
428+
429+
/**
430+
*/
431+
432+
declare export var BlockEra: {|
433+
+Byron: 0, // 0
434+
+Shelley: 1, // 1
435+
+Allegra: 2, // 2
436+
+Mary: 3, // 3
437+
+Alonzo: 4, // 4
438+
+Babbage: 5, // 5
439+
+Conway: 6, // 6
440+
+Unknown: 7, // 7
460441
|};
461442

462443
/**
@@ -472,54 +453,73 @@ declare export var RedeemerTagKind: {|
472453
|};
473454

474455
/**
456+
* Used to choosed the schema for a script JSON string
475457
*/
476458

477-
declare export var NetworkIdKind: {|
478-
+Testnet: 0, // 0
479-
+Mainnet: 1, // 1
459+
declare export var ScriptSchema: {|
460+
+Wallet: 0, // 0
461+
+Node: 1, // 1
480462
|};
481463

482464
/**
483-
* Used to choosed the schema for a script JSON string
484465
*/
485466

486-
declare export var ScriptSchema: {|
487-
+Wallet: 0, // 0
488-
+Node: 1, // 1
467+
declare export var AddressKind: {|
468+
+Base: 0, // 0
469+
+Pointer: 1, // 1
470+
+Enterprise: 2, // 2
471+
+Reward: 3, // 3
472+
+Byron: 4, // 4
473+
+Malformed: 5, // 5
489474
|};
490475

491476
/**
492477
*/
493478

494-
declare export var NativeScriptKind: {|
495-
+ScriptPubkey: 0, // 0
496-
+ScriptAll: 1, // 1
497-
+ScriptAny: 2, // 2
498-
+ScriptNOfK: 3, // 3
499-
+TimelockStart: 4, // 4
500-
+TimelockExpiry: 5, // 5
479+
declare export var MIRKind: {|
480+
+ToOtherPot: 0, // 0
481+
+ToStakeCredentials: 1, // 1
501482
|};
502483

503484
/**
504-
* Each new language uses a different namespace for hashing its script
505-
* This is because you could have a language where the same bytes have different semantics
506-
* So this avoids scripts in different languages mapping to the same hash
507-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
508485
*/
509486

510-
declare export var ScriptHashNamespace: {|
511-
+NativeScript: 0, // 0
512-
+PlutusScript: 1, // 1
513-
+PlutusScriptV2: 2, // 2
514-
+PlutusScriptV3: 3, // 3
487+
declare export var CborContainerType: {|
488+
+Array: 0, // 0
489+
+Map: 1, // 1
515490
|};
516491

517492
/**
518493
*/
519494

520-
declare export var CredKind: {|
521-
+Key: 0, // 0
522-
+Script: 1, // 1
495+
declare export var RelayKind: {|
496+
+SingleHostAddr: 0, // 0
497+
+SingleHostName: 1, // 1
498+
+MultiHostName: 2, // 2
499+
|};
500+
501+
/**
502+
*/
503+
504+
declare export var VoterKind: {|
505+
+ConstitutionalCommitteeHotKeyHash: 0, // 0
506+
+ConstitutionalCommitteeHotScriptHash: 1, // 1
507+
+DRepKeyHash: 2, // 2
508+
+DRepScriptHash: 3, // 3
509+
+StakingPoolKeyHash: 4, // 4
510+
|};
511+
512+
/**
513+
*/
514+
515+
declare export var GovernanceActionKind: {|
516+
+ParameterChangeAction: 0, // 0
517+
+HardForkInitiationAction: 1, // 1
518+
+TreasuryWithdrawalsAction: 2, // 2
519+
+NoConfidenceAction: 3, // 3
520+
+UpdateCommitteeAction: 4, // 4
521+
+NewConstitutionAction: 5, // 5
522+
+InfoAction: 6, // 6
523523
|};
524524

525525
/**

0 commit comments

Comments
 (0)