@meshsdk/core 1.9.0-beta.90 → 1.9.0-beta.92
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.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/package.json +8 -7
package/dist/index.d.cts
CHANGED
|
@@ -41,20 +41,20 @@ declare const resolvePrivateKey: (words: string[]) => string;
|
|
|
41
41
|
* @param txHex The transaction hex
|
|
42
42
|
* @returns The transaction hash
|
|
43
43
|
*/
|
|
44
|
-
declare const resolveTxHash: (txHex: string) =>
|
|
44
|
+
declare const resolveTxHash: (txHex: string) => any;
|
|
45
45
|
/**
|
|
46
46
|
* Hash Cardano data
|
|
47
47
|
* @param rawData Cardano data in Mesh, JSON or CBOR type
|
|
48
48
|
* @param type The data type, either Mesh, JSON or CBOR
|
|
49
49
|
* @returns Cardano data hash
|
|
50
50
|
*/
|
|
51
|
-
declare const resolveDataHash: (rawData: BuilderData["content"], type?: PlutusDataType) =>
|
|
51
|
+
declare const resolveDataHash: (rawData: BuilderData["content"], type?: PlutusDataType) => any;
|
|
52
52
|
/**
|
|
53
53
|
* Hash Cardano native script
|
|
54
54
|
* @param script Cardano native script in Mesh NativeScript type
|
|
55
55
|
* @returns Cardano native script hash
|
|
56
56
|
*/
|
|
57
|
-
declare const resolveNativeScriptHash: (script: NativeScript) =>
|
|
57
|
+
declare const resolveNativeScriptHash: (script: NativeScript) => any;
|
|
58
58
|
/**
|
|
59
59
|
* Converting script cbor hex to script hash
|
|
60
60
|
* @param scriptCode The script cbor hex
|
|
@@ -67,31 +67,31 @@ declare const resolveScriptHash: (scriptCode: string, version?: LanguageVersion)
|
|
|
67
67
|
* @param bech32 The bech32 address
|
|
68
68
|
* @returns The Ed25519 key hash
|
|
69
69
|
*/
|
|
70
|
-
declare const resolveRewardAddress: (bech32: string) =>
|
|
70
|
+
declare const resolveRewardAddress: (bech32: string) => any;
|
|
71
71
|
/**
|
|
72
72
|
* Resolve the stake key hash from bech32 address
|
|
73
73
|
* @param bech32 The bech32 address, either in addrxxx or stakexxx
|
|
74
74
|
* @returns The stake key hash
|
|
75
75
|
*/
|
|
76
|
-
declare const resolveStakeKeyHash: (bech32: string) =>
|
|
76
|
+
declare const resolveStakeKeyHash: (bech32: string) => any;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @param scriptHash
|
|
80
80
|
* @returns
|
|
81
81
|
*/
|
|
82
|
-
declare const resolveScriptHashDRepId: (scriptHash: string) =>
|
|
82
|
+
declare const resolveScriptHashDRepId: (scriptHash: string) => any;
|
|
83
83
|
/**
|
|
84
84
|
* Deprecated - use `serializePlutusScript` instead
|
|
85
85
|
*/
|
|
86
|
-
declare const resolvePlutusScriptAddress: (script: PlutusScript, networkId?: number) =>
|
|
86
|
+
declare const resolvePlutusScriptAddress: (script: PlutusScript, networkId?: number) => any;
|
|
87
87
|
/**
|
|
88
88
|
* Deprecated - use `serializeNativeScript` instead
|
|
89
89
|
*/
|
|
90
|
-
declare const resolveNativeScriptAddress: (script: NativeScript, networkId?: number) =>
|
|
90
|
+
declare const resolveNativeScriptAddress: (script: NativeScript, networkId?: number) => any;
|
|
91
91
|
/**
|
|
92
92
|
* Deprecated - use `serializeNativeScript` instead
|
|
93
93
|
*/
|
|
94
|
-
declare const resolveNativeScriptHex: (script: NativeScript) =>
|
|
94
|
+
declare const resolveNativeScriptHex: (script: NativeScript) => any;
|
|
95
95
|
/**
|
|
96
96
|
* Deprecated - use `deserializeAddress` instead
|
|
97
97
|
*/
|
|
@@ -105,11 +105,11 @@ declare const resolvePlutusScriptHash: (bech32: string) => string;
|
|
|
105
105
|
*
|
|
106
106
|
* If you need this, please import @meshsdk/core-csl or @meshsdk/core-cst instead
|
|
107
107
|
*/
|
|
108
|
-
declare const resolveScriptRef: (script: NativeScript | PlutusScript) =>
|
|
108
|
+
declare const resolveScriptRef: (script: NativeScript | PlutusScript) => any;
|
|
109
109
|
/**
|
|
110
110
|
* Deprecated - use `serializePoolId` instead
|
|
111
111
|
*/
|
|
112
|
-
declare const resolvePoolId: (hash: string) =>
|
|
112
|
+
declare const resolvePoolId: (hash: string) => any;
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* Deserialize bech32 address into payment and staking parts, with visibility of whether they are script or key hash
|
|
@@ -155,7 +155,7 @@ declare const serializeNativeScript: (script: NativeScript, stakeCredentialHash?
|
|
|
155
155
|
* @returns Bech32 address
|
|
156
156
|
*/
|
|
157
157
|
declare const serializePlutusScript: (script: PlutusScript, stakeCredentialHash?: string, networkId?: number, isScriptStakeCredential?: boolean) => {
|
|
158
|
-
address:
|
|
158
|
+
address: any;
|
|
159
159
|
};
|
|
160
160
|
/**
|
|
161
161
|
* Serialize address in Cardano data JSON format into bech32 address
|
|
@@ -169,7 +169,7 @@ declare const serializeAddressObj: (address: PubKeyAddress | ScriptAddress, netw
|
|
|
169
169
|
* @param hash The pool hash
|
|
170
170
|
* @returns The pool id
|
|
171
171
|
*/
|
|
172
|
-
declare const serializePoolId: (hash: string) =>
|
|
172
|
+
declare const serializePoolId: (hash: string) => any;
|
|
173
173
|
/**
|
|
174
174
|
* Serialize a script hash or key hash into bech32 reward address
|
|
175
175
|
* @param hash The script hash or key hash
|
|
@@ -177,7 +177,7 @@ declare const serializePoolId: (hash: string) => string;
|
|
|
177
177
|
* @param networkId 0 (testnet) or 1 (mainnet). Default to be 0 (testnet).
|
|
178
178
|
* @returns Bech32 reward address
|
|
179
179
|
*/
|
|
180
|
-
declare const serializeRewardAddress: (hash: string, isScriptHash?: boolean, networkId?: 0 | 1) =>
|
|
180
|
+
declare const serializeRewardAddress: (hash: string, isScriptHash?: boolean, networkId?: 0 | 1) => any;
|
|
181
181
|
/**
|
|
182
182
|
* Serialize the data from Mesh or JSON format into CBOR hex
|
|
183
183
|
* @param data The data in Mesh or JSON format
|
package/dist/index.d.ts
CHANGED
|
@@ -41,20 +41,20 @@ declare const resolvePrivateKey: (words: string[]) => string;
|
|
|
41
41
|
* @param txHex The transaction hex
|
|
42
42
|
* @returns The transaction hash
|
|
43
43
|
*/
|
|
44
|
-
declare const resolveTxHash: (txHex: string) =>
|
|
44
|
+
declare const resolveTxHash: (txHex: string) => any;
|
|
45
45
|
/**
|
|
46
46
|
* Hash Cardano data
|
|
47
47
|
* @param rawData Cardano data in Mesh, JSON or CBOR type
|
|
48
48
|
* @param type The data type, either Mesh, JSON or CBOR
|
|
49
49
|
* @returns Cardano data hash
|
|
50
50
|
*/
|
|
51
|
-
declare const resolveDataHash: (rawData: BuilderData["content"], type?: PlutusDataType) =>
|
|
51
|
+
declare const resolveDataHash: (rawData: BuilderData["content"], type?: PlutusDataType) => any;
|
|
52
52
|
/**
|
|
53
53
|
* Hash Cardano native script
|
|
54
54
|
* @param script Cardano native script in Mesh NativeScript type
|
|
55
55
|
* @returns Cardano native script hash
|
|
56
56
|
*/
|
|
57
|
-
declare const resolveNativeScriptHash: (script: NativeScript) =>
|
|
57
|
+
declare const resolveNativeScriptHash: (script: NativeScript) => any;
|
|
58
58
|
/**
|
|
59
59
|
* Converting script cbor hex to script hash
|
|
60
60
|
* @param scriptCode The script cbor hex
|
|
@@ -67,31 +67,31 @@ declare const resolveScriptHash: (scriptCode: string, version?: LanguageVersion)
|
|
|
67
67
|
* @param bech32 The bech32 address
|
|
68
68
|
* @returns The Ed25519 key hash
|
|
69
69
|
*/
|
|
70
|
-
declare const resolveRewardAddress: (bech32: string) =>
|
|
70
|
+
declare const resolveRewardAddress: (bech32: string) => any;
|
|
71
71
|
/**
|
|
72
72
|
* Resolve the stake key hash from bech32 address
|
|
73
73
|
* @param bech32 The bech32 address, either in addrxxx or stakexxx
|
|
74
74
|
* @returns The stake key hash
|
|
75
75
|
*/
|
|
76
|
-
declare const resolveStakeKeyHash: (bech32: string) =>
|
|
76
|
+
declare const resolveStakeKeyHash: (bech32: string) => any;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @param scriptHash
|
|
80
80
|
* @returns
|
|
81
81
|
*/
|
|
82
|
-
declare const resolveScriptHashDRepId: (scriptHash: string) =>
|
|
82
|
+
declare const resolveScriptHashDRepId: (scriptHash: string) => any;
|
|
83
83
|
/**
|
|
84
84
|
* Deprecated - use `serializePlutusScript` instead
|
|
85
85
|
*/
|
|
86
|
-
declare const resolvePlutusScriptAddress: (script: PlutusScript, networkId?: number) =>
|
|
86
|
+
declare const resolvePlutusScriptAddress: (script: PlutusScript, networkId?: number) => any;
|
|
87
87
|
/**
|
|
88
88
|
* Deprecated - use `serializeNativeScript` instead
|
|
89
89
|
*/
|
|
90
|
-
declare const resolveNativeScriptAddress: (script: NativeScript, networkId?: number) =>
|
|
90
|
+
declare const resolveNativeScriptAddress: (script: NativeScript, networkId?: number) => any;
|
|
91
91
|
/**
|
|
92
92
|
* Deprecated - use `serializeNativeScript` instead
|
|
93
93
|
*/
|
|
94
|
-
declare const resolveNativeScriptHex: (script: NativeScript) =>
|
|
94
|
+
declare const resolveNativeScriptHex: (script: NativeScript) => any;
|
|
95
95
|
/**
|
|
96
96
|
* Deprecated - use `deserializeAddress` instead
|
|
97
97
|
*/
|
|
@@ -105,11 +105,11 @@ declare const resolvePlutusScriptHash: (bech32: string) => string;
|
|
|
105
105
|
*
|
|
106
106
|
* If you need this, please import @meshsdk/core-csl or @meshsdk/core-cst instead
|
|
107
107
|
*/
|
|
108
|
-
declare const resolveScriptRef: (script: NativeScript | PlutusScript) =>
|
|
108
|
+
declare const resolveScriptRef: (script: NativeScript | PlutusScript) => any;
|
|
109
109
|
/**
|
|
110
110
|
* Deprecated - use `serializePoolId` instead
|
|
111
111
|
*/
|
|
112
|
-
declare const resolvePoolId: (hash: string) =>
|
|
112
|
+
declare const resolvePoolId: (hash: string) => any;
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* Deserialize bech32 address into payment and staking parts, with visibility of whether they are script or key hash
|
|
@@ -155,7 +155,7 @@ declare const serializeNativeScript: (script: NativeScript, stakeCredentialHash?
|
|
|
155
155
|
* @returns Bech32 address
|
|
156
156
|
*/
|
|
157
157
|
declare const serializePlutusScript: (script: PlutusScript, stakeCredentialHash?: string, networkId?: number, isScriptStakeCredential?: boolean) => {
|
|
158
|
-
address:
|
|
158
|
+
address: any;
|
|
159
159
|
};
|
|
160
160
|
/**
|
|
161
161
|
* Serialize address in Cardano data JSON format into bech32 address
|
|
@@ -169,7 +169,7 @@ declare const serializeAddressObj: (address: PubKeyAddress | ScriptAddress, netw
|
|
|
169
169
|
* @param hash The pool hash
|
|
170
170
|
* @returns The pool id
|
|
171
171
|
*/
|
|
172
|
-
declare const serializePoolId: (hash: string) =>
|
|
172
|
+
declare const serializePoolId: (hash: string) => any;
|
|
173
173
|
/**
|
|
174
174
|
* Serialize a script hash or key hash into bech32 reward address
|
|
175
175
|
* @param hash The script hash or key hash
|
|
@@ -177,7 +177,7 @@ declare const serializePoolId: (hash: string) => string;
|
|
|
177
177
|
* @param networkId 0 (testnet) or 1 (mainnet). Default to be 0 (testnet).
|
|
178
178
|
* @returns Bech32 reward address
|
|
179
179
|
*/
|
|
180
|
-
declare const serializeRewardAddress: (hash: string, isScriptHash?: boolean, networkId?: 0 | 1) =>
|
|
180
|
+
declare const serializeRewardAddress: (hash: string, isScriptHash?: boolean, networkId?: 0 | 1) => any;
|
|
181
181
|
/**
|
|
182
182
|
* Serialize the data from Mesh or JSON format into CBOR hex
|
|
183
183
|
* @param data The data in Mesh or JSON format
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/core",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.92",
|
|
4
4
|
"description": "Mesh SDK Core - https://meshjs.dev/",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
@@ -33,12 +33,13 @@
|
|
|
33
33
|
"typescript": "^5.3.3"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@meshsdk/common": "1.9.0-beta.
|
|
37
|
-
"@meshsdk/core-cst": "1.9.0-beta.
|
|
38
|
-
"@meshsdk/provider": "1.9.0-beta.
|
|
39
|
-
"@meshsdk/react": "1.9.0-beta.
|
|
40
|
-
"@meshsdk/transaction": "1.9.0-beta.
|
|
41
|
-
"@meshsdk/wallet": "1.9.0-beta.
|
|
36
|
+
"@meshsdk/common": "1.9.0-beta.92",
|
|
37
|
+
"@meshsdk/core-cst": "1.9.0-beta.92",
|
|
38
|
+
"@meshsdk/provider": "1.9.0-beta.92",
|
|
39
|
+
"@meshsdk/react": "1.9.0-beta.92",
|
|
40
|
+
"@meshsdk/transaction": "1.9.0-beta.92",
|
|
41
|
+
"@meshsdk/wallet": "1.9.0-beta.92",
|
|
42
|
+
"libsodium-wrappers-sumo": "0.7.15"
|
|
42
43
|
},
|
|
43
44
|
"prettier": "@meshsdk/configs/prettier",
|
|
44
45
|
"publishConfig": {
|