@meshsdk/core 1.7.1 → 1.7.3
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/README.md +14 -10
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<a href="https://meshjs.dev">
|
|
4
|
+
<img src="https://meshjs.dev/logo-mesh/mesh.png" width="200" alt=""/>
|
|
5
|
+
</a>
|
|
4
6
|
|
|
5
|
-
<
|
|
6
|
-
<h2 align="center" style="border-bottom: none">Mesh SDK</h2>
|
|
7
|
+
<h1 style="border-bottom: none"><a href='https://meshjs.dev/'>Mesh</a> TypeScript SDK</h1>
|
|
7
8
|
|
|
8
|
-
[](https://github.com/meshjs/mesh/blob/master/LICENSE)
|
|
9
|
-
[](https://github.com/meshjs/mesh/actions/workflows/build.yml)
|
|
10
|
-
[](https://github.com/meshjs/mesh/actions/workflows/publish.yml)
|
|
9
|
+
[](https://github.com/meshjs/mesh/blob/master/LICENSE)
|
|
10
|
+
[](https://github.com/meshjs/mesh/actions/workflows/build.yml)
|
|
11
|
+
[](https://github.com/meshjs/mesh/actions/workflows/publish.yml)
|
|
11
12
|
|
|
12
|
-
[](https://x.com/meshsdk)
|
|
13
|
-
[](https://www.npmjs.com/package/@meshsdk/core)
|
|
13
|
+
[](https://x.com/meshsdk)
|
|
14
|
+
[](https://www.npmjs.com/package/@meshsdk/core)
|
|
15
|
+
|
|
16
|
+
<strong>All-in-one web3 SDK for Cardano apps</strong>
|
|
14
17
|
|
|
15
|
-
<hr/>
|
|
16
18
|
</div>
|
|
17
19
|
|
|
20
|
+
<hr />
|
|
21
|
+
|
|
18
22
|
Mesh is an open-source library designed to make building dApps accessible. Whether you're a beginner developer, startup, web3 market leader, or a large enterprise, Mesh makes web3 development easy with reliable, scalable, and well-engineered APIs & developer tools.
|
|
19
23
|
|
|
20
24
|
Explore the features on [Mesh Playground](https://meshjs.dev/).
|
|
21
25
|
|
|
22
26
|
## What's inside?
|
|
23
27
|
|
|
24
|
-
This
|
|
28
|
+
This repo includes the following packages/apps:
|
|
25
29
|
|
|
26
30
|
### Packages
|
|
27
31
|
|
package/dist/index.cjs
CHANGED
|
@@ -114,8 +114,8 @@ var serializePlutusScript = (script, stakeCredentialHash, networkId = 0, isScrip
|
|
|
114
114
|
);
|
|
115
115
|
return { address };
|
|
116
116
|
};
|
|
117
|
-
var serializeAddressObj = (address) => {
|
|
118
|
-
return core.serializeAddressObj(address);
|
|
117
|
+
var serializeAddressObj = (address, networkId = 0) => {
|
|
118
|
+
return core.serializeAddressObj(address, networkId);
|
|
119
119
|
};
|
|
120
120
|
var serializePoolId = (hash) => core.serializePoolId(hash);
|
|
121
121
|
var serializeRewardAddress = (hash, isScriptHash = false, networkId = 0) => {
|
package/dist/index.d.cts
CHANGED
|
@@ -129,9 +129,10 @@ declare const serializePlutusScript: (script: PlutusScript, stakeCredentialHash?
|
|
|
129
129
|
/**
|
|
130
130
|
* Serialize address in Cardano data JSON format into bech32 address
|
|
131
131
|
* @param address The Cardano address in data JSON format
|
|
132
|
+
* @param networkId 0 (testnet) or 1 (mainnet). Default to be 0 (testnet).
|
|
132
133
|
* @returns Bech32 address
|
|
133
134
|
*/
|
|
134
|
-
declare const serializeAddressObj: (address: PubKeyAddress | ScriptAddress) => string;
|
|
135
|
+
declare const serializeAddressObj: (address: PubKeyAddress | ScriptAddress, networkId?: number) => string;
|
|
135
136
|
/**
|
|
136
137
|
* Resolve the pool id from hash
|
|
137
138
|
* @param hash The pool hash
|
package/dist/index.d.ts
CHANGED
|
@@ -129,9 +129,10 @@ declare const serializePlutusScript: (script: PlutusScript, stakeCredentialHash?
|
|
|
129
129
|
/**
|
|
130
130
|
* Serialize address in Cardano data JSON format into bech32 address
|
|
131
131
|
* @param address The Cardano address in data JSON format
|
|
132
|
+
* @param networkId 0 (testnet) or 1 (mainnet). Default to be 0 (testnet).
|
|
132
133
|
* @returns Bech32 address
|
|
133
134
|
*/
|
|
134
|
-
declare const serializeAddressObj: (address: PubKeyAddress | ScriptAddress) => string;
|
|
135
|
+
declare const serializeAddressObj: (address: PubKeyAddress | ScriptAddress, networkId?: number) => string;
|
|
135
136
|
/**
|
|
136
137
|
* Resolve the pool id from hash
|
|
137
138
|
* @param hash The pool hash
|
package/dist/index.js
CHANGED
|
@@ -52,8 +52,8 @@ var serializePlutusScript = (script, stakeCredentialHash, networkId = 0, isScrip
|
|
|
52
52
|
);
|
|
53
53
|
return { address };
|
|
54
54
|
};
|
|
55
|
-
var serializeAddressObj = (address) => {
|
|
56
|
-
return core.serializeAddressObj(address);
|
|
55
|
+
var serializeAddressObj = (address, networkId = 0) => {
|
|
56
|
+
return core.serializeAddressObj(address, networkId);
|
|
57
57
|
};
|
|
58
58
|
var serializePoolId = (hash) => core.serializePoolId(hash);
|
|
59
59
|
var serializeRewardAddress = (hash, isScriptHash = false, networkId = 0) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/core",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"typescript": "^5.3.3"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@meshsdk/common": "1.7.
|
|
36
|
-
"@meshsdk/core-csl": "1.7.
|
|
37
|
-
"@meshsdk/core-cst": "1.7.
|
|
38
|
-
"@meshsdk/provider": "1.7.
|
|
39
|
-
"@meshsdk/react": "1.7.
|
|
40
|
-
"@meshsdk/transaction": "1.7.
|
|
41
|
-
"@meshsdk/wallet": "1.7.
|
|
35
|
+
"@meshsdk/common": "1.7.3",
|
|
36
|
+
"@meshsdk/core-csl": "1.7.3",
|
|
37
|
+
"@meshsdk/core-cst": "1.7.3",
|
|
38
|
+
"@meshsdk/provider": "1.7.3",
|
|
39
|
+
"@meshsdk/react": "1.7.3",
|
|
40
|
+
"@meshsdk/transaction": "1.7.3",
|
|
41
|
+
"@meshsdk/wallet": "1.7.3"
|
|
42
42
|
},
|
|
43
43
|
"prettier": "@meshsdk/configs/prettier",
|
|
44
44
|
"publishConfig": {
|