@meshsdk/common 1.9.0-beta.79 → 1.9.0-beta.80

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/index.cjs CHANGED
@@ -41,6 +41,7 @@ __export(index_exports, {
41
41
  DEFAULT_V2_COST_MODEL_LIST: () => DEFAULT_V2_COST_MODEL_LIST,
42
42
  DEFAULT_V3_COST_MODEL_LIST: () => DEFAULT_V3_COST_MODEL_LIST,
43
43
  DREP_DEPOSIT: () => DREP_DEPOSIT,
44
+ GovernanceActionKind: () => GovernanceActionKind,
44
45
  HARDENED_KEY_START: () => HARDENED_KEY_START,
45
46
  LANGUAGE_VERSIONS: () => LANGUAGE_VERSIONS,
46
47
  MeshValue: () => MeshValue,
@@ -54,6 +55,7 @@ __export(index_exports, {
54
55
  SUPPORTED_WALLETS: () => SUPPORTED_WALLETS,
55
56
  TxTester: () => TxTester,
56
57
  UtxoSelection: () => UtxoSelection,
58
+ VOTING_PROPOSAL_DEPOSIT: () => VOTING_PROPOSAL_DEPOSIT,
57
59
  assetClass: () => assetClass,
58
60
  assetName: () => assetName,
59
61
  assocMap: () => assocMap,
@@ -180,6 +182,7 @@ var DEFAULT_PROTOCOL_PARAMETERS = {
180
182
  minFeeRefScriptCostPerByte: 15
181
183
  };
182
184
  var DREP_DEPOSIT = "500000000";
185
+ var VOTING_PROPOSAL_DEPOSIT = "100000000000";
183
186
  var resolveTxFees = (txSize, minFeeA = DEFAULT_PROTOCOL_PARAMETERS.minFeeA, minFeeB = DEFAULT_PROTOCOL_PARAMETERS.minFeeB) => {
184
187
  const fees = BigInt(minFeeA) * BigInt(txSize) + BigInt(minFeeB);
185
188
  return fees.toString();
@@ -1030,6 +1033,7 @@ var emptyTxBuilderBody = () => ({
1030
1033
  certificates: [],
1031
1034
  withdrawals: [],
1032
1035
  votes: [],
1036
+ proposals: [],
1033
1037
  signingKey: [],
1034
1038
  chainedTxs: [],
1035
1039
  inputsForEvaluation: {},
@@ -1060,6 +1064,18 @@ var validityRangeFromObj = (obj) => {
1060
1064
  return validityRange;
1061
1065
  };
1062
1066
 
1067
+ // src/types/governance.ts
1068
+ var GovernanceActionKind = /* @__PURE__ */ ((GovernanceActionKind2) => {
1069
+ GovernanceActionKind2["ParameterChangeAction"] = "ParameterChangeAction";
1070
+ GovernanceActionKind2["HardForkInitiationAction"] = "HardForkInitiationAction";
1071
+ GovernanceActionKind2["TreasuryWithdrawalsAction"] = "TreasuryWithdrawalsAction";
1072
+ GovernanceActionKind2["NoConfidenceAction"] = "NoConfidenceAction";
1073
+ GovernanceActionKind2["UpdateCommitteeAction"] = "UpdateCommitteeAction";
1074
+ GovernanceActionKind2["NewConstitutionAction"] = "NewConstitutionAction";
1075
+ GovernanceActionKind2["InfoAction"] = "InfoAction";
1076
+ return GovernanceActionKind2;
1077
+ })(GovernanceActionKind || {});
1078
+
1063
1079
  // src/data/mesh/constructors.ts
1064
1080
  var mConStr = (alternative, fields) => ({
1065
1081
  alternative,
@@ -2567,6 +2583,7 @@ var import_bip39 = require("bip39");
2567
2583
  DEFAULT_V2_COST_MODEL_LIST,
2568
2584
  DEFAULT_V3_COST_MODEL_LIST,
2569
2585
  DREP_DEPOSIT,
2586
+ GovernanceActionKind,
2570
2587
  HARDENED_KEY_START,
2571
2588
  LANGUAGE_VERSIONS,
2572
2589
  MeshValue,
@@ -2580,6 +2597,7 @@ var import_bip39 = require("bip39");
2580
2597
  SUPPORTED_WALLETS,
2581
2598
  TxTester,
2582
2599
  UtxoSelection,
2600
+ VOTING_PROPOSAL_DEPOSIT,
2583
2601
  assetClass,
2584
2602
  assetName,
2585
2603
  assocMap,
package/dist/index.d.cts CHANGED
@@ -423,168 +423,6 @@ type Output = {
423
423
  referenceScript?: PlutusScript;
424
424
  };
425
425
 
426
- type RefTxIn = {
427
- txHash: string;
428
- txIndex: number;
429
- scriptSize?: number;
430
- };
431
- type TxInParameter = {
432
- txHash: string;
433
- txIndex: number;
434
- amount?: Asset[];
435
- address?: string;
436
- scriptSize?: number;
437
- };
438
- type TxIn = PubKeyTxIn | SimpleScriptTxIn | ScriptTxIn;
439
- type PubKeyTxIn = {
440
- type: "PubKey";
441
- txIn: TxInParameter;
442
- };
443
- type SimpleScriptTxIn = {
444
- type: "SimpleScript";
445
- txIn: TxInParameter;
446
- simpleScriptTxIn: SimpleScriptTxInParameter;
447
- };
448
- type SimpleScriptTxInParameter = {
449
- scriptSource?: SimpleScriptSourceInfo;
450
- };
451
- type ScriptTxInParameter = {
452
- scriptSource?: ScriptSource;
453
- datumSource?: DatumSource;
454
- redeemer?: Redeemer;
455
- };
456
- type ScriptTxIn = {
457
- type: "Script";
458
- txIn: TxInParameter;
459
- scriptTxIn: ScriptTxInParameter;
460
- };
461
- declare const txInToUtxo: (txIn: TxInParameter) => UTxO;
462
-
463
- type Credential$1 = {
464
- type: "ScriptHash";
465
- scriptHash: string;
466
- } | {
467
- type: "KeyHash";
468
- keyHash: string;
469
- };
470
-
471
- type Vote = BasicVote | ScriptVote | SimpleScriptVote;
472
- type BasicVote = {
473
- type: "BasicVote";
474
- vote: VoteType;
475
- };
476
- type SimpleScriptVote = {
477
- type: "SimpleScriptVote";
478
- vote: VoteType;
479
- simpleScriptSource: SimpleScriptSourceInfo;
480
- };
481
- type ScriptVote = {
482
- type: "ScriptVote";
483
- vote: VoteType;
484
- redeemer?: Redeemer;
485
- scriptSource?: ScriptSource;
486
- };
487
- type VoteType = {
488
- voter: Voter;
489
- govActionId: RefTxIn;
490
- votingProcedure: VotingProcedure;
491
- };
492
- type Voter = {
493
- type: "ConstitutionalCommittee";
494
- hotCred: Credential$1;
495
- } | {
496
- type: "DRep";
497
- drepId: string;
498
- } | {
499
- type: "StakingPool";
500
- keyHash: string;
501
- };
502
- type VotingProcedure = {
503
- voteKind: VoteKind;
504
- anchor?: Anchor;
505
- };
506
- type VoteKind = "Yes" | "No" | "Abstain";
507
-
508
- type Withdrawal = PubKeyWithdrawal | ScriptWithdrawal | SimpleScriptWithdrawal;
509
- type PubKeyWithdrawal = {
510
- type: "PubKeyWithdrawal";
511
- address: string;
512
- coin: string;
513
- };
514
- type ScriptWithdrawal = {
515
- type: "ScriptWithdrawal";
516
- address: string;
517
- coin: string;
518
- scriptSource?: ScriptSource;
519
- redeemer?: Redeemer;
520
- };
521
- type SimpleScriptWithdrawal = {
522
- type: "SimpleScriptWithdrawal";
523
- address: string;
524
- coin: string;
525
- scriptSource?: SimpleScriptSourceInfo;
526
- };
527
-
528
- type MeshTxBuilderBody = {
529
- inputs: TxIn[];
530
- outputs: Output[];
531
- fee: Quantity;
532
- collaterals: PubKeyTxIn[];
533
- requiredSignatures: string[];
534
- referenceInputs: RefTxIn[];
535
- mints: MintParam[];
536
- changeAddress: string;
537
- metadata: TxMetadata;
538
- scriptMetadata: ScriptMetadata[];
539
- validityRange: ValidityRange;
540
- certificates: Certificate[];
541
- withdrawals: Withdrawal[];
542
- votes: Vote[];
543
- signingKey: string[];
544
- extraInputs: UTxO[];
545
- chainedTxs: string[];
546
- inputsForEvaluation: Record<string, UTxO>;
547
- network: Network | number[][];
548
- expectedNumberKeyWitnesses: number;
549
- expectedByronAddressWitnesses: string[];
550
- totalCollateral?: Quantity;
551
- collateralReturnAddress?: string;
552
- };
553
- declare const emptyTxBuilderBody: () => MeshTxBuilderBody;
554
- declare function cloneTxBuilderBody(body: MeshTxBuilderBody): MeshTxBuilderBody;
555
- type ValidityRange = {
556
- invalidBefore?: number;
557
- invalidHereafter?: number;
558
- };
559
- type MetadatumMap = Map<Metadatum, Metadatum>;
560
- type Metadatum = bigint | number | string | Uint8Array | MetadatumMap | Metadatum[];
561
- type TxMetadata = Map<bigint, Metadatum>;
562
- type Metadata = {
563
- tag: string;
564
- metadata: string;
565
- };
566
- type ScriptMetadata = {
567
- scriptType: "PlutusV1" | "PlutusV2" | "PlutusV3" | "Native";
568
- scriptCbor: string;
569
- };
570
- type RequiredWith<T, K extends keyof T> = Required<T> & {
571
- [P in K]: Required<T[P]>;
572
- };
573
- declare const validityRangeToObj: (validityRange: ValidityRange) => object;
574
- declare const validityRangeFromObj: (obj: any) => ValidityRange;
575
-
576
- type DeserializedAddress = {
577
- pubKeyHash: string;
578
- scriptHash: string;
579
- stakeCredentialHash: string;
580
- stakeScriptCredentialHash: string;
581
- };
582
-
583
- type DeserializedScript = {
584
- scriptHash: string;
585
- scriptCbor?: string;
586
- };
587
-
588
426
  /**
589
427
  * The Mesh Data constructor object, representing custom data type
590
428
  */
@@ -1195,7 +1033,7 @@ type ScriptAddress = ConStr0<[Script, MaybeStakingHash]>;
1195
1033
  /**
1196
1034
  * The Plutus Data credential in JSON
1197
1035
  */
1198
- type Credential = VerificationKey | Script;
1036
+ type Credential$1 = VerificationKey | Script;
1199
1037
  /**
1200
1038
  * The utility function to create a Plutus Data verification key in JSON
1201
1039
  * @param bytes The public key hash in hex
@@ -1237,7 +1075,7 @@ declare const scriptAddress: (bytes: string, stakeCredential?: string, isStakeSc
1237
1075
  * @param isScriptCredential Indicate if the credential is script hash (false for pub key hash)
1238
1076
  * @returns Plutus Data credential object
1239
1077
  */
1240
- declare const credential: (hash: string, isScriptCredential?: boolean) => Credential;
1078
+ declare const credential: (hash: string, isScriptCredential?: boolean) => Credential$1;
1241
1079
 
1242
1080
  type ProofStep = ProofStepBranch | ProofStepFork | ProofStepLeaf;
1243
1081
  type ProofStepBranch = ConStr0<[
@@ -1514,6 +1352,348 @@ declare class MeshValue {
1514
1352
 
1515
1353
  type PlutusDataType = "Mesh" | "JSON" | "CBOR";
1516
1354
 
1355
+ type Credential = {
1356
+ type: "ScriptHash";
1357
+ scriptHash: string;
1358
+ } | {
1359
+ type: "KeyHash";
1360
+ keyHash: string;
1361
+ };
1362
+
1363
+ type GovernanceProposalInfo = {
1364
+ txHash: string;
1365
+ certIndex: number;
1366
+ governanceType: string;
1367
+ deposit: number;
1368
+ returnAddress: string;
1369
+ governanceDescription: string;
1370
+ ratifiedEpoch: number;
1371
+ enactedEpoch: number;
1372
+ droppedEpoch: number;
1373
+ expiredEpoch: number;
1374
+ expiration: number;
1375
+ metadata: object;
1376
+ };
1377
+ type Rational = {
1378
+ numerator: string;
1379
+ denominator: string;
1380
+ };
1381
+ type RewardAddress = string;
1382
+ type GovernanceActionId = {
1383
+ transactionId: string;
1384
+ govActionIndex: number;
1385
+ };
1386
+ type ProtocolVersion = {
1387
+ major: number;
1388
+ minor: number;
1389
+ };
1390
+ type ProtocolParamUpdate = {
1391
+ minFeeA?: string;
1392
+ minFeeB?: string;
1393
+ maxBlockBodySize?: number;
1394
+ maxTxSize?: number;
1395
+ maxBlockHeaderSize?: number;
1396
+ keyDeposit?: string;
1397
+ poolDeposit?: string;
1398
+ maxEpoch?: number;
1399
+ nOpt?: number;
1400
+ poolPledgeInfluence?: Rational;
1401
+ expansionRate?: Rational;
1402
+ treasuryGrowthRate?: Rational;
1403
+ minPoolCost?: string;
1404
+ adaPerUtxoByte?: string;
1405
+ costModels?: Record<string, number[]>;
1406
+ executionCosts?: {
1407
+ memPrice?: Rational;
1408
+ stepPrice?: Rational;
1409
+ };
1410
+ maxTxExUnits?: {
1411
+ mem: string;
1412
+ steps: string;
1413
+ };
1414
+ maxBlockExUnits?: {
1415
+ mem: string;
1416
+ steps: string;
1417
+ };
1418
+ maxValueSize?: number;
1419
+ collateralPercentage?: number;
1420
+ maxCollateralInputs?: number;
1421
+ poolVotingThresholds?: {
1422
+ motionNoConfidence?: Rational;
1423
+ committeeNormal?: Rational;
1424
+ committeeNoConfidence?: Rational;
1425
+ hardForkInitiation?: Rational;
1426
+ ppSecurityGroup?: Rational;
1427
+ };
1428
+ drepVotingThresholds?: {
1429
+ motionNoConfidence?: Rational;
1430
+ committeeNormal?: Rational;
1431
+ committeeNoConfidence?: Rational;
1432
+ updateConstitution?: Rational;
1433
+ hardForkInitiation?: Rational;
1434
+ ppNetworkGroup?: Rational;
1435
+ ppEconomicGroup?: Rational;
1436
+ ppTechnicalGroup?: Rational;
1437
+ ppGovGroup?: Rational;
1438
+ treasuryWithdrawal?: Rational;
1439
+ };
1440
+ minCommitteeSize?: number;
1441
+ committeeTermLimit?: number;
1442
+ govActionValidityPeriod?: number;
1443
+ govActionDeposit?: string;
1444
+ drepDeposit?: string;
1445
+ drepInactivityPeriod?: number;
1446
+ refScriptCostPerByte?: Rational;
1447
+ };
1448
+ type CommitteeMember = {
1449
+ stakeCredential: Credential;
1450
+ termLimit: number;
1451
+ };
1452
+ type Committee = {
1453
+ members: CommitteeMember[];
1454
+ quorumThreshold: Rational;
1455
+ };
1456
+ type Constitution = {
1457
+ anchor: Anchor;
1458
+ scriptHash?: ScriptHash;
1459
+ };
1460
+ type TreasuryWithdrawals = Record<RewardAddress, string>;
1461
+ type ParameterChangeAction = {
1462
+ govActionId?: GovernanceActionId;
1463
+ protocolParamUpdates: ProtocolParamUpdate;
1464
+ policyHash?: ScriptHash;
1465
+ };
1466
+ type HardForkInitiationAction = {
1467
+ govActionId?: GovernanceActionId;
1468
+ protocolVersion: ProtocolVersion;
1469
+ };
1470
+ type TreasuryWithdrawalsAction = {
1471
+ withdrawals: TreasuryWithdrawals;
1472
+ policyHash?: ScriptHash;
1473
+ };
1474
+ type NoConfidenceAction = {
1475
+ govActionId?: GovernanceActionId;
1476
+ };
1477
+ type UpdateCommitteeAction = {
1478
+ govActionId?: GovernanceActionId;
1479
+ committee: Committee;
1480
+ membersToRemove: Credential[];
1481
+ };
1482
+ type NewConstitutionAction = {
1483
+ govActionId?: GovernanceActionId;
1484
+ constitution: Constitution;
1485
+ };
1486
+ type InfoAction = {};
1487
+ declare enum GovernanceActionKind {
1488
+ ParameterChangeAction = "ParameterChangeAction",
1489
+ HardForkInitiationAction = "HardForkInitiationAction",
1490
+ TreasuryWithdrawalsAction = "TreasuryWithdrawalsAction",
1491
+ NoConfidenceAction = "NoConfidenceAction",
1492
+ UpdateCommitteeAction = "UpdateCommitteeAction",
1493
+ NewConstitutionAction = "NewConstitutionAction",
1494
+ InfoAction = "InfoAction"
1495
+ }
1496
+ type GovernanceAction = {
1497
+ kind: "ParameterChangeAction";
1498
+ action: ParameterChangeAction;
1499
+ } | {
1500
+ kind: "HardForkInitiationAction";
1501
+ action: HardForkInitiationAction;
1502
+ } | {
1503
+ kind: "TreasuryWithdrawalsAction";
1504
+ action: TreasuryWithdrawalsAction;
1505
+ } | {
1506
+ kind: "NoConfidenceAction";
1507
+ action: NoConfidenceAction;
1508
+ } | {
1509
+ kind: "UpdateCommitteeAction";
1510
+ action: UpdateCommitteeAction;
1511
+ } | {
1512
+ kind: "NewConstitutionAction";
1513
+ action: NewConstitutionAction;
1514
+ } | {
1515
+ kind: "InfoAction";
1516
+ action: InfoAction;
1517
+ };
1518
+
1519
+ type ProposalType = {
1520
+ governanceAction: GovernanceAction;
1521
+ anchor: Anchor;
1522
+ rewardAccount: RewardAddress;
1523
+ deposit: string;
1524
+ };
1525
+ type BasicProposal = {
1526
+ type: "BasicProposal";
1527
+ proposalType: ProposalType;
1528
+ };
1529
+ type ScriptProposal = {
1530
+ type: "ScriptProposal";
1531
+ proposalType: ProposalType;
1532
+ redeemer?: Redeemer;
1533
+ scriptSource?: ScriptSource;
1534
+ };
1535
+ type SimpleScriptProposal = {
1536
+ type: "SimpleScriptProposal";
1537
+ proposalType: ProposalType;
1538
+ simpleScriptSource?: SimpleScriptSourceInfo;
1539
+ };
1540
+ type Proposal = BasicProposal | ScriptProposal | SimpleScriptProposal;
1541
+
1542
+ type RefTxIn = {
1543
+ txHash: string;
1544
+ txIndex: number;
1545
+ scriptSize?: number;
1546
+ };
1547
+ type TxInParameter = {
1548
+ txHash: string;
1549
+ txIndex: number;
1550
+ amount?: Asset[];
1551
+ address?: string;
1552
+ scriptSize?: number;
1553
+ };
1554
+ type TxIn = PubKeyTxIn | SimpleScriptTxIn | ScriptTxIn;
1555
+ type PubKeyTxIn = {
1556
+ type: "PubKey";
1557
+ txIn: TxInParameter;
1558
+ };
1559
+ type SimpleScriptTxIn = {
1560
+ type: "SimpleScript";
1561
+ txIn: TxInParameter;
1562
+ simpleScriptTxIn: SimpleScriptTxInParameter;
1563
+ };
1564
+ type SimpleScriptTxInParameter = {
1565
+ scriptSource?: SimpleScriptSourceInfo;
1566
+ };
1567
+ type ScriptTxInParameter = {
1568
+ scriptSource?: ScriptSource;
1569
+ datumSource?: DatumSource;
1570
+ redeemer?: Redeemer;
1571
+ };
1572
+ type ScriptTxIn = {
1573
+ type: "Script";
1574
+ txIn: TxInParameter;
1575
+ scriptTxIn: ScriptTxInParameter;
1576
+ };
1577
+ declare const txInToUtxo: (txIn: TxInParameter) => UTxO;
1578
+
1579
+ type Vote = BasicVote | ScriptVote | SimpleScriptVote;
1580
+ type BasicVote = {
1581
+ type: "BasicVote";
1582
+ vote: VoteType;
1583
+ };
1584
+ type SimpleScriptVote = {
1585
+ type: "SimpleScriptVote";
1586
+ vote: VoteType;
1587
+ simpleScriptSource: SimpleScriptSourceInfo;
1588
+ };
1589
+ type ScriptVote = {
1590
+ type: "ScriptVote";
1591
+ vote: VoteType;
1592
+ redeemer?: Redeemer;
1593
+ scriptSource?: ScriptSource;
1594
+ };
1595
+ type VoteType = {
1596
+ voter: Voter;
1597
+ govActionId: RefTxIn;
1598
+ votingProcedure: VotingProcedure;
1599
+ };
1600
+ type Voter = {
1601
+ type: "ConstitutionalCommittee";
1602
+ hotCred: Credential;
1603
+ } | {
1604
+ type: "DRep";
1605
+ drepId: string;
1606
+ } | {
1607
+ type: "StakingPool";
1608
+ keyHash: string;
1609
+ };
1610
+ type VotingProcedure = {
1611
+ voteKind: VoteKind;
1612
+ anchor?: Anchor;
1613
+ };
1614
+ type VoteKind = "Yes" | "No" | "Abstain";
1615
+
1616
+ type Withdrawal = PubKeyWithdrawal | ScriptWithdrawal | SimpleScriptWithdrawal;
1617
+ type PubKeyWithdrawal = {
1618
+ type: "PubKeyWithdrawal";
1619
+ address: string;
1620
+ coin: string;
1621
+ };
1622
+ type ScriptWithdrawal = {
1623
+ type: "ScriptWithdrawal";
1624
+ address: string;
1625
+ coin: string;
1626
+ scriptSource?: ScriptSource;
1627
+ redeemer?: Redeemer;
1628
+ };
1629
+ type SimpleScriptWithdrawal = {
1630
+ type: "SimpleScriptWithdrawal";
1631
+ address: string;
1632
+ coin: string;
1633
+ scriptSource?: SimpleScriptSourceInfo;
1634
+ };
1635
+
1636
+ type MeshTxBuilderBody = {
1637
+ inputs: TxIn[];
1638
+ outputs: Output[];
1639
+ fee: Quantity;
1640
+ collaterals: PubKeyTxIn[];
1641
+ requiredSignatures: string[];
1642
+ referenceInputs: RefTxIn[];
1643
+ mints: MintParam[];
1644
+ changeAddress: string;
1645
+ metadata: TxMetadata;
1646
+ scriptMetadata: ScriptMetadata[];
1647
+ validityRange: ValidityRange;
1648
+ certificates: Certificate[];
1649
+ withdrawals: Withdrawal[];
1650
+ votes: Vote[];
1651
+ proposals: Proposal[];
1652
+ signingKey: string[];
1653
+ extraInputs: UTxO[];
1654
+ chainedTxs: string[];
1655
+ inputsForEvaluation: Record<string, UTxO>;
1656
+ network: Network | number[][];
1657
+ expectedNumberKeyWitnesses: number;
1658
+ expectedByronAddressWitnesses: string[];
1659
+ totalCollateral?: Quantity;
1660
+ collateralReturnAddress?: string;
1661
+ };
1662
+ declare const emptyTxBuilderBody: () => MeshTxBuilderBody;
1663
+ declare function cloneTxBuilderBody(body: MeshTxBuilderBody): MeshTxBuilderBody;
1664
+ type ValidityRange = {
1665
+ invalidBefore?: number;
1666
+ invalidHereafter?: number;
1667
+ };
1668
+ type MetadatumMap = Map<Metadatum, Metadatum>;
1669
+ type Metadatum = bigint | number | string | Uint8Array | MetadatumMap | Metadatum[];
1670
+ type TxMetadata = Map<bigint, Metadatum>;
1671
+ type Metadata = {
1672
+ tag: string;
1673
+ metadata: string;
1674
+ };
1675
+ type ScriptMetadata = {
1676
+ scriptType: "PlutusV1" | "PlutusV2" | "PlutusV3" | "Native";
1677
+ scriptCbor: string;
1678
+ };
1679
+ type RequiredWith<T, K extends keyof T> = Required<T> & {
1680
+ [P in K]: Required<T[P]>;
1681
+ };
1682
+ declare const validityRangeToObj: (validityRange: ValidityRange) => object;
1683
+ declare const validityRangeFromObj: (obj: any) => ValidityRange;
1684
+
1685
+ type DeserializedAddress = {
1686
+ pubKeyHash: string;
1687
+ scriptHash: string;
1688
+ stakeCredentialHash: string;
1689
+ stakeScriptCredentialHash: string;
1690
+ };
1691
+
1692
+ type DeserializedScript = {
1693
+ scriptHash: string;
1694
+ scriptCbor?: string;
1695
+ };
1696
+
1517
1697
  interface IMintingBlueprint {
1518
1698
  version: LanguageVersion;
1519
1699
  cbor: string;
@@ -1544,23 +1724,9 @@ interface IWithdrawalBlueprint {
1544
1724
  noParamScript(compiledCode: string): this;
1545
1725
  }
1546
1726
 
1547
- type GovernanceProposalInfo = {
1548
- txHash: string;
1549
- certIndex: number;
1550
- governanceType: string;
1551
- deposit: number;
1552
- returnAddress: string;
1553
- governanceDescription: string;
1554
- ratifiedEpoch: number;
1555
- enactedEpoch: number;
1556
- droppedEpoch: number;
1557
- expiredEpoch: number;
1558
- expiration: number;
1559
- metadata: object;
1560
- };
1561
-
1562
1727
  declare const DEFAULT_PROTOCOL_PARAMETERS: Protocol;
1563
1728
  declare const DREP_DEPOSIT = "500000000";
1729
+ declare const VOTING_PROPOSAL_DEPOSIT = "100000000000";
1564
1730
  declare const resolveTxFees: (txSize: number, minFeeA?: number, minFeeB?: number) => string;
1565
1731
 
1566
1732
  declare const SUPPORTED_WALLETS: string[];
@@ -2027,4 +2193,4 @@ declare class UtxoSelection {
2027
2193
  }
2028
2194
  type UtxoSelectionStrategy = keyof UtxoSelection;
2029
2195
 
2030
- export { type AccountInfo, type Action, type Anchor, type Asset, type AssetClass, type AssetExtended, AssetFingerprint, type AssetMetadata, type AssetName, type AssocMap, type AssocMapItem, type BasicVote, BigNum, type BlockInfo, type Bool, type Budget, type BuilderData, type BuiltinByteString, type ByteString, CIP68_100, CIP68_222, type Certificate, type CertificateType, type ConStr, type ConStr0, type ConStr1, type ConStr2, type ConStr3, type Credential, type CurrencySymbol, DEFAULT_FETCHER_OPTIONS, DEFAULT_PROTOCOL_PARAMETERS, DEFAULT_REDEEMER_BUDGET, DEFAULT_V1_COST_MODEL_LIST, DEFAULT_V2_COST_MODEL_LIST, DEFAULT_V3_COST_MODEL_LIST, DREP_DEPOSIT, type DRep, type Data, type DataSignature, type DatumSource, type DeserializedAddress, type DeserializedScript, type Dict, type DictItem, type Era, type Extension, type Files, type ForkNeighbor, type FungibleAssetMetadata, type GovernanceProposalInfo, HARDENED_KEY_START, type IDeserializer, type IEvaluator, type IFetcher, type IFetcherOptions, type IInitiator, type IListener, type IMeshTxSerializer, type IMintingBlueprint, type IResolver, type ISigner, type ISpendingBlueprint, type ISubmitter, type ITxParser, type IWallet, type IWithdrawalBlueprint, type ImageAssetMetadata, type Integer, LANGUAGE_VERSIONS, type LanguageVersion, type List, type MAssetClass, type MBool, type MConStr, type MConStr0, type MConStr1, type MConStr2, type MConStr3, type MCredential, type MMaybeStakingHash, type MNone, type MOption, type MOutputReference, type MPubKeyAddress, type MScript, type MScriptAddress, type MSome, type MTuple, type MTxOutRef, type MValue, type MVerificationKey, type MaybeStakingHash, type MeshTxBuilderBody, MeshValue, type Message, type Metadata, type Metadatum, type MetadatumMap, type Mint, type MintItem, type MintParam, type NativeScript, type Network, type NonFungibleAssetMetadata, type None, type Option, type Output, type OutputReference, POLICY_ID_LENGTH, type POSIXTime, type Pair, type Pairs, type PlutusData, type PlutusDataType, type PlutusScript, type PolicyId, type PoolMetadata, type PoolParams, type ProofStep, type ProofStepBranch, type ProofStepFork, type ProofStepLeaf, type Protocol, type PubKeyAddress, type PubKeyHash, type PubKeyTxIn, type PubKeyWithdrawal, type Quantity, type Recipient, type Redeemer, type RedeemerTagType, type RefTxIn, type Relay, type RequiredWith, type RoyaltiesStandard, SLOT_CONFIG_NETWORK, SUPPORTED_CLOCKS, SUPPORTED_HANDLES, SUPPORTED_LANGUAGE_VIEWS, SUPPORTED_OGMIOS_LINKS, SUPPORTED_TOKENS, SUPPORTED_WALLETS, type Script, type ScriptAddress, type ScriptHash, type ScriptMetadata, type ScriptSource, type ScriptTxIn, type ScriptTxInParameter, type ScriptVote, type ScriptWithdrawal, type SimpleScriptSourceInfo, type SimpleScriptTxIn, type SimpleScriptTxInParameter, type SimpleScriptVote, type SimpleScriptWithdrawal, type SlotConfig, type Some, type Token, type TokenName, type TransactionInfo, type Tuple, type TxIn, type TxInParameter, type TxInput, type TxMetadata, type TxOutRef, type TxOutput, TxTester, type UTxO, type Unit, UtxoSelection, type UtxoSelectionStrategy, type ValidityRange, type Value, type VerificationKey, type Vote, type VoteKind, type VoteType, type Voter, type VotingProcedure, type Wallet, type Withdrawal, assetClass, assetName, assocMap, bool, builtinByteString, byteString, bytesToHex, castProtocol, cloneTxBuilderBody, conStr, conStr0, conStr1, conStr2, conStr3, credential, currencySymbol, dict, emptyTxBuilderBody, experimentalSelectUtxos, fromUTF8, fungibleAssetKeys, getFile, hashByteString, hashDrepAnchor, hexToBytes, hexToString, integer, isHexString, isNetwork, jsonProofToPlutusData, keepRelevant, keySignedLogic, largestFirst, largestFirstMultiAsset, list, mAssetClass, mBool, mConStr, mConStr0, mConStr1, mConStr2, mConStr3, mCredential, mMaybeStakingHash, mNone, mOption, mOutputReference, mPlutusBSArrayToString, mPubKeyAddress, mScript, mScriptAddress, mSome, mStringToPlutusBSArray, mTuple, mTxOutRef, mValue, mVerificationKey, maybeStakingHash, mergeAssets, metadataStandardKeys, metadataToCip68, none, option, outputReference, pairs, parseAssetUnit, plutusBSArrayToString, policyId, posixTime, pubKeyAddress, pubKeyHash, resolveEpochNo, resolveFingerprint, resolveLanguageView, resolveSlotNo, resolveTxFees, royaltiesStandardKeys, script, scriptAddress, scriptHash, slotToBeginUnixTime, some, stringToBSArray, stringToHex, toBytes, toUTF8, tokenMintedLogic, tokenName, tuple, txInToUtxo, txOutRef, unixTimeToEnclosingSlot, validityRangeFromObj, validityRangeToObj, value, verificationKey };
2196
+ export { type AccountInfo, type Action, type Anchor, type Asset, type AssetClass, type AssetExtended, AssetFingerprint, type AssetMetadata, type AssetName, type AssocMap, type AssocMapItem, type BasicProposal, type BasicVote, BigNum, type BlockInfo, type Bool, type Budget, type BuilderData, type BuiltinByteString, type ByteString, CIP68_100, CIP68_222, type Certificate, type CertificateType, type Committee, type CommitteeMember, type ConStr, type ConStr0, type ConStr1, type ConStr2, type ConStr3, type Constitution, type Credential$1 as Credential, type CurrencySymbol, DEFAULT_FETCHER_OPTIONS, DEFAULT_PROTOCOL_PARAMETERS, DEFAULT_REDEEMER_BUDGET, DEFAULT_V1_COST_MODEL_LIST, DEFAULT_V2_COST_MODEL_LIST, DEFAULT_V3_COST_MODEL_LIST, DREP_DEPOSIT, type DRep, type Data, type DataSignature, type DatumSource, type DeserializedAddress, type DeserializedScript, type Dict, type DictItem, type Era, type Extension, type Files, type ForkNeighbor, type FungibleAssetMetadata, type GovernanceAction, type GovernanceActionId, GovernanceActionKind, type GovernanceProposalInfo, HARDENED_KEY_START, type HardForkInitiationAction, type IDeserializer, type IEvaluator, type IFetcher, type IFetcherOptions, type IInitiator, type IListener, type IMeshTxSerializer, type IMintingBlueprint, type IResolver, type ISigner, type ISpendingBlueprint, type ISubmitter, type ITxParser, type IWallet, type IWithdrawalBlueprint, type ImageAssetMetadata, type InfoAction, type Integer, LANGUAGE_VERSIONS, type LanguageVersion, type List, type MAssetClass, type MBool, type MConStr, type MConStr0, type MConStr1, type MConStr2, type MConStr3, type MCredential, type MMaybeStakingHash, type MNone, type MOption, type MOutputReference, type MPubKeyAddress, type MScript, type MScriptAddress, type MSome, type MTuple, type MTxOutRef, type MValue, type MVerificationKey, type MaybeStakingHash, type MeshTxBuilderBody, MeshValue, type Message, type Metadata, type Metadatum, type MetadatumMap, type Mint, type MintItem, type MintParam, type NativeScript, type Network, type NewConstitutionAction, type NoConfidenceAction, type NonFungibleAssetMetadata, type None, type Option, type Output, type OutputReference, POLICY_ID_LENGTH, type POSIXTime, type Pair, type Pairs, type ParameterChangeAction, type PlutusData, type PlutusDataType, type PlutusScript, type PolicyId, type PoolMetadata, type PoolParams, type ProofStep, type ProofStepBranch, type ProofStepFork, type ProofStepLeaf, type Proposal, type ProposalType, type Protocol, type ProtocolParamUpdate, type ProtocolVersion, type PubKeyAddress, type PubKeyHash, type PubKeyTxIn, type PubKeyWithdrawal, type Quantity, type Rational, type Recipient, type Redeemer, type RedeemerTagType, type RefTxIn, type Relay, type RequiredWith, type RewardAddress, type RoyaltiesStandard, SLOT_CONFIG_NETWORK, SUPPORTED_CLOCKS, SUPPORTED_HANDLES, SUPPORTED_LANGUAGE_VIEWS, SUPPORTED_OGMIOS_LINKS, SUPPORTED_TOKENS, SUPPORTED_WALLETS, type Script, type ScriptAddress, type ScriptHash, type ScriptMetadata, type ScriptProposal, type ScriptSource, type ScriptTxIn, type ScriptTxInParameter, type ScriptVote, type ScriptWithdrawal, type SimpleScriptProposal, type SimpleScriptSourceInfo, type SimpleScriptTxIn, type SimpleScriptTxInParameter, type SimpleScriptVote, type SimpleScriptWithdrawal, type SlotConfig, type Some, type Token, type TokenName, type TransactionInfo, type TreasuryWithdrawals, type TreasuryWithdrawalsAction, type Tuple, type TxIn, type TxInParameter, type TxInput, type TxMetadata, type TxOutRef, type TxOutput, TxTester, type UTxO, type Unit, type UpdateCommitteeAction, UtxoSelection, type UtxoSelectionStrategy, VOTING_PROPOSAL_DEPOSIT, type ValidityRange, type Value, type VerificationKey, type Vote, type VoteKind, type VoteType, type Voter, type VotingProcedure, type Wallet, type Withdrawal, assetClass, assetName, assocMap, bool, builtinByteString, byteString, bytesToHex, castProtocol, cloneTxBuilderBody, conStr, conStr0, conStr1, conStr2, conStr3, credential, currencySymbol, dict, emptyTxBuilderBody, experimentalSelectUtxos, fromUTF8, fungibleAssetKeys, getFile, hashByteString, hashDrepAnchor, hexToBytes, hexToString, integer, isHexString, isNetwork, jsonProofToPlutusData, keepRelevant, keySignedLogic, largestFirst, largestFirstMultiAsset, list, mAssetClass, mBool, mConStr, mConStr0, mConStr1, mConStr2, mConStr3, mCredential, mMaybeStakingHash, mNone, mOption, mOutputReference, mPlutusBSArrayToString, mPubKeyAddress, mScript, mScriptAddress, mSome, mStringToPlutusBSArray, mTuple, mTxOutRef, mValue, mVerificationKey, maybeStakingHash, mergeAssets, metadataStandardKeys, metadataToCip68, none, option, outputReference, pairs, parseAssetUnit, plutusBSArrayToString, policyId, posixTime, pubKeyAddress, pubKeyHash, resolveEpochNo, resolveFingerprint, resolveLanguageView, resolveSlotNo, resolveTxFees, royaltiesStandardKeys, script, scriptAddress, scriptHash, slotToBeginUnixTime, some, stringToBSArray, stringToHex, toBytes, toUTF8, tokenMintedLogic, tokenName, tuple, txInToUtxo, txOutRef, unixTimeToEnclosingSlot, validityRangeFromObj, validityRangeToObj, value, verificationKey };
package/dist/index.d.ts CHANGED
@@ -423,168 +423,6 @@ type Output = {
423
423
  referenceScript?: PlutusScript;
424
424
  };
425
425
 
426
- type RefTxIn = {
427
- txHash: string;
428
- txIndex: number;
429
- scriptSize?: number;
430
- };
431
- type TxInParameter = {
432
- txHash: string;
433
- txIndex: number;
434
- amount?: Asset[];
435
- address?: string;
436
- scriptSize?: number;
437
- };
438
- type TxIn = PubKeyTxIn | SimpleScriptTxIn | ScriptTxIn;
439
- type PubKeyTxIn = {
440
- type: "PubKey";
441
- txIn: TxInParameter;
442
- };
443
- type SimpleScriptTxIn = {
444
- type: "SimpleScript";
445
- txIn: TxInParameter;
446
- simpleScriptTxIn: SimpleScriptTxInParameter;
447
- };
448
- type SimpleScriptTxInParameter = {
449
- scriptSource?: SimpleScriptSourceInfo;
450
- };
451
- type ScriptTxInParameter = {
452
- scriptSource?: ScriptSource;
453
- datumSource?: DatumSource;
454
- redeemer?: Redeemer;
455
- };
456
- type ScriptTxIn = {
457
- type: "Script";
458
- txIn: TxInParameter;
459
- scriptTxIn: ScriptTxInParameter;
460
- };
461
- declare const txInToUtxo: (txIn: TxInParameter) => UTxO;
462
-
463
- type Credential$1 = {
464
- type: "ScriptHash";
465
- scriptHash: string;
466
- } | {
467
- type: "KeyHash";
468
- keyHash: string;
469
- };
470
-
471
- type Vote = BasicVote | ScriptVote | SimpleScriptVote;
472
- type BasicVote = {
473
- type: "BasicVote";
474
- vote: VoteType;
475
- };
476
- type SimpleScriptVote = {
477
- type: "SimpleScriptVote";
478
- vote: VoteType;
479
- simpleScriptSource: SimpleScriptSourceInfo;
480
- };
481
- type ScriptVote = {
482
- type: "ScriptVote";
483
- vote: VoteType;
484
- redeemer?: Redeemer;
485
- scriptSource?: ScriptSource;
486
- };
487
- type VoteType = {
488
- voter: Voter;
489
- govActionId: RefTxIn;
490
- votingProcedure: VotingProcedure;
491
- };
492
- type Voter = {
493
- type: "ConstitutionalCommittee";
494
- hotCred: Credential$1;
495
- } | {
496
- type: "DRep";
497
- drepId: string;
498
- } | {
499
- type: "StakingPool";
500
- keyHash: string;
501
- };
502
- type VotingProcedure = {
503
- voteKind: VoteKind;
504
- anchor?: Anchor;
505
- };
506
- type VoteKind = "Yes" | "No" | "Abstain";
507
-
508
- type Withdrawal = PubKeyWithdrawal | ScriptWithdrawal | SimpleScriptWithdrawal;
509
- type PubKeyWithdrawal = {
510
- type: "PubKeyWithdrawal";
511
- address: string;
512
- coin: string;
513
- };
514
- type ScriptWithdrawal = {
515
- type: "ScriptWithdrawal";
516
- address: string;
517
- coin: string;
518
- scriptSource?: ScriptSource;
519
- redeemer?: Redeemer;
520
- };
521
- type SimpleScriptWithdrawal = {
522
- type: "SimpleScriptWithdrawal";
523
- address: string;
524
- coin: string;
525
- scriptSource?: SimpleScriptSourceInfo;
526
- };
527
-
528
- type MeshTxBuilderBody = {
529
- inputs: TxIn[];
530
- outputs: Output[];
531
- fee: Quantity;
532
- collaterals: PubKeyTxIn[];
533
- requiredSignatures: string[];
534
- referenceInputs: RefTxIn[];
535
- mints: MintParam[];
536
- changeAddress: string;
537
- metadata: TxMetadata;
538
- scriptMetadata: ScriptMetadata[];
539
- validityRange: ValidityRange;
540
- certificates: Certificate[];
541
- withdrawals: Withdrawal[];
542
- votes: Vote[];
543
- signingKey: string[];
544
- extraInputs: UTxO[];
545
- chainedTxs: string[];
546
- inputsForEvaluation: Record<string, UTxO>;
547
- network: Network | number[][];
548
- expectedNumberKeyWitnesses: number;
549
- expectedByronAddressWitnesses: string[];
550
- totalCollateral?: Quantity;
551
- collateralReturnAddress?: string;
552
- };
553
- declare const emptyTxBuilderBody: () => MeshTxBuilderBody;
554
- declare function cloneTxBuilderBody(body: MeshTxBuilderBody): MeshTxBuilderBody;
555
- type ValidityRange = {
556
- invalidBefore?: number;
557
- invalidHereafter?: number;
558
- };
559
- type MetadatumMap = Map<Metadatum, Metadatum>;
560
- type Metadatum = bigint | number | string | Uint8Array | MetadatumMap | Metadatum[];
561
- type TxMetadata = Map<bigint, Metadatum>;
562
- type Metadata = {
563
- tag: string;
564
- metadata: string;
565
- };
566
- type ScriptMetadata = {
567
- scriptType: "PlutusV1" | "PlutusV2" | "PlutusV3" | "Native";
568
- scriptCbor: string;
569
- };
570
- type RequiredWith<T, K extends keyof T> = Required<T> & {
571
- [P in K]: Required<T[P]>;
572
- };
573
- declare const validityRangeToObj: (validityRange: ValidityRange) => object;
574
- declare const validityRangeFromObj: (obj: any) => ValidityRange;
575
-
576
- type DeserializedAddress = {
577
- pubKeyHash: string;
578
- scriptHash: string;
579
- stakeCredentialHash: string;
580
- stakeScriptCredentialHash: string;
581
- };
582
-
583
- type DeserializedScript = {
584
- scriptHash: string;
585
- scriptCbor?: string;
586
- };
587
-
588
426
  /**
589
427
  * The Mesh Data constructor object, representing custom data type
590
428
  */
@@ -1195,7 +1033,7 @@ type ScriptAddress = ConStr0<[Script, MaybeStakingHash]>;
1195
1033
  /**
1196
1034
  * The Plutus Data credential in JSON
1197
1035
  */
1198
- type Credential = VerificationKey | Script;
1036
+ type Credential$1 = VerificationKey | Script;
1199
1037
  /**
1200
1038
  * The utility function to create a Plutus Data verification key in JSON
1201
1039
  * @param bytes The public key hash in hex
@@ -1237,7 +1075,7 @@ declare const scriptAddress: (bytes: string, stakeCredential?: string, isStakeSc
1237
1075
  * @param isScriptCredential Indicate if the credential is script hash (false for pub key hash)
1238
1076
  * @returns Plutus Data credential object
1239
1077
  */
1240
- declare const credential: (hash: string, isScriptCredential?: boolean) => Credential;
1078
+ declare const credential: (hash: string, isScriptCredential?: boolean) => Credential$1;
1241
1079
 
1242
1080
  type ProofStep = ProofStepBranch | ProofStepFork | ProofStepLeaf;
1243
1081
  type ProofStepBranch = ConStr0<[
@@ -1514,6 +1352,348 @@ declare class MeshValue {
1514
1352
 
1515
1353
  type PlutusDataType = "Mesh" | "JSON" | "CBOR";
1516
1354
 
1355
+ type Credential = {
1356
+ type: "ScriptHash";
1357
+ scriptHash: string;
1358
+ } | {
1359
+ type: "KeyHash";
1360
+ keyHash: string;
1361
+ };
1362
+
1363
+ type GovernanceProposalInfo = {
1364
+ txHash: string;
1365
+ certIndex: number;
1366
+ governanceType: string;
1367
+ deposit: number;
1368
+ returnAddress: string;
1369
+ governanceDescription: string;
1370
+ ratifiedEpoch: number;
1371
+ enactedEpoch: number;
1372
+ droppedEpoch: number;
1373
+ expiredEpoch: number;
1374
+ expiration: number;
1375
+ metadata: object;
1376
+ };
1377
+ type Rational = {
1378
+ numerator: string;
1379
+ denominator: string;
1380
+ };
1381
+ type RewardAddress = string;
1382
+ type GovernanceActionId = {
1383
+ transactionId: string;
1384
+ govActionIndex: number;
1385
+ };
1386
+ type ProtocolVersion = {
1387
+ major: number;
1388
+ minor: number;
1389
+ };
1390
+ type ProtocolParamUpdate = {
1391
+ minFeeA?: string;
1392
+ minFeeB?: string;
1393
+ maxBlockBodySize?: number;
1394
+ maxTxSize?: number;
1395
+ maxBlockHeaderSize?: number;
1396
+ keyDeposit?: string;
1397
+ poolDeposit?: string;
1398
+ maxEpoch?: number;
1399
+ nOpt?: number;
1400
+ poolPledgeInfluence?: Rational;
1401
+ expansionRate?: Rational;
1402
+ treasuryGrowthRate?: Rational;
1403
+ minPoolCost?: string;
1404
+ adaPerUtxoByte?: string;
1405
+ costModels?: Record<string, number[]>;
1406
+ executionCosts?: {
1407
+ memPrice?: Rational;
1408
+ stepPrice?: Rational;
1409
+ };
1410
+ maxTxExUnits?: {
1411
+ mem: string;
1412
+ steps: string;
1413
+ };
1414
+ maxBlockExUnits?: {
1415
+ mem: string;
1416
+ steps: string;
1417
+ };
1418
+ maxValueSize?: number;
1419
+ collateralPercentage?: number;
1420
+ maxCollateralInputs?: number;
1421
+ poolVotingThresholds?: {
1422
+ motionNoConfidence?: Rational;
1423
+ committeeNormal?: Rational;
1424
+ committeeNoConfidence?: Rational;
1425
+ hardForkInitiation?: Rational;
1426
+ ppSecurityGroup?: Rational;
1427
+ };
1428
+ drepVotingThresholds?: {
1429
+ motionNoConfidence?: Rational;
1430
+ committeeNormal?: Rational;
1431
+ committeeNoConfidence?: Rational;
1432
+ updateConstitution?: Rational;
1433
+ hardForkInitiation?: Rational;
1434
+ ppNetworkGroup?: Rational;
1435
+ ppEconomicGroup?: Rational;
1436
+ ppTechnicalGroup?: Rational;
1437
+ ppGovGroup?: Rational;
1438
+ treasuryWithdrawal?: Rational;
1439
+ };
1440
+ minCommitteeSize?: number;
1441
+ committeeTermLimit?: number;
1442
+ govActionValidityPeriod?: number;
1443
+ govActionDeposit?: string;
1444
+ drepDeposit?: string;
1445
+ drepInactivityPeriod?: number;
1446
+ refScriptCostPerByte?: Rational;
1447
+ };
1448
+ type CommitteeMember = {
1449
+ stakeCredential: Credential;
1450
+ termLimit: number;
1451
+ };
1452
+ type Committee = {
1453
+ members: CommitteeMember[];
1454
+ quorumThreshold: Rational;
1455
+ };
1456
+ type Constitution = {
1457
+ anchor: Anchor;
1458
+ scriptHash?: ScriptHash;
1459
+ };
1460
+ type TreasuryWithdrawals = Record<RewardAddress, string>;
1461
+ type ParameterChangeAction = {
1462
+ govActionId?: GovernanceActionId;
1463
+ protocolParamUpdates: ProtocolParamUpdate;
1464
+ policyHash?: ScriptHash;
1465
+ };
1466
+ type HardForkInitiationAction = {
1467
+ govActionId?: GovernanceActionId;
1468
+ protocolVersion: ProtocolVersion;
1469
+ };
1470
+ type TreasuryWithdrawalsAction = {
1471
+ withdrawals: TreasuryWithdrawals;
1472
+ policyHash?: ScriptHash;
1473
+ };
1474
+ type NoConfidenceAction = {
1475
+ govActionId?: GovernanceActionId;
1476
+ };
1477
+ type UpdateCommitteeAction = {
1478
+ govActionId?: GovernanceActionId;
1479
+ committee: Committee;
1480
+ membersToRemove: Credential[];
1481
+ };
1482
+ type NewConstitutionAction = {
1483
+ govActionId?: GovernanceActionId;
1484
+ constitution: Constitution;
1485
+ };
1486
+ type InfoAction = {};
1487
+ declare enum GovernanceActionKind {
1488
+ ParameterChangeAction = "ParameterChangeAction",
1489
+ HardForkInitiationAction = "HardForkInitiationAction",
1490
+ TreasuryWithdrawalsAction = "TreasuryWithdrawalsAction",
1491
+ NoConfidenceAction = "NoConfidenceAction",
1492
+ UpdateCommitteeAction = "UpdateCommitteeAction",
1493
+ NewConstitutionAction = "NewConstitutionAction",
1494
+ InfoAction = "InfoAction"
1495
+ }
1496
+ type GovernanceAction = {
1497
+ kind: "ParameterChangeAction";
1498
+ action: ParameterChangeAction;
1499
+ } | {
1500
+ kind: "HardForkInitiationAction";
1501
+ action: HardForkInitiationAction;
1502
+ } | {
1503
+ kind: "TreasuryWithdrawalsAction";
1504
+ action: TreasuryWithdrawalsAction;
1505
+ } | {
1506
+ kind: "NoConfidenceAction";
1507
+ action: NoConfidenceAction;
1508
+ } | {
1509
+ kind: "UpdateCommitteeAction";
1510
+ action: UpdateCommitteeAction;
1511
+ } | {
1512
+ kind: "NewConstitutionAction";
1513
+ action: NewConstitutionAction;
1514
+ } | {
1515
+ kind: "InfoAction";
1516
+ action: InfoAction;
1517
+ };
1518
+
1519
+ type ProposalType = {
1520
+ governanceAction: GovernanceAction;
1521
+ anchor: Anchor;
1522
+ rewardAccount: RewardAddress;
1523
+ deposit: string;
1524
+ };
1525
+ type BasicProposal = {
1526
+ type: "BasicProposal";
1527
+ proposalType: ProposalType;
1528
+ };
1529
+ type ScriptProposal = {
1530
+ type: "ScriptProposal";
1531
+ proposalType: ProposalType;
1532
+ redeemer?: Redeemer;
1533
+ scriptSource?: ScriptSource;
1534
+ };
1535
+ type SimpleScriptProposal = {
1536
+ type: "SimpleScriptProposal";
1537
+ proposalType: ProposalType;
1538
+ simpleScriptSource?: SimpleScriptSourceInfo;
1539
+ };
1540
+ type Proposal = BasicProposal | ScriptProposal | SimpleScriptProposal;
1541
+
1542
+ type RefTxIn = {
1543
+ txHash: string;
1544
+ txIndex: number;
1545
+ scriptSize?: number;
1546
+ };
1547
+ type TxInParameter = {
1548
+ txHash: string;
1549
+ txIndex: number;
1550
+ amount?: Asset[];
1551
+ address?: string;
1552
+ scriptSize?: number;
1553
+ };
1554
+ type TxIn = PubKeyTxIn | SimpleScriptTxIn | ScriptTxIn;
1555
+ type PubKeyTxIn = {
1556
+ type: "PubKey";
1557
+ txIn: TxInParameter;
1558
+ };
1559
+ type SimpleScriptTxIn = {
1560
+ type: "SimpleScript";
1561
+ txIn: TxInParameter;
1562
+ simpleScriptTxIn: SimpleScriptTxInParameter;
1563
+ };
1564
+ type SimpleScriptTxInParameter = {
1565
+ scriptSource?: SimpleScriptSourceInfo;
1566
+ };
1567
+ type ScriptTxInParameter = {
1568
+ scriptSource?: ScriptSource;
1569
+ datumSource?: DatumSource;
1570
+ redeemer?: Redeemer;
1571
+ };
1572
+ type ScriptTxIn = {
1573
+ type: "Script";
1574
+ txIn: TxInParameter;
1575
+ scriptTxIn: ScriptTxInParameter;
1576
+ };
1577
+ declare const txInToUtxo: (txIn: TxInParameter) => UTxO;
1578
+
1579
+ type Vote = BasicVote | ScriptVote | SimpleScriptVote;
1580
+ type BasicVote = {
1581
+ type: "BasicVote";
1582
+ vote: VoteType;
1583
+ };
1584
+ type SimpleScriptVote = {
1585
+ type: "SimpleScriptVote";
1586
+ vote: VoteType;
1587
+ simpleScriptSource: SimpleScriptSourceInfo;
1588
+ };
1589
+ type ScriptVote = {
1590
+ type: "ScriptVote";
1591
+ vote: VoteType;
1592
+ redeemer?: Redeemer;
1593
+ scriptSource?: ScriptSource;
1594
+ };
1595
+ type VoteType = {
1596
+ voter: Voter;
1597
+ govActionId: RefTxIn;
1598
+ votingProcedure: VotingProcedure;
1599
+ };
1600
+ type Voter = {
1601
+ type: "ConstitutionalCommittee";
1602
+ hotCred: Credential;
1603
+ } | {
1604
+ type: "DRep";
1605
+ drepId: string;
1606
+ } | {
1607
+ type: "StakingPool";
1608
+ keyHash: string;
1609
+ };
1610
+ type VotingProcedure = {
1611
+ voteKind: VoteKind;
1612
+ anchor?: Anchor;
1613
+ };
1614
+ type VoteKind = "Yes" | "No" | "Abstain";
1615
+
1616
+ type Withdrawal = PubKeyWithdrawal | ScriptWithdrawal | SimpleScriptWithdrawal;
1617
+ type PubKeyWithdrawal = {
1618
+ type: "PubKeyWithdrawal";
1619
+ address: string;
1620
+ coin: string;
1621
+ };
1622
+ type ScriptWithdrawal = {
1623
+ type: "ScriptWithdrawal";
1624
+ address: string;
1625
+ coin: string;
1626
+ scriptSource?: ScriptSource;
1627
+ redeemer?: Redeemer;
1628
+ };
1629
+ type SimpleScriptWithdrawal = {
1630
+ type: "SimpleScriptWithdrawal";
1631
+ address: string;
1632
+ coin: string;
1633
+ scriptSource?: SimpleScriptSourceInfo;
1634
+ };
1635
+
1636
+ type MeshTxBuilderBody = {
1637
+ inputs: TxIn[];
1638
+ outputs: Output[];
1639
+ fee: Quantity;
1640
+ collaterals: PubKeyTxIn[];
1641
+ requiredSignatures: string[];
1642
+ referenceInputs: RefTxIn[];
1643
+ mints: MintParam[];
1644
+ changeAddress: string;
1645
+ metadata: TxMetadata;
1646
+ scriptMetadata: ScriptMetadata[];
1647
+ validityRange: ValidityRange;
1648
+ certificates: Certificate[];
1649
+ withdrawals: Withdrawal[];
1650
+ votes: Vote[];
1651
+ proposals: Proposal[];
1652
+ signingKey: string[];
1653
+ extraInputs: UTxO[];
1654
+ chainedTxs: string[];
1655
+ inputsForEvaluation: Record<string, UTxO>;
1656
+ network: Network | number[][];
1657
+ expectedNumberKeyWitnesses: number;
1658
+ expectedByronAddressWitnesses: string[];
1659
+ totalCollateral?: Quantity;
1660
+ collateralReturnAddress?: string;
1661
+ };
1662
+ declare const emptyTxBuilderBody: () => MeshTxBuilderBody;
1663
+ declare function cloneTxBuilderBody(body: MeshTxBuilderBody): MeshTxBuilderBody;
1664
+ type ValidityRange = {
1665
+ invalidBefore?: number;
1666
+ invalidHereafter?: number;
1667
+ };
1668
+ type MetadatumMap = Map<Metadatum, Metadatum>;
1669
+ type Metadatum = bigint | number | string | Uint8Array | MetadatumMap | Metadatum[];
1670
+ type TxMetadata = Map<bigint, Metadatum>;
1671
+ type Metadata = {
1672
+ tag: string;
1673
+ metadata: string;
1674
+ };
1675
+ type ScriptMetadata = {
1676
+ scriptType: "PlutusV1" | "PlutusV2" | "PlutusV3" | "Native";
1677
+ scriptCbor: string;
1678
+ };
1679
+ type RequiredWith<T, K extends keyof T> = Required<T> & {
1680
+ [P in K]: Required<T[P]>;
1681
+ };
1682
+ declare const validityRangeToObj: (validityRange: ValidityRange) => object;
1683
+ declare const validityRangeFromObj: (obj: any) => ValidityRange;
1684
+
1685
+ type DeserializedAddress = {
1686
+ pubKeyHash: string;
1687
+ scriptHash: string;
1688
+ stakeCredentialHash: string;
1689
+ stakeScriptCredentialHash: string;
1690
+ };
1691
+
1692
+ type DeserializedScript = {
1693
+ scriptHash: string;
1694
+ scriptCbor?: string;
1695
+ };
1696
+
1517
1697
  interface IMintingBlueprint {
1518
1698
  version: LanguageVersion;
1519
1699
  cbor: string;
@@ -1544,23 +1724,9 @@ interface IWithdrawalBlueprint {
1544
1724
  noParamScript(compiledCode: string): this;
1545
1725
  }
1546
1726
 
1547
- type GovernanceProposalInfo = {
1548
- txHash: string;
1549
- certIndex: number;
1550
- governanceType: string;
1551
- deposit: number;
1552
- returnAddress: string;
1553
- governanceDescription: string;
1554
- ratifiedEpoch: number;
1555
- enactedEpoch: number;
1556
- droppedEpoch: number;
1557
- expiredEpoch: number;
1558
- expiration: number;
1559
- metadata: object;
1560
- };
1561
-
1562
1727
  declare const DEFAULT_PROTOCOL_PARAMETERS: Protocol;
1563
1728
  declare const DREP_DEPOSIT = "500000000";
1729
+ declare const VOTING_PROPOSAL_DEPOSIT = "100000000000";
1564
1730
  declare const resolveTxFees: (txSize: number, minFeeA?: number, minFeeB?: number) => string;
1565
1731
 
1566
1732
  declare const SUPPORTED_WALLETS: string[];
@@ -2027,4 +2193,4 @@ declare class UtxoSelection {
2027
2193
  }
2028
2194
  type UtxoSelectionStrategy = keyof UtxoSelection;
2029
2195
 
2030
- export { type AccountInfo, type Action, type Anchor, type Asset, type AssetClass, type AssetExtended, AssetFingerprint, type AssetMetadata, type AssetName, type AssocMap, type AssocMapItem, type BasicVote, BigNum, type BlockInfo, type Bool, type Budget, type BuilderData, type BuiltinByteString, type ByteString, CIP68_100, CIP68_222, type Certificate, type CertificateType, type ConStr, type ConStr0, type ConStr1, type ConStr2, type ConStr3, type Credential, type CurrencySymbol, DEFAULT_FETCHER_OPTIONS, DEFAULT_PROTOCOL_PARAMETERS, DEFAULT_REDEEMER_BUDGET, DEFAULT_V1_COST_MODEL_LIST, DEFAULT_V2_COST_MODEL_LIST, DEFAULT_V3_COST_MODEL_LIST, DREP_DEPOSIT, type DRep, type Data, type DataSignature, type DatumSource, type DeserializedAddress, type DeserializedScript, type Dict, type DictItem, type Era, type Extension, type Files, type ForkNeighbor, type FungibleAssetMetadata, type GovernanceProposalInfo, HARDENED_KEY_START, type IDeserializer, type IEvaluator, type IFetcher, type IFetcherOptions, type IInitiator, type IListener, type IMeshTxSerializer, type IMintingBlueprint, type IResolver, type ISigner, type ISpendingBlueprint, type ISubmitter, type ITxParser, type IWallet, type IWithdrawalBlueprint, type ImageAssetMetadata, type Integer, LANGUAGE_VERSIONS, type LanguageVersion, type List, type MAssetClass, type MBool, type MConStr, type MConStr0, type MConStr1, type MConStr2, type MConStr3, type MCredential, type MMaybeStakingHash, type MNone, type MOption, type MOutputReference, type MPubKeyAddress, type MScript, type MScriptAddress, type MSome, type MTuple, type MTxOutRef, type MValue, type MVerificationKey, type MaybeStakingHash, type MeshTxBuilderBody, MeshValue, type Message, type Metadata, type Metadatum, type MetadatumMap, type Mint, type MintItem, type MintParam, type NativeScript, type Network, type NonFungibleAssetMetadata, type None, type Option, type Output, type OutputReference, POLICY_ID_LENGTH, type POSIXTime, type Pair, type Pairs, type PlutusData, type PlutusDataType, type PlutusScript, type PolicyId, type PoolMetadata, type PoolParams, type ProofStep, type ProofStepBranch, type ProofStepFork, type ProofStepLeaf, type Protocol, type PubKeyAddress, type PubKeyHash, type PubKeyTxIn, type PubKeyWithdrawal, type Quantity, type Recipient, type Redeemer, type RedeemerTagType, type RefTxIn, type Relay, type RequiredWith, type RoyaltiesStandard, SLOT_CONFIG_NETWORK, SUPPORTED_CLOCKS, SUPPORTED_HANDLES, SUPPORTED_LANGUAGE_VIEWS, SUPPORTED_OGMIOS_LINKS, SUPPORTED_TOKENS, SUPPORTED_WALLETS, type Script, type ScriptAddress, type ScriptHash, type ScriptMetadata, type ScriptSource, type ScriptTxIn, type ScriptTxInParameter, type ScriptVote, type ScriptWithdrawal, type SimpleScriptSourceInfo, type SimpleScriptTxIn, type SimpleScriptTxInParameter, type SimpleScriptVote, type SimpleScriptWithdrawal, type SlotConfig, type Some, type Token, type TokenName, type TransactionInfo, type Tuple, type TxIn, type TxInParameter, type TxInput, type TxMetadata, type TxOutRef, type TxOutput, TxTester, type UTxO, type Unit, UtxoSelection, type UtxoSelectionStrategy, type ValidityRange, type Value, type VerificationKey, type Vote, type VoteKind, type VoteType, type Voter, type VotingProcedure, type Wallet, type Withdrawal, assetClass, assetName, assocMap, bool, builtinByteString, byteString, bytesToHex, castProtocol, cloneTxBuilderBody, conStr, conStr0, conStr1, conStr2, conStr3, credential, currencySymbol, dict, emptyTxBuilderBody, experimentalSelectUtxos, fromUTF8, fungibleAssetKeys, getFile, hashByteString, hashDrepAnchor, hexToBytes, hexToString, integer, isHexString, isNetwork, jsonProofToPlutusData, keepRelevant, keySignedLogic, largestFirst, largestFirstMultiAsset, list, mAssetClass, mBool, mConStr, mConStr0, mConStr1, mConStr2, mConStr3, mCredential, mMaybeStakingHash, mNone, mOption, mOutputReference, mPlutusBSArrayToString, mPubKeyAddress, mScript, mScriptAddress, mSome, mStringToPlutusBSArray, mTuple, mTxOutRef, mValue, mVerificationKey, maybeStakingHash, mergeAssets, metadataStandardKeys, metadataToCip68, none, option, outputReference, pairs, parseAssetUnit, plutusBSArrayToString, policyId, posixTime, pubKeyAddress, pubKeyHash, resolveEpochNo, resolveFingerprint, resolveLanguageView, resolveSlotNo, resolveTxFees, royaltiesStandardKeys, script, scriptAddress, scriptHash, slotToBeginUnixTime, some, stringToBSArray, stringToHex, toBytes, toUTF8, tokenMintedLogic, tokenName, tuple, txInToUtxo, txOutRef, unixTimeToEnclosingSlot, validityRangeFromObj, validityRangeToObj, value, verificationKey };
2196
+ export { type AccountInfo, type Action, type Anchor, type Asset, type AssetClass, type AssetExtended, AssetFingerprint, type AssetMetadata, type AssetName, type AssocMap, type AssocMapItem, type BasicProposal, type BasicVote, BigNum, type BlockInfo, type Bool, type Budget, type BuilderData, type BuiltinByteString, type ByteString, CIP68_100, CIP68_222, type Certificate, type CertificateType, type Committee, type CommitteeMember, type ConStr, type ConStr0, type ConStr1, type ConStr2, type ConStr3, type Constitution, type Credential$1 as Credential, type CurrencySymbol, DEFAULT_FETCHER_OPTIONS, DEFAULT_PROTOCOL_PARAMETERS, DEFAULT_REDEEMER_BUDGET, DEFAULT_V1_COST_MODEL_LIST, DEFAULT_V2_COST_MODEL_LIST, DEFAULT_V3_COST_MODEL_LIST, DREP_DEPOSIT, type DRep, type Data, type DataSignature, type DatumSource, type DeserializedAddress, type DeserializedScript, type Dict, type DictItem, type Era, type Extension, type Files, type ForkNeighbor, type FungibleAssetMetadata, type GovernanceAction, type GovernanceActionId, GovernanceActionKind, type GovernanceProposalInfo, HARDENED_KEY_START, type HardForkInitiationAction, type IDeserializer, type IEvaluator, type IFetcher, type IFetcherOptions, type IInitiator, type IListener, type IMeshTxSerializer, type IMintingBlueprint, type IResolver, type ISigner, type ISpendingBlueprint, type ISubmitter, type ITxParser, type IWallet, type IWithdrawalBlueprint, type ImageAssetMetadata, type InfoAction, type Integer, LANGUAGE_VERSIONS, type LanguageVersion, type List, type MAssetClass, type MBool, type MConStr, type MConStr0, type MConStr1, type MConStr2, type MConStr3, type MCredential, type MMaybeStakingHash, type MNone, type MOption, type MOutputReference, type MPubKeyAddress, type MScript, type MScriptAddress, type MSome, type MTuple, type MTxOutRef, type MValue, type MVerificationKey, type MaybeStakingHash, type MeshTxBuilderBody, MeshValue, type Message, type Metadata, type Metadatum, type MetadatumMap, type Mint, type MintItem, type MintParam, type NativeScript, type Network, type NewConstitutionAction, type NoConfidenceAction, type NonFungibleAssetMetadata, type None, type Option, type Output, type OutputReference, POLICY_ID_LENGTH, type POSIXTime, type Pair, type Pairs, type ParameterChangeAction, type PlutusData, type PlutusDataType, type PlutusScript, type PolicyId, type PoolMetadata, type PoolParams, type ProofStep, type ProofStepBranch, type ProofStepFork, type ProofStepLeaf, type Proposal, type ProposalType, type Protocol, type ProtocolParamUpdate, type ProtocolVersion, type PubKeyAddress, type PubKeyHash, type PubKeyTxIn, type PubKeyWithdrawal, type Quantity, type Rational, type Recipient, type Redeemer, type RedeemerTagType, type RefTxIn, type Relay, type RequiredWith, type RewardAddress, type RoyaltiesStandard, SLOT_CONFIG_NETWORK, SUPPORTED_CLOCKS, SUPPORTED_HANDLES, SUPPORTED_LANGUAGE_VIEWS, SUPPORTED_OGMIOS_LINKS, SUPPORTED_TOKENS, SUPPORTED_WALLETS, type Script, type ScriptAddress, type ScriptHash, type ScriptMetadata, type ScriptProposal, type ScriptSource, type ScriptTxIn, type ScriptTxInParameter, type ScriptVote, type ScriptWithdrawal, type SimpleScriptProposal, type SimpleScriptSourceInfo, type SimpleScriptTxIn, type SimpleScriptTxInParameter, type SimpleScriptVote, type SimpleScriptWithdrawal, type SlotConfig, type Some, type Token, type TokenName, type TransactionInfo, type TreasuryWithdrawals, type TreasuryWithdrawalsAction, type Tuple, type TxIn, type TxInParameter, type TxInput, type TxMetadata, type TxOutRef, type TxOutput, TxTester, type UTxO, type Unit, type UpdateCommitteeAction, UtxoSelection, type UtxoSelectionStrategy, VOTING_PROPOSAL_DEPOSIT, type ValidityRange, type Value, type VerificationKey, type Vote, type VoteKind, type VoteType, type Voter, type VotingProcedure, type Wallet, type Withdrawal, assetClass, assetName, assocMap, bool, builtinByteString, byteString, bytesToHex, castProtocol, cloneTxBuilderBody, conStr, conStr0, conStr1, conStr2, conStr3, credential, currencySymbol, dict, emptyTxBuilderBody, experimentalSelectUtxos, fromUTF8, fungibleAssetKeys, getFile, hashByteString, hashDrepAnchor, hexToBytes, hexToString, integer, isHexString, isNetwork, jsonProofToPlutusData, keepRelevant, keySignedLogic, largestFirst, largestFirstMultiAsset, list, mAssetClass, mBool, mConStr, mConStr0, mConStr1, mConStr2, mConStr3, mCredential, mMaybeStakingHash, mNone, mOption, mOutputReference, mPlutusBSArrayToString, mPubKeyAddress, mScript, mScriptAddress, mSome, mStringToPlutusBSArray, mTuple, mTxOutRef, mValue, mVerificationKey, maybeStakingHash, mergeAssets, metadataStandardKeys, metadataToCip68, none, option, outputReference, pairs, parseAssetUnit, plutusBSArrayToString, policyId, posixTime, pubKeyAddress, pubKeyHash, resolveEpochNo, resolveFingerprint, resolveLanguageView, resolveSlotNo, resolveTxFees, royaltiesStandardKeys, script, scriptAddress, scriptHash, slotToBeginUnixTime, some, stringToBSArray, stringToHex, toBytes, toUTF8, tokenMintedLogic, tokenName, tuple, txInToUtxo, txOutRef, unixTimeToEnclosingSlot, validityRangeFromObj, validityRangeToObj, value, verificationKey };
package/dist/index.js CHANGED
@@ -23,6 +23,7 @@ var DEFAULT_PROTOCOL_PARAMETERS = {
23
23
  minFeeRefScriptCostPerByte: 15
24
24
  };
25
25
  var DREP_DEPOSIT = "500000000";
26
+ var VOTING_PROPOSAL_DEPOSIT = "100000000000";
26
27
  var resolveTxFees = (txSize, minFeeA = DEFAULT_PROTOCOL_PARAMETERS.minFeeA, minFeeB = DEFAULT_PROTOCOL_PARAMETERS.minFeeB) => {
27
28
  const fees = BigInt(minFeeA) * BigInt(txSize) + BigInt(minFeeB);
28
29
  return fees.toString();
@@ -873,6 +874,7 @@ var emptyTxBuilderBody = () => ({
873
874
  certificates: [],
874
875
  withdrawals: [],
875
876
  votes: [],
877
+ proposals: [],
876
878
  signingKey: [],
877
879
  chainedTxs: [],
878
880
  inputsForEvaluation: {},
@@ -903,6 +905,18 @@ var validityRangeFromObj = (obj) => {
903
905
  return validityRange;
904
906
  };
905
907
 
908
+ // src/types/governance.ts
909
+ var GovernanceActionKind = /* @__PURE__ */ ((GovernanceActionKind2) => {
910
+ GovernanceActionKind2["ParameterChangeAction"] = "ParameterChangeAction";
911
+ GovernanceActionKind2["HardForkInitiationAction"] = "HardForkInitiationAction";
912
+ GovernanceActionKind2["TreasuryWithdrawalsAction"] = "TreasuryWithdrawalsAction";
913
+ GovernanceActionKind2["NoConfidenceAction"] = "NoConfidenceAction";
914
+ GovernanceActionKind2["UpdateCommitteeAction"] = "UpdateCommitteeAction";
915
+ GovernanceActionKind2["NewConstitutionAction"] = "NewConstitutionAction";
916
+ GovernanceActionKind2["InfoAction"] = "InfoAction";
917
+ return GovernanceActionKind2;
918
+ })(GovernanceActionKind || {});
919
+
906
920
  // src/data/mesh/constructors.ts
907
921
  var mConStr = (alternative, fields) => ({
908
922
  alternative,
@@ -2409,6 +2423,7 @@ export {
2409
2423
  DEFAULT_V2_COST_MODEL_LIST,
2410
2424
  DEFAULT_V3_COST_MODEL_LIST,
2411
2425
  DREP_DEPOSIT,
2426
+ GovernanceActionKind,
2412
2427
  HARDENED_KEY_START,
2413
2428
  LANGUAGE_VERSIONS,
2414
2429
  MeshValue,
@@ -2422,6 +2437,7 @@ export {
2422
2437
  SUPPORTED_WALLETS,
2423
2438
  TxTester,
2424
2439
  UtxoSelection,
2440
+ VOTING_PROPOSAL_DEPOSIT,
2425
2441
  assetClass,
2426
2442
  assetName,
2427
2443
  assocMap,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshsdk/common",
3
- "version": "1.9.0-beta.79",
3
+ "version": "1.9.0-beta.80",
4
4
  "description": "Contains constants, types and interfaces used across the SDK and different serialization libraries",
5
5
  "main": "./dist/index.cjs",
6
6
  "browser": "./dist/index.js",
@@ -52,4 +52,4 @@
52
52
  "blockchain",
53
53
  "sdk"
54
54
  ]
55
- }
55
+ }