dedot 0.17.1-next.db98ff20.1 → 0.18.1

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.
Files changed (2) hide show
  1. package/README.md +7 -5
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -20,6 +20,8 @@ Delightful JavaScript/TypeScript client for [Polkadot](https://polkadot.com/) &
20
20
  [ico-downloads]: https://img.shields.io/npm/dw/dedot?style=flat-square
21
21
  [link-telegram]: https://t.me/JoinDedot
22
22
 
23
+ 👉 Join our [Telegram group](https://t.me/JoinDedot) to receive the latest updates and support!! 👈
24
+
23
25
  ---
24
26
 
25
27
  [Dedot](https://dedot.dev) is the next-generation JavaScript client for Polkadot and Polkadot SDK-based blockchains. Designed to elevate the dapp development experience, Dedot is built & optimized to be lightweight and tree-shakable, offering precise Types & APIs suggestions for individual Polkadot SDK-based blockchain network and ink! Smart Contracts. Dedot also helps dapps efficiently connect to multiple chains simultaneously as we head toward a seamless multi-chain future.
@@ -37,13 +39,13 @@ Delightful JavaScript/TypeScript client for [Polkadot](https://polkadot.com/) &
37
39
  - ✅ Build on top of both the [new](https://paritytech.github.io/json-rpc-interface-spec/introduction.html) & [legacy](https://github.com/w3f/PSPs/blob/master/PSPs/drafts/psp-6.md) (
38
40
  deprecated soon) JSON-RPC APIs
39
41
  - ✅ Support [light clients](https://docs.dedot.dev/getting-started/connect-to-network#initializing-dedotclient-and-interact-with-polkadot-network) (e.g: [smoldot](https://www.npmjs.com/package/smoldot))
40
- - ✅ [Typed Contract APIs](https://docs.dedot.dev/ink-smart-contracts/intro)
42
+ - ✅ [Unified Typesafe Contract APIs](https://docs.dedot.dev/smart-contracts/intro) for ink! v5 (WASM, pallet-contracts), ink! v6 and solidity contracts (PVM, pallet-revive)
41
43
  - ✅ Fully-typed low-level [JSON-RPC client](https://docs.dedot.dev/clients-and-providers/clients#jsonrpcclient)
42
44
 
43
45
  > [!TIP]
44
- > Are you developing an [ink!](https://use.ink/) dApp?
46
+ > Are you building dapps on Polkadot?
45
47
  >
46
- > Check out [Typink](https://github.com/dedotdev/typink) (https://typink.dev), a comprehensive toolkit for ink! dApp development, built on Dedot!
48
+ > Check out [Typink](https://github.com/dedotdev/typink) (https://typink.dev), a comprehensive toolkit for dapps development, powered by Dedot!
47
49
 
48
50
  ### Documentation
49
51
  Check out Dedot documentation on the website: https://dedot.dev
@@ -61,7 +63,7 @@ npm i -D @dedot/chaintypes
61
63
  ```
62
64
  2. Connect to the network
63
65
  ```typescript
64
- import { DedotClient, WsProvider } from 'dedot';
66
+ import { DedotClient, WsProvider, PinnedBlock } from 'dedot';
65
67
  import type { PolkadotApi } from '@dedot/chaintypes';
66
68
 
67
69
  const provider = new WsProvider('wss://rpc.polkadot.io');
@@ -89,7 +91,7 @@ const pendingRewards = await client.call.nominationPoolsApi.pendingRewards(<addr
89
91
  console.log('Pending rewards:', pendingRewards);
90
92
 
91
93
  // Disconnect
92
- // await client.disconnect();
94
+ await client.disconnect();
93
95
  ```
94
96
 
95
97
  ### Resources & announcements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dedot",
3
- "version": "0.17.1-next.db98ff20.1+db98ff20",
3
+ "version": "0.18.1",
4
4
  "description": "A delightful JavaScript/TypeScript client for Polkadot & Substrate",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -21,17 +21,17 @@
21
21
  "clean": "rm -rf ./dist && rm -rf ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo"
22
22
  },
23
23
  "dependencies": {
24
- "@dedot/api": "0.17.1-next.db98ff20.1+db98ff20",
25
- "@dedot/cli": "0.17.1-next.db98ff20.1+db98ff20",
26
- "@dedot/codecs": "0.17.1-next.db98ff20.1+db98ff20",
27
- "@dedot/contracts": "0.17.1-next.db98ff20.1+db98ff20",
28
- "@dedot/merkleized-metadata": "0.17.1-next.db98ff20.1+db98ff20",
29
- "@dedot/providers": "0.17.1-next.db98ff20.1+db98ff20",
30
- "@dedot/runtime-specs": "0.17.1-next.db98ff20.1+db98ff20",
31
- "@dedot/shape": "0.17.1-next.db98ff20.1+db98ff20",
32
- "@dedot/smoldot": "0.17.1-next.db98ff20.1+db98ff20",
33
- "@dedot/types": "0.17.1-next.db98ff20.1+db98ff20",
34
- "@dedot/utils": "0.17.1-next.db98ff20.1+db98ff20",
24
+ "@dedot/api": "0.18.1",
25
+ "@dedot/cli": "0.18.1",
26
+ "@dedot/codecs": "0.18.1",
27
+ "@dedot/contracts": "0.18.1",
28
+ "@dedot/merkleized-metadata": "0.18.1",
29
+ "@dedot/providers": "0.18.1",
30
+ "@dedot/runtime-specs": "0.18.1",
31
+ "@dedot/shape": "0.18.1",
32
+ "@dedot/smoldot": "0.18.1",
33
+ "@dedot/types": "0.18.1",
34
+ "@dedot/utils": "0.18.1",
35
35
  "smoldot": "^2.0.39"
36
36
  },
37
37
  "exports": {
@@ -122,7 +122,7 @@
122
122
  "node": ">=18"
123
123
  },
124
124
  "license": "Apache-2.0",
125
- "gitHead": "db98ff20684d2a74b5e5402cabf43ef601d05d31",
125
+ "gitHead": "3ffda568232b50a3993d13c6ccac2894b0759dd7",
126
126
  "module": "./index.js",
127
127
  "types": "./index.d.ts"
128
128
  }