dedot 0.17.1-next.db98ff20.1 → 0.18.0

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 +5 -5
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -37,13 +37,13 @@ Delightful JavaScript/TypeScript client for [Polkadot](https://polkadot.com/) &
37
37
  - ✅ 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
38
  deprecated soon) JSON-RPC APIs
39
39
  - ✅ 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)
40
+ - ✅ [Unified Typesafe Contract APIs](https://docs.dedot.dev/ink-smart-contracts/intro) for ink! v5 (WASM, pallet-contracts), ink! v6 and solidity contracts (PVM, pallet-revive)
41
41
  - ✅ Fully-typed low-level [JSON-RPC client](https://docs.dedot.dev/clients-and-providers/clients#jsonrpcclient)
42
42
 
43
43
  > [!TIP]
44
- > Are you developing an [ink!](https://use.ink/) dApp?
44
+ > Are you building dapps on Polkadot?
45
45
  >
46
- > Check out [Typink](https://github.com/dedotdev/typink) (https://typink.dev), a comprehensive toolkit for ink! dApp development, built on Dedot!
46
+ > Check out [Typink](https://github.com/dedotdev/typink) (https://typink.dev), a comprehensive toolkit for dapps development, powered by Dedot!
47
47
 
48
48
  ### Documentation
49
49
  Check out Dedot documentation on the website: https://dedot.dev
@@ -61,7 +61,7 @@ npm i -D @dedot/chaintypes
61
61
  ```
62
62
  2. Connect to the network
63
63
  ```typescript
64
- import { DedotClient, WsProvider } from 'dedot';
64
+ import { DedotClient, WsProvider, PinnedBlock } from 'dedot';
65
65
  import type { PolkadotApi } from '@dedot/chaintypes';
66
66
 
67
67
  const provider = new WsProvider('wss://rpc.polkadot.io');
@@ -89,7 +89,7 @@ const pendingRewards = await client.call.nominationPoolsApi.pendingRewards(<addr
89
89
  console.log('Pending rewards:', pendingRewards);
90
90
 
91
91
  // Disconnect
92
- // await client.disconnect();
92
+ await client.disconnect();
93
93
  ```
94
94
 
95
95
  ### 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.0",
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.0",
25
+ "@dedot/cli": "0.18.0",
26
+ "@dedot/codecs": "0.18.0",
27
+ "@dedot/contracts": "0.18.0",
28
+ "@dedot/merkleized-metadata": "0.18.0",
29
+ "@dedot/providers": "0.18.0",
30
+ "@dedot/runtime-specs": "0.18.0",
31
+ "@dedot/shape": "0.18.0",
32
+ "@dedot/smoldot": "0.18.0",
33
+ "@dedot/types": "0.18.0",
34
+ "@dedot/utils": "0.18.0",
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": "32395b356a4febaac0d52506742947c916ac9895",
126
126
  "module": "./index.js",
127
127
  "types": "./index.d.ts"
128
128
  }