@meshsdk/core 1.7.9 → 1.7.11
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 +21 -17
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
|
|
9
9
|
<h1 style="border-bottom: none"><a href='https://meshjs.dev/'>Mesh</a> TypeScript SDK</h1>
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
[](https://github.com/meshjs/mesh/blob/master/LICENSE)
|
|
12
|
+
[](https://github.com/meshjs/mesh/actions/workflows/build.yml)
|
|
13
|
+
[](https://github.com/meshjs/mesh/actions/workflows/publish.yml)
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
[](https://x.com/meshsdk)
|
|
16
|
+
[](https://www.npmjs.com/package/@meshsdk/core)
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
<strong>All-in-one web3 SDK for Cardano apps</strong>
|
|
19
19
|
|
|
20
20
|
</div>
|
|
21
21
|
|
|
@@ -31,20 +31,24 @@ This repo includes the following packages/apps:
|
|
|
31
31
|
|
|
32
32
|
### Packages
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
| | Description | Docs | Playground |
|
|
35
|
+
| --- | --- | --- | --- |
|
|
36
|
+
| [@meshsdk/common](https://github.com/MeshJS/mesh/tree/main/packages/mesh-common) | Contains constants, types and interfaces used across the SDK and different serialization libraries | [:page_facing_up:](https://docs.meshjs.dev/common) | |
|
|
37
|
+
| [@meshsdk/contract](https://github.com/MeshJS/mesh/tree/main/packages/mesh-contract) | A collection of smart contracts and its transactions | [:page_facing_up:](https://docs.meshjs.dev/contracts) | [:shipit:](https://meshjs.dev/smart-contracts) |
|
|
38
|
+
| [@meshsdk/core](https://github.com/MeshJS/mesh/tree/main/packages/mesh-core) | Exports all the functionalities including wallets, transactions, and providers | | [:shipit:](https://meshjs.dev/) |
|
|
39
|
+
| [@meshsdk/core-csl](https://github.com/MeshJS/mesh/tree/main/packages/mesh-core-csl) | Types and utilities functions between Mesh and cardano-serialization-lib | [:page_facing_up:](https://docs.meshjs.dev/core-csl) | |
|
|
40
|
+
| [@meshsdk/core-cst](https://github.com/MeshJS/mesh/tree/main/packages/mesh-core-cst) | Types and utilities functions between Mesh and cardano-js-sdk | [:page_facing_up:](https://docs.meshjs.dev/core-cst) | |
|
|
41
|
+
| [@meshsdk/provider](https://github.com/MeshJS/mesh/tree/main/packages/mesh-provider) | Blockchain data providers | [:page_facing_up:](https://docs.meshjs.dev/providers) | [:shipit:](https://meshjs.dev/providers) |
|
|
42
|
+
| [@meshsdk/react](https://github.com/MeshJS/mesh/tree/main/packages/mesh-react) | React component library | | [:shipit:](https://meshjs.dev/react) |
|
|
43
|
+
| [@meshsdk/transaction](https://github.com/MeshJS/mesh/tree/main/packages/mesh-transaction) | Transactions to send assets, mint tokens, and interact with smart contracts | [:page_facing_up:](https://docs.meshjs.dev/transactions) | [:shipit:](https://meshjs.dev/apis/transaction) |
|
|
44
|
+
| [@meshsdk/wallet](https://github.com/MeshJS/mesh/tree/main/packages/mesh-wallet) | Wallets to manage assets and interact with the blockchain | [:page_facing_up:](https://docs.meshjs.dev/wallets) | [:shipit:](https://meshjs.dev/apis/wallets) |
|
|
43
45
|
|
|
44
46
|
### Apps
|
|
45
47
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
| | Description | Website |
|
|
49
|
+
| --- | --- | --- |
|
|
50
|
+
| [apps/docs](https://github.com/MeshJS/mesh/tree/main/apps/docs) | Mesh technical docs | [:shipit:](https://docs.meshjs.dev/) |
|
|
51
|
+
| [apps/playground](https://github.com/MeshJS/mesh/tree/main/apps/playground) | Mesh homepage and live demos | [:shipit:](https://meshjs.dev/) |
|
|
48
52
|
|
|
49
53
|
## Getting Started
|
|
50
54
|
|
package/dist/index.d.cts
CHANGED
|
@@ -122,7 +122,9 @@ declare const deserializePoolId: (poolId: string) => string;
|
|
|
122
122
|
/**
|
|
123
123
|
* Serialize Native script into bech32 address
|
|
124
124
|
* @param script The native script object
|
|
125
|
+
* @param stakeCredentialHash The stake credential hash
|
|
125
126
|
* @param networkId 0 (testnet) or 1 (mainnet). Default to be 0 (testnet).
|
|
127
|
+
* @param isScriptStakeCredential Whether the script is a stake credential. Default to be false.
|
|
126
128
|
* @returns Bech32 address
|
|
127
129
|
*/
|
|
128
130
|
declare const serializeNativeScript: (script: NativeScript, stakeCredentialHash?: string, networkId?: number, isScriptStakeCredential?: boolean) => {
|
|
@@ -132,7 +134,9 @@ declare const serializeNativeScript: (script: NativeScript, stakeCredentialHash?
|
|
|
132
134
|
/**
|
|
133
135
|
* Serialize Native script into bech32 address
|
|
134
136
|
* @param script The native script object
|
|
137
|
+
* @param stakeCredentialHash The stake credential hash
|
|
135
138
|
* @param networkId 0 (testnet) or 1 (mainnet). Default to be 0 (testnet).
|
|
139
|
+
* @param isScriptStakeCredential Whether the script is a stake credential. Default to be false.
|
|
136
140
|
* @returns Bech32 address
|
|
137
141
|
*/
|
|
138
142
|
declare const serializePlutusScript: (script: PlutusScript, stakeCredentialHash?: string, networkId?: number, isScriptStakeCredential?: boolean) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -122,7 +122,9 @@ declare const deserializePoolId: (poolId: string) => string;
|
|
|
122
122
|
/**
|
|
123
123
|
* Serialize Native script into bech32 address
|
|
124
124
|
* @param script The native script object
|
|
125
|
+
* @param stakeCredentialHash The stake credential hash
|
|
125
126
|
* @param networkId 0 (testnet) or 1 (mainnet). Default to be 0 (testnet).
|
|
127
|
+
* @param isScriptStakeCredential Whether the script is a stake credential. Default to be false.
|
|
126
128
|
* @returns Bech32 address
|
|
127
129
|
*/
|
|
128
130
|
declare const serializeNativeScript: (script: NativeScript, stakeCredentialHash?: string, networkId?: number, isScriptStakeCredential?: boolean) => {
|
|
@@ -132,7 +134,9 @@ declare const serializeNativeScript: (script: NativeScript, stakeCredentialHash?
|
|
|
132
134
|
/**
|
|
133
135
|
* Serialize Native script into bech32 address
|
|
134
136
|
* @param script The native script object
|
|
137
|
+
* @param stakeCredentialHash The stake credential hash
|
|
135
138
|
* @param networkId 0 (testnet) or 1 (mainnet). Default to be 0 (testnet).
|
|
139
|
+
* @param isScriptStakeCredential Whether the script is a stake credential. Default to be false.
|
|
136
140
|
* @returns Bech32 address
|
|
137
141
|
*/
|
|
138
142
|
declare const serializePlutusScript: (script: PlutusScript, stakeCredentialHash?: string, networkId?: number, isScriptStakeCredential?: boolean) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/core",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
12
13
|
"import": "./dist/index.js",
|
|
13
|
-
"require": "./dist/index.cjs"
|
|
14
|
-
"types": "./dist/index.d.ts"
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"typescript": "^5.3.3"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@meshsdk/common": "1.7.
|
|
37
|
-
"@meshsdk/core-csl": "1.7.
|
|
38
|
-
"@meshsdk/core-cst": "1.7.
|
|
39
|
-
"@meshsdk/provider": "1.7.
|
|
40
|
-
"@meshsdk/react": "1.7.
|
|
41
|
-
"@meshsdk/transaction": "1.7.
|
|
42
|
-
"@meshsdk/wallet": "1.7.
|
|
36
|
+
"@meshsdk/common": "1.7.11",
|
|
37
|
+
"@meshsdk/core-csl": "1.7.11",
|
|
38
|
+
"@meshsdk/core-cst": "1.7.11",
|
|
39
|
+
"@meshsdk/provider": "1.7.11",
|
|
40
|
+
"@meshsdk/react": "1.7.11",
|
|
41
|
+
"@meshsdk/transaction": "1.7.11",
|
|
42
|
+
"@meshsdk/wallet": "1.7.11"
|
|
43
43
|
},
|
|
44
44
|
"prettier": "@meshsdk/configs/prettier",
|
|
45
45
|
"publishConfig": {
|