@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 CHANGED
@@ -1,27 +1,31 @@
1
1
  <div align="center">
2
2
 
3
- ![Mesh Logo](https://meshjs.dev/logo-mesh/mesh.png)
3
+ <a href="https://meshjs.dev">
4
+ <img src="https://meshjs.dev/logo-mesh/mesh.png" width="200" alt=""/>
5
+ </a>
4
6
 
5
- <hr />
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
- [![Licence](https://img.shields.io/github/license/meshjs/mesh)](https://github.com/meshjs/mesh/blob/master/LICENSE)
9
- [![Build](https://github.com/meshjs/mesh/actions/workflows/build.yml/badge.svg)](https://github.com/meshjs/mesh/actions/workflows/build.yml)
10
- [![Package](https://github.com/meshjs/mesh/actions/workflows/publish.yml/badge.svg)](https://github.com/meshjs/mesh/actions/workflows/publish.yml)
9
+ [![Licence](https://img.shields.io/github/license/meshjs/mesh)](https://github.com/meshjs/mesh/blob/master/LICENSE)
10
+ [![Build](https://github.com/meshjs/mesh/actions/workflows/build.yml/badge.svg)](https://github.com/meshjs/mesh/actions/workflows/build.yml)
11
+ [![Package](https://github.com/meshjs/mesh/actions/workflows/publish.yml/badge.svg)](https://github.com/meshjs/mesh/actions/workflows/publish.yml)
11
12
 
12
- [![Twitter/X](https://img.shields.io/badge/Follow%20us-@MeshJS-blue?logo=x&style=for-the-badge)](https://x.com/meshsdk)
13
- [![NPM](https://img.shields.io/npm/v/%40meshsdk%2Fcore?style=for-the-badge)](https://www.npmjs.com/package/@meshsdk/core)
13
+ [![Twitter/X](https://img.shields.io/badge/Follow%20us-@MeshJS-blue?logo=x&style=for-the-badge)](https://x.com/meshsdk)
14
+ [![NPM](https://img.shields.io/npm/v/%40meshsdk%2Fcore?style=for-the-badge)](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 Turborepo includes the following packages/apps:
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.1",
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.1",
36
- "@meshsdk/core-csl": "1.7.1",
37
- "@meshsdk/core-cst": "1.7.1",
38
- "@meshsdk/provider": "1.7.1",
39
- "@meshsdk/react": "1.7.1",
40
- "@meshsdk/transaction": "1.7.1",
41
- "@meshsdk/wallet": "1.7.1"
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": {