@meshsdk/core-csl 1.5.30 → 1.5.32
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.mts +119 -0
- package/dist/index.d.ts +119 -0
- package/dist/index.js +937 -0
- package/dist/index.mjs +844 -0
- package/package.json +7 -6
- package/dist/cjs/core/adaptor/data.d.ts +0 -3
- package/dist/cjs/core/adaptor/data.js +0 -21
- package/dist/cjs/core/adaptor/index.d.ts +0 -15
- package/dist/cjs/core/adaptor/index.js +0 -25
- package/dist/cjs/core/adaptor/mint.d.ts +0 -5
- package/dist/cjs/core/adaptor/mint.js +0 -42
- package/dist/cjs/core/adaptor/output.d.ts +0 -2
- package/dist/cjs/core/adaptor/output.js +0 -33
- package/dist/cjs/core/adaptor/script.d.ts +0 -3
- package/dist/cjs/core/adaptor/script.js +0 -46
- package/dist/cjs/core/adaptor/txIn.d.ts +0 -5
- package/dist/cjs/core/adaptor/txIn.js +0 -76
- package/dist/cjs/core/adaptor/utxo.d.ts +0 -2
- package/dist/cjs/core/adaptor/utxo.js +0 -20
- package/dist/cjs/core/adaptor/withdrawal.d.ts +0 -2
- package/dist/cjs/core/adaptor/withdrawal.js +0 -30
- package/dist/cjs/core/index.d.ts +0 -1
- package/dist/cjs/core/index.js +0 -17
- package/dist/cjs/core/serializer.d.ts +0 -12
- package/dist/cjs/core/serializer.js +0 -111
- package/dist/cjs/deser/constants.d.ts +0 -13
- package/dist/cjs/deser/constants.js +0 -16
- package/dist/cjs/deser/converter.d.ts +0 -17
- package/dist/cjs/deser/converter.js +0 -203
- package/dist/cjs/deser/csl.d.ts +0 -1
- package/dist/cjs/deser/csl.js +0 -27
- package/dist/cjs/deser/deserializer.d.ts +0 -19
- package/dist/cjs/deser/deserializer.js +0 -40
- package/dist/cjs/deser/index.d.ts +0 -5
- package/dist/cjs/deser/index.js +0 -21
- package/dist/cjs/deser/resolver.d.ts +0 -12
- package/dist/cjs/deser/resolver.js +0 -90
- package/dist/cjs/index.d.ts +0 -3
- package/dist/cjs/index.js +0 -19
- package/dist/cjs/utils/address.d.ts +0 -9
- package/dist/cjs/utils/address.js +0 -61
- package/dist/cjs/utils/aiken.d.ts +0 -17
- package/dist/cjs/utils/aiken.js +0 -52
- package/dist/cjs/utils/credentials.d.ts +0 -1
- package/dist/cjs/utils/credentials.js +0 -10
- package/dist/cjs/utils/datum.d.ts +0 -4
- package/dist/cjs/utils/datum.js +0 -18
- package/dist/cjs/utils/index.d.ts +0 -7
- package/dist/cjs/utils/index.js +0 -23
- package/dist/cjs/utils/scripts.d.ts +0 -1
- package/dist/cjs/utils/scripts.js +0 -6
- package/dist/cjs/utils/staking.d.ts +0 -4
- package/dist/cjs/utils/staking.js +0 -34
- package/dist/cjs/utils/transaction.d.ts +0 -2
- package/dist/cjs/utils/transaction.js +0 -15
- package/dist/mjs/core/adaptor/data.d.ts +0 -3
- package/dist/mjs/core/adaptor/data.js +0 -16
- package/dist/mjs/core/adaptor/index.d.ts +0 -15
- package/dist/mjs/core/adaptor/index.js +0 -21
- package/dist/mjs/core/adaptor/mint.d.ts +0 -5
- package/dist/mjs/core/adaptor/mint.js +0 -35
- package/dist/mjs/core/adaptor/output.d.ts +0 -2
- package/dist/mjs/core/adaptor/output.js +0 -29
- package/dist/mjs/core/adaptor/script.d.ts +0 -3
- package/dist/mjs/core/adaptor/script.js +0 -39
- package/dist/mjs/core/adaptor/txIn.d.ts +0 -5
- package/dist/mjs/core/adaptor/txIn.js +0 -68
- package/dist/mjs/core/adaptor/utxo.d.ts +0 -2
- package/dist/mjs/core/adaptor/utxo.js +0 -16
- package/dist/mjs/core/adaptor/withdrawal.d.ts +0 -2
- package/dist/mjs/core/adaptor/withdrawal.js +0 -26
- package/dist/mjs/core/index.d.ts +0 -1
- package/dist/mjs/core/index.js +0 -1
- package/dist/mjs/core/serializer.d.ts +0 -12
- package/dist/mjs/core/serializer.js +0 -105
- package/dist/mjs/deser/constants.d.ts +0 -13
- package/dist/mjs/deser/constants.js +0 -13
- package/dist/mjs/deser/converter.d.ts +0 -17
- package/dist/mjs/deser/converter.js +0 -184
- package/dist/mjs/deser/csl.d.ts +0 -1
- package/dist/mjs/deser/csl.js +0 -1
- package/dist/mjs/deser/deserializer.d.ts +0 -19
- package/dist/mjs/deser/deserializer.js +0 -20
- package/dist/mjs/deser/index.d.ts +0 -5
- package/dist/mjs/deser/index.js +0 -5
- package/dist/mjs/deser/resolver.d.ts +0 -12
- package/dist/mjs/deser/resolver.js +0 -75
- package/dist/mjs/index.d.ts +0 -3
- package/dist/mjs/index.js +0 -3
- package/dist/mjs/utils/address.d.ts +0 -9
- package/dist/mjs/utils/address.js +0 -50
- package/dist/mjs/utils/aiken.d.ts +0 -17
- package/dist/mjs/utils/aiken.js +0 -47
- package/dist/mjs/utils/credentials.d.ts +0 -1
- package/dist/mjs/utils/credentials.js +0 -6
- package/dist/mjs/utils/datum.d.ts +0 -4
- package/dist/mjs/utils/datum.js +0 -13
- package/dist/mjs/utils/index.d.ts +0 -7
- package/dist/mjs/utils/index.js +0 -7
- package/dist/mjs/utils/scripts.d.ts +0 -1
- package/dist/mjs/utils/scripts.js +0 -2
- package/dist/mjs/utils/staking.d.ts +0 -4
- package/dist/mjs/utils/staking.js +0 -25
- package/dist/mjs/utils/transaction.d.ts +0 -2
- package/dist/mjs/utils/transaction.js +0 -10
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { DeserializedAddress, PubKeyAddress, ScriptAddress, Data, IMeshTxSerializer, Protocol, MeshTxBuilderBody, BuilderData, IDeserializer, IResolver, LanguageVersion, PlutusScript, NativeScript } from '@meshsdk/common';
|
|
2
|
+
import * as csl from '@sidan-lab/sidan-csl-rs-nodejs';
|
|
3
|
+
export { csl };
|
|
4
|
+
|
|
5
|
+
declare const serialzeAddress: (deserializedAddress: Partial<DeserializedAddress>, networkId?: number) => string;
|
|
6
|
+
declare const addrBech32ToHex: (bech32: string) => string;
|
|
7
|
+
declare const addrBech32ToObj: <T>(bech32: string) => T;
|
|
8
|
+
declare const serializeAddressObj: (plutusDataAddressObject: PubKeyAddress | ScriptAddress, networkId?: number) => string;
|
|
9
|
+
declare const serializePlutusAddressToBech32: (plutusHex: string, networkId?: number) => string;
|
|
10
|
+
declare const deserializeBech32Address: (bech32Addr: string) => DeserializedAddress;
|
|
11
|
+
declare const scriptHashToBech32: (scriptHash: string, stakeCredentialHash?: string, networkId?: number, isScriptStakeCredentialHash?: boolean) => string;
|
|
12
|
+
declare const v2ScriptToBech32: (scriptCbor: string, stakeCredential?: string, networkId?: number, isScriptStakeCredential?: boolean) => string;
|
|
13
|
+
|
|
14
|
+
declare const parseInlineDatum: <T extends {
|
|
15
|
+
inline_datum?: string;
|
|
16
|
+
}, X>(utxo: T) => X;
|
|
17
|
+
declare const parseDatumCbor: <T = any>(datumCbor: string) => T;
|
|
18
|
+
|
|
19
|
+
declare const getV2ScriptHash: (script: string) => string;
|
|
20
|
+
|
|
21
|
+
declare const skeyToPubKeyHash: (skeyHex: string) => string;
|
|
22
|
+
|
|
23
|
+
declare const poolIdHexToBech32: (poolIdHash: string) => string;
|
|
24
|
+
declare const poolIdBech32ToHex: (poolIdBech32: string) => string;
|
|
25
|
+
declare const baseAddressToStakeAddress: (baseAddressBech32: string, network?: number) => string;
|
|
26
|
+
declare const rewardAddressToKeyHash: (rewardBech32: string) => string | undefined;
|
|
27
|
+
|
|
28
|
+
declare const calculateTxHash: (txHex: string) => string;
|
|
29
|
+
declare const signTransaction: (txHex: string, signingKeys: string[]) => string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Apply parameters to a given script blueprint.
|
|
33
|
+
*
|
|
34
|
+
* @param rawScript - The raw script CborHex from blueprint.
|
|
35
|
+
* @param params - The parameters to apply, in an array.
|
|
36
|
+
* @param type - The type of the parameters, default to be Mesh's Data type. It could also be in JSON and raw CBOR.
|
|
37
|
+
* @returns The double-cbor encoded script CborHex with the parameters applied.
|
|
38
|
+
*/
|
|
39
|
+
declare const applyParamsToScript: (rawScript: string, params: object[] | Data[], type?: "Mesh" | "JSON" | "CBOR") => string;
|
|
40
|
+
/**
|
|
41
|
+
* Apply Cbor encoding.
|
|
42
|
+
*
|
|
43
|
+
* @param rawScript - The raw script CborHex from blueprint.
|
|
44
|
+
* @returns The double-cbor encoded script CborHex.
|
|
45
|
+
*/
|
|
46
|
+
declare const applyCborEncoding: (rawScript: string) => string;
|
|
47
|
+
|
|
48
|
+
declare class CSLSerializer implements IMeshTxSerializer {
|
|
49
|
+
protocolParams: Protocol;
|
|
50
|
+
meshTxBuilderBody: MeshTxBuilderBody;
|
|
51
|
+
constructor(protocolParams?: Protocol);
|
|
52
|
+
serializeTxBody(txBody: MeshTxBuilderBody, protocolParams?: Protocol): string;
|
|
53
|
+
addSigningKeys(txHex: string, signingKeys: string[]): string;
|
|
54
|
+
serializeData(data: BuilderData): string;
|
|
55
|
+
serializeAddress(address: Partial<DeserializedAddress>, networkId?: number): string;
|
|
56
|
+
deserializer: IDeserializer;
|
|
57
|
+
resolver: IResolver;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare const deserializeAddress: (address: string) => csl.Address;
|
|
61
|
+
declare const deserializeBip32PrivateKey: (bip32PrivateKey: string) => csl.Bip32PrivateKey;
|
|
62
|
+
declare const deserializeDataHash: (dataHash: string) => csl.DataHash;
|
|
63
|
+
declare const deserializeEd25519KeyHash: (ed25519KeyHash: string) => csl.Ed25519KeyHash;
|
|
64
|
+
declare const deserializeEd25519Signature: (ed25519Signature: string) => csl.Ed25519Signature;
|
|
65
|
+
declare const deserializeNativeScript: (nativeScript: string) => csl.NativeScript;
|
|
66
|
+
declare const deserializePublicKey: (publicKey: string) => csl.PublicKey;
|
|
67
|
+
declare const deserializePlutusData: (plutusData: string) => csl.PlutusData;
|
|
68
|
+
declare const deserializePlutusScript: (plutusScript: string, version: LanguageVersion) => csl.PlutusScript;
|
|
69
|
+
declare const deserializeScriptRef: (scriptRef: string) => csl.ScriptRef;
|
|
70
|
+
declare const deserializeScriptHash: (scriptHash: string) => csl.ScriptHash;
|
|
71
|
+
declare const deserializeTx: (tx: string) => csl.Transaction;
|
|
72
|
+
declare const deserializeTxBody: (txBody: string) => csl.TransactionBody;
|
|
73
|
+
declare const deserializeTxHash: (txHash: string) => csl.TransactionHash;
|
|
74
|
+
declare const deserializeTxUnspentOutput: (txUnspentOutput: string) => csl.TransactionUnspentOutput;
|
|
75
|
+
declare const deserializeTxWitnessSet: (txWitnessSet: string) => csl.TransactionWitnessSet;
|
|
76
|
+
declare const deserializeValue: (value: string) => csl.Value;
|
|
77
|
+
|
|
78
|
+
declare const toAddress: (bech32: string) => csl.Address;
|
|
79
|
+
declare const toBaseAddress: (bech32: string) => csl.BaseAddress | undefined;
|
|
80
|
+
declare const toEnterpriseAddress: (bech32: string) => csl.EnterpriseAddress | undefined;
|
|
81
|
+
declare const toRewardAddress: (bech32: string) => csl.RewardAddress | undefined;
|
|
82
|
+
declare const fromBytes: (bytes: Uint8Array) => string;
|
|
83
|
+
declare const toBytes: (hex: string) => Uint8Array;
|
|
84
|
+
declare const fromUTF8: (utf8: string) => string;
|
|
85
|
+
declare const toUTF8: (hex: string) => string;
|
|
86
|
+
declare const fromLovelace: (lovelace: number) => number;
|
|
87
|
+
declare const toLovelace: (ada: number) => number;
|
|
88
|
+
declare const toScriptRef: (script: PlutusScript | NativeScript) => csl.ScriptRef;
|
|
89
|
+
declare const toPlutusData: (data: Data) => csl.PlutusData;
|
|
90
|
+
declare const castRawDataToJsonString: (rawData: object | string) => string;
|
|
91
|
+
declare const castDataToPlutusData: ({ type, content, }: BuilderData) => csl.PlutusData;
|
|
92
|
+
declare const toNativeScript: (script: NativeScript) => csl.NativeScript;
|
|
93
|
+
|
|
94
|
+
declare const LANGUAGE_VERSIONS: {
|
|
95
|
+
V1: csl.Language;
|
|
96
|
+
V2: csl.Language;
|
|
97
|
+
V3: csl.Language;
|
|
98
|
+
};
|
|
99
|
+
declare const REDEEMER_TAGS: {
|
|
100
|
+
CERT: csl.RedeemerTag;
|
|
101
|
+
MINT: csl.RedeemerTag;
|
|
102
|
+
REWARD: csl.RedeemerTag;
|
|
103
|
+
SPEND: csl.RedeemerTag;
|
|
104
|
+
};
|
|
105
|
+
declare const POLICY_ID_LENGTH = 56;
|
|
106
|
+
|
|
107
|
+
declare const resolveStakeKeyHash: (bech32: string) => string;
|
|
108
|
+
declare const resolvePrivateKey: (words: string[]) => string;
|
|
109
|
+
declare const resolveNativeScriptAddress: (script: NativeScript, networkId?: number) => string;
|
|
110
|
+
declare const resolvePlutusScriptAddress: (script: PlutusScript, networkId?: number) => string;
|
|
111
|
+
declare const resolveNativeScriptHash: (script: NativeScript) => string;
|
|
112
|
+
declare const resolveRewardAddress: (bech32: string) => string;
|
|
113
|
+
declare const resolveDataHash: (data: Data) => string;
|
|
114
|
+
declare const resolveNativeScriptHex: (script: NativeScript) => string;
|
|
115
|
+
declare const resolvePoolId: (hash: string) => string;
|
|
116
|
+
declare const resolveScriptRef: (script: PlutusScript | NativeScript) => string;
|
|
117
|
+
declare const resolveEd25519KeyHash: (bech32: string) => string;
|
|
118
|
+
|
|
119
|
+
export { CSLSerializer, LANGUAGE_VERSIONS, POLICY_ID_LENGTH, REDEEMER_TAGS, addrBech32ToHex, addrBech32ToObj, applyCborEncoding, applyParamsToScript, baseAddressToStakeAddress, calculateTxHash, castDataToPlutusData, castRawDataToJsonString, deserializeAddress, deserializeBech32Address, deserializeBip32PrivateKey, deserializeDataHash, deserializeEd25519KeyHash, deserializeEd25519Signature, deserializeNativeScript, deserializePlutusData, deserializePlutusScript, deserializePublicKey, deserializeScriptHash, deserializeScriptRef, deserializeTx, deserializeTxBody, deserializeTxHash, deserializeTxUnspentOutput, deserializeTxWitnessSet, deserializeValue, fromBytes, fromLovelace, fromUTF8, getV2ScriptHash, parseDatumCbor, parseInlineDatum, poolIdBech32ToHex, poolIdHexToBech32, resolveDataHash, resolveEd25519KeyHash, resolveNativeScriptAddress, resolveNativeScriptHash, resolveNativeScriptHex, resolvePlutusScriptAddress, resolvePoolId, resolvePrivateKey, resolveRewardAddress, resolveScriptRef, resolveStakeKeyHash, rewardAddressToKeyHash, scriptHashToBech32, serializeAddressObj, serializePlutusAddressToBech32, serialzeAddress, signTransaction, skeyToPubKeyHash, toAddress, toBaseAddress, toBytes, toEnterpriseAddress, toLovelace, toNativeScript, toPlutusData, toRewardAddress, toScriptRef, toUTF8, v2ScriptToBech32 };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { DeserializedAddress, PubKeyAddress, ScriptAddress, Data, IMeshTxSerializer, Protocol, MeshTxBuilderBody, BuilderData, IDeserializer, IResolver, LanguageVersion, PlutusScript, NativeScript } from '@meshsdk/common';
|
|
2
|
+
import * as csl from '@sidan-lab/sidan-csl-rs-nodejs';
|
|
3
|
+
export { csl };
|
|
4
|
+
|
|
5
|
+
declare const serialzeAddress: (deserializedAddress: Partial<DeserializedAddress>, networkId?: number) => string;
|
|
6
|
+
declare const addrBech32ToHex: (bech32: string) => string;
|
|
7
|
+
declare const addrBech32ToObj: <T>(bech32: string) => T;
|
|
8
|
+
declare const serializeAddressObj: (plutusDataAddressObject: PubKeyAddress | ScriptAddress, networkId?: number) => string;
|
|
9
|
+
declare const serializePlutusAddressToBech32: (plutusHex: string, networkId?: number) => string;
|
|
10
|
+
declare const deserializeBech32Address: (bech32Addr: string) => DeserializedAddress;
|
|
11
|
+
declare const scriptHashToBech32: (scriptHash: string, stakeCredentialHash?: string, networkId?: number, isScriptStakeCredentialHash?: boolean) => string;
|
|
12
|
+
declare const v2ScriptToBech32: (scriptCbor: string, stakeCredential?: string, networkId?: number, isScriptStakeCredential?: boolean) => string;
|
|
13
|
+
|
|
14
|
+
declare const parseInlineDatum: <T extends {
|
|
15
|
+
inline_datum?: string;
|
|
16
|
+
}, X>(utxo: T) => X;
|
|
17
|
+
declare const parseDatumCbor: <T = any>(datumCbor: string) => T;
|
|
18
|
+
|
|
19
|
+
declare const getV2ScriptHash: (script: string) => string;
|
|
20
|
+
|
|
21
|
+
declare const skeyToPubKeyHash: (skeyHex: string) => string;
|
|
22
|
+
|
|
23
|
+
declare const poolIdHexToBech32: (poolIdHash: string) => string;
|
|
24
|
+
declare const poolIdBech32ToHex: (poolIdBech32: string) => string;
|
|
25
|
+
declare const baseAddressToStakeAddress: (baseAddressBech32: string, network?: number) => string;
|
|
26
|
+
declare const rewardAddressToKeyHash: (rewardBech32: string) => string | undefined;
|
|
27
|
+
|
|
28
|
+
declare const calculateTxHash: (txHex: string) => string;
|
|
29
|
+
declare const signTransaction: (txHex: string, signingKeys: string[]) => string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Apply parameters to a given script blueprint.
|
|
33
|
+
*
|
|
34
|
+
* @param rawScript - The raw script CborHex from blueprint.
|
|
35
|
+
* @param params - The parameters to apply, in an array.
|
|
36
|
+
* @param type - The type of the parameters, default to be Mesh's Data type. It could also be in JSON and raw CBOR.
|
|
37
|
+
* @returns The double-cbor encoded script CborHex with the parameters applied.
|
|
38
|
+
*/
|
|
39
|
+
declare const applyParamsToScript: (rawScript: string, params: object[] | Data[], type?: "Mesh" | "JSON" | "CBOR") => string;
|
|
40
|
+
/**
|
|
41
|
+
* Apply Cbor encoding.
|
|
42
|
+
*
|
|
43
|
+
* @param rawScript - The raw script CborHex from blueprint.
|
|
44
|
+
* @returns The double-cbor encoded script CborHex.
|
|
45
|
+
*/
|
|
46
|
+
declare const applyCborEncoding: (rawScript: string) => string;
|
|
47
|
+
|
|
48
|
+
declare class CSLSerializer implements IMeshTxSerializer {
|
|
49
|
+
protocolParams: Protocol;
|
|
50
|
+
meshTxBuilderBody: MeshTxBuilderBody;
|
|
51
|
+
constructor(protocolParams?: Protocol);
|
|
52
|
+
serializeTxBody(txBody: MeshTxBuilderBody, protocolParams?: Protocol): string;
|
|
53
|
+
addSigningKeys(txHex: string, signingKeys: string[]): string;
|
|
54
|
+
serializeData(data: BuilderData): string;
|
|
55
|
+
serializeAddress(address: Partial<DeserializedAddress>, networkId?: number): string;
|
|
56
|
+
deserializer: IDeserializer;
|
|
57
|
+
resolver: IResolver;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare const deserializeAddress: (address: string) => csl.Address;
|
|
61
|
+
declare const deserializeBip32PrivateKey: (bip32PrivateKey: string) => csl.Bip32PrivateKey;
|
|
62
|
+
declare const deserializeDataHash: (dataHash: string) => csl.DataHash;
|
|
63
|
+
declare const deserializeEd25519KeyHash: (ed25519KeyHash: string) => csl.Ed25519KeyHash;
|
|
64
|
+
declare const deserializeEd25519Signature: (ed25519Signature: string) => csl.Ed25519Signature;
|
|
65
|
+
declare const deserializeNativeScript: (nativeScript: string) => csl.NativeScript;
|
|
66
|
+
declare const deserializePublicKey: (publicKey: string) => csl.PublicKey;
|
|
67
|
+
declare const deserializePlutusData: (plutusData: string) => csl.PlutusData;
|
|
68
|
+
declare const deserializePlutusScript: (plutusScript: string, version: LanguageVersion) => csl.PlutusScript;
|
|
69
|
+
declare const deserializeScriptRef: (scriptRef: string) => csl.ScriptRef;
|
|
70
|
+
declare const deserializeScriptHash: (scriptHash: string) => csl.ScriptHash;
|
|
71
|
+
declare const deserializeTx: (tx: string) => csl.Transaction;
|
|
72
|
+
declare const deserializeTxBody: (txBody: string) => csl.TransactionBody;
|
|
73
|
+
declare const deserializeTxHash: (txHash: string) => csl.TransactionHash;
|
|
74
|
+
declare const deserializeTxUnspentOutput: (txUnspentOutput: string) => csl.TransactionUnspentOutput;
|
|
75
|
+
declare const deserializeTxWitnessSet: (txWitnessSet: string) => csl.TransactionWitnessSet;
|
|
76
|
+
declare const deserializeValue: (value: string) => csl.Value;
|
|
77
|
+
|
|
78
|
+
declare const toAddress: (bech32: string) => csl.Address;
|
|
79
|
+
declare const toBaseAddress: (bech32: string) => csl.BaseAddress | undefined;
|
|
80
|
+
declare const toEnterpriseAddress: (bech32: string) => csl.EnterpriseAddress | undefined;
|
|
81
|
+
declare const toRewardAddress: (bech32: string) => csl.RewardAddress | undefined;
|
|
82
|
+
declare const fromBytes: (bytes: Uint8Array) => string;
|
|
83
|
+
declare const toBytes: (hex: string) => Uint8Array;
|
|
84
|
+
declare const fromUTF8: (utf8: string) => string;
|
|
85
|
+
declare const toUTF8: (hex: string) => string;
|
|
86
|
+
declare const fromLovelace: (lovelace: number) => number;
|
|
87
|
+
declare const toLovelace: (ada: number) => number;
|
|
88
|
+
declare const toScriptRef: (script: PlutusScript | NativeScript) => csl.ScriptRef;
|
|
89
|
+
declare const toPlutusData: (data: Data) => csl.PlutusData;
|
|
90
|
+
declare const castRawDataToJsonString: (rawData: object | string) => string;
|
|
91
|
+
declare const castDataToPlutusData: ({ type, content, }: BuilderData) => csl.PlutusData;
|
|
92
|
+
declare const toNativeScript: (script: NativeScript) => csl.NativeScript;
|
|
93
|
+
|
|
94
|
+
declare const LANGUAGE_VERSIONS: {
|
|
95
|
+
V1: csl.Language;
|
|
96
|
+
V2: csl.Language;
|
|
97
|
+
V3: csl.Language;
|
|
98
|
+
};
|
|
99
|
+
declare const REDEEMER_TAGS: {
|
|
100
|
+
CERT: csl.RedeemerTag;
|
|
101
|
+
MINT: csl.RedeemerTag;
|
|
102
|
+
REWARD: csl.RedeemerTag;
|
|
103
|
+
SPEND: csl.RedeemerTag;
|
|
104
|
+
};
|
|
105
|
+
declare const POLICY_ID_LENGTH = 56;
|
|
106
|
+
|
|
107
|
+
declare const resolveStakeKeyHash: (bech32: string) => string;
|
|
108
|
+
declare const resolvePrivateKey: (words: string[]) => string;
|
|
109
|
+
declare const resolveNativeScriptAddress: (script: NativeScript, networkId?: number) => string;
|
|
110
|
+
declare const resolvePlutusScriptAddress: (script: PlutusScript, networkId?: number) => string;
|
|
111
|
+
declare const resolveNativeScriptHash: (script: NativeScript) => string;
|
|
112
|
+
declare const resolveRewardAddress: (bech32: string) => string;
|
|
113
|
+
declare const resolveDataHash: (data: Data) => string;
|
|
114
|
+
declare const resolveNativeScriptHex: (script: NativeScript) => string;
|
|
115
|
+
declare const resolvePoolId: (hash: string) => string;
|
|
116
|
+
declare const resolveScriptRef: (script: PlutusScript | NativeScript) => string;
|
|
117
|
+
declare const resolveEd25519KeyHash: (bech32: string) => string;
|
|
118
|
+
|
|
119
|
+
export { CSLSerializer, LANGUAGE_VERSIONS, POLICY_ID_LENGTH, REDEEMER_TAGS, addrBech32ToHex, addrBech32ToObj, applyCborEncoding, applyParamsToScript, baseAddressToStakeAddress, calculateTxHash, castDataToPlutusData, castRawDataToJsonString, deserializeAddress, deserializeBech32Address, deserializeBip32PrivateKey, deserializeDataHash, deserializeEd25519KeyHash, deserializeEd25519Signature, deserializeNativeScript, deserializePlutusData, deserializePlutusScript, deserializePublicKey, deserializeScriptHash, deserializeScriptRef, deserializeTx, deserializeTxBody, deserializeTxHash, deserializeTxUnspentOutput, deserializeTxWitnessSet, deserializeValue, fromBytes, fromLovelace, fromUTF8, getV2ScriptHash, parseDatumCbor, parseInlineDatum, poolIdBech32ToHex, poolIdHexToBech32, resolveDataHash, resolveEd25519KeyHash, resolveNativeScriptAddress, resolveNativeScriptHash, resolveNativeScriptHex, resolvePlutusScriptAddress, resolvePoolId, resolvePrivateKey, resolveRewardAddress, resolveScriptRef, resolveStakeKeyHash, rewardAddressToKeyHash, scriptHashToBech32, serializeAddressObj, serializePlutusAddressToBech32, serialzeAddress, signTransaction, skeyToPubKeyHash, toAddress, toBaseAddress, toBytes, toEnterpriseAddress, toLovelace, toNativeScript, toPlutusData, toRewardAddress, toScriptRef, toUTF8, v2ScriptToBech32 };
|