@meshsdk/common 1.9.0-beta.3 → 1.9.0-beta.31

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.d.ts CHANGED
@@ -112,6 +112,10 @@ type DataSignature = {
112
112
 
113
113
  type Era = "ALONZO" | "BABBAGE";
114
114
 
115
+ type Extension = {
116
+ cip: number;
117
+ };
118
+
115
119
  type Message = {
116
120
  payload: string;
117
121
  externalAAD?: string;
@@ -216,6 +220,23 @@ declare const castProtocol: (data: Partial<Record<keyof Protocol, any>>) => Prot
216
220
 
217
221
  type Token = keyof typeof SUPPORTED_TOKENS;
218
222
 
223
+ type TxOutput = {
224
+ address: string;
225
+ amount: Asset[];
226
+ dataHash?: string;
227
+ plutusData?: string;
228
+ scriptRef?: string;
229
+ scriptHash?: string;
230
+ };
231
+
232
+ type UTxO = {
233
+ input: {
234
+ outputIndex: number;
235
+ txHash: string;
236
+ };
237
+ output: TxOutput;
238
+ };
239
+
219
240
  type TransactionInfo = {
220
241
  index: number;
221
242
  block: string;
@@ -226,21 +247,10 @@ type TransactionInfo = {
226
247
  deposit: string;
227
248
  invalidBefore: string;
228
249
  invalidAfter: string;
229
- };
230
-
231
- type UTxO = {
232
- input: {
233
- outputIndex: number;
234
- txHash: string;
235
- };
236
- output: {
237
- address: string;
238
- amount: Asset[];
239
- dataHash?: string;
240
- plutusData?: string;
241
- scriptRef?: string;
242
- scriptHash?: string;
243
- };
250
+ inputs: UTxO[];
251
+ outputs: UTxO[];
252
+ blockHeight?: number;
253
+ blockTime?: number;
244
254
  };
245
255
 
246
256
  type Wallet = {
@@ -416,6 +426,16 @@ type Anchor = {
416
426
  anchorDataHash: string;
417
427
  };
418
428
 
429
+ type MintParam = {
430
+ type: "Plutus" | "Native";
431
+ policyId: string;
432
+ mintValue: {
433
+ assetName: string;
434
+ amount: string;
435
+ }[];
436
+ redeemer?: Redeemer;
437
+ scriptSource?: ScriptSource | SimpleScriptSourceInfo;
438
+ };
419
439
  type MintItem = {
420
440
  type: "Plutus" | "Native";
421
441
  policyId: string;
@@ -472,7 +492,7 @@ type ScriptTxIn = {
472
492
  };
473
493
  declare const txInToUtxo: (txIn: TxInParameter) => UTxO;
474
494
 
475
- type Credential = {
495
+ type Credential$1 = {
476
496
  type: "ScriptHash";
477
497
  scriptHash: string;
478
498
  } | {
@@ -503,7 +523,7 @@ type VoteType = {
503
523
  };
504
524
  type Voter = {
505
525
  type: "ConstitutionalCommittee";
506
- hotCred: Credential;
526
+ hotCred: Credential$1;
507
527
  } | {
508
528
  type: "DRep";
509
529
  drepId: string;
@@ -540,10 +560,11 @@ type SimpleScriptWithdrawal = {
540
560
  type MeshTxBuilderBody = {
541
561
  inputs: TxIn[];
542
562
  outputs: Output[];
563
+ fee: Quantity;
543
564
  collaterals: PubKeyTxIn[];
544
565
  requiredSignatures: string[];
545
566
  referenceInputs: RefTxIn[];
546
- mints: MintItem[];
567
+ mints: MintParam[];
547
568
  changeAddress: string;
548
569
  metadata: TxMetadata;
549
570
  validityRange: ValidityRange;
@@ -559,10 +580,12 @@ type MeshTxBuilderBody = {
559
580
  };
560
581
  chainedTxs: string[];
561
582
  inputsForEvaluation: Record<string, UTxO>;
562
- fee?: string;
563
583
  network: Network | number[][];
584
+ expectedNumberKeyWitnesses: number;
585
+ expectedByronAddressWitnesses: string[];
564
586
  };
565
587
  declare const emptyTxBuilderBody: () => MeshTxBuilderBody;
588
+ declare function cloneTxBuilderBody(body: MeshTxBuilderBody): MeshTxBuilderBody;
566
589
  type ValidityRange = {
567
590
  invalidBefore?: number;
568
591
  invalidHereafter?: number;
@@ -727,18 +750,42 @@ declare const mSome: <T extends Data>(value: T) => MSome<T>;
727
750
  */
728
751
  declare const mNone: () => MNone;
729
752
 
753
+ /**
754
+ * The Mesh Data verification key
755
+ */
756
+ type MVerificationKey = MConStr0<[string]>;
757
+ /**
758
+ * The Mesh Data script key
759
+ */
760
+ type MScript = MConStr1<[string]>;
730
761
  /**
731
762
  * The Mesh Data staking credential
732
763
  */
733
- type MMaybeStakingHash = MConStr1<[]> | MConStr0<[MConStr0<[MConStr0<[string]>]>]> | MConStr0<[MConStr0<[MConStr1<[string]>]>]>;
764
+ type MMaybeStakingHash = MConStr1<[]> | MConStr0<[MConStr0<[MVerificationKey]>]> | MConStr0<[MConStr0<[MScript]>]>;
734
765
  /**
735
766
  * The Mesh Data public key address
736
767
  */
737
- type MPubKeyAddress = MConStr0<[MConStr0<[string]>, MMaybeStakingHash]>;
768
+ type MPubKeyAddress = MConStr0<[MVerificationKey, MMaybeStakingHash]>;
738
769
  /**
739
770
  * The Mesh Data script address
740
771
  */
741
- type MScriptAddress = MConStr0<[MConStr1<[string]>, MMaybeStakingHash]>;
772
+ type MScriptAddress = MConStr0<[MScript, MMaybeStakingHash]>;
773
+ /**
774
+ * The Mesh Data credential
775
+ */
776
+ type MCredential = MVerificationKey | MScript;
777
+ /**
778
+ * The utility function to create a Mesh Data verification key
779
+ * @param bytes The public key hash in hex
780
+ * @returns The Mesh Data verification key object
781
+ */
782
+ declare const mVerificationKey: (bytes: string) => MVerificationKey;
783
+ /**
784
+ * The utility function to create a Mesh Data script key
785
+ * @param bytes The script hash in hex
786
+ * @returns The Mesh Data script key object
787
+ */
788
+ declare const mScript: (bytes: string) => MScript;
742
789
  /**
743
790
  * The utility function to create a Mesh Data staking hash
744
791
  * @param stakeCredential The staking credential in hex
@@ -762,6 +809,13 @@ declare const mPubKeyAddress: (bytes: string, stakeCredential?: string, isStakeS
762
809
  * @returns The Mesh Data script address object
763
810
  */
764
811
  declare const mScriptAddress: (bytes: string, stakeCredential?: string, isStakeScriptCredential?: boolean) => MScriptAddress;
812
+ /**
813
+ * The utility function to create a Mesh Data credential
814
+ * @param hash The pub key hash or script hash
815
+ * @param isScriptCredential Indicate if the credential is script hash (false for pub key hash)
816
+ * @returns Mesh Data credential object
817
+ */
818
+ declare const mCredential: (hash: string, isScriptCredential?: boolean) => MCredential;
765
819
 
766
820
  /**
767
821
  * The Mesh Data boolean
@@ -878,11 +932,27 @@ type AssocMapItem<K, V> = {
878
932
  v: V;
879
933
  };
880
934
  /**
935
+ * PlutusTx alias
881
936
  * The Plutus Data association map in JSON
882
937
  */
883
938
  type AssocMap<K = any, V = any> = {
884
939
  map: AssocMapItem<K, V>[];
885
940
  };
941
+ /**
942
+ * Aiken alias
943
+ * The Plutus Data association map item in JSON
944
+ */
945
+ type Pair<K, V> = {
946
+ k: K;
947
+ v: V;
948
+ };
949
+ /**
950
+ * Aiken alias
951
+ * The Plutus Data association map in JSON
952
+ */
953
+ type Pairs<K = any, V = any> = {
954
+ map: Pair<K, V>[];
955
+ };
886
956
  /**
887
957
  * The utility function to create a Plutus Data boolean in JSON
888
958
  * @param b boolean value
@@ -933,6 +1003,13 @@ declare const plutusBSArrayToString: (bsArray: List<ByteString>) => string;
933
1003
  * @returns The Plutus Data association map object
934
1004
  */
935
1005
  declare const assocMap: <K, V>(mapItems: [K, V][], validation?: boolean) => AssocMap<K, V>;
1006
+ /**
1007
+ * The utility function to create a Plutus Data Pairs in JSON
1008
+ * @param mapItems The items map in array
1009
+ * @param validation Default true - If current data construction would perform validation (introducing this flag due to possible performance issue in loop validation)
1010
+ * @returns The Plutus Data Pairs object
1011
+ */
1012
+ declare const pairs: <K, V>(mapItems: [K, V][], validation?: boolean) => Pairs<K, V>;
936
1013
 
937
1014
  /**
938
1015
  * All the type aliases here represent the type name used in smart contracts from PlutusTx or Aiken.
@@ -1041,7 +1118,7 @@ declare const scriptHash: (bytes: string) => ScriptHash;
1041
1118
  * @param bytes The script hash in hex
1042
1119
  * @returns The Plutus Data script hash object
1043
1120
  */
1044
- declare const pubKeyHash: (bytes: string) => ScriptHash;
1121
+ declare const pubKeyHash: (bytes: string) => PubKeyHash;
1045
1122
  /**
1046
1123
  * The utility function to create a Plutus Data policy id in JSON
1047
1124
  * @param bytes The policy id in hex
@@ -1126,18 +1203,42 @@ declare const some: <T>(value: T) => Some<T>;
1126
1203
  */
1127
1204
  declare const none: () => None;
1128
1205
 
1206
+ /**
1207
+ * The Plutus Data verification key in JSON
1208
+ */
1209
+ type VerificationKey = ConStr0<[PubKeyHash]>;
1210
+ /**
1211
+ * The Plutus Data Script key in JSON
1212
+ */
1213
+ type Script = ConStr1<[ScriptHash]>;
1129
1214
  /**
1130
1215
  * The Plutus Data staking credential in JSON
1131
1216
  */
1132
- type MaybeStakingHash = ConStr1<[]> | ConStr0<[ConStr0<[ConStr0<[PubKeyHash]>]>]> | ConStr0<[ConStr0<[ConStr1<[ScriptHash]>]>]>;
1217
+ type MaybeStakingHash = ConStr1<[]> | ConStr0<[ConStr0<[VerificationKey]>]> | ConStr0<[ConStr0<[Script]>]>;
1133
1218
  /**
1134
1219
  * The Plutus Data public key address in JSON
1135
1220
  */
1136
- type PubKeyAddress = ConStr0<[ConStr0<[PubKeyHash]>, MaybeStakingHash]>;
1221
+ type PubKeyAddress = ConStr0<[VerificationKey, MaybeStakingHash]>;
1137
1222
  /**
1138
1223
  * The Plutus Data script address in JSON
1139
1224
  */
1140
- type ScriptAddress = ConStr0<[ConStr1<[ScriptHash]>, MaybeStakingHash]>;
1225
+ type ScriptAddress = ConStr0<[Script, MaybeStakingHash]>;
1226
+ /**
1227
+ * The Plutus Data credential in JSON
1228
+ */
1229
+ type Credential = VerificationKey | Script;
1230
+ /**
1231
+ * The utility function to create a Plutus Data verification key in JSON
1232
+ * @param bytes The public key hash in hex
1233
+ * @returns The Plutus Data verification key object
1234
+ */
1235
+ declare const verificationKey: (bytes: string) => VerificationKey;
1236
+ /**
1237
+ * The utility function to create a Plutus Data script key in JSON
1238
+ * @param bytes The script hash in hex
1239
+ * @returns The Plutus Data script key object
1240
+ * */
1241
+ declare const script: (bytes: string) => Script;
1141
1242
  /**
1142
1243
  * The utility function to create a Plutus Data staking hash in JSON
1143
1244
  * @param stakeCredential The staking credential in hex
@@ -1161,8 +1262,41 @@ declare const pubKeyAddress: (bytes: string, stakeCredential?: string, isStakeSc
1161
1262
  * @returns The Plutus Data script address object
1162
1263
  */
1163
1264
  declare const scriptAddress: (bytes: string, stakeCredential?: string, isStakeScriptCredential?: boolean) => ScriptAddress;
1265
+ /**
1266
+ * The utility function to create a Plutus Data credential in JSON
1267
+ * @param hash The pub key hash or script hash
1268
+ * @param isScriptCredential Indicate if the credential is script hash (false for pub key hash)
1269
+ * @returns Plutus Data credential object
1270
+ */
1271
+ declare const credential: (hash: string, isScriptCredential?: boolean) => Credential;
1272
+
1273
+ type ProofStep = ProofStepBranch | ProofStepFork | ProofStepLeaf;
1274
+ type ProofStepBranch = ConStr0<[
1275
+ Integer,
1276
+ ByteString
1277
+ ]>;
1278
+ type ProofStepFork = ConStr1<[
1279
+ Integer,
1280
+ ForkNeighbor
1281
+ ]>;
1282
+ type ProofStepLeaf = ConStr2<[
1283
+ Integer,
1284
+ ByteString,
1285
+ ByteString
1286
+ ]>;
1287
+ type ForkNeighbor = ConStr0<[
1288
+ Integer,
1289
+ ByteString,
1290
+ ByteString
1291
+ ]>;
1292
+ /**
1293
+ * The utility function to transform a JSON proof from Aiken TS offchain library to Mesh JSON Data type
1294
+ * @param proof The proof object from Aiken TS offchain library
1295
+ * @returns The proof object in Mesh JSON Data type
1296
+ */
1297
+ declare const jsonProofToPlutusData: (proof: object) => ProofStep[];
1164
1298
 
1165
- type PlutusData = ConStr | Bool | ByteString | Integer | List | AssocMap | MaybeStakingHash | PubKeyAddress | ScriptAddress | AssetClass | OutputReference | PubKeyHash | POSIXTime | Dict<any> | Tuple<any, any>;
1299
+ type PlutusData = ConStr | Bool | ByteString | Integer | List | AssocMap | Pairs | MaybeStakingHash | PubKeyAddress | ScriptAddress | AssetClass | OutputReference | PubKeyHash | POSIXTime | Dict<any> | Tuple<any, any>;
1166
1300
 
1167
1301
  /**
1168
1302
  * Converting bytes to hex string
@@ -1357,6 +1491,19 @@ declare class MeshValue {
1357
1491
  * @returns boolean
1358
1492
  */
1359
1493
  leqUnit: (unit: string, other: MeshValue) => boolean;
1494
+ /**
1495
+ * Check if the value is equal to another value
1496
+ * @param other - The value to compare against
1497
+ * @returns boolean
1498
+ */
1499
+ eq: (other: MeshValue) => boolean;
1500
+ /**
1501
+ * Check if the specific unit of value is equal to that unit of another value
1502
+ * @param unit - The unit to compare
1503
+ * @param other - The value to compare against
1504
+ * @returns boolean
1505
+ */
1506
+ eqUnit: (unit: string, other: MeshValue) => boolean;
1360
1507
  /**
1361
1508
  * Check if the value is empty
1362
1509
  * @returns boolean
@@ -1412,7 +1559,6 @@ interface IWithdrawalBlueprint {
1412
1559
  cbor: string;
1413
1560
  hash: string;
1414
1561
  address: string;
1415
- isStakeScriptCredential: boolean;
1416
1562
  paramScript(compiledCode: string, params: string[], paramsType: PlutusDataType): this;
1417
1563
  noParamScript(compiledCode: string): this;
1418
1564
  }
@@ -1504,12 +1650,19 @@ declare const CIP68_100: (tokenNameHex: string) => string;
1504
1650
  */
1505
1651
  declare const CIP68_222: (tokenNameHex: string) => string;
1506
1652
 
1653
+ type IFetcherOptions = {
1654
+ maxPage?: number;
1655
+ order?: "asc" | "desc";
1656
+ [key: string]: any;
1657
+ };
1658
+ declare const DEFAULT_FETCHER_OPTIONS: IFetcherOptions;
1507
1659
  /**
1508
1660
  * Fetcher interface defines end points to query blockchain data.
1509
1661
  */
1510
1662
  interface IFetcher {
1511
1663
  fetchAccountInfo(address: string): Promise<AccountInfo>;
1512
1664
  fetchAddressUTxOs(address: string, asset?: string): Promise<UTxO[]>;
1665
+ fetchAddressTxs(address: string, options?: IFetcherOptions): Promise<TransactionInfo[]>;
1513
1666
  fetchAssetAddresses(asset: string): Promise<{
1514
1667
  address: string;
1515
1668
  quantity: string;
@@ -1528,11 +1681,10 @@ interface IFetcher {
1528
1681
  }
1529
1682
 
1530
1683
  interface IInitiator {
1531
- getChangeAddress(): SometimesPromise<string>;
1532
- getCollateral(): SometimesPromise<UTxO[]>;
1533
- getUtxos(): SometimesPromise<UTxO[]>;
1684
+ getChangeAddress(): Promise<string>;
1685
+ getCollateral(): Promise<UTxO[]>;
1686
+ getUtxos(): Promise<UTxO[]>;
1534
1687
  }
1535
- type SometimesPromise<T> = Promise<T> | T;
1536
1688
 
1537
1689
  interface IListener {
1538
1690
  onTxConfirmed(txHash: string, callback: () => void, limit?: number): void;
@@ -1543,8 +1695,8 @@ interface ISubmitter {
1543
1695
  }
1544
1696
 
1545
1697
  interface IMeshTxSerializer {
1546
- verbose: boolean;
1547
1698
  serializeTxBody(txBuilderBody: MeshTxBuilderBody, protocolParams: Protocol): string;
1699
+ serializeTxBodyWithMockSignatures(txBuilderBody: MeshTxBuilderBody, protocolParams: Protocol): string;
1548
1700
  addSigningKeys(txHex: string, signingKeys: string[]): string;
1549
1701
  resolver: IResolver;
1550
1702
  deserializer: IDeserializer;
@@ -1552,6 +1704,8 @@ interface IMeshTxSerializer {
1552
1704
  serializeAddress(address: DeserializedAddress, networkId?: 0 | 1): string;
1553
1705
  serializePoolId(hash: string): string;
1554
1706
  serializeRewardAddress(stakeKeyHash: string, isScriptHash?: boolean, network_id?: 0 | 1): string;
1707
+ serializeOutput(output: Output): string;
1708
+ serializeValue(value: Asset[]): string;
1555
1709
  }
1556
1710
  interface IResolver {
1557
1711
  keys: {
@@ -1564,7 +1718,7 @@ interface IResolver {
1564
1718
  resolveTxHash(txHex: string): string;
1565
1719
  };
1566
1720
  data: {
1567
- resolveDataHash(data: Data): string;
1721
+ resolveDataHash(rawData: BuilderData["content"], type?: PlutusDataType): string;
1568
1722
  };
1569
1723
  script: {
1570
1724
  resolveScriptRef(script: NativeScript | PlutusScript): string;
@@ -1650,4 +1804,4 @@ declare const hashDrepAnchor: (jsonLD: object) => string;
1650
1804
 
1651
1805
  declare function getFile(url: string): string;
1652
1806
 
1653
- 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 CurrencySymbol, 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 Files, type FungibleAssetMetadata, type GovernanceProposalInfo, HARDENED_KEY_START, type IDeserializer, type IEvaluator, type IFetcher, type IInitiator, type IListener, type IMeshTxSerializer, type IMintingBlueprint, type IResolver, type ISigner, type ISpendingBlueprint, type ISubmitter, 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 MMaybeStakingHash, type MNone, type MOption, type MOutputReference, type MPubKeyAddress, type MScriptAddress, type MSome, type MTuple, type MTxOutRef, type MValue, type MaybeStakingHash, type MeshTxBuilderBody, MeshValue, type Message, type Metadata, type Metadatum, type MetadatumMap, type Mint, type MintItem, type NativeScript, type Network, type NonFungibleAssetMetadata, type None, type Option, type Output, type OutputReference, POLICY_ID_LENGTH, type POSIXTime, type PlutusData, type PlutusDataType, type PlutusScript, type PolicyId, type PoolMetadata, type PoolParams, 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 ScriptAddress, type ScriptHash, 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 TxMetadata, type TxOutRef, type UTxO, type Unit, UtxoSelection, type UtxoSelectionStrategy, type ValidityRange, type Value, type Vote, type VoteKind, type VoteType, type Voter, type VotingProcedure, type Wallet, type Withdrawal, assetClass, assetName, assocMap, bool, builtinByteString, byteString, bytesToHex, castProtocol, conStr, conStr0, conStr1, conStr2, conStr3, currencySymbol, dict, emptyTxBuilderBody, experimentalSelectUtxos, fromUTF8, fungibleAssetKeys, getFile, hashByteString, hashDrepAnchor, hexToBytes, hexToString, integer, isNetwork, keepRelevant, largestFirst, largestFirstMultiAsset, list, mAssetClass, mBool, mConStr, mConStr0, mConStr1, mConStr2, mConStr3, mMaybeStakingHash, mNone, mOption, mOutputReference, mPlutusBSArrayToString, mPubKeyAddress, mScriptAddress, mSome, mStringToPlutusBSArray, mTuple, mTxOutRef, mValue, maybeStakingHash, mergeAssets, metadataStandardKeys, metadataToCip68, none, option, outputReference, parseAssetUnit, plutusBSArrayToString, policyId, posixTime, pubKeyAddress, pubKeyHash, resolveEpochNo, resolveFingerprint, resolveLanguageView, resolveSlotNo, resolveTxFees, royaltiesStandardKeys, scriptAddress, scriptHash, slotToBeginUnixTime, some, stringToBSArray, stringToHex, toBytes, toUTF8, tokenName, tuple, txInToUtxo, txOutRef, unixTimeToEnclosingSlot, validityRangeToObj, value };
1807
+ 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 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 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 TxMetadata, type TxOutRef, type TxOutput, 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, isNetwork, jsonProofToPlutusData, keepRelevant, 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, tokenName, tuple, txInToUtxo, txOutRef, unixTimeToEnclosingSlot, validityRangeToObj, value, verificationKey };