@meshsdk/core-cst 1.8.14 → 1.9.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2336 -482
- package/dist/index.d.cts +79 -42
- package/dist/index.d.ts +79 -42
- package/dist/index.js +2333 -491
- package/package.json +12 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import * as _cardano_sdk_core from '@cardano-sdk/core';
|
|
2
1
|
import { Cardano, Serialization } from '@cardano-sdk/core';
|
|
3
|
-
|
|
2
|
+
import * as core from '@cardano-sdk/core';
|
|
3
|
+
export { core as CardanoSDK };
|
|
4
4
|
export { Cardano, Serialization } from '@cardano-sdk/core';
|
|
5
5
|
import * as _cardano_sdk_util from '@cardano-sdk/util';
|
|
6
|
-
import { OpaqueString } from '@cardano-sdk/util';
|
|
6
|
+
import { OpaqueString, HexBlob } from '@cardano-sdk/util';
|
|
7
7
|
export { _cardano_sdk_util as CardanoSDKUtil };
|
|
8
8
|
import * as Crypto from '@cardano-sdk/crypto';
|
|
9
9
|
export { Crypto };
|
|
10
10
|
import * as cjsBip32ed25519 from '@stricahq/bip32ed25519';
|
|
11
|
-
import { DataSignature, Data, NativeScript as NativeScript$1, PlutusScript, IMeshTxSerializer, DeserializedAddress, BuilderData, IDeserializer, IResolver, MeshTxBuilderBody,
|
|
11
|
+
import { DataSignature, Data, NativeScript as NativeScript$1, PlutusScript, IMeshTxSerializer, Protocol, DeserializedAddress, BuilderData, IDeserializer, IResolver, MeshTxBuilderBody, UTxO, Asset, LanguageVersion, PubKeyAddress, ScriptAddress, PlutusDataType } from '@meshsdk/common';
|
|
12
12
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
13
13
|
import * as cjsCbors from '@stricahq/cbors';
|
|
14
|
+
import * as _cardano_sdk_core_dist_cjs_Cardano from '@cardano-sdk/core/dist/cjs/Cardano';
|
|
14
15
|
|
|
15
16
|
declare const Slot: (value: number) => Cardano.Slot;
|
|
16
17
|
type Slot = Cardano.Slot;
|
|
@@ -22,13 +23,20 @@ type Transaction = Serialization.Transaction;
|
|
|
22
23
|
declare const TransactionId: {
|
|
23
24
|
(value: string): Cardano.TransactionId;
|
|
24
25
|
fromHexBlob(value: _cardano_sdk_util.HexBlob): Cardano.TransactionId;
|
|
25
|
-
fromTxBodyCbor(bodyCbor: _cardano_sdk_core.TxBodyCBOR): Cardano.TransactionId;
|
|
26
26
|
};
|
|
27
27
|
type TransactionId = Cardano.TransactionId;
|
|
28
28
|
declare const TransactionBody: typeof Serialization.TransactionBody;
|
|
29
29
|
type TransactionBody = Serialization.TransactionBody;
|
|
30
30
|
declare const TransactionWitnessSet: typeof Serialization.TransactionWitnessSet;
|
|
31
31
|
type TransactionWitnessSet = Serialization.TransactionWitnessSet;
|
|
32
|
+
declare const AuxilliaryData: typeof Serialization.AuxiliaryData;
|
|
33
|
+
type AuxiliaryData = Serialization.AuxiliaryData;
|
|
34
|
+
declare const TransactionMetadatum: typeof Serialization.TransactionMetadatum;
|
|
35
|
+
type TransactionMetadatum = Serialization.TransactionMetadatum;
|
|
36
|
+
declare const MetadatumMap: typeof Serialization.MetadatumMap;
|
|
37
|
+
type MetadatumMap = Serialization.MetadatumMap;
|
|
38
|
+
declare const MetadatumList: typeof Serialization.MetadatumList;
|
|
39
|
+
type MetadatumList = Serialization.MetadatumList;
|
|
32
40
|
declare const TransactionUnspentOutput: typeof Serialization.TransactionUnspentOutput;
|
|
33
41
|
type TransactionUnspentOutput = Serialization.TransactionUnspentOutput;
|
|
34
42
|
declare const TransactionInput: typeof Serialization.TransactionInput;
|
|
@@ -65,7 +73,6 @@ declare const AssetId: {
|
|
|
65
73
|
getPolicyId(id: Cardano.AssetId): Cardano.PolicyId;
|
|
66
74
|
getAssetName(id: Cardano.AssetId): Cardano.AssetName;
|
|
67
75
|
fromParts(policyId: Cardano.PolicyId, assetName: Cardano.AssetName): Cardano.AssetId;
|
|
68
|
-
getAssetNameAsText(id: Cardano.AssetId): string;
|
|
69
76
|
};
|
|
70
77
|
type AssetId = Cardano.AssetId;
|
|
71
78
|
declare const ScriptHash: {
|
|
@@ -152,6 +159,14 @@ declare const PlutusV2Script: typeof Serialization.PlutusV2Script;
|
|
|
152
159
|
type PlutusV2Script = Serialization.PlutusV2Script;
|
|
153
160
|
declare const PlutusV3Script: typeof Serialization.PlutusV3Script;
|
|
154
161
|
type PlutusV3Script = Serialization.PlutusV3Script;
|
|
162
|
+
declare const PlutusDataKind: typeof Serialization.PlutusDataKind;
|
|
163
|
+
type PlutusDataKind = Serialization.PlutusDataKind;
|
|
164
|
+
declare const PointerAddress: typeof Cardano.PointerAddress;
|
|
165
|
+
type PointerAddress = Cardano.PointerAddress;
|
|
166
|
+
declare const CertIndex: (value: number) => Cardano.CertIndex;
|
|
167
|
+
type CertIndex = Cardano.CertIndex;
|
|
168
|
+
declare const TxIndex: (value: number) => Cardano.TxIndex;
|
|
169
|
+
type TxIndex = Cardano.TxIndex;
|
|
155
170
|
declare const Costmdls: typeof Serialization.Costmdls;
|
|
156
171
|
type Costmdls = Serialization.Costmdls;
|
|
157
172
|
declare const CostModel: typeof Serialization.CostModel;
|
|
@@ -208,12 +223,20 @@ type DRepID = Cardano.DRepID;
|
|
|
208
223
|
declare const DRepID: {
|
|
209
224
|
(value: string): Cardano.DRepID;
|
|
210
225
|
isValid(value: string): boolean;
|
|
211
|
-
|
|
226
|
+
cip105FromCredential(credential: Cardano.Credential): Cardano.DRepID;
|
|
227
|
+
cip129FromCredential(credential: Cardano.Credential): Cardano.DRepID;
|
|
228
|
+
toCredential(drepId: Cardano.DRepID): Cardano.Credential;
|
|
229
|
+
toCip105DRepID(drepId: Cardano.DRepID): Cardano.DRepID;
|
|
230
|
+
toCip129DRepID(drepId: Cardano.DRepID): Cardano.DRepID;
|
|
231
|
+
toAddress(drepId: Cardano.DRepID): Cardano.EnterpriseAddress | undefined;
|
|
212
232
|
};
|
|
213
233
|
type DRep = Serialization.DRep;
|
|
214
234
|
declare const DRep: typeof Serialization.DRep;
|
|
215
235
|
type StakeCredentialStatus = Cardano.StakeCredentialStatus;
|
|
216
236
|
declare const StakeCredentialStatus: typeof Cardano.StakeCredentialStatus;
|
|
237
|
+
type Metadatum = Cardano.Metadatum;
|
|
238
|
+
declare const computeAuxiliaryDataHash: (data: Cardano.AuxiliaryData | undefined) => Crypto.Hash32ByteBase16 | undefined;
|
|
239
|
+
declare const blake2b: typeof Crypto.blake2b;
|
|
217
240
|
|
|
218
241
|
type Signer = {
|
|
219
242
|
address: Address;
|
|
@@ -255,52 +278,32 @@ declare const generateNonce: (label?: string, length?: number) => string;
|
|
|
255
278
|
declare const signData: (data: string, signer: Signer) => DataSignature;
|
|
256
279
|
|
|
257
280
|
declare const resolveDataHash: (data: Data) => string;
|
|
258
|
-
declare const resolveNativeScriptAddress: (script: NativeScript$1, networkId?: number) =>
|
|
281
|
+
declare const resolveNativeScriptAddress: (script: NativeScript$1, networkId?: number) => string;
|
|
259
282
|
declare const resolveNativeScriptHash: (script: NativeScript$1) => string;
|
|
260
283
|
declare const resolvePaymentKeyHash: (bech32: string) => string;
|
|
261
|
-
declare const resolvePlutusScriptAddress: (script: PlutusScript, networkId?: number) =>
|
|
284
|
+
declare const resolvePlutusScriptAddress: (script: PlutusScript, networkId?: number) => string;
|
|
262
285
|
declare const resolvePlutusScriptHash: (bech32: string) => string;
|
|
263
286
|
declare const resolvePoolId: (hash: string) => string;
|
|
264
287
|
declare const resolvePrivateKey: (words: string[]) => string;
|
|
265
288
|
declare const resolveScriptRef: (script: PlutusScript | NativeScript$1) => string;
|
|
266
|
-
declare const resolveRewardAddress: (bech32: string) =>
|
|
289
|
+
declare const resolveRewardAddress: (bech32: string) => string;
|
|
267
290
|
declare const resolveStakeKeyHash: (bech32: string) => string;
|
|
268
|
-
declare const resolveTxHash: (txHex: string) =>
|
|
291
|
+
declare const resolveTxHash: (txHex: string) => string;
|
|
292
|
+
declare const resolveScriptHashDRepId: (scriptHash: string) => string;
|
|
293
|
+
declare const resolveEd25519KeyHash: (bech32: string) => string;
|
|
269
294
|
|
|
270
295
|
declare class CardanoSDKSerializer implements IMeshTxSerializer {
|
|
271
296
|
verbose: boolean;
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
private utxoContext;
|
|
275
|
-
private redeemerContext;
|
|
276
|
-
private scriptsProvided;
|
|
277
|
-
private datumsProvided;
|
|
278
|
-
private usedLanguages;
|
|
279
|
-
constructor(verbose?: boolean);
|
|
297
|
+
protocolParams: Protocol;
|
|
298
|
+
constructor(protocolParams?: Protocol, verbose?: boolean);
|
|
280
299
|
serializeRewardAddress(stakeKeyHash: string, isScriptHash?: boolean, network_id?: 0 | 1): string;
|
|
281
300
|
serializePoolId(hash: string): string;
|
|
282
|
-
serializeAddress(address: DeserializedAddress
|
|
301
|
+
serializeAddress(address: Partial<DeserializedAddress>, networkId?: 0 | 1): string;
|
|
283
302
|
serializeData(data: BuilderData): string;
|
|
284
303
|
deserializer: IDeserializer;
|
|
285
304
|
resolver: IResolver;
|
|
286
|
-
serializeTxBody: (txBuilderBody: MeshTxBuilderBody, protocolParams
|
|
305
|
+
serializeTxBody: (txBuilderBody: MeshTxBuilderBody, protocolParams?: Protocol) => string;
|
|
287
306
|
addSigningKeys: (txHex: string, signingKeys: string[]) => string;
|
|
288
|
-
private addAllInputs;
|
|
289
|
-
private addTxIn;
|
|
290
|
-
private addScriptTxIn;
|
|
291
|
-
private addSimpleScriptTxIn;
|
|
292
|
-
private addAllOutputs;
|
|
293
|
-
private addOutput;
|
|
294
|
-
private addAllReferenceInputs;
|
|
295
|
-
private addReferenceIput;
|
|
296
|
-
private addAllMints;
|
|
297
|
-
private addMint;
|
|
298
|
-
private addAllCollateralInputs;
|
|
299
|
-
private addCollateralInput;
|
|
300
|
-
private setValidityInterval;
|
|
301
|
-
private buildWitnessSet;
|
|
302
|
-
private balanceTx;
|
|
303
|
-
private createDummyTx;
|
|
304
307
|
}
|
|
305
308
|
|
|
306
309
|
type StricaPrivateKey = cjsBip32ed25519.PrivateKey;
|
|
@@ -333,6 +336,7 @@ declare const buildScriptPubkey: (keyHash: Ed25519KeyHash) => NativeScript;
|
|
|
333
336
|
declare const buildDRepID: (dRepKey: Ed25519PublicKeyHex, networkId?: NetworkId, addressType?: AddressType) => DRepID;
|
|
334
337
|
|
|
335
338
|
declare const toAddress: (bech32: string) => Address;
|
|
339
|
+
declare const toCardanoAddress: (address: string) => Address;
|
|
336
340
|
declare const toBaseAddress: (bech32: string) => BaseAddress | undefined;
|
|
337
341
|
declare const toEnterpriseAddress: (bech32: string) => EnterpriseAddress | undefined;
|
|
338
342
|
declare const toRewardAddress: (bech32: string) => RewardAddress | undefined;
|
|
@@ -344,13 +348,14 @@ declare const toScriptRef: (script: PlutusScript | NativeScript$1) => Script;
|
|
|
344
348
|
declare const fromScriptRef: (scriptRef: string) => PlutusScript | NativeScript$1 | undefined;
|
|
345
349
|
declare const fromNativeScript: (script: NativeScript) => NativeScript$1;
|
|
346
350
|
declare const toNativeScript: (script: NativeScript$1) => Serialization.NativeScript;
|
|
347
|
-
declare const toPlutusData: (data: Data) => PlutusData;
|
|
348
351
|
declare const toValue: (assets: Asset[]) => Serialization.Value;
|
|
352
|
+
declare const toDRep: (dRepId: string) => Serialization.DRep;
|
|
353
|
+
declare const getDRepIds: (dRepId: string) => {
|
|
354
|
+
cip105: string;
|
|
355
|
+
cip129: string;
|
|
356
|
+
};
|
|
349
357
|
|
|
350
|
-
declare const deserializeAddress: (address: string) => Address;
|
|
351
358
|
declare const deserializeEd25519KeyHash: (ed25519KeyHash: string) => Crypto.Ed25519KeyHash;
|
|
352
|
-
declare const deserializeDataHash: (dataHash: string) => DatumHash;
|
|
353
|
-
declare const deserializePlutusData: (plutusData: string) => PlutusData;
|
|
354
359
|
declare const deserializePlutusScript: (plutusScript: string, version: LanguageVersion) => PlutusV1Script | PlutusV2Script | PlutusV3Script;
|
|
355
360
|
declare const deserializeNativeScript: (nativeScript: string) => NativeScript;
|
|
356
361
|
declare const deserializeScriptHash: (scriptHash: string) => Crypto.Hash28ByteBase16;
|
|
@@ -367,6 +372,35 @@ declare function negatives(v: Value): Value;
|
|
|
367
372
|
declare function assetTypes(v: Value): number;
|
|
368
373
|
declare function empty(v: Value): boolean;
|
|
369
374
|
|
|
375
|
+
declare const toPlutusData: (data: Data) => PlutusData;
|
|
376
|
+
declare const fromJsonToPlutusData: (data: object) => PlutusData;
|
|
377
|
+
declare const fromBuilderToPlutusData: (data: BuilderData) => PlutusData;
|
|
378
|
+
declare const fromPlutusDataToJson: (data: PlutusData) => object;
|
|
379
|
+
declare const parseDatumCbor: <T = any>(datumCbor: string) => T;
|
|
380
|
+
declare const parseInlineDatum: <T extends {
|
|
381
|
+
inline_datum?: string;
|
|
382
|
+
}, X>(utxo: T) => X;
|
|
383
|
+
declare const deserializeDataHash: (dataHash: string) => DatumHash;
|
|
384
|
+
declare const deserializePlutusData: (plutusData: string) => PlutusData;
|
|
385
|
+
|
|
386
|
+
declare const serialzeAddress: (deserializedAddress: Partial<DeserializedAddress>, networkId?: number) => string;
|
|
387
|
+
declare const addrBech32ToPlutusDataHex: (bech32: string) => string;
|
|
388
|
+
declare const addrBech32ToPlutusDataObj: <T>(bech32: string) => T;
|
|
389
|
+
declare const serializeAddressObj: (plutusDataAddressObject: PubKeyAddress | ScriptAddress, networkId?: number) => string;
|
|
390
|
+
declare const serializePlutusAddressToBech32: (plutusHex: string, networkId?: number) => _cardano_sdk_core_dist_cjs_Cardano.PaymentAddress | _cardano_sdk_core_dist_cjs_Cardano.RewardAccount;
|
|
391
|
+
declare const deserializeBech32Address: (bech32Addr: string) => DeserializedAddress;
|
|
392
|
+
declare const deserializeAddress: (address: string) => Address;
|
|
393
|
+
declare const scriptHashToBech32: (scriptHash: string, stakeCredentialHash?: string, networkId?: number, isScriptStakeCredentialHash?: boolean) => string;
|
|
394
|
+
declare const v2ScriptToBech32: (scriptCbor: string, stakeCredential?: string, networkId?: number, isScriptStakeCredential?: boolean) => string;
|
|
395
|
+
declare const scriptHashToRewardAddress: (hash: string, networkId?: number) => string;
|
|
396
|
+
declare const keyHashToRewardAddress: (hash: string, networkId?: number) => string;
|
|
397
|
+
|
|
398
|
+
declare const bytesToHex: (bytes: Uint8Array) => HexBlob;
|
|
399
|
+
declare const hexToBytes: (hex: HexBlob) => Uint8Array;
|
|
400
|
+
declare const utf8ToBytes: (str: string) => Uint8Array;
|
|
401
|
+
declare const utf8ToHex: (str: string) => HexBlob;
|
|
402
|
+
declare const hexToBech32: (prefix: string, hex: string) => string;
|
|
403
|
+
|
|
370
404
|
/**
|
|
371
405
|
* MIT License
|
|
372
406
|
*
|
|
@@ -390,6 +424,7 @@ declare function empty(v: Value): boolean;
|
|
|
390
424
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
391
425
|
* SOFTWARE.
|
|
392
426
|
*/
|
|
427
|
+
|
|
393
428
|
type OutputEncoding = "SingleCBOR" | "DoubleCBOR" | "PurePlutusScriptBytes";
|
|
394
429
|
/**
|
|
395
430
|
* Normalizes a Plutus script by extracting its pure Plutus bytes and applying a specified encoding.
|
|
@@ -408,5 +443,7 @@ type OutputEncoding = "SingleCBOR" | "DoubleCBOR" | "PurePlutusScriptBytes";
|
|
|
408
443
|
* - The normalization process does not modify the logical content of the script, only its representation.
|
|
409
444
|
*/
|
|
410
445
|
declare const normalizePlutusScript: (plutusScript: string, encoding: OutputEncoding) => string;
|
|
446
|
+
declare const applyEncoding: (plutusScript: Uint8Array, outputEncoding: OutputEncoding) => Uint8Array;
|
|
447
|
+
declare const applyParamsToScript: (rawScript: string, params: object[] | Data[], type?: PlutusDataType) => string;
|
|
411
448
|
|
|
412
|
-
export { Address, AddressType, AssetFingerprint, AssetId, AssetName, BaseAddress, Bip32PrivateKey, Bip32PrivateKeyHex, CardanoSDKSerializer, CborSet, CborWriter, Certificate, CertificateType, ConstrPlutusData, CoseSign1, CostModel, type CostModels, Costmdls, Credential, type CredentialCore, CredentialType, DRep, DRepID, Datum, DatumHash, DatumKind, Ed25519KeyHash, Ed25519KeyHashHex, Ed25519PrivateExtendedKeyHex, Ed25519PrivateNormalKeyHex, Ed25519PublicKey, Ed25519PublicKeyHex, Ed25519Signature, Ed25519SignatureHex, EnterpriseAddress, ExUnits, Hash, Hash28ByteBase16, Hash32ByteBase16, NativeScript, NetworkId, type OutputEncoding, PaymentAddress, PlutusData, PlutusLanguageVersion, PlutusList, PlutusMap, PlutusV1Script, PlutusV2Script, PlutusV3Script, PolicyId, PoolId, Redeemer, RedeemerPurpose, RedeemerTag, Redeemers, RequireAllOf, RequireAnyOf, RequireNOf, RequireSignature, RequireTimeAfter, RequireTimeBefore, RewardAccount, RewardAddress, Script, ScriptHash, ScriptPubkey, type Signatures, type Signer, Slot, StakeCredentialStatus, StakeDelegation, type StakeDelegationCertificate, StakeRegistration, StricaBip32PrivateKey, StricaBip32PrivateKey as StricaBip32PrivateKeyType, StricaBip32PublicKey, StricaBip32PublicKey as StricaBip32PublicKeyType, StricaDecoder, StricaEncoder, StricaPrivateKey, StricaPrivateKey as StricaPrivateKeyType, StricaPublicKey, StricaPublicKey as StricaPublicKeyType, type TokenMap, Transaction, TransactionBody, TransactionId, TransactionInput, type TransactionInputSet, TransactionOutput, TransactionUnspentOutput, type TransactionWitnessPlutusData, TransactionWitnessSet, Value, VkeyWitness, VrfVkBech32, type Witness, addressToBech32, assetTypes, buildBaseAddress, buildBip32PrivateKey, buildDRepID, buildEnterpriseAddress, buildKeys, buildRewardAddress, buildScriptPubkey, checkSignature, deserializeAddress, deserializeDataHash, deserializeEd25519KeyHash, deserializeNativeScript, deserializePlutusData, deserializePlutusScript, deserializeScriptHash, deserializeScriptRef, deserializeTx, deserializeTxHash, deserializeTxUnspentOutput, deserializeValue, empty, fromNativeScript, fromScriptRef, fromTxUnspentOutput, fromValue, generateNonce, getCoseKeyFromPublicKey, getPublicKeyFromCoseKey, mergeValue, negateValue, negatives, normalizePlutusScript, resolveDataHash, resolveNativeScriptAddress, resolveNativeScriptHash, resolvePaymentKeyHash, resolvePlutusScriptAddress, resolvePlutusScriptHash, resolvePoolId, resolvePrivateKey, resolveRewardAddress, resolveScriptRef, resolveStakeKeyHash, resolveTxHash, signData, subValue, toAddress, toBaseAddress, toEnterpriseAddress, toNativeScript, toPlutusData, toRewardAddress, toScriptRef, toTxUnspentOutput, toValue };
|
|
449
|
+
export { Address, AddressType, AssetFingerprint, AssetId, AssetName, type AuxiliaryData, AuxilliaryData, BaseAddress, Bip32PrivateKey, Bip32PrivateKeyHex, CardanoSDKSerializer, CborSet, CborWriter, CertIndex, Certificate, CertificateType, ConstrPlutusData, CoseSign1, CostModel, type CostModels, Costmdls, Credential, type CredentialCore, CredentialType, DRep, DRepID, Datum, DatumHash, DatumKind, Ed25519KeyHash, Ed25519KeyHashHex, Ed25519PrivateExtendedKeyHex, Ed25519PrivateNormalKeyHex, Ed25519PublicKey, Ed25519PublicKeyHex, Ed25519Signature, Ed25519SignatureHex, EnterpriseAddress, ExUnits, Hash, Hash28ByteBase16, Hash32ByteBase16, type Metadatum, MetadatumList, MetadatumMap, NativeScript, NetworkId, type OutputEncoding, PaymentAddress, PlutusData, PlutusDataKind, PlutusLanguageVersion, PlutusList, PlutusMap, PlutusV1Script, PlutusV2Script, PlutusV3Script, PointerAddress, PolicyId, PoolId, Redeemer, RedeemerPurpose, RedeemerTag, Redeemers, RequireAllOf, RequireAnyOf, RequireNOf, RequireSignature, RequireTimeAfter, RequireTimeBefore, RewardAccount, RewardAddress, Script, ScriptHash, ScriptPubkey, type Signatures, type Signer, Slot, StakeCredentialStatus, StakeDelegation, type StakeDelegationCertificate, StakeRegistration, StricaBip32PrivateKey, StricaBip32PrivateKey as StricaBip32PrivateKeyType, StricaBip32PublicKey, StricaBip32PublicKey as StricaBip32PublicKeyType, StricaDecoder, StricaEncoder, StricaPrivateKey, StricaPrivateKey as StricaPrivateKeyType, StricaPublicKey, StricaPublicKey as StricaPublicKeyType, type TokenMap, Transaction, TransactionBody, TransactionId, TransactionInput, type TransactionInputSet, TransactionMetadatum, TransactionOutput, TransactionUnspentOutput, type TransactionWitnessPlutusData, TransactionWitnessSet, TxIndex, Value, VkeyWitness, VrfVkBech32, type Witness, addrBech32ToPlutusDataHex, addrBech32ToPlutusDataObj, addressToBech32, applyEncoding, applyParamsToScript, assetTypes, blake2b, buildBaseAddress, buildBip32PrivateKey, buildDRepID, buildEnterpriseAddress, buildKeys, buildRewardAddress, buildScriptPubkey, bytesToHex, checkSignature, computeAuxiliaryDataHash, deserializeAddress, deserializeBech32Address, deserializeDataHash, deserializeEd25519KeyHash, deserializeNativeScript, deserializePlutusData, deserializePlutusScript, deserializeScriptHash, deserializeScriptRef, deserializeTx, deserializeTxHash, deserializeTxUnspentOutput, deserializeValue, empty, fromBuilderToPlutusData, fromJsonToPlutusData, fromNativeScript, fromPlutusDataToJson, fromScriptRef, fromTxUnspentOutput, fromValue, generateNonce, getCoseKeyFromPublicKey, getDRepIds, getPublicKeyFromCoseKey, hexToBech32, hexToBytes, keyHashToRewardAddress, mergeValue, negateValue, negatives, normalizePlutusScript, parseDatumCbor, parseInlineDatum, resolveDataHash, resolveEd25519KeyHash, resolveNativeScriptAddress, resolveNativeScriptHash, resolvePaymentKeyHash, resolvePlutusScriptAddress, resolvePlutusScriptHash, resolvePoolId, resolvePrivateKey, resolveRewardAddress, resolveScriptHashDRepId, resolveScriptRef, resolveStakeKeyHash, resolveTxHash, scriptHashToBech32, scriptHashToRewardAddress, serializeAddressObj, serializePlutusAddressToBech32, serialzeAddress, signData, subValue, toAddress, toBaseAddress, toCardanoAddress, toDRep, toEnterpriseAddress, toNativeScript, toPlutusData, toRewardAddress, toScriptRef, toTxUnspentOutput, toValue, utf8ToBytes, utf8ToHex, v2ScriptToBech32 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import * as _cardano_sdk_core from '@cardano-sdk/core';
|
|
2
1
|
import { Cardano, Serialization } from '@cardano-sdk/core';
|
|
3
|
-
|
|
2
|
+
import * as core from '@cardano-sdk/core';
|
|
3
|
+
export { core as CardanoSDK };
|
|
4
4
|
export { Cardano, Serialization } from '@cardano-sdk/core';
|
|
5
5
|
import * as _cardano_sdk_util from '@cardano-sdk/util';
|
|
6
|
-
import { OpaqueString } from '@cardano-sdk/util';
|
|
6
|
+
import { OpaqueString, HexBlob } from '@cardano-sdk/util';
|
|
7
7
|
export { _cardano_sdk_util as CardanoSDKUtil };
|
|
8
8
|
import * as Crypto from '@cardano-sdk/crypto';
|
|
9
9
|
export { Crypto };
|
|
10
10
|
import * as cjsBip32ed25519 from '@stricahq/bip32ed25519';
|
|
11
|
-
import { DataSignature, Data, NativeScript as NativeScript$1, PlutusScript, IMeshTxSerializer, DeserializedAddress, BuilderData, IDeserializer, IResolver, MeshTxBuilderBody,
|
|
11
|
+
import { DataSignature, Data, NativeScript as NativeScript$1, PlutusScript, IMeshTxSerializer, Protocol, DeserializedAddress, BuilderData, IDeserializer, IResolver, MeshTxBuilderBody, UTxO, Asset, LanguageVersion, PubKeyAddress, ScriptAddress, PlutusDataType } from '@meshsdk/common';
|
|
12
12
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
13
13
|
import * as cjsCbors from '@stricahq/cbors';
|
|
14
|
+
import * as _cardano_sdk_core_dist_cjs_Cardano from '@cardano-sdk/core/dist/cjs/Cardano';
|
|
14
15
|
|
|
15
16
|
declare const Slot: (value: number) => Cardano.Slot;
|
|
16
17
|
type Slot = Cardano.Slot;
|
|
@@ -22,13 +23,20 @@ type Transaction = Serialization.Transaction;
|
|
|
22
23
|
declare const TransactionId: {
|
|
23
24
|
(value: string): Cardano.TransactionId;
|
|
24
25
|
fromHexBlob(value: _cardano_sdk_util.HexBlob): Cardano.TransactionId;
|
|
25
|
-
fromTxBodyCbor(bodyCbor: _cardano_sdk_core.TxBodyCBOR): Cardano.TransactionId;
|
|
26
26
|
};
|
|
27
27
|
type TransactionId = Cardano.TransactionId;
|
|
28
28
|
declare const TransactionBody: typeof Serialization.TransactionBody;
|
|
29
29
|
type TransactionBody = Serialization.TransactionBody;
|
|
30
30
|
declare const TransactionWitnessSet: typeof Serialization.TransactionWitnessSet;
|
|
31
31
|
type TransactionWitnessSet = Serialization.TransactionWitnessSet;
|
|
32
|
+
declare const AuxilliaryData: typeof Serialization.AuxiliaryData;
|
|
33
|
+
type AuxiliaryData = Serialization.AuxiliaryData;
|
|
34
|
+
declare const TransactionMetadatum: typeof Serialization.TransactionMetadatum;
|
|
35
|
+
type TransactionMetadatum = Serialization.TransactionMetadatum;
|
|
36
|
+
declare const MetadatumMap: typeof Serialization.MetadatumMap;
|
|
37
|
+
type MetadatumMap = Serialization.MetadatumMap;
|
|
38
|
+
declare const MetadatumList: typeof Serialization.MetadatumList;
|
|
39
|
+
type MetadatumList = Serialization.MetadatumList;
|
|
32
40
|
declare const TransactionUnspentOutput: typeof Serialization.TransactionUnspentOutput;
|
|
33
41
|
type TransactionUnspentOutput = Serialization.TransactionUnspentOutput;
|
|
34
42
|
declare const TransactionInput: typeof Serialization.TransactionInput;
|
|
@@ -65,7 +73,6 @@ declare const AssetId: {
|
|
|
65
73
|
getPolicyId(id: Cardano.AssetId): Cardano.PolicyId;
|
|
66
74
|
getAssetName(id: Cardano.AssetId): Cardano.AssetName;
|
|
67
75
|
fromParts(policyId: Cardano.PolicyId, assetName: Cardano.AssetName): Cardano.AssetId;
|
|
68
|
-
getAssetNameAsText(id: Cardano.AssetId): string;
|
|
69
76
|
};
|
|
70
77
|
type AssetId = Cardano.AssetId;
|
|
71
78
|
declare const ScriptHash: {
|
|
@@ -152,6 +159,14 @@ declare const PlutusV2Script: typeof Serialization.PlutusV2Script;
|
|
|
152
159
|
type PlutusV2Script = Serialization.PlutusV2Script;
|
|
153
160
|
declare const PlutusV3Script: typeof Serialization.PlutusV3Script;
|
|
154
161
|
type PlutusV3Script = Serialization.PlutusV3Script;
|
|
162
|
+
declare const PlutusDataKind: typeof Serialization.PlutusDataKind;
|
|
163
|
+
type PlutusDataKind = Serialization.PlutusDataKind;
|
|
164
|
+
declare const PointerAddress: typeof Cardano.PointerAddress;
|
|
165
|
+
type PointerAddress = Cardano.PointerAddress;
|
|
166
|
+
declare const CertIndex: (value: number) => Cardano.CertIndex;
|
|
167
|
+
type CertIndex = Cardano.CertIndex;
|
|
168
|
+
declare const TxIndex: (value: number) => Cardano.TxIndex;
|
|
169
|
+
type TxIndex = Cardano.TxIndex;
|
|
155
170
|
declare const Costmdls: typeof Serialization.Costmdls;
|
|
156
171
|
type Costmdls = Serialization.Costmdls;
|
|
157
172
|
declare const CostModel: typeof Serialization.CostModel;
|
|
@@ -208,12 +223,20 @@ type DRepID = Cardano.DRepID;
|
|
|
208
223
|
declare const DRepID: {
|
|
209
224
|
(value: string): Cardano.DRepID;
|
|
210
225
|
isValid(value: string): boolean;
|
|
211
|
-
|
|
226
|
+
cip105FromCredential(credential: Cardano.Credential): Cardano.DRepID;
|
|
227
|
+
cip129FromCredential(credential: Cardano.Credential): Cardano.DRepID;
|
|
228
|
+
toCredential(drepId: Cardano.DRepID): Cardano.Credential;
|
|
229
|
+
toCip105DRepID(drepId: Cardano.DRepID): Cardano.DRepID;
|
|
230
|
+
toCip129DRepID(drepId: Cardano.DRepID): Cardano.DRepID;
|
|
231
|
+
toAddress(drepId: Cardano.DRepID): Cardano.EnterpriseAddress | undefined;
|
|
212
232
|
};
|
|
213
233
|
type DRep = Serialization.DRep;
|
|
214
234
|
declare const DRep: typeof Serialization.DRep;
|
|
215
235
|
type StakeCredentialStatus = Cardano.StakeCredentialStatus;
|
|
216
236
|
declare const StakeCredentialStatus: typeof Cardano.StakeCredentialStatus;
|
|
237
|
+
type Metadatum = Cardano.Metadatum;
|
|
238
|
+
declare const computeAuxiliaryDataHash: (data: Cardano.AuxiliaryData | undefined) => Crypto.Hash32ByteBase16 | undefined;
|
|
239
|
+
declare const blake2b: typeof Crypto.blake2b;
|
|
217
240
|
|
|
218
241
|
type Signer = {
|
|
219
242
|
address: Address;
|
|
@@ -255,52 +278,32 @@ declare const generateNonce: (label?: string, length?: number) => string;
|
|
|
255
278
|
declare const signData: (data: string, signer: Signer) => DataSignature;
|
|
256
279
|
|
|
257
280
|
declare const resolveDataHash: (data: Data) => string;
|
|
258
|
-
declare const resolveNativeScriptAddress: (script: NativeScript$1, networkId?: number) =>
|
|
281
|
+
declare const resolveNativeScriptAddress: (script: NativeScript$1, networkId?: number) => string;
|
|
259
282
|
declare const resolveNativeScriptHash: (script: NativeScript$1) => string;
|
|
260
283
|
declare const resolvePaymentKeyHash: (bech32: string) => string;
|
|
261
|
-
declare const resolvePlutusScriptAddress: (script: PlutusScript, networkId?: number) =>
|
|
284
|
+
declare const resolvePlutusScriptAddress: (script: PlutusScript, networkId?: number) => string;
|
|
262
285
|
declare const resolvePlutusScriptHash: (bech32: string) => string;
|
|
263
286
|
declare const resolvePoolId: (hash: string) => string;
|
|
264
287
|
declare const resolvePrivateKey: (words: string[]) => string;
|
|
265
288
|
declare const resolveScriptRef: (script: PlutusScript | NativeScript$1) => string;
|
|
266
|
-
declare const resolveRewardAddress: (bech32: string) =>
|
|
289
|
+
declare const resolveRewardAddress: (bech32: string) => string;
|
|
267
290
|
declare const resolveStakeKeyHash: (bech32: string) => string;
|
|
268
|
-
declare const resolveTxHash: (txHex: string) =>
|
|
291
|
+
declare const resolveTxHash: (txHex: string) => string;
|
|
292
|
+
declare const resolveScriptHashDRepId: (scriptHash: string) => string;
|
|
293
|
+
declare const resolveEd25519KeyHash: (bech32: string) => string;
|
|
269
294
|
|
|
270
295
|
declare class CardanoSDKSerializer implements IMeshTxSerializer {
|
|
271
296
|
verbose: boolean;
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
private utxoContext;
|
|
275
|
-
private redeemerContext;
|
|
276
|
-
private scriptsProvided;
|
|
277
|
-
private datumsProvided;
|
|
278
|
-
private usedLanguages;
|
|
279
|
-
constructor(verbose?: boolean);
|
|
297
|
+
protocolParams: Protocol;
|
|
298
|
+
constructor(protocolParams?: Protocol, verbose?: boolean);
|
|
280
299
|
serializeRewardAddress(stakeKeyHash: string, isScriptHash?: boolean, network_id?: 0 | 1): string;
|
|
281
300
|
serializePoolId(hash: string): string;
|
|
282
|
-
serializeAddress(address: DeserializedAddress
|
|
301
|
+
serializeAddress(address: Partial<DeserializedAddress>, networkId?: 0 | 1): string;
|
|
283
302
|
serializeData(data: BuilderData): string;
|
|
284
303
|
deserializer: IDeserializer;
|
|
285
304
|
resolver: IResolver;
|
|
286
|
-
serializeTxBody: (txBuilderBody: MeshTxBuilderBody, protocolParams
|
|
305
|
+
serializeTxBody: (txBuilderBody: MeshTxBuilderBody, protocolParams?: Protocol) => string;
|
|
287
306
|
addSigningKeys: (txHex: string, signingKeys: string[]) => string;
|
|
288
|
-
private addAllInputs;
|
|
289
|
-
private addTxIn;
|
|
290
|
-
private addScriptTxIn;
|
|
291
|
-
private addSimpleScriptTxIn;
|
|
292
|
-
private addAllOutputs;
|
|
293
|
-
private addOutput;
|
|
294
|
-
private addAllReferenceInputs;
|
|
295
|
-
private addReferenceIput;
|
|
296
|
-
private addAllMints;
|
|
297
|
-
private addMint;
|
|
298
|
-
private addAllCollateralInputs;
|
|
299
|
-
private addCollateralInput;
|
|
300
|
-
private setValidityInterval;
|
|
301
|
-
private buildWitnessSet;
|
|
302
|
-
private balanceTx;
|
|
303
|
-
private createDummyTx;
|
|
304
307
|
}
|
|
305
308
|
|
|
306
309
|
type StricaPrivateKey = cjsBip32ed25519.PrivateKey;
|
|
@@ -333,6 +336,7 @@ declare const buildScriptPubkey: (keyHash: Ed25519KeyHash) => NativeScript;
|
|
|
333
336
|
declare const buildDRepID: (dRepKey: Ed25519PublicKeyHex, networkId?: NetworkId, addressType?: AddressType) => DRepID;
|
|
334
337
|
|
|
335
338
|
declare const toAddress: (bech32: string) => Address;
|
|
339
|
+
declare const toCardanoAddress: (address: string) => Address;
|
|
336
340
|
declare const toBaseAddress: (bech32: string) => BaseAddress | undefined;
|
|
337
341
|
declare const toEnterpriseAddress: (bech32: string) => EnterpriseAddress | undefined;
|
|
338
342
|
declare const toRewardAddress: (bech32: string) => RewardAddress | undefined;
|
|
@@ -344,13 +348,14 @@ declare const toScriptRef: (script: PlutusScript | NativeScript$1) => Script;
|
|
|
344
348
|
declare const fromScriptRef: (scriptRef: string) => PlutusScript | NativeScript$1 | undefined;
|
|
345
349
|
declare const fromNativeScript: (script: NativeScript) => NativeScript$1;
|
|
346
350
|
declare const toNativeScript: (script: NativeScript$1) => Serialization.NativeScript;
|
|
347
|
-
declare const toPlutusData: (data: Data) => PlutusData;
|
|
348
351
|
declare const toValue: (assets: Asset[]) => Serialization.Value;
|
|
352
|
+
declare const toDRep: (dRepId: string) => Serialization.DRep;
|
|
353
|
+
declare const getDRepIds: (dRepId: string) => {
|
|
354
|
+
cip105: string;
|
|
355
|
+
cip129: string;
|
|
356
|
+
};
|
|
349
357
|
|
|
350
|
-
declare const deserializeAddress: (address: string) => Address;
|
|
351
358
|
declare const deserializeEd25519KeyHash: (ed25519KeyHash: string) => Crypto.Ed25519KeyHash;
|
|
352
|
-
declare const deserializeDataHash: (dataHash: string) => DatumHash;
|
|
353
|
-
declare const deserializePlutusData: (plutusData: string) => PlutusData;
|
|
354
359
|
declare const deserializePlutusScript: (plutusScript: string, version: LanguageVersion) => PlutusV1Script | PlutusV2Script | PlutusV3Script;
|
|
355
360
|
declare const deserializeNativeScript: (nativeScript: string) => NativeScript;
|
|
356
361
|
declare const deserializeScriptHash: (scriptHash: string) => Crypto.Hash28ByteBase16;
|
|
@@ -367,6 +372,35 @@ declare function negatives(v: Value): Value;
|
|
|
367
372
|
declare function assetTypes(v: Value): number;
|
|
368
373
|
declare function empty(v: Value): boolean;
|
|
369
374
|
|
|
375
|
+
declare const toPlutusData: (data: Data) => PlutusData;
|
|
376
|
+
declare const fromJsonToPlutusData: (data: object) => PlutusData;
|
|
377
|
+
declare const fromBuilderToPlutusData: (data: BuilderData) => PlutusData;
|
|
378
|
+
declare const fromPlutusDataToJson: (data: PlutusData) => object;
|
|
379
|
+
declare const parseDatumCbor: <T = any>(datumCbor: string) => T;
|
|
380
|
+
declare const parseInlineDatum: <T extends {
|
|
381
|
+
inline_datum?: string;
|
|
382
|
+
}, X>(utxo: T) => X;
|
|
383
|
+
declare const deserializeDataHash: (dataHash: string) => DatumHash;
|
|
384
|
+
declare const deserializePlutusData: (plutusData: string) => PlutusData;
|
|
385
|
+
|
|
386
|
+
declare const serialzeAddress: (deserializedAddress: Partial<DeserializedAddress>, networkId?: number) => string;
|
|
387
|
+
declare const addrBech32ToPlutusDataHex: (bech32: string) => string;
|
|
388
|
+
declare const addrBech32ToPlutusDataObj: <T>(bech32: string) => T;
|
|
389
|
+
declare const serializeAddressObj: (plutusDataAddressObject: PubKeyAddress | ScriptAddress, networkId?: number) => string;
|
|
390
|
+
declare const serializePlutusAddressToBech32: (plutusHex: string, networkId?: number) => _cardano_sdk_core_dist_cjs_Cardano.PaymentAddress | _cardano_sdk_core_dist_cjs_Cardano.RewardAccount;
|
|
391
|
+
declare const deserializeBech32Address: (bech32Addr: string) => DeserializedAddress;
|
|
392
|
+
declare const deserializeAddress: (address: string) => Address;
|
|
393
|
+
declare const scriptHashToBech32: (scriptHash: string, stakeCredentialHash?: string, networkId?: number, isScriptStakeCredentialHash?: boolean) => string;
|
|
394
|
+
declare const v2ScriptToBech32: (scriptCbor: string, stakeCredential?: string, networkId?: number, isScriptStakeCredential?: boolean) => string;
|
|
395
|
+
declare const scriptHashToRewardAddress: (hash: string, networkId?: number) => string;
|
|
396
|
+
declare const keyHashToRewardAddress: (hash: string, networkId?: number) => string;
|
|
397
|
+
|
|
398
|
+
declare const bytesToHex: (bytes: Uint8Array) => HexBlob;
|
|
399
|
+
declare const hexToBytes: (hex: HexBlob) => Uint8Array;
|
|
400
|
+
declare const utf8ToBytes: (str: string) => Uint8Array;
|
|
401
|
+
declare const utf8ToHex: (str: string) => HexBlob;
|
|
402
|
+
declare const hexToBech32: (prefix: string, hex: string) => string;
|
|
403
|
+
|
|
370
404
|
/**
|
|
371
405
|
* MIT License
|
|
372
406
|
*
|
|
@@ -390,6 +424,7 @@ declare function empty(v: Value): boolean;
|
|
|
390
424
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
391
425
|
* SOFTWARE.
|
|
392
426
|
*/
|
|
427
|
+
|
|
393
428
|
type OutputEncoding = "SingleCBOR" | "DoubleCBOR" | "PurePlutusScriptBytes";
|
|
394
429
|
/**
|
|
395
430
|
* Normalizes a Plutus script by extracting its pure Plutus bytes and applying a specified encoding.
|
|
@@ -408,5 +443,7 @@ type OutputEncoding = "SingleCBOR" | "DoubleCBOR" | "PurePlutusScriptBytes";
|
|
|
408
443
|
* - The normalization process does not modify the logical content of the script, only its representation.
|
|
409
444
|
*/
|
|
410
445
|
declare const normalizePlutusScript: (plutusScript: string, encoding: OutputEncoding) => string;
|
|
446
|
+
declare const applyEncoding: (plutusScript: Uint8Array, outputEncoding: OutputEncoding) => Uint8Array;
|
|
447
|
+
declare const applyParamsToScript: (rawScript: string, params: object[] | Data[], type?: PlutusDataType) => string;
|
|
411
448
|
|
|
412
|
-
export { Address, AddressType, AssetFingerprint, AssetId, AssetName, BaseAddress, Bip32PrivateKey, Bip32PrivateKeyHex, CardanoSDKSerializer, CborSet, CborWriter, Certificate, CertificateType, ConstrPlutusData, CoseSign1, CostModel, type CostModels, Costmdls, Credential, type CredentialCore, CredentialType, DRep, DRepID, Datum, DatumHash, DatumKind, Ed25519KeyHash, Ed25519KeyHashHex, Ed25519PrivateExtendedKeyHex, Ed25519PrivateNormalKeyHex, Ed25519PublicKey, Ed25519PublicKeyHex, Ed25519Signature, Ed25519SignatureHex, EnterpriseAddress, ExUnits, Hash, Hash28ByteBase16, Hash32ByteBase16, NativeScript, NetworkId, type OutputEncoding, PaymentAddress, PlutusData, PlutusLanguageVersion, PlutusList, PlutusMap, PlutusV1Script, PlutusV2Script, PlutusV3Script, PolicyId, PoolId, Redeemer, RedeemerPurpose, RedeemerTag, Redeemers, RequireAllOf, RequireAnyOf, RequireNOf, RequireSignature, RequireTimeAfter, RequireTimeBefore, RewardAccount, RewardAddress, Script, ScriptHash, ScriptPubkey, type Signatures, type Signer, Slot, StakeCredentialStatus, StakeDelegation, type StakeDelegationCertificate, StakeRegistration, StricaBip32PrivateKey, StricaBip32PrivateKey as StricaBip32PrivateKeyType, StricaBip32PublicKey, StricaBip32PublicKey as StricaBip32PublicKeyType, StricaDecoder, StricaEncoder, StricaPrivateKey, StricaPrivateKey as StricaPrivateKeyType, StricaPublicKey, StricaPublicKey as StricaPublicKeyType, type TokenMap, Transaction, TransactionBody, TransactionId, TransactionInput, type TransactionInputSet, TransactionOutput, TransactionUnspentOutput, type TransactionWitnessPlutusData, TransactionWitnessSet, Value, VkeyWitness, VrfVkBech32, type Witness, addressToBech32, assetTypes, buildBaseAddress, buildBip32PrivateKey, buildDRepID, buildEnterpriseAddress, buildKeys, buildRewardAddress, buildScriptPubkey, checkSignature, deserializeAddress, deserializeDataHash, deserializeEd25519KeyHash, deserializeNativeScript, deserializePlutusData, deserializePlutusScript, deserializeScriptHash, deserializeScriptRef, deserializeTx, deserializeTxHash, deserializeTxUnspentOutput, deserializeValue, empty, fromNativeScript, fromScriptRef, fromTxUnspentOutput, fromValue, generateNonce, getCoseKeyFromPublicKey, getPublicKeyFromCoseKey, mergeValue, negateValue, negatives, normalizePlutusScript, resolveDataHash, resolveNativeScriptAddress, resolveNativeScriptHash, resolvePaymentKeyHash, resolvePlutusScriptAddress, resolvePlutusScriptHash, resolvePoolId, resolvePrivateKey, resolveRewardAddress, resolveScriptRef, resolveStakeKeyHash, resolveTxHash, signData, subValue, toAddress, toBaseAddress, toEnterpriseAddress, toNativeScript, toPlutusData, toRewardAddress, toScriptRef, toTxUnspentOutput, toValue };
|
|
449
|
+
export { Address, AddressType, AssetFingerprint, AssetId, AssetName, type AuxiliaryData, AuxilliaryData, BaseAddress, Bip32PrivateKey, Bip32PrivateKeyHex, CardanoSDKSerializer, CborSet, CborWriter, CertIndex, Certificate, CertificateType, ConstrPlutusData, CoseSign1, CostModel, type CostModels, Costmdls, Credential, type CredentialCore, CredentialType, DRep, DRepID, Datum, DatumHash, DatumKind, Ed25519KeyHash, Ed25519KeyHashHex, Ed25519PrivateExtendedKeyHex, Ed25519PrivateNormalKeyHex, Ed25519PublicKey, Ed25519PublicKeyHex, Ed25519Signature, Ed25519SignatureHex, EnterpriseAddress, ExUnits, Hash, Hash28ByteBase16, Hash32ByteBase16, type Metadatum, MetadatumList, MetadatumMap, NativeScript, NetworkId, type OutputEncoding, PaymentAddress, PlutusData, PlutusDataKind, PlutusLanguageVersion, PlutusList, PlutusMap, PlutusV1Script, PlutusV2Script, PlutusV3Script, PointerAddress, PolicyId, PoolId, Redeemer, RedeemerPurpose, RedeemerTag, Redeemers, RequireAllOf, RequireAnyOf, RequireNOf, RequireSignature, RequireTimeAfter, RequireTimeBefore, RewardAccount, RewardAddress, Script, ScriptHash, ScriptPubkey, type Signatures, type Signer, Slot, StakeCredentialStatus, StakeDelegation, type StakeDelegationCertificate, StakeRegistration, StricaBip32PrivateKey, StricaBip32PrivateKey as StricaBip32PrivateKeyType, StricaBip32PublicKey, StricaBip32PublicKey as StricaBip32PublicKeyType, StricaDecoder, StricaEncoder, StricaPrivateKey, StricaPrivateKey as StricaPrivateKeyType, StricaPublicKey, StricaPublicKey as StricaPublicKeyType, type TokenMap, Transaction, TransactionBody, TransactionId, TransactionInput, type TransactionInputSet, TransactionMetadatum, TransactionOutput, TransactionUnspentOutput, type TransactionWitnessPlutusData, TransactionWitnessSet, TxIndex, Value, VkeyWitness, VrfVkBech32, type Witness, addrBech32ToPlutusDataHex, addrBech32ToPlutusDataObj, addressToBech32, applyEncoding, applyParamsToScript, assetTypes, blake2b, buildBaseAddress, buildBip32PrivateKey, buildDRepID, buildEnterpriseAddress, buildKeys, buildRewardAddress, buildScriptPubkey, bytesToHex, checkSignature, computeAuxiliaryDataHash, deserializeAddress, deserializeBech32Address, deserializeDataHash, deserializeEd25519KeyHash, deserializeNativeScript, deserializePlutusData, deserializePlutusScript, deserializeScriptHash, deserializeScriptRef, deserializeTx, deserializeTxHash, deserializeTxUnspentOutput, deserializeValue, empty, fromBuilderToPlutusData, fromJsonToPlutusData, fromNativeScript, fromPlutusDataToJson, fromScriptRef, fromTxUnspentOutput, fromValue, generateNonce, getCoseKeyFromPublicKey, getDRepIds, getPublicKeyFromCoseKey, hexToBech32, hexToBytes, keyHashToRewardAddress, mergeValue, negateValue, negatives, normalizePlutusScript, parseDatumCbor, parseInlineDatum, resolveDataHash, resolveEd25519KeyHash, resolveNativeScriptAddress, resolveNativeScriptHash, resolvePaymentKeyHash, resolvePlutusScriptAddress, resolvePlutusScriptHash, resolvePoolId, resolvePrivateKey, resolveRewardAddress, resolveScriptHashDRepId, resolveScriptRef, resolveStakeKeyHash, resolveTxHash, scriptHashToBech32, scriptHashToRewardAddress, serializeAddressObj, serializePlutusAddressToBech32, serialzeAddress, signData, subValue, toAddress, toBaseAddress, toCardanoAddress, toDRep, toEnterpriseAddress, toNativeScript, toPlutusData, toRewardAddress, toScriptRef, toTxUnspentOutput, toValue, utf8ToBytes, utf8ToHex, v2ScriptToBech32 };
|