@ethernauta/chain 0.0.26 → 0.0.27

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 +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -22,13 +22,13 @@ This module aims to be an un-opinionated representation of the defined:
22
22
  ## API
23
23
 
24
24
  ```tsx
25
- import { eip155_1, encodeChainId, decodeChainId } from "@ethernauta/chain"
26
- const chainId = encodeChainId({
25
+ import { eip155_1, encode_chain_id, decode_chain_id } from "@ethernauta/chain"
26
+ const chain_id = encode_chain_id({
27
27
  namespace: "eip155",
28
28
  reference: eip155_1.chainId,
29
29
  })
30
- console.log(chainId)// eip155:11155111
31
- const { namespace, reference } = decodeChainId(chainId)
30
+ console.log(chain_id)// eip155:11155111
31
+ const { namespace, reference } = decode_chain_id(chain_id)
32
32
  console.log(namespace)// eip155
33
33
  console.log(reference)// 11155111
34
34
  ```
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@ethernauta/chain",
4
4
  "type": "module",
5
- "version": "0.0.26",
5
+ "version": "0.0.27",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },