@biglup/cometa 1.0.7006 → 1.1.101

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.
@@ -1004,6 +1004,13 @@ declare const uint8ArrayToHex: (byteArray: Uint8Array) => string;
1004
1004
  * @returns {Uint8Array} The converted Uint8Array.
1005
1005
  */
1006
1006
  declare const utf8ToUint8Array: (str: string) => Uint8Array;
1007
+ /**
1008
+ * Converts a UTF-8 string to its hex string representation.
1009
+ *
1010
+ * @param {string} str - The UTF-8 string to convert.
1011
+ * @returns {string} The hex string representation of the UTF-8 string.
1012
+ */
1013
+ declare const utf8ToHex: (str: string) => string;
1007
1014
  /**
1008
1015
  * Converts a Uint8Array to a UTF-8 string.
1009
1016
  *
@@ -1011,6 +1018,15 @@ declare const utf8ToUint8Array: (str: string) => Uint8Array;
1011
1018
  * @returns {string} The converted UTF-8 string.
1012
1019
  */
1013
1020
  declare const uint8ArrayToUtf8: (uint8Array: Uint8Array) => string;
1021
+ /**
1022
+ * Decodes a Base64 encoded string to a Uint8Array.
1023
+ * This function is isomorphic, providing an optimized path for Node.js
1024
+ * and a universal fallback for browsers.
1025
+ *
1026
+ * @param {string} base64 - The Base64 encoded string to decode.
1027
+ * @returns {Uint8Array} A Uint8Array containing the decoded bytes.
1028
+ */
1029
+ declare const base64ToBytes: (base64: string) => Uint8Array;
1014
1030
  /**
1015
1031
  * A simple state tracker to manually signal when an async operation,
1016
1032
  * callable from WASM, has been initiated.
@@ -1038,11 +1054,11 @@ interface Anchor {
1038
1054
  */
1039
1055
  declare enum Vote {
1040
1056
  /** A vote against the governance action. */
1041
- no = 0,
1057
+ No = 0,
1042
1058
  /** A vote in favor of the governance action. */
1043
- yes = 1,
1059
+ Yes = 1,
1044
1060
  /** A vote to abstain, neither for nor against the action. */
1045
- abstain = 2
1061
+ Abstain = 2
1046
1062
  }
1047
1063
  /**
1048
1064
  * Encapsulates a single voting action, including the vote itself
@@ -1123,6 +1139,49 @@ declare const isDRepNoConfidence: (drep: DRep) => drep is AlwaysNoConfidence;
1123
1139
  * @returns {boolean} True if the DRep is of the 'Credential' type.
1124
1140
  */
1125
1141
  declare const isDRepCredential: (drep: DRep) => drep is Credential;
1142
+ /**
1143
+ * Deserializes a Bech32-encoded governance action ID string into a GovernanceActionId object.
1144
+ *
1145
+ * This function parses a governance action ID string (e.g., "gov_action1...") according to the
1146
+ * [CIP-129](https://cips.cardano.org/cip/CIP-129) specification and returns a structured object
1147
+ * containing the transaction ID and action index.
1148
+ *
1149
+ * @param {string} bech32 - The CIP-129 formatted, Bech32-encoded governance action ID string.
1150
+ * @returns {GovernanceActionId} A structured object representing the governance action ID.
1151
+ * @throws {Error} Throws an error if the Bech32 string is malformed or invalid.
1152
+ * @see {@link https://cips.cardano.org/cip/CIP-129|CIP-129} for the official specification.
1153
+ * @example
1154
+ * const bech32Id = 'gov_action1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpzklpgpf';
1155
+ * const govActionId = govActionIdFromBech32(bech32Id);
1156
+ *
1157
+ * console.log(govActionId.id);
1158
+ * //-> "0000000000000000000000000000000000000000000000000000000000000000"
1159
+ *
1160
+ * console.log(govActionId.actionIndex);
1161
+ * //-> 11
1162
+ */
1163
+ declare const govActionIdFromBech32: (bech32: string) => GovernanceActionId;
1164
+ /**
1165
+ * Serializes a GovernanceActionId object into its Bech32 string representation.
1166
+ *
1167
+ * This function converts a structured GovernanceActionId object (containing a transaction ID
1168
+ * and action index) into its CIP-129 formatted Bech32 string (e.g., "gov_action1...").
1169
+ *
1170
+ * @param {GovernanceActionId} govActionId - The structured object to serialize.
1171
+ * @returns {string} The Bech32-encoded governance action ID string.
1172
+ * @throws {Error} Throws an error if the serialization fails.
1173
+ * @see {@link https://cips.cardano.org/cip/CIP-129|CIP-129} for the official specification.
1174
+ * @example
1175
+ * const govActionId = {
1176
+ * id: '0000000000000000000000000000000000000000000000000000000000000000',
1177
+ * actionIndex: 11
1178
+ * };
1179
+ * const bech32Id = govActionIdToBech32(govActionId);
1180
+ *
1181
+ * console.log(bech32Id);
1182
+ * //-> "gov_action1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpzklpgpf"
1183
+ */
1184
+ declare const govActionIdToBech32: (govActionId: GovernanceActionId) => string;
1126
1185
 
1127
1186
  /**
1128
1187
  * This relay points to a single host via its ipv4/ipv6 address and a given port.
@@ -1572,6 +1631,291 @@ interface CostModel {
1572
1631
  costs: number[];
1573
1632
  }
1574
1633
 
1634
+ /** Plutus script type. */
1635
+ declare enum ScriptType {
1636
+ Native = "native",
1637
+ Plutus = "plutus"
1638
+ }
1639
+ /** native script kind. */
1640
+ declare enum NativeScriptKind {
1641
+ RequireSignature = 0,
1642
+ RequireAllOf = 1,
1643
+ RequireAnyOf = 2,
1644
+ RequireNOf = 3,
1645
+ RequireTimeAfter = 4,
1646
+ RequireTimeBefore = 5
1647
+ }
1648
+ /**
1649
+ * This script evaluates to true if the transaction also includes a valid key witness
1650
+ * where the witness verification key hashes to the given hash.
1651
+ *
1652
+ * In other words, this checks that the transaction is signed by a particular key, identified by its verification
1653
+ * key hash.
1654
+ */
1655
+ interface RequireSignatureScript {
1656
+ /** Script type. */
1657
+ type: ScriptType.Native;
1658
+ /** The hash of a verification key. */
1659
+ keyHash: string;
1660
+ /** The native script kind. */
1661
+ kind: NativeScriptKind.RequireSignature;
1662
+ }
1663
+ /**
1664
+ * This script evaluates to true if all the sub-scripts evaluate to true.
1665
+ *
1666
+ * If the list of sub-scripts is empty, this script evaluates to true.
1667
+ */
1668
+ interface RequireAllOfScript {
1669
+ /** Script type. */
1670
+ type: ScriptType.Native;
1671
+ /** The list of sub-scripts. */
1672
+ scripts: NativeScript[];
1673
+ /** The native script kind. */
1674
+ kind: NativeScriptKind.RequireAllOf;
1675
+ }
1676
+ /**
1677
+ * This script evaluates to true if any the sub-scripts evaluate to true. That is, if one
1678
+ * or more evaluate to true.
1679
+ *
1680
+ * If the list of sub-scripts is empty, this script evaluates to false.
1681
+ */
1682
+ interface RequireAnyOfScript {
1683
+ /** Script type. */
1684
+ type: ScriptType.Native;
1685
+ /** The list of sub-scripts. */
1686
+ scripts: NativeScript[];
1687
+ /** The native script kind. */
1688
+ kind: NativeScriptKind.RequireAnyOf;
1689
+ }
1690
+ /** This script evaluates to true if at least M (required field) of the sub-scripts evaluate to true. */
1691
+ interface RequireAtLeastScript {
1692
+ /** Script type. */
1693
+ type: ScriptType.Native;
1694
+ /** The number of sub-scripts that must evaluate to true for this script to evaluate to true. */
1695
+ required: number;
1696
+ /** The list of sub-scripts. */
1697
+ scripts: NativeScript[];
1698
+ /** The native script kind. */
1699
+ kind: NativeScriptKind.RequireNOf;
1700
+ }
1701
+ /**
1702
+ * This script evaluates to true if the upper bound of the transaction validity interval is a
1703
+ * slot number Y, and X <= Y.
1704
+ *
1705
+ * This condition guarantees that the actual slot number in which the transaction is included is
1706
+ * (strictly) less than slot number X.
1707
+ */
1708
+ interface RequireTimeBeforeScript {
1709
+ /** Script type. */
1710
+ type: ScriptType.Native;
1711
+ /** The slot number specifying the upper bound of the validity interval. */
1712
+ slot: number;
1713
+ /** The native script kind. */
1714
+ kind: NativeScriptKind.RequireTimeBefore;
1715
+ }
1716
+ /**
1717
+ * This script evaluates to true if the lower bound of the transaction validity interval is a
1718
+ * slot number Y, and Y <= X.
1719
+ *
1720
+ * This condition guarantees that the actual slot number in which the transaction is included
1721
+ * is greater than or equal to slot number X.
1722
+ */
1723
+ interface RequireTimeAfterScript {
1724
+ /** Script type. */
1725
+ type: ScriptType.Native;
1726
+ /** The slot number specifying the lower bound of the validity interval. */
1727
+ slot: number;
1728
+ /** The native script kind. */
1729
+ kind: NativeScriptKind.RequireTimeAfter;
1730
+ }
1731
+ /**
1732
+ * The Native scripts form an expression tree, the evaluation of the script produces either true or false.
1733
+ *
1734
+ * Note that it is recursive. There are no constraints on the nesting or size, except that imposed by the overall
1735
+ * transaction size limit (given that the script must be included in the transaction in a script witnesses).
1736
+ */
1737
+ type NativeScript = RequireAllOfScript | RequireSignatureScript | RequireAnyOfScript | RequireAtLeastScript | RequireTimeBeforeScript | RequireTimeAfterScript;
1738
+ /**
1739
+ * The Cardano ledger tags scripts with a language that determines what the ledger will do with the script.
1740
+ *
1741
+ * In most cases this language will be very similar to the ones that came before, we refer to these as
1742
+ * 'Plutus language versions'. However, from the ledger’s perspective they are entirely unrelated and there
1743
+ * is generally no requirement that they be similar or compatible in any way.
1744
+ */
1745
+ declare enum PlutusLanguageVersion {
1746
+ /** V1 was the initial version of Plutus, introduced in the Alonzo hard fork. */
1747
+ V1 = 0,
1748
+ /**
1749
+ * V2 was introduced in the Vasil hard fork.
1750
+ *
1751
+ * The main changes in V2 of Plutus were to the interface to scripts. The ScriptContext was extended
1752
+ * to include the following information:
1753
+ *
1754
+ * - The full “redeemers” structure, which contains all the redeemers used in the transaction
1755
+ * - Reference inputs in the transaction (proposed in CIP-31)
1756
+ * - Inline datums in the transaction (proposed in CIP-32)
1757
+ * - Reference scripts in the transaction (proposed in CIP-33)
1758
+ */
1759
+ V2 = 1,
1760
+ /**
1761
+ * V3 was introduced in the Conway hard fork.
1762
+ *
1763
+ * The main changes in V3 of Plutus introduce:
1764
+ *
1765
+ * - The value of costmdls map at key 2 is encoded as a definite length list.
1766
+ */
1767
+ V3 = 2
1768
+ }
1769
+ /**
1770
+ * Plutus scripts are pieces of code that implement pure functions with True or False outputs. These functions take
1771
+ * several inputs such as Datum, Redeemer and the transaction context to decide whether an output can be spent or not.
1772
+ */
1773
+ interface PlutusScript {
1774
+ type: ScriptType.Plutus;
1775
+ bytes: string;
1776
+ version: PlutusLanguageVersion;
1777
+ }
1778
+ /** Program that decides whether the transaction that spends the output is authorized to do so. */
1779
+ type Script = NativeScript | PlutusScript;
1780
+ /**
1781
+ * Predicate that returns true if the given core script is a native script.
1782
+ *
1783
+ * @param script The Script to check.
1784
+ */
1785
+ declare const isNativeScript: (script: Script) => script is NativeScript;
1786
+ /**
1787
+ * Predicate that returns true if the given core script is a plutus script.
1788
+ *
1789
+ * @param script The Script to check.
1790
+ */
1791
+ declare const isPlutusScript: (script: Script) => script is PlutusScript;
1792
+ /**
1793
+ * Performs a deep equality check on two Script.
1794
+ *
1795
+ * @param a The first Script object.
1796
+ * @param b The second Script object.
1797
+ * @returns True if the objects are deeply equal, false otherwise.
1798
+ */
1799
+ declare const deepEqualsScript: (a: Script, b: Script) => boolean;
1800
+ /**
1801
+ * Computes the hash of a Script object.
1802
+ *
1803
+ * This function calculates the Blake2b hash of the provided Script.
1804
+ *
1805
+ * @param script The Script object to hash.
1806
+ * @returns The hexadecimal string representation of the hash.
1807
+ */
1808
+ declare const computeScriptHash: (script: Script) => string;
1809
+ /**
1810
+ * Derives a script address (enterprise address) from a script.
1811
+ *
1812
+ * This function calculates the script's hash, creates a script credential from it,
1813
+ * and then constructs an enterprise address for the specified network.
1814
+ *
1815
+ * @param {Script} script The script (Native or Plutus) from which to derive the address.
1816
+ * @param {NetworkId} networkId The network identifier (e.g., Mainnet or Testnet).
1817
+ * @returns {Address} An Address object representing the script address.
1818
+ * @throws {Error} If any step of the address creation process fails.
1819
+ */
1820
+ declare const getScriptAddress: (script: Script, networkId: NetworkId) => Address;
1821
+ /**
1822
+ * Serializes a Script object into its CBOR hexadecimal string representation.
1823
+ *
1824
+ * @param data The Script object to serialize.
1825
+ * @returns A hex-encoded CBOR string.
1826
+ */
1827
+ declare const scriptToCbor: (data: Script) => string;
1828
+ /**
1829
+ * Deserializes a CBOR hexadecimal string into a Script object.
1830
+ *
1831
+ * @param cborHex The hex-encoded CBOR string to deserialize.
1832
+ * @returns The deserialized Script object.
1833
+ */
1834
+ declare const cborToScript: (cborHex: string) => Script;
1835
+ /**
1836
+ * Converts a json representation of a native script into a NativeScript.
1837
+ *
1838
+ * @param json The JSON representation of a native script. The JSON must conform
1839
+ * to the following format:
1840
+ *
1841
+ * https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md
1842
+ */
1843
+ declare const jsonToNativeScript: (json: any) => NativeScript;
1844
+ /**
1845
+ * Converts a NativeScript into its json representation.
1846
+ *
1847
+ * @param script The native script to be converted to JSON following the format described at:
1848
+ *
1849
+ * https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md
1850
+ */
1851
+ declare const nativeScriptToJson: (script: NativeScript) => any;
1852
+
1853
+ /**
1854
+ * Build a **CIP-105** DRep ID from a governance credential.
1855
+ *
1856
+ * @param credential - Credential containing `type` and hex `hash`.
1857
+ * @returns Bech32-encoded CIP-105 DRep ID (`drep1...` or `drep_script1...`).
1858
+ */
1859
+ declare const cip105DRepFromCredential: (credential: Credential) => string;
1860
+ /**
1861
+ * Build a **CIP-129** DRep ID from a governance credential.
1862
+ *
1863
+ * Prepends the appropriate 1-byte header (0x22 for key-hash, 0x23 for script-hash)
1864
+ * before Bech32-encoding with HRP `drep`.
1865
+ *
1866
+ * @param credential - Credential containing `type` and hex `hash`.
1867
+ * @returns Bech32-encoded CIP-129 DRep ID (`drep1...`).
1868
+ */
1869
+ declare const cip129DRepFromCredential: (credential: Credential) => string;
1870
+ /**
1871
+ * Construct a **CIP-129** DRep ID from a public key.
1872
+ * @param publicKey - Hex-encoded Ed25519 public key.
1873
+ */
1874
+ declare const cip129DRepFromPublicKey: (publicKey: string) => string;
1875
+ /**
1876
+ * Construct a **CIP-129** DRep ID from a script.
1877
+ * @param script - Script that controls the DRep credential.
1878
+ */
1879
+ declare const cip129DRepFromScript: (script: Script) => string;
1880
+ /**
1881
+ * Decode a DRep ID (CIP-105 or CIP-129) back to a governance credential.
1882
+ *
1883
+ * - For **CIP-105**, the credential type is inferred from the HRP (`drep` vs `drep_script`).
1884
+ * - For **CIP-129**, the credential type is inferred from the header byte.
1885
+ *
1886
+ * @param drepId - Bech32-encoded DRep ID (`drep1...` or `drep_script1...`).
1887
+ * @returns The extracted `Credential` (`{ hash, type }`).
1888
+ * @throws Error if the payload length is not `CIP_105_DREP_ID_LENGTH` or `CIP_129_DREP_ID_LENGTH`,
1889
+ * or if a CIP-129 header does not indicate a DRep governance credential.
1890
+ * @see toCip105DRepID
1891
+ * @see toCip129DRepID
1892
+ */
1893
+ declare const dRepToCredential: (drepId: string) => Credential;
1894
+ /**
1895
+ * Convert any DRep ID (CIP-105 or CIP-129) to **CIP-105** form.
1896
+ *
1897
+ * @param drepId - Bech32 DRep ID.
1898
+ * @returns CIP-105 DRep ID (`drep1...` or `drep_script1...`).
1899
+ */
1900
+ declare const toCip105DRepID: (drepId: string) => string;
1901
+ /**
1902
+ * Convert any DRep ID (CIP-105 or CIP-129) to **CIP-129** form.
1903
+ *
1904
+ * @param drepId - Bech32 DRep ID.
1905
+ * @returns CIP-129 DRep ID (`drep1...`).
1906
+ */
1907
+ declare const toCip129DRepID: (drepId: string) => string;
1908
+ /**
1909
+ * Construct a **mainnet enterprise address** from a DRep ID, if possible.
1910
+ *
1911
+ * Uses the extracted governance credential (key-hash or script-hash) as the payment credential.
1912
+ *
1913
+ * @param drepId - Bech32 DRep ID.
1914
+ * @returns A mainnet `EnterpriseAddress`, or `undefined` if construction fails upstream.
1915
+ * @note This always uses `NetworkId.Mainnet`. If you need testnet, create a variant that accepts a `NetworkId`.
1916
+ */
1917
+ declare const dRepToAddress: (drepId: string) => EnterpriseAddress | undefined;
1918
+
1575
1919
  /**
1576
1920
  * Interface representing a unit interval, which is a fraction with a numerator and denominator.
1577
1921
  */
@@ -1746,350 +2090,131 @@ interface ExUnitsPrices {
1746
2090
  }
1747
2091
 
1748
2092
  /**
1749
- * \brief Enumerates the available Cardano network environments.
2093
+ * Enumerates the available Cardano network environments.
1750
2094
  *
1751
2095
  * This enumeration defines the different network environments that can be used
1752
2096
  * with the Cardano provider.
1753
2097
  */
1754
2098
  declare enum NetworkMagic {
1755
2099
  /**
1756
- * \brief The Pre-Production test network.
1757
- *
1758
- * The Pre-Production network is a Cardano testnet used for testing features
1759
- * before they are deployed to the Mainnet. It closely mirrors the Mainnet
1760
- * environment, providing a final testing ground for applications.
1761
- */
1762
- Preprod = 1,
1763
- /**
1764
- * \brief The Preview test network.
1765
- *
1766
- * The Preview network is a Cardano testnet used for testing upcoming features
1767
- * before they are released to the Pre-Production network. It allows developers
1768
- * to experiment with new functionalities in a controlled environment.
1769
- */
1770
- Preview = 2,
1771
- /**
1772
- * \brief The SanchoNet test network.
1773
- *
1774
- * SanchoNet is the testnet for rolling out governance features for the Cardano blockchain,
1775
- * aligning with the comprehensive CIP-1694 specifications.
1776
- */
1777
- Sanchonet = 4,
1778
- /**
1779
- * \brief The Mainnet network.
1780
- *
1781
- * The Mainnet is the live Cardano network where real transactions occur.
1782
- * Applications interacting with the Mainnet are dealing with actual ADA and
1783
- * other assets. Caution should be exercised to ensure correctness and security.
1784
- */
1785
- Mainnet = 764824073
1786
- }
1787
-
1788
- /**
1789
- * Interface representing the voting thresholds for various governance actions that
1790
- * pool operators can participate in.
1791
- */
1792
- interface PoolVotingThresholds {
1793
- motionNoConfidence: UnitInterval;
1794
- committeeNormal: UnitInterval;
1795
- committeeNoConfidence: UnitInterval;
1796
- hardForkInitiation: UnitInterval;
1797
- securityRelevantParamVotingThreshold: UnitInterval;
1798
- }
1799
-
1800
- /**
1801
- * Interface representing a protocol version with major and minor numbers.
1802
- */
1803
- interface ProtocolVersion {
1804
- major: number;
1805
- minor: number;
1806
- }
1807
-
1808
- /**
1809
- * Interface representing the protocol parameters of the Cardano blockchain.
1810
- * These parameters define the rules and limits for transactions, blocks, and governance actions.
1811
- */
1812
- interface ProtocolParameters {
1813
- minFeeA: number;
1814
- minFeeB: number;
1815
- maxBlockBodySize: number;
1816
- maxTxSize: number;
1817
- maxBlockHeaderSize: number;
1818
- keyDeposit: number;
1819
- poolDeposit: number;
1820
- maxEpoch: number;
1821
- nOpt: number;
1822
- poolPledgeInfluence: UnitInterval;
1823
- treasuryGrowthRate: UnitInterval;
1824
- expansionRate: UnitInterval;
1825
- decentralisationParam: UnitInterval;
1826
- extraEntropy: string | null;
1827
- protocolVersion: ProtocolVersion;
1828
- minPoolCost: number;
1829
- adaPerUtxoByte: number;
1830
- costModels: CostModel[];
1831
- executionCosts: ExUnitsPrices;
1832
- maxTxExUnits: ExUnits;
1833
- maxBlockExUnits: ExUnits;
1834
- maxValueSize: number;
1835
- collateralPercent: number;
1836
- maxCollateralInputs: number;
1837
- poolVotingThresholds: PoolVotingThresholds;
1838
- drepVotingThresholds: DRepThresholds;
1839
- minCommitteeSize: number;
1840
- committeeTermLimit: number;
1841
- governanceActionValidityPeriod: number;
1842
- governanceActionDeposit: number;
1843
- drepDeposit: number;
1844
- drepInactivityPeriod: number;
1845
- refScriptCostPerByte: UnitInterval;
1846
- }
1847
- /**
1848
- * Type representing an update to the protocol parameters.
1849
- * This allows for partial updates to the existing protocol parameters.
1850
- */
1851
- type ProtocolParametersUpdate = Partial<ProtocolParameters>;
1852
-
1853
- /**
1854
- * Enum representing the purpose of a redeemer in a Plutus script.
1855
- * Each purpose corresponds to a specific action that the redeemer is intended to perform.
1856
- */
1857
- declare enum RedeemerPurpose {
1858
- spend = "spend",
1859
- mint = "mint",
1860
- certificate = "certificate",
1861
- withdrawal = "withdrawal",
1862
- propose = "propose",
1863
- vote = "vote"
1864
- }
1865
- /**
1866
- * Interface representing a redeemer for a Plutus script.
1867
- */
1868
- interface Redeemer {
1869
- index: number;
1870
- purpose: RedeemerPurpose;
1871
- data: PlutusData;
1872
- executionUnits: ExUnits;
1873
- }
1874
-
1875
- /** Plutus script type. */
1876
- declare enum ScriptType {
1877
- Native = "native",
1878
- Plutus = "plutus"
1879
- }
1880
- /** native script kind. */
1881
- declare enum NativeScriptKind {
1882
- RequireSignature = 0,
1883
- RequireAllOf = 1,
1884
- RequireAnyOf = 2,
1885
- RequireNOf = 3,
1886
- RequireTimeAfter = 4,
1887
- RequireTimeBefore = 5
1888
- }
1889
- /**
1890
- * This script evaluates to true if the transaction also includes a valid key witness
1891
- * where the witness verification key hashes to the given hash.
1892
- *
1893
- * In other words, this checks that the transaction is signed by a particular key, identified by its verification
1894
- * key hash.
1895
- */
1896
- interface RequireSignatureScript {
1897
- /** Script type. */
1898
- __type: ScriptType.Native;
1899
- /** The hash of a verification key. */
1900
- keyHash: string;
1901
- /** The native script kind. */
1902
- kind: NativeScriptKind.RequireSignature;
1903
- }
1904
- /**
1905
- * This script evaluates to true if all the sub-scripts evaluate to true.
1906
- *
1907
- * If the list of sub-scripts is empty, this script evaluates to true.
1908
- */
1909
- interface RequireAllOfScript {
1910
- /** Script type. */
1911
- __type: ScriptType.Native;
1912
- /** The list of sub-scripts. */
1913
- scripts: NativeScript[];
1914
- /** The native script kind. */
1915
- kind: NativeScriptKind.RequireAllOf;
1916
- }
1917
- /**
1918
- * This script evaluates to true if any the sub-scripts evaluate to true. That is, if one
1919
- * or more evaluate to true.
1920
- *
1921
- * If the list of sub-scripts is empty, this script evaluates to false.
1922
- */
1923
- interface RequireAnyOfScript {
1924
- /** Script type. */
1925
- __type: ScriptType.Native;
1926
- /** The list of sub-scripts. */
1927
- scripts: NativeScript[];
1928
- /** The native script kind. */
1929
- kind: NativeScriptKind.RequireAnyOf;
1930
- }
1931
- /** This script evaluates to true if at least M (required field) of the sub-scripts evaluate to true. */
1932
- interface RequireAtLeastScript {
1933
- /** Script type. */
1934
- __type: ScriptType.Native;
1935
- /** The number of sub-scripts that must evaluate to true for this script to evaluate to true. */
1936
- required: number;
1937
- /** The list of sub-scripts. */
1938
- scripts: NativeScript[];
1939
- /** The native script kind. */
1940
- kind: NativeScriptKind.RequireNOf;
1941
- }
1942
- /**
1943
- * This script evaluates to true if the upper bound of the transaction validity interval is a
1944
- * slot number Y, and X <= Y.
1945
- *
1946
- * This condition guarantees that the actual slot number in which the transaction is included is
1947
- * (strictly) less than slot number X.
1948
- */
1949
- interface RequireTimeBeforeScript {
1950
- /** Script type. */
1951
- __type: ScriptType.Native;
1952
- /** The slot number specifying the upper bound of the validity interval. */
1953
- slot: number;
1954
- /** The native script kind. */
1955
- kind: NativeScriptKind.RequireTimeBefore;
1956
- }
1957
- /**
1958
- * This script evaluates to true if the lower bound of the transaction validity interval is a
1959
- * slot number Y, and Y <= X.
1960
- *
1961
- * This condition guarantees that the actual slot number in which the transaction is included
1962
- * is greater than or equal to slot number X.
1963
- */
1964
- interface RequireTimeAfterScript {
1965
- /** Script type. */
1966
- __type: ScriptType.Native;
1967
- /** The slot number specifying the lower bound of the validity interval. */
1968
- slot: number;
1969
- /** The native script kind. */
1970
- kind: NativeScriptKind.RequireTimeAfter;
1971
- }
1972
- /**
1973
- * The Native scripts form an expression tree, the evaluation of the script produces either true or false.
1974
- *
1975
- * Note that it is recursive. There are no constraints on the nesting or size, except that imposed by the overall
1976
- * transaction size limit (given that the script must be included in the transaction in a script witnesses).
1977
- */
1978
- type NativeScript = RequireAllOfScript | RequireSignatureScript | RequireAnyOfScript | RequireAtLeastScript | RequireTimeBeforeScript | RequireTimeAfterScript;
1979
- /**
1980
- * The Cardano ledger tags scripts with a language that determines what the ledger will do with the script.
1981
- *
1982
- * In most cases this language will be very similar to the ones that came before, we refer to these as
1983
- * 'Plutus language versions'. However, from the ledger’s perspective they are entirely unrelated and there
1984
- * is generally no requirement that they be similar or compatible in any way.
1985
- */
1986
- declare enum PlutusLanguageVersion {
1987
- /** V1 was the initial version of Plutus, introduced in the Alonzo hard fork. */
1988
- V1 = 0,
1989
- /**
1990
- * V2 was introduced in the Vasil hard fork.
2100
+ * The Pre-Production test network.
1991
2101
  *
1992
- * The main changes in V2 of Plutus were to the interface to scripts. The ScriptContext was extended
1993
- * to include the following information:
2102
+ * The Pre-Production network is a Cardano testnet used for testing features
2103
+ * before they are deployed to the Mainnet. It closely mirrors the Mainnet
2104
+ * environment, providing a final testing ground for applications.
2105
+ */
2106
+ Preprod = 1,
2107
+ /**
2108
+ * The Preview test network.
1994
2109
  *
1995
- * - The full “redeemers” structure, which contains all the redeemers used in the transaction
1996
- * - Reference inputs in the transaction (proposed in CIP-31)
1997
- * - Inline datums in the transaction (proposed in CIP-32)
1998
- * - Reference scripts in the transaction (proposed in CIP-33)
2110
+ * The Preview network is a Cardano testnet used for testing upcoming features
2111
+ * before they are released to the Pre-Production network. It allows developers
2112
+ * to experiment with new functionalities in a controlled environment.
1999
2113
  */
2000
- V2 = 1,
2114
+ Preview = 2,
2001
2115
  /**
2002
- * V3 was introduced in the Conway hard fork.
2116
+ * The SanchoNet test network.
2003
2117
  *
2004
- * The main changes in V3 of Plutus introduce:
2118
+ * SanchoNet is the testnet for rolling out governance features for the Cardano blockchain,
2119
+ * aligning with the comprehensive CIP-1694 specifications.
2120
+ */
2121
+ Sanchonet = 4,
2122
+ /**
2123
+ * The Mainnet network.
2005
2124
  *
2006
- * - The value of costmdls map at key 2 is encoded as a definite length list.
2125
+ * The Mainnet is the live Cardano network where real transactions occur.
2126
+ * Applications interacting with the Mainnet are dealing with actual ADA and
2127
+ * other assets. Caution should be exercised to ensure correctness and security.
2007
2128
  */
2008
- V3 = 2
2129
+ Mainnet = 764824073
2009
2130
  }
2131
+
2010
2132
  /**
2011
- * Plutus scripts are pieces of code that implement pure functions with True or False outputs. These functions take
2012
- * several inputs such as Datum, Redeemer and the transaction context to decide whether an output can be spent or not.
2133
+ * Interface representing the voting thresholds for various governance actions that
2134
+ * pool operators can participate in.
2013
2135
  */
2014
- interface PlutusScript {
2015
- __type: ScriptType.Plutus;
2016
- bytes: string;
2017
- version: PlutusLanguageVersion;
2136
+ interface PoolVotingThresholds {
2137
+ motionNoConfidence: UnitInterval;
2138
+ committeeNormal: UnitInterval;
2139
+ committeeNoConfidence: UnitInterval;
2140
+ hardForkInitiation: UnitInterval;
2141
+ securityRelevantParamVotingThreshold: UnitInterval;
2018
2142
  }
2019
- /** Program that decides whether the transaction that spends the output is authorized to do so. */
2020
- type Script = NativeScript | PlutusScript;
2021
- /**
2022
- * Predicate that returns true if the given core script is a native script.
2023
- *
2024
- * @param script The Script to check.
2025
- */
2026
- declare const isNativeScript: (script: Script) => script is NativeScript;
2027
- /**
2028
- * Predicate that returns true if the given core script is a plutus script.
2029
- *
2030
- * @param script The Script to check.
2031
- */
2032
- declare const isPlutusScript: (script: Script) => script is PlutusScript;
2033
- /**
2034
- * Performs a deep equality check on two Script.
2035
- *
2036
- * @param a The first Script object.
2037
- * @param b The second Script object.
2038
- * @returns True if the objects are deeply equal, false otherwise.
2039
- */
2040
- declare const deepEqualsScript: (a: Script, b: Script) => boolean;
2041
- /**
2042
- * Computes the hash of a Script object.
2043
- *
2044
- * This function calculates the Blake2b hash of the provided Script.
2045
- *
2046
- * @param script The Script object to hash.
2047
- * @returns The hexadecimal string representation of the hash.
2048
- */
2049
- declare const computeScriptHash: (script: Script) => string;
2143
+
2050
2144
  /**
2051
- * Derives a script address (enterprise address) from a script.
2052
- *
2053
- * This function calculates the script's hash, creates a script credential from it,
2054
- * and then constructs an enterprise address for the specified network.
2055
- *
2056
- * @param {Script} script The script (Native or Plutus) from which to derive the address.
2057
- * @param {NetworkId} networkId The network identifier (e.g., Mainnet or Testnet).
2058
- * @returns {Address} An Address object representing the script address.
2059
- * @throws {Error} If any step of the address creation process fails.
2145
+ * Interface representing a protocol version with major and minor numbers.
2060
2146
  */
2061
- declare const getScriptAddress: (script: Script, networkId: NetworkId) => Address;
2147
+ interface ProtocolVersion {
2148
+ major: number;
2149
+ minor: number;
2150
+ }
2151
+
2062
2152
  /**
2063
- * Serializes a Script object into its CBOR hexadecimal string representation.
2064
- *
2065
- * @param data The Script object to serialize.
2066
- * @returns A hex-encoded CBOR string.
2153
+ * Interface representing the protocol parameters of the Cardano blockchain.
2154
+ * These parameters define the rules and limits for transactions, blocks, and governance actions.
2067
2155
  */
2068
- declare const scriptToCbor: (data: Script) => string;
2156
+ interface ProtocolParameters {
2157
+ minFeeA: number;
2158
+ minFeeB: number;
2159
+ maxBlockBodySize: number;
2160
+ maxTxSize: number;
2161
+ maxBlockHeaderSize: number;
2162
+ keyDeposit: number;
2163
+ poolDeposit: number;
2164
+ maxEpoch: number;
2165
+ nOpt: number;
2166
+ poolPledgeInfluence: UnitInterval;
2167
+ treasuryGrowthRate: UnitInterval;
2168
+ expansionRate: UnitInterval;
2169
+ decentralisationParam: UnitInterval;
2170
+ extraEntropy: string | null;
2171
+ protocolVersion: ProtocolVersion;
2172
+ minPoolCost: number;
2173
+ adaPerUtxoByte: number;
2174
+ costModels: CostModel[];
2175
+ executionCosts: ExUnitsPrices;
2176
+ maxTxExUnits: ExUnits;
2177
+ maxBlockExUnits: ExUnits;
2178
+ maxValueSize: number;
2179
+ collateralPercent: number;
2180
+ maxCollateralInputs: number;
2181
+ poolVotingThresholds: PoolVotingThresholds;
2182
+ drepVotingThresholds: DRepThresholds;
2183
+ minCommitteeSize: number;
2184
+ committeeTermLimit: number;
2185
+ governanceActionValidityPeriod: number;
2186
+ governanceActionDeposit: number;
2187
+ drepDeposit: number;
2188
+ drepInactivityPeriod: number;
2189
+ refScriptCostPerByte: UnitInterval;
2190
+ }
2069
2191
  /**
2070
- * Deserializes a CBOR hexadecimal string into a Script object.
2071
- *
2072
- * @param cborHex The hex-encoded CBOR string to deserialize.
2073
- * @returns The deserialized Script object.
2192
+ * Type representing an update to the protocol parameters.
2193
+ * This allows for partial updates to the existing protocol parameters.
2074
2194
  */
2075
- declare const cborToScript: (cborHex: string) => Script;
2195
+ type ProtocolParametersUpdate = Partial<ProtocolParameters>;
2196
+
2076
2197
  /**
2077
- * Converts a json representation of a native script into a NativeScript.
2078
- *
2079
- * @param json The JSON representation of a native script. The JSON must conform
2080
- * to the following format:
2081
- *
2082
- * https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md
2198
+ * Enum representing the purpose of a redeemer in a Plutus script.
2199
+ * Each purpose corresponds to a specific action that the redeemer is intended to perform.
2083
2200
  */
2084
- declare const jsonToNativeScript: (json: any) => NativeScript;
2201
+ declare enum RedeemerPurpose {
2202
+ spend = "spend",
2203
+ mint = "mint",
2204
+ certificate = "certificate",
2205
+ withdrawal = "withdrawal",
2206
+ propose = "propose",
2207
+ vote = "vote"
2208
+ }
2085
2209
  /**
2086
- * Converts a NativeScript into its json representation.
2087
- *
2088
- * @param script The native script to be converted to JSON following the format described at:
2089
- *
2090
- * https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md
2210
+ * Interface representing a redeemer for a Plutus script.
2091
2211
  */
2092
- declare const nativeScriptToJson: (script: NativeScript) => any;
2212
+ interface Redeemer {
2213
+ index: number;
2214
+ purpose: RedeemerPurpose;
2215
+ data: PlutusData;
2216
+ executionUnits: ExUnits;
2217
+ }
2093
2218
 
2094
2219
  /**
2095
2220
  * Interface representing a transaction input in the Cardano blockchain.
@@ -4603,12 +4728,9 @@ declare const readBlake2bHashData: (bufferPtr: number, freeNativeObject?: boolea
4603
4728
  * and their corresponding WASM memory representations.
4604
4729
  */
4605
4730
  declare const bridgeCallbacks: {
4606
- get_provider_from_registry(objectId: number): any;
4607
4731
  get_coin_selector_from_registry(objectId: number): any;
4732
+ get_provider_from_registry(objectId: number): any;
4608
4733
  get_tx_evaluator_from_registry(objectId: number): any;
4609
- report_provider_bridge_error(objectId: number, exception: any): void;
4610
- report_coin_selector_bridge_error(objectId: number, exception: any): void;
4611
- report_tx_evaluator_bridge_error(objectId: number, exception: any): void;
4612
4734
  marshal_blake2b_hash_from_hex(jsHexString: string): number;
4613
4735
  marshal_plutus_data(jsPlutusDataCborHex: string): number;
4614
4736
  marshal_protocol_parameters(params: ProtocolParameters): number;
@@ -4617,8 +4739,11 @@ declare const bridgeCallbacks: {
4617
4739
  marshal_utxo_list(jsUtxoArray: UTxO[]): number;
4618
4740
  marshall_address(addressPtr: number): string;
4619
4741
  marshall_asset_id(assetIdPtr: number): string;
4742
+ report_coin_selector_bridge_error(objectId: number, exception: any): void;
4620
4743
  marshall_blake2b_hash(hashPtr: number): string;
4744
+ report_provider_bridge_error(objectId: number, exception: any): void;
4621
4745
  marshall_reward_address(rewardAddressPtr: number): string;
4746
+ report_tx_evaluator_bridge_error(objectId: number, exception: any): void;
4622
4747
  marshall_transaction_to_cbor_hex(txPtr: number): string;
4623
4748
  marshall_tx_input_set(inputSetPtr: number): TxIn[];
4624
4749
  marshall_utxo_list_to_js(utxoListPtr: number): UTxO[];
@@ -5593,6 +5718,16 @@ declare const utf8ByteLen: (str: string) => number;
5593
5718
  * @returns {string} A human-readable string describing the error, or `'Unknown error'` if the conversion fails.
5594
5719
  */
5595
5720
  declare const getErrorString: (error: number) => string;
5721
+ /**
5722
+ * Reads a null-terminated UTF-8 string from the WebAssembly memory.
5723
+ *
5724
+ * @param {number} ptr - The pointer to the beginning of the string in Wasm memory.
5725
+ * @returns {string} The resulting JavaScript string.
5726
+ * @remarks
5727
+ * This function only reads the string; it does not free the pointer. The caller is
5728
+ * responsible for managing the memory of the C string if it was dynamically allocated.
5729
+ */
5730
+ declare const readStringFromMemory: (ptr: number) => string;
5596
5731
 
5597
5732
  /**
5598
5733
  * @hidden
@@ -5612,6 +5747,21 @@ declare const writeTransactionToCbor: (transactionPtr: number) => string;
5612
5747
  * @throws {Error} Throws an error if the deserialization fails, including a descriptive message from the CBOR parser.
5613
5748
  */
5614
5749
  declare const readTransactionFromCbor: (transactionCbor: string) => number;
5750
+ /**
5751
+ * @hidden
5752
+ * Extracts the unique set of public key hashes (signers) required to authorize a Cardano transaction.
5753
+ *
5754
+ * This function computes the required signers by analyzing the transaction body and a list of
5755
+ * resolved input UTxOs.
5756
+ *
5757
+ * @param {string} transactionCbor - The CBOR representation of the transaction as a hex string.
5758
+ * @param {UTxO[]} utxos - An array of resolved UTxO objects that are spent by the transaction. If
5759
+ * empty, the function won't resolve signers from inputs or collateral inputs. Additionally if the resolved
5760
+ * inputs are provided, they must account for all inputs and collateral inputs in the transaction or the function will fail.
5761
+ * @returns {string[]} An array of unique public key hashes (signers) as hex strings.
5762
+ * @throws {Error} Throws an error if any part of the process fails.
5763
+ */
5764
+ declare const getUniqueSigners: (transactionCbor: string, utxos: UTxO[]) => string[];
5615
5765
 
5616
5766
  /**
5617
5767
  * @hidden
@@ -5846,12 +5996,13 @@ declare const writeVoter: (voter: Voter) => number;
5846
5996
  declare const readGovernanceActionId: (ptr: number) => GovernanceActionId;
5847
5997
  /**
5848
5998
  * @hidden
5849
- * Serializes a JavaScript `GovernanceActionId` object into a native `cardano_governance_action_id_t` object.
5999
+ * Serializes a JavaScript `GovernanceActionId` object or Bech32 string into a
6000
+ * native `cardano_governance_action_id_t` object pointer.
5850
6001
  *
5851
- * @param {GovernanceActionId} govActionId - The `GovernanceActionId` object to serialize.
6002
+ * @param {GovernanceActionId | string} govActionId - The `GovernanceActionId` object or Bech32 string to serialize.
5852
6003
  * @returns {number} A pointer to the newly created native `cardano_governance_action_id_t` object.
5853
6004
  */
5854
- declare const writeGovernanceActionId: (govActionId: GovernanceActionId) => number;
6005
+ declare const writeGovernanceActionId: (govActionId: GovernanceActionId | string) => number;
5855
6006
  /**
5856
6007
  * @hidden
5857
6008
  * Deserializes a native `cardano_voting_procedure_t` object into a JavaScript `VotingProcedure` object.
@@ -6405,25 +6556,75 @@ declare class TransactionBuilder {
6405
6556
  * This function marks the transaction as invalid if it is not included in a block
6406
6557
  * before the specified time.
6407
6558
  *
6408
- * @param {number | bigint | Date} value The expiration time for the transaction.
6409
- * - If a `number` or `bigint` is provided, it is treated as an absolute **slot number**.
6410
- * - If a `Date` object is provided, it is converted to a **Unix timestamp** (in seconds).
6559
+ * @param {number | bigint} slot The absolute **slot number** after which this transaction will be invalid.
6560
+ * @returns {TransactionBuilder} The builder instance for chaining.
6561
+ */
6562
+ setInvalidAfter(slot: number | bigint): TransactionBuilder;
6563
+ /**
6564
+ * Sets the transaction to be valid for a specific duration from now.
6565
+ *
6566
+ * This is a convenience method that calculates a future expiration date and sets it.
6567
+ * The transaction will be marked as invalid if it is not included in a block
6568
+ * within the specified duration.
6569
+ *
6570
+ * @param {number} seconds - The number of seconds from now that the transaction should remain valid.
6571
+ * @returns {TransactionBuilder} The builder instance for chaining.
6572
+ *
6573
+ * @example
6574
+ * // Set the transaction to expire in 3 minutes (180 seconds) from now.
6575
+ * txBuilder.setValidFor(180);
6576
+ */
6577
+ expiresIn(seconds: number): TransactionBuilder;
6578
+ /**
6579
+ * Sets the transaction's expiration to a specific, absolute date and time.
6580
+ *
6581
+ * This function marks the transaction as invalid if it is not included in a block
6582
+ * before the specified date.
6583
+ *
6584
+ * @param {Date} date - The absolute date and time after which the transaction will be invalid.
6411
6585
  * @returns {TransactionBuilder} The builder instance for chaining.
6586
+ *
6587
+ * @example
6588
+ * // Set the transaction to expire on New Year's Day, 2026.
6589
+ * const expiryDate = new Date('2026-01-01T00:00:00Z');
6590
+ * txBuilder.expiresAfter(expiryDate);
6412
6591
  */
6413
- setInvalidAfter(value: number | bigint | Date): TransactionBuilder;
6592
+ expiresAfter(date: Date): TransactionBuilder;
6414
6593
  /**
6415
- * Sets the transaction's validity start time.
6594
+ * Sets the transaction's validity start time using an absolute slot number.
6416
6595
  *
6417
6596
  * This function marks the transaction as invalid if it is included in a block
6418
- * created before the specified time. It defines the earliest point at which
6419
- * the transaction can be processed.
6597
+ * created before the specified slot.
6598
+ *
6599
+ * @param {number | bigint} slot The absolute slot number before which this transaction is invalid.
6600
+ * @returns {TransactionBuilder} The builder instance for chaining.
6601
+ */
6602
+ setInvalidBefore(slot: number | bigint): TransactionBuilder;
6603
+ /**
6604
+ * Sets the transaction's validity start time to a specific, absolute date and time.
6605
+ * The transaction will be invalid if processed before this date.
6606
+ *
6607
+ * @param {Date} date The absolute date and time from which the transaction will be valid.
6608
+ * @returns {TransactionBuilder} The builder instance for chaining.
6609
+ *
6610
+ * @example
6611
+ * // Make the transaction valid starting on New Year's Day, 2026.
6612
+ * const startDate = new Date('2026-01-01T00:00:00Z');
6613
+ * txBuilder.validFromDate(startDate);
6614
+ */
6615
+ validFromDate(date: Date): TransactionBuilder;
6616
+ /**
6617
+ * Sets the transaction to become valid only after a specified duration from now.
6618
+ * This is a convenience method that calculates a future start date.
6420
6619
  *
6421
- * @param {number | bigint | Date} value The validity start time for the transaction.
6422
- * - If a `number` or `bigint` is provided, it is treated as an absolute **slot number**.
6423
- * - If a `Date` object is provided, it is converted to a **Unix timestamp** (in seconds).
6620
+ * @param {number} seconds The number of seconds from now to wait before the transaction becomes valid.
6424
6621
  * @returns {TransactionBuilder} The builder instance for chaining.
6622
+ *
6623
+ * @example
6624
+ * // Make the transaction valid only after 1 hour (3600 seconds) has passed.
6625
+ * txBuilder.validAfter(3600);
6425
6626
  */
6426
- setInvalidBefore(value: number | bigint | Date): TransactionBuilder;
6627
+ validAfter(seconds: number): TransactionBuilder;
6427
6628
  /**
6428
6629
  * Adds a reference input to the transaction.
6429
6630
  *
@@ -6600,12 +6801,12 @@ declare class TransactionBuilder {
6600
6801
  * stake credentials.
6601
6802
  *
6602
6803
  * @param {Object} params - The parameters for the function.
6603
- * @param {string | RewardAddress} params.stakeAddress The stake address to register, as a bech32 string or a RewardAddress object.
6804
+ * @param {string | RewardAddress} params.rewardAddress The stake address to register, as a bech32 string or a RewardAddress object.
6604
6805
  * @param {PlutusData} [params.redeemer] Optional. The redeemer for a script-controlled stake credential.
6605
6806
  * @returns {TransactionBuilder} The builder instance for chaining.
6606
6807
  */
6607
- registerStakeAddress({ stakeAddress, redeemer }: {
6608
- stakeAddress: string | RewardAddress;
6808
+ registerStakeAddress({ rewardAddress, redeemer }: {
6809
+ rewardAddress: string | RewardAddress;
6609
6810
  redeemer?: PlutusData;
6610
6811
  }): TransactionBuilder;
6611
6812
  /**
@@ -6615,12 +6816,12 @@ declare class TransactionBuilder {
6615
6816
  * An optional redeemer can be provided for script-controlled stake credentials.
6616
6817
  *
6617
6818
  * @param {Object} params - The parameters for the function.
6618
- * @param {string | RewardAddress} params.stakeAddress - The stake address to deregister, as a bech32 string or a RewardAddress object.
6819
+ * @param {string | RewardAddress} params.rewardAddress - The stake address to deregister, as a bech32 string or a RewardAddress object.
6619
6820
  * @param {PlutusData} [params.redeemer] - Optional. The redeemer for a script-controlled stake credential.
6620
6821
  * @returns {TransactionBuilder} The builder instance for chaining.
6621
6822
  */
6622
- deregisterStakeAddress({ stakeAddress, redeemer }: {
6623
- stakeAddress: string | RewardAddress;
6823
+ deregisterStakeAddress({ rewardAddress, redeemer }: {
6824
+ rewardAddress: string | RewardAddress;
6624
6825
  redeemer?: PlutusData;
6625
6826
  }): TransactionBuilder;
6626
6827
  /**
@@ -6630,13 +6831,13 @@ declare class TransactionBuilder {
6630
6831
  * An optional redeemer can be provided for script-controlled stake credentials.
6631
6832
  *
6632
6833
  * @param {Object} params - The parameters for the function.
6633
- * @param {string | RewardAddress} params.stakeAddress The bech32-encoded stake address to delegate from.
6834
+ * @param {string | RewardAddress} params.rewardAddress The bech32-encoded stake address to delegate from.
6634
6835
  * @param {string} params.poolId The bech32-encoded ID of the stake pool to delegate to.
6635
6836
  * @param {PlutusData} [params.redeemer] Optional. The redeemer for a script-controlled stake credential.
6636
6837
  * @returns {TransactionBuilder} The builder instance for chaining.
6637
6838
  */
6638
- delegateStake({ stakeAddress, poolId, redeemer }: {
6639
- stakeAddress: string | RewardAddress;
6839
+ delegateStake({ rewardAddress, poolId, redeemer }: {
6840
+ rewardAddress: string | RewardAddress;
6640
6841
  poolId: string;
6641
6842
  redeemer?: PlutusData;
6642
6843
  }): TransactionBuilder;
@@ -6647,14 +6848,14 @@ declare class TransactionBuilder {
6647
6848
  * (Decentralized Representative) for on-chain governance.
6648
6849
  *
6649
6850
  * @param {Object} params - The parameters for the function.
6650
- * @param {string | RewardAddress} params.stakeAddress The bech32-encoded stake address to delegate from.
6851
+ * @param {string | RewardAddress} params.rewardAddress The bech32-encoded stake address to delegate from.
6651
6852
  * @param {string} params.drepId The bech32-encoded ID of the DRep to delegate to. The DRep ID can be
6652
6853
  * in CIP-129 format or CIP-105 format.
6653
6854
  * @param {PlutusData} [params.redeemer] Optional. The redeemer for a script-controlled stake credential.
6654
6855
  * @returns {TransactionBuilder} The builder instance for chaining.
6655
6856
  */
6656
- delegateVotingPower({ stakeAddress, drepId, redeemer }: {
6657
- stakeAddress: string | RewardAddress;
6857
+ delegateVotingPower({ rewardAddress, drepId, redeemer }: {
6858
+ rewardAddress: string | RewardAddress;
6658
6859
  drepId: string;
6659
6860
  redeemer?: PlutusData;
6660
6861
  }): TransactionBuilder;
@@ -6719,7 +6920,7 @@ declare class TransactionBuilder {
6719
6920
  */
6720
6921
  vote({ voter, actionId, votingProcedure, redeemer }: {
6721
6922
  voter: Voter;
6722
- actionId: GovernanceActionId;
6923
+ actionId: GovernanceActionId | string;
6723
6924
  votingProcedure: VotingProcedure;
6724
6925
  redeemer?: PlutusData;
6725
6926
  }): TransactionBuilder;
@@ -6982,6 +7183,10 @@ declare class EmscriptenCoinSelector implements CoinSelector {
6982
7183
  select(params: CoinSelectorParams): Promise<CoinSelectorResult>;
6983
7184
  }
6984
7185
 
7186
+ /**
7187
+ * Interface for transaction evaluation strategies. This will compute the required
7188
+ * execution units for each redeemer in a transaction.
7189
+ */
6985
7190
  interface TxEvaluator {
6986
7191
  /**
6987
7192
  * Gets the human-readable name of the coin selection strategy.
@@ -7101,6 +7306,38 @@ interface Cip30Wallet {
7101
7306
  * @remarks Collateral is required for transactions that interact with Plutus smart contracts to cover potential script execution failure fees.
7102
7307
  */
7103
7308
  getCollateral(): Promise<string[]>;
7309
+ /**
7310
+ * Namespace for CIP-142 methods.
7311
+ * @see {@link https://cips.cardano.org/cip/CIP-142}
7312
+ */
7313
+ cip142: {
7314
+ /**
7315
+ * Returns the "network magic," a unique number identifying the Cardano network.
7316
+ * @returns {Promise<number>} A promise that resolves to the network magic number (e.g., Mainnet: `764824073`, Preprod: `1`).
7317
+ */
7318
+ getNetworkMagic: () => Promise<number>;
7319
+ };
7320
+ /**
7321
+ * Namespace for CIP-95 governance methods, supporting the Voltaire era.
7322
+ * @see {@link https://cips.cardano.org/cip/CIP-95}
7323
+ */
7324
+ cip95: {
7325
+ /**
7326
+ * Returns the wallet's active public DRep (Delegated Representative) key.
7327
+ * @returns {Promise<string>} A promise that resolves to the hex-encoded public DRep key.
7328
+ */
7329
+ getPubDRepKey: () => Promise<string>;
7330
+ /**
7331
+ * Returns public stake keys from the wallet that are currently registered for on-chain governance voting.
7332
+ * @returns {Promise<string[]>} A promise that resolves to an array of hex-encoded public stake keys.
7333
+ */
7334
+ getRegisteredPubStakeKeys: () => Promise<string[]>;
7335
+ /**
7336
+ * Returns public stake keys from the wallet that are NOT yet registered for on-chain governance voting.
7337
+ * @returns {Promise<string[]>} A promise that resolves to an array of hex-encoded public stake keys.
7338
+ */
7339
+ getUnregisteredPubStakeKeys: () => Promise<string[]>;
7340
+ };
7104
7341
  }
7105
7342
 
7106
7343
  /**
@@ -7177,6 +7414,26 @@ interface Wallet {
7177
7414
  * @remarks Collateral is required for transactions that interact with Plutus smart contracts to cover potential script execution failure fees.
7178
7415
  */
7179
7416
  getCollateral(): Promise<UTxO[]>;
7417
+ /**
7418
+ * Returns the "network magic," a unique number identifying the Cardano network.
7419
+ * @returns {Promise<number>} A promise that resolves to the network magic number (e.g., Mainnet: `764824073`, Preprod: `1`).
7420
+ */
7421
+ getNetworkMagic: () => Promise<number>;
7422
+ /**
7423
+ * Returns the wallet's active public DRep (Delegated Representative) key.
7424
+ * @returns {Promise<string>} A promise that resolves to the hex-encoded public DRep key.
7425
+ */
7426
+ getPubDRepKey: () => Promise<string>;
7427
+ /**
7428
+ * Returns public stake keys from the wallet that are currently registered for on-chain governance voting.
7429
+ * @returns {Promise<string[]>} A promise that resolves to an array of hex-encoded public stake keys.
7430
+ */
7431
+ getRegisteredPubStakeKeys: () => Promise<string[]>;
7432
+ /**
7433
+ * Returns public stake keys from the wallet that are NOT yet registered for on-chain governance voting.
7434
+ * @returns {Promise<string[]>} A promise that resolves to an array of hex-encoded public stake keys.
7435
+ */
7436
+ getUnregisteredPubStakeKeys: () => Promise<string[]>;
7180
7437
  /**
7181
7438
  * Creates and initializes a new transaction builder with the wallet's current state.
7182
7439
  *
@@ -7197,11 +7454,13 @@ interface Wallet {
7197
7454
  * @property {number} account - The account index.
7198
7455
  * @property {number} paymentIndex - The address index for the payment key (role 0).
7199
7456
  * @property {number} [stakingIndex] - The address index for the staking key (role 2). If provided, a **Base address** (payment + staking) will be derived. If omitted, an **Enterprise address** (payment only) will be derived.
7457
+ * @property {number} [drepIndex] - The address index for the DRep key (role 3). If not provided, 0 will be assumed.
7200
7458
  */
7201
7459
  type SingleAddressCredentialsConfig = {
7202
7460
  account: number;
7203
7461
  paymentIndex: number;
7204
7462
  stakingIndex?: number;
7463
+ drepIndex?: number;
7205
7464
  };
7206
7465
  /**
7207
7466
  * Configuration for creating a `SingleAddressWallet` instance from pre-existing key objects.
@@ -7248,6 +7507,7 @@ declare class SingleAddressWallet implements Wallet {
7248
7507
  private accountRootPublicKey;
7249
7508
  private paymentAddress;
7250
7509
  private rewardAddress;
7510
+ private drepPubKey;
7251
7511
  private protocolParams;
7252
7512
  /**
7253
7513
  * Constructs a new instance of the SingleAddressWallet.
@@ -7288,6 +7548,7 @@ declare class SingleAddressWallet implements Wallet {
7288
7548
  /**
7289
7549
  * Fetches and parses all unused addresses controlled by the wallet.
7290
7550
  * @returns {Promise<Address[]>} A promise that resolves to an array of parsed `Address` objects.
7551
+ * @remarks This method is currently not supported and always returns an empty array.
7291
7552
  */
7292
7553
  getUnusedAddresses(): Promise<Address[]>;
7293
7554
  /**
@@ -7303,14 +7564,10 @@ declare class SingleAddressWallet implements Wallet {
7303
7564
  /**
7304
7565
  * Requests a signature for a transaction using the wallet's keys.
7305
7566
  * @param {string} txCbor - The transaction to be signed, provided as a CBOR hex string.
7306
- * @param {boolean} partialSign - A flag to control which credentials are used for signing.
7567
+ * @param {boolean} _partialSign - A flag to control which credentials are used for signing.
7307
7568
  * @returns {Promise<VkeyWitnessSet>} A promise that resolves to the deserialized `VkeyWitnessSet`.
7308
- * @remarks
7309
- * For this type of wallet, we are going to hijack this flag and break the interface contract:
7310
- * - When `partialSign` is `true`, the transaction is signed **only** with the payment credential.
7311
- * - When `partialSign` is `false`, the transaction is signed with **both** the payment and staking credentials.
7312
7569
  */
7313
- signTransaction(txCbor: string, partialSign: boolean): Promise<VkeyWitnessSet>;
7570
+ signTransaction(txCbor: string, _partialSign: boolean): Promise<VkeyWitnessSet>;
7314
7571
  /**
7315
7572
  * Requests a CIP-8 compliant data signature from the wallet.
7316
7573
  * @param {Address | string} _address - The address to sign with (as an `Address` object or Bech32 string).
@@ -7330,9 +7587,31 @@ declare class SingleAddressWallet implements Wallet {
7330
7587
  /**
7331
7588
  * Fetches and deserializes the wallet's collateral UTxOs.
7332
7589
  * @returns {Promise<TxOut[]>} A promise that resolves to an array of collateral `TxOut` objects.
7333
- * @remarks Collateral is required for transactions involving Plutus smart contracts.
7590
+ * @remarks This method is currently not supported and always returns an empty array.
7334
7591
  */
7335
7592
  getCollateral(): Promise<UTxO[]>;
7593
+ /**
7594
+ * Returns the "network magic," a unique number identifying the Cardano network.
7595
+ * @returns {Promise<number>} A promise that resolves to the network magic number (e.g., Mainnet: `764824073`, Preprod: `1`).
7596
+ */
7597
+ getNetworkMagic(): Promise<NetworkMagic>;
7598
+ /**
7599
+ * Returns the wallet's active public DRep (Delegated Representative) key.
7600
+ * @returns {Promise<string>} A promise that resolves to the hex-encoded public DRep key.
7601
+ */
7602
+ getPubDRepKey(): Promise<string>;
7603
+ /**
7604
+ * Returns public stake keys from the wallet that are currently registered for on-chain governance voting.
7605
+ * @returns {Promise<string[]>} A promise that resolves to an array of hex-encoded public stake keys.
7606
+ * @remarks This method is currently not supported and always returns an empty array.
7607
+ */
7608
+ getRegisteredPubStakeKeys(): Promise<string[]>;
7609
+ /**
7610
+ * Returns public stake keys from the wallet that are NOT yet registered for on-chain governance voting.
7611
+ * @returns {Promise<string[]>} A promise that resolves to an array of hex-encoded public stake keys.
7612
+ * @remarks This method is currently not supported and always returns an empty array.
7613
+ */
7614
+ getUnregisteredPubStakeKeys(): Promise<string[]>;
7336
7615
  /**
7337
7616
  * Creates and initializes a new transaction builder with the wallet's current state.
7338
7617
  *
@@ -7436,6 +7715,26 @@ declare class BrowserExtensionWallet implements Wallet {
7436
7715
  * @remarks Collateral is required for transactions involving Plutus smart contracts.
7437
7716
  */
7438
7717
  getCollateral(): Promise<UTxO[]>;
7718
+ /**
7719
+ * Returns the "network magic," a unique number identifying the Cardano network.
7720
+ * @returns {Promise<number>} A promise that resolves to the network magic number (e.g., Mainnet: `764824073`, Preprod: `1`).
7721
+ */
7722
+ getNetworkMagic(): Promise<NetworkMagic>;
7723
+ /**
7724
+ * Returns the wallet's active public DRep (Delegated Representative) key.
7725
+ * @returns {Promise<string>} A promise that resolves to the hex-encoded public DRep key.
7726
+ */
7727
+ getPubDRepKey(): Promise<string>;
7728
+ /**
7729
+ * Returns public stake keys from the wallet that are currently registered for on-chain governance voting.
7730
+ * @returns {Promise<string[]>} A promise that resolves to an array of hex-encoded public stake keys.
7731
+ */
7732
+ getRegisteredPubStakeKeys(): Promise<string[]>;
7733
+ /**
7734
+ * Returns public stake keys from the wallet that are NOT yet registered for on-chain governance voting.
7735
+ * @returns {Promise<string[]>} A promise that resolves to an array of hex-encoded public stake keys.
7736
+ */
7737
+ getUnregisteredPubStakeKeys(): Promise<string[]>;
7439
7738
  /**
7440
7739
  * Creates and initializes a new transaction builder with the wallet's current state.
7441
7740
  *
@@ -7451,4 +7750,4 @@ declare class BrowserExtensionWallet implements Wallet {
7451
7750
  createTransactionBuilder(): Promise<TransactionBuilder>;
7452
7751
  }
7453
7752
 
7454
- export { type AccountDerivationPath, Address, AddressType, type AlwaysAbstain, type AlwaysNoConfidence, type Anchor, type AssetAmounts, type AuthCommitteeHotCertificate, Base58, BaseAddress, Bech32, type Bech32DecodeResult, Bip32PrivateKey, Bip32PublicKey, type Bip32SecureKeyHandler, Blake2b, BlockfrostProvider, BrowserExtensionWallet, ByronAddress, ByronAddressType, CborMajorType, CborReader, CborReaderState, CborSimpleValue, CborTag, CborWriter, type Certificate, CertificateType, type Cip30Wallet, type CoinSelector, type CoinSelectorParams, type CoinSelectorResult, CoinType, type CommitteeMember, type CommitteeMembers, type Constitution, type ConstrPlutusData, type CostModel, Crc32, type Credential, type CredentialSet, CredentialType, type DRep, type DRepRegistrationCertificate, type DRepThresholds, type DRepUnregistrationCertificate, type Datum, DatumType, type DerivationPath, Ed25519PrivateKey, Ed25519PublicKey, type Ed25519SecureKeyHandler, Ed25519Signature, Emip003, EmscriptenCoinSelector, EmscriptenProvider, EmscriptenTxEvaluator, EnterpriseAddress, type ExUnits, type ExUnitsPrices, type GenesisKeyDelegationCertificate, type GovernanceActionId, InstanceType, KeyDerivationPurpose, KeyDerivationRole, MAX_SIGNED_64BIT, MAX_UNSIGNED_64BIT, MIN_SIGNED_64BIT, type MirCertificate, MirCertificateKind, MirCertificatePot, type MirToPot, type MirToStakeCreds, type NativeScript, NativeScriptKind, NetworkId, NetworkMagic, Pbkdf2HmacSha512, type PlutusData, PlutusLanguageVersion, type PlutusList, type PlutusMap, type PlutusScript, PointerAddress, type PoolParameters, type PoolRegistrationCertificate, type PoolRetirementCertificate, type PoolVotingThresholds, type ProtocolParameters, type ProtocolParametersUpdate, type ProtocolVersion, type Provider, type Redeemer, RedeemerPurpose, type RegistrationCertificate, type Relay, type RelayByAddress, type RelayByName, type RelayByNameMultihost, type RequireAllOfScript, type RequireAnyOfScript, type RequireAtLeastScript, type RequireSignatureScript, type RequireTimeAfterScript, type RequireTimeBeforeScript, type ResignCommitteeColdCertificate, RewardAddress, type Script, ScriptType, type SecureKeyHandler, type SingleAddressCredentialsConfig, SingleAddressWallet, type SingleAddressWalletConfig, type SingleAddressWalletFromMnemonicsConfig, SoftwareBip32SecureKeyHandler, SoftwareEd25519SecureKeyHandler, type StakeDelegationCertificate, type StakeDeregistrationCertificate, type StakePointer, type StakeRegistrationCertificate, type StakeRegistrationDelegationCertificate, type StakeVoteDelegationCertificate, type StakeVoteRegistrationDelegationCertificate, TransactionBuilder, type TxEvaluator, type TxIn, type TxOut, type UTxO, type UnitInterval, type UnregistrationCertificate, type UpdateDRepCertificate, type Value, type VkeyWitness, type VkeyWitnessSet, Vote, type VoteDelegationCertificate, type VoteRegistrationDelegationCertificate, type Voter, VoterType, type VotingProcedure, type Wallet, type Withdrawals, addWithdrawal, applyVkeyWitnessSet, assertSuccess, assetIdFromParts, assetNameFromAssetId, asyncifyStateTracker, blake2bHashFromBytes, blake2bHashFromHex, bridgeCallbacks, cborToPlutusData, cborToScript, computeScriptHash, deepEqualsPlutusData, deepEqualsScript, derefCostModel, derefCostModels, derefDRepVotingThresholds, derefExUnitPrices, derefExUnits, derefPoolVotingThresholds, derefProtocolParameters, derefProtocolVersion, derefUnitInterval, entropyToMnemonic, finalizationRegistry, getErrorString, getFromInstanceRegistry, getLibCardanoCVersion, getModule, getScriptAddress, harden, hexToBufferObject, hexToUint8Array, isDRepAbstain, isDRepCredential, isDRepNoConfidence, isNativeScript, isPlutusDataBigInt, isPlutusDataByteArray, isPlutusDataConstr, isPlutusDataList, isPlutusDataMap, isPlutusDataWithCborCache, isPlutusScript, isReady, jsonToNativeScript, mnemonicToEntropy, nativeScriptToJson, plutusDataToCbor, policyIdFromAssetId, prepareUtxoForEvaluation, readAnchor, readAssetId, readAuthCommitteeHotCertificate, readBlake2bHashData, readBufferData, readCertificate, readCommitteeMembersMap, readConstitution, readCostModel, readCostModels, readCredential, readCredentialSet, readDRepRegistrationCertificate, readDRepUnregistrationCertificate, readDRepVotingThresholds, readDatum, readExUnitPrices, readExUnits, readGenesisKeyDelegationCertificate, readGovernanceActionId, readI64, readInputSet, readIntervalComponents, readMoveInstantaneousRewardsCertificate, readPlutusData, readPoolParameters, readPoolRegistrationCertificate, readPoolRetirementCertificate, readPoolVotingThresholds, readProtocolParamUpdate, readProtocolParameters, readProtocolVersion, readRedeemer, readRedeemerList, readRedeemersFromTx, readRegistrationCertificate, readResignCommitteeColdCertificate, readScript, readStakeDelegationCertificate, readStakeDeregistrationCertificate, readStakeRegistrationCertificate, readStakeRegistrationDelegationCertificate, readStakeVoteDelegationCertificate, readStakeVoteRegistrationDelegationCertificate, readTransactionFromCbor, readTxIn, readTxOut, readTxOutFromCbor, readUTxOtFromCbor, readUnitIntervalAsDouble, readUnregistrationCertificate, readUpdateDRepCertificate, readUtxo, readUtxoList, readValue, readValueFromCbor, readVkeyWitnessSet, readVkeyWitnessSetFromWitnessSetCbor, readVoteDelegationCertificate, readVoteRegistrationDelegationCertificate, readVoter, readVotingProcedure, readWithdrawalMap, ready, registerBridgeErrorHandler, registerInstance, reportBridgeError, scriptToCbor, splitToLowHigh64bit, toUnitInterval, uint8ArrayToHex, uint8ArrayToUtf8, unrefObject, unregisterBridgeErrorHandler, unregisterInstance, utf8ByteLen, utf8ToUint8Array, writeAccountDerivationPaths, writeAnchor, writeAssetId, writeAuthCommitteeHotCertificate, writeBytesToMemory, writeCertificate, writeCommitteeMembersMap, writeConstitution, writeCostModel, writeCostModels, writeCredential, writeCredentialSet, writeDRepRegistrationCertificate, writeDRepUnregistrationCertificate, writeDRepVotingThresholds, writeDatum, writeDerivationPaths, writeExUnitPrices, writeExUnits, writeGenesisKeyDelegationCertificate, writeGovernanceActionId, writeI64, writeInputSet, writeMoveInstantaneousRewardsCertificate, writePlutusData, writePoolParameters, writePoolRegistrationCertificate, writePoolRetirementCertificate, writePoolVotingThresholds, writeProtocolParamUpdate, writeProtocolParameters, writeProtocolVersion, writeRedeemer, writeRedeemerList, writeRegistrationCertificate, writeResignCommitteeColdCertificate, writeScript, writeStakeDelegationCertificate, writeStakeDeregistrationCertificate, writeStakeRegistrationCertificate, writeStakeRegistrationDelegationCertificate, writeStakeVoteDelegationCertificate, writeStakeVoteRegistrationDelegationCertificate, writeStringToMemory, writeTransactionToCbor, writeTxIn, writeTxOut, writeUnitInterval, writeUnitIntervalAsDouble, writeUnregistrationCertificate, writeUpdateDRepCertificate, writeUtxo, writeUtxoList, writeValue, writeVkeyWitnessSet, writeVoteDelegationCertificate, writeVoteRegistrationDelegationCertificate, writeVoter, writeVotingProcedure, writeWithdrawalMap };
7753
+ export { type AccountDerivationPath, Address, AddressType, type AlwaysAbstain, type AlwaysNoConfidence, type Anchor, type AssetAmounts, type AuthCommitteeHotCertificate, Base58, BaseAddress, Bech32, type Bech32DecodeResult, Bip32PrivateKey, Bip32PublicKey, type Bip32SecureKeyHandler, Blake2b, BlockfrostProvider, BrowserExtensionWallet, ByronAddress, ByronAddressType, CborMajorType, CborReader, CborReaderState, CborSimpleValue, CborTag, CborWriter, type Certificate, CertificateType, type Cip30Wallet, type CoinSelector, type CoinSelectorParams, type CoinSelectorResult, CoinType, type CommitteeMember, type CommitteeMembers, type Constitution, type ConstrPlutusData, type CostModel, Crc32, type Credential, type CredentialSet, CredentialType, type DRep, type DRepRegistrationCertificate, type DRepThresholds, type DRepUnregistrationCertificate, type Datum, DatumType, type DerivationPath, Ed25519PrivateKey, Ed25519PublicKey, type Ed25519SecureKeyHandler, Ed25519Signature, Emip003, EmscriptenCoinSelector, EmscriptenProvider, EmscriptenTxEvaluator, EnterpriseAddress, type ExUnits, type ExUnitsPrices, type GenesisKeyDelegationCertificate, type GovernanceActionId, InstanceType, KeyDerivationPurpose, KeyDerivationRole, MAX_SIGNED_64BIT, MAX_UNSIGNED_64BIT, MIN_SIGNED_64BIT, type MirCertificate, MirCertificateKind, MirCertificatePot, type MirToPot, type MirToStakeCreds, type NativeScript, NativeScriptKind, NetworkId, NetworkMagic, Pbkdf2HmacSha512, type PlutusData, PlutusLanguageVersion, type PlutusList, type PlutusMap, type PlutusScript, PointerAddress, type PoolParameters, type PoolRegistrationCertificate, type PoolRetirementCertificate, type PoolVotingThresholds, type ProtocolParameters, type ProtocolParametersUpdate, type ProtocolVersion, type Provider, type Redeemer, RedeemerPurpose, type RegistrationCertificate, type Relay, type RelayByAddress, type RelayByName, type RelayByNameMultihost, type RequireAllOfScript, type RequireAnyOfScript, type RequireAtLeastScript, type RequireSignatureScript, type RequireTimeAfterScript, type RequireTimeBeforeScript, type ResignCommitteeColdCertificate, RewardAddress, type Script, ScriptType, type SecureKeyHandler, type SingleAddressCredentialsConfig, SingleAddressWallet, type SingleAddressWalletConfig, type SingleAddressWalletFromMnemonicsConfig, SoftwareBip32SecureKeyHandler, SoftwareEd25519SecureKeyHandler, type StakeDelegationCertificate, type StakeDeregistrationCertificate, type StakePointer, type StakeRegistrationCertificate, type StakeRegistrationDelegationCertificate, type StakeVoteDelegationCertificate, type StakeVoteRegistrationDelegationCertificate, TransactionBuilder, type TxEvaluator, type TxIn, type TxOut, type UTxO, type UnitInterval, type UnregistrationCertificate, type UpdateDRepCertificate, type Value, type VkeyWitness, type VkeyWitnessSet, Vote, type VoteDelegationCertificate, type VoteRegistrationDelegationCertificate, type Voter, VoterType, type VotingProcedure, type Wallet, type Withdrawals, addWithdrawal, applyVkeyWitnessSet, assertSuccess, assetIdFromParts, assetNameFromAssetId, asyncifyStateTracker, base64ToBytes, blake2bHashFromBytes, blake2bHashFromHex, bridgeCallbacks, cborToPlutusData, cborToScript, cip105DRepFromCredential, cip129DRepFromCredential, cip129DRepFromPublicKey, cip129DRepFromScript, computeScriptHash, dRepToAddress, dRepToCredential, deepEqualsPlutusData, deepEqualsScript, derefCostModel, derefCostModels, derefDRepVotingThresholds, derefExUnitPrices, derefExUnits, derefPoolVotingThresholds, derefProtocolParameters, derefProtocolVersion, derefUnitInterval, entropyToMnemonic, finalizationRegistry, getErrorString, getFromInstanceRegistry, getLibCardanoCVersion, getModule, getScriptAddress, getUniqueSigners, govActionIdFromBech32, govActionIdToBech32, harden, hexToBufferObject, hexToUint8Array, isDRepAbstain, isDRepCredential, isDRepNoConfidence, isNativeScript, isPlutusDataBigInt, isPlutusDataByteArray, isPlutusDataConstr, isPlutusDataList, isPlutusDataMap, isPlutusDataWithCborCache, isPlutusScript, isReady, jsonToNativeScript, mnemonicToEntropy, nativeScriptToJson, plutusDataToCbor, policyIdFromAssetId, prepareUtxoForEvaluation, readAnchor, readAssetId, readAuthCommitteeHotCertificate, readBlake2bHashData, readBufferData, readCertificate, readCommitteeMembersMap, readConstitution, readCostModel, readCostModels, readCredential, readCredentialSet, readDRepRegistrationCertificate, readDRepUnregistrationCertificate, readDRepVotingThresholds, readDatum, readExUnitPrices, readExUnits, readGenesisKeyDelegationCertificate, readGovernanceActionId, readI64, readInputSet, readIntervalComponents, readMoveInstantaneousRewardsCertificate, readPlutusData, readPoolParameters, readPoolRegistrationCertificate, readPoolRetirementCertificate, readPoolVotingThresholds, readProtocolParamUpdate, readProtocolParameters, readProtocolVersion, readRedeemer, readRedeemerList, readRedeemersFromTx, readRegistrationCertificate, readResignCommitteeColdCertificate, readScript, readStakeDelegationCertificate, readStakeDeregistrationCertificate, readStakeRegistrationCertificate, readStakeRegistrationDelegationCertificate, readStakeVoteDelegationCertificate, readStakeVoteRegistrationDelegationCertificate, readStringFromMemory, readTransactionFromCbor, readTxIn, readTxOut, readTxOutFromCbor, readUTxOtFromCbor, readUnitIntervalAsDouble, readUnregistrationCertificate, readUpdateDRepCertificate, readUtxo, readUtxoList, readValue, readValueFromCbor, readVkeyWitnessSet, readVkeyWitnessSetFromWitnessSetCbor, readVoteDelegationCertificate, readVoteRegistrationDelegationCertificate, readVoter, readVotingProcedure, readWithdrawalMap, ready, registerBridgeErrorHandler, registerInstance, reportBridgeError, scriptToCbor, splitToLowHigh64bit, toCip105DRepID, toCip129DRepID, toUnitInterval, uint8ArrayToHex, uint8ArrayToUtf8, unrefObject, unregisterBridgeErrorHandler, unregisterInstance, utf8ByteLen, utf8ToHex, utf8ToUint8Array, writeAccountDerivationPaths, writeAnchor, writeAssetId, writeAuthCommitteeHotCertificate, writeBytesToMemory, writeCertificate, writeCommitteeMembersMap, writeConstitution, writeCostModel, writeCostModels, writeCredential, writeCredentialSet, writeDRepRegistrationCertificate, writeDRepUnregistrationCertificate, writeDRepVotingThresholds, writeDatum, writeDerivationPaths, writeExUnitPrices, writeExUnits, writeGenesisKeyDelegationCertificate, writeGovernanceActionId, writeI64, writeInputSet, writeMoveInstantaneousRewardsCertificate, writePlutusData, writePoolParameters, writePoolRegistrationCertificate, writePoolRetirementCertificate, writePoolVotingThresholds, writeProtocolParamUpdate, writeProtocolParameters, writeProtocolVersion, writeRedeemer, writeRedeemerList, writeRegistrationCertificate, writeResignCommitteeColdCertificate, writeScript, writeStakeDelegationCertificate, writeStakeDeregistrationCertificate, writeStakeRegistrationCertificate, writeStakeRegistrationDelegationCertificate, writeStakeVoteDelegationCertificate, writeStakeVoteRegistrationDelegationCertificate, writeStringToMemory, writeTransactionToCbor, writeTxIn, writeTxOut, writeUnitInterval, writeUnitIntervalAsDouble, writeUnregistrationCertificate, writeUpdateDRepCertificate, writeUtxo, writeUtxoList, writeValue, writeVkeyWitnessSet, writeVoteDelegationCertificate, writeVoteRegistrationDelegationCertificate, writeVoter, writeVotingProcedure, writeWithdrawalMap };