viem 0.0.0-main.20231113T152842 → 0.0.0-main.20231113T184305

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # viem
2
2
 
3
+ ## 1.19.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1488](https://github.com/wagmi-dev/viem/pull/1488) [`f82bc658`](https://github.com/wagmi-dev/viem/commit/f82bc658f68baa51fe50ffafa32ea4d6e0af14b9) Thanks [@glitch-txs](https://github.com/glitch-txs)! - Added Chiliz and Spicy chains
8
+
3
9
  ## 1.19.0
4
10
 
5
11
  ### Minor Changes
@@ -13,16 +13,10 @@ exports.chiliz = (0, defineChain_js_1.defineChain)({
13
13
  },
14
14
  rpcUrls: {
15
15
  default: {
16
- http: [
17
- 'https://rpc.ankr.com/chiliz',
18
- 'https://chiliz.publicnode.com'
19
- ],
16
+ http: ['https://rpc.ankr.com/chiliz', 'https://chiliz.publicnode.com'],
20
17
  },
21
18
  public: {
22
- http: [
23
- 'https://rpc.ankr.com/chiliz',
24
- 'https://chiliz.publicnode.com'
25
- ],
19
+ http: ['https://rpc.ankr.com/chiliz', 'https://chiliz.publicnode.com'],
26
20
  },
27
21
  },
28
22
  blockExplorers: {
@@ -1 +1 @@
1
- {"version":3,"file":"chiliz.js","sourceRoot":"","sources":["../../../chains/definitions/chiliz.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,MAAM,GAAiB,IAAA,4BAAW,EAC7C;IACE,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,6BAA6B;gBAC7B,+BAA+B;aAChC;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE;gBACJ,6BAA6B;gBAC7B,+BAA+B;aAChC;SACF;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,GAAG,EAAE,yBAAyB;SAC/B;KACF;CACF,CACF,CAAA"}
1
+ {"version":3,"file":"chiliz.js","sourceRoot":"","sources":["../../../chains/definitions/chiliz.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,MAAM,GAAiB,IAAA,4BAAW,EAAC;IAC9C,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,6BAA6B,EAAE,+BAA+B,CAAC;SACvE;QACD,MAAM,EAAE;YACN,IAAI,EAAE,CAAC,6BAA6B,EAAE,+BAA+B,CAAC;SACvE;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,GAAG,EAAE,yBAAyB;SAC/B;KACF;CACF,CAAC,CAAA"}
@@ -15,22 +15,22 @@ exports.spicy = (0, defineChain_js_1.defineChain)({
15
15
  default: {
16
16
  http: [
17
17
  'https://spicy-rpc.chiliz.com',
18
- 'https://chiliz-spicy.publicnode.com'
18
+ 'https://chiliz-spicy.publicnode.com',
19
19
  ],
20
20
  webSocket: [
21
21
  'wss://spicy-rpc-ws.chiliz.com',
22
- 'wss://chiliz-spicy.publicnode.com'
23
- ]
22
+ 'wss://chiliz-spicy.publicnode.com',
23
+ ],
24
24
  },
25
25
  public: {
26
26
  http: [
27
27
  'https://spicy-rpc.chiliz.com',
28
- 'https://chiliz-spicy.publicnode.com'
28
+ 'https://chiliz-spicy.publicnode.com',
29
29
  ],
30
30
  webSocket: [
31
31
  'wss://spicy-rpc-ws.chiliz.com',
32
- 'wss://chiliz-spicy.publicnode.com'
33
- ]
32
+ 'wss://chiliz-spicy.publicnode.com',
33
+ ],
34
34
  },
35
35
  },
36
36
  blockExplorers: {
@@ -1 +1 @@
1
- {"version":3,"file":"spicy.js","sourceRoot":"","sources":["../../../chains/definitions/spicy.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,KAAK,GAAiB,IAAA,4BAAW,EAC5C;IACE,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,sBAAsB;IAC/B,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,8BAA8B;gBAC9B,qCAAqC;aACtC;YACD,SAAS,EAAC;gBACR,+BAA+B;gBAC/B,mCAAmC;aACpC;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE;gBACJ,8BAA8B;gBAC9B,qCAAqC;aACtC;YACD,SAAS,EAAC;gBACR,+BAA+B;gBAC/B,mCAAmC;aACpC;SACF;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,GAAG,EAAE,kCAAkC;SACxC;KACF;IACD,OAAO,EAAE,IAAI;CACd,CACF,CAAA"}
1
+ {"version":3,"file":"spicy.js","sourceRoot":"","sources":["../../../chains/definitions/spicy.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,KAAK,GAAiB,IAAA,4BAAW,EAAC;IAC7C,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,sBAAsB;IAC/B,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,8BAA8B;gBAC9B,qCAAqC;aACtC;YACD,SAAS,EAAE;gBACT,+BAA+B;gBAC/B,mCAAmC;aACpC;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE;gBACJ,8BAA8B;gBAC9B,qCAAqC;aACtC;YACD,SAAS,EAAE;gBACT,+BAA+B;gBAC/B,mCAAmC;aACpC;SACF;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,GAAG,EAAE,kCAAkC;SACxC;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '0.0.0-main.20231113T152842';
4
+ exports.version = '0.0.0-main.20231113T184305';
5
5
  //# sourceMappingURL=version.js.map
@@ -10,16 +10,10 @@ export const chiliz = /*#__PURE__*/ defineChain({
10
10
  },
11
11
  rpcUrls: {
12
12
  default: {
13
- http: [
14
- 'https://rpc.ankr.com/chiliz',
15
- 'https://chiliz.publicnode.com'
16
- ],
13
+ http: ['https://rpc.ankr.com/chiliz', 'https://chiliz.publicnode.com'],
17
14
  },
18
15
  public: {
19
- http: [
20
- 'https://rpc.ankr.com/chiliz',
21
- 'https://chiliz.publicnode.com'
22
- ],
16
+ http: ['https://rpc.ankr.com/chiliz', 'https://chiliz.publicnode.com'],
23
17
  },
24
18
  },
25
19
  blockExplorers: {
@@ -1 +1 @@
1
- {"version":3,"file":"chiliz.js","sourceRoot":"","sources":["../../../chains/definitions/chiliz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,WAAW,CAC7C;IACE,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,6BAA6B;gBAC7B,+BAA+B;aAChC;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE;gBACJ,6BAA6B;gBAC7B,+BAA+B;aAChC;SACF;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,GAAG,EAAE,yBAAyB;SAC/B;KACF;CACF,CACF,CAAA"}
1
+ {"version":3,"file":"chiliz.js","sourceRoot":"","sources":["../../../chains/definitions/chiliz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,WAAW,CAAC;IAC9C,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,6BAA6B,EAAE,+BAA+B,CAAC;SACvE;QACD,MAAM,EAAE;YACN,IAAI,EAAE,CAAC,6BAA6B,EAAE,+BAA+B,CAAC;SACvE;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,GAAG,EAAE,yBAAyB;SAC/B;KACF;CACF,CAAC,CAAA"}
@@ -12,22 +12,22 @@ export const spicy = /*#__PURE__*/ defineChain({
12
12
  default: {
13
13
  http: [
14
14
  'https://spicy-rpc.chiliz.com',
15
- 'https://chiliz-spicy.publicnode.com'
15
+ 'https://chiliz-spicy.publicnode.com',
16
16
  ],
17
17
  webSocket: [
18
18
  'wss://spicy-rpc-ws.chiliz.com',
19
- 'wss://chiliz-spicy.publicnode.com'
20
- ]
19
+ 'wss://chiliz-spicy.publicnode.com',
20
+ ],
21
21
  },
22
22
  public: {
23
23
  http: [
24
24
  'https://spicy-rpc.chiliz.com',
25
- 'https://chiliz-spicy.publicnode.com'
25
+ 'https://chiliz-spicy.publicnode.com',
26
26
  ],
27
27
  webSocket: [
28
28
  'wss://spicy-rpc-ws.chiliz.com',
29
- 'wss://chiliz-spicy.publicnode.com'
30
- ]
29
+ 'wss://chiliz-spicy.publicnode.com',
30
+ ],
31
31
  },
32
32
  },
33
33
  blockExplorers: {
@@ -1 +1 @@
1
- {"version":3,"file":"spicy.js","sourceRoot":"","sources":["../../../chains/definitions/spicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,KAAK,GAAG,aAAa,CAAC,WAAW,CAC5C;IACE,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,sBAAsB;IAC/B,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,8BAA8B;gBAC9B,qCAAqC;aACtC;YACD,SAAS,EAAC;gBACR,+BAA+B;gBAC/B,mCAAmC;aACpC;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE;gBACJ,8BAA8B;gBAC9B,qCAAqC;aACtC;YACD,SAAS,EAAC;gBACR,+BAA+B;gBAC/B,mCAAmC;aACpC;SACF;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,GAAG,EAAE,kCAAkC;SACxC;KACF;IACD,OAAO,EAAE,IAAI;CACd,CACF,CAAA"}
1
+ {"version":3,"file":"spicy.js","sourceRoot":"","sources":["../../../chains/definitions/spicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,KAAK,GAAG,aAAa,CAAC,WAAW,CAAC;IAC7C,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,sBAAsB;IAC/B,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,8BAA8B;gBAC9B,qCAAqC;aACtC;YACD,SAAS,EAAE;gBACT,+BAA+B;gBAC/B,mCAAmC;aACpC;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE;gBACJ,8BAA8B;gBAC9B,qCAAqC;aACtC;YACD,SAAS,EAAE;gBACT,+BAA+B;gBAC/B,mCAAmC;aACpC;SACF;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,GAAG,EAAE,kCAAkC;SACxC;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
@@ -1,2 +1,2 @@
1
- export const version = '0.0.0-main.20231113T152842';
1
+ export const version = '0.0.0-main.20231113T184305';
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chiliz.d.ts","sourceRoot":"","sources":["../../../chains/definitions/chiliz.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;yDA+BlB,CAAA"}
1
+ {"version":3,"file":"chiliz.d.ts","sourceRoot":"","sources":["../../../chains/definitions/chiliz.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;yDAuBjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"spicy.d.ts","sourceRoot":"","sources":["../../../chains/definitions/spicy.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;yDAwCjB,CAAA"}
1
+ {"version":3,"file":"spicy.d.ts","sourceRoot":"","sources":["../../../chains/definitions/spicy.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;yDAsChB,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const version = "0.0.0-main.20231113T152842";
1
+ export declare const version = "0.0.0-main.20231113T184305";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,34 +1,26 @@
1
1
  import { defineChain } from '../../utils/chain/defineChain.js'
2
2
 
3
- export const chiliz = /*#__PURE__*/ defineChain(
4
- {
5
- id: 88_888,
6
- name: 'Chiliz Chain',
7
- network: 'chiliz-chain',
8
- nativeCurrency: {
9
- decimals: 18,
10
- name: 'CHZ',
11
- symbol: 'CHZ',
3
+ export const chiliz = /*#__PURE__*/ defineChain({
4
+ id: 88_888,
5
+ name: 'Chiliz Chain',
6
+ network: 'chiliz-chain',
7
+ nativeCurrency: {
8
+ decimals: 18,
9
+ name: 'CHZ',
10
+ symbol: 'CHZ',
11
+ },
12
+ rpcUrls: {
13
+ default: {
14
+ http: ['https://rpc.ankr.com/chiliz', 'https://chiliz.publicnode.com'],
12
15
  },
13
- rpcUrls: {
14
- default: {
15
- http: [
16
- 'https://rpc.ankr.com/chiliz',
17
- 'https://chiliz.publicnode.com'
18
- ],
19
- },
20
- public: {
21
- http: [
22
- 'https://rpc.ankr.com/chiliz',
23
- 'https://chiliz.publicnode.com'
24
- ],
25
- },
16
+ public: {
17
+ http: ['https://rpc.ankr.com/chiliz', 'https://chiliz.publicnode.com'],
26
18
  },
27
- blockExplorers: {
28
- default: {
29
- name: 'Chiliz Explorer',
30
- url: 'https://scan.chiliz.com',
31
- },
19
+ },
20
+ blockExplorers: {
21
+ default: {
22
+ name: 'Chiliz Explorer',
23
+ url: 'https://scan.chiliz.com',
32
24
  },
33
25
  },
34
- )
26
+ })
@@ -1,43 +1,41 @@
1
1
  import { defineChain } from '../../utils/chain/defineChain.js'
2
2
 
3
- export const spicy = /*#__PURE__*/ defineChain(
4
- {
5
- id: 88_882,
6
- name: 'Chiliz Spicy Testnet',
7
- network: 'chiliz-spicy-Testnet',
8
- nativeCurrency: {
9
- decimals: 18,
10
- name: 'CHZ',
11
- symbol: 'CHZ',
3
+ export const spicy = /*#__PURE__*/ defineChain({
4
+ id: 88_882,
5
+ name: 'Chiliz Spicy Testnet',
6
+ network: 'chiliz-spicy-Testnet',
7
+ nativeCurrency: {
8
+ decimals: 18,
9
+ name: 'CHZ',
10
+ symbol: 'CHZ',
11
+ },
12
+ rpcUrls: {
13
+ default: {
14
+ http: [
15
+ 'https://spicy-rpc.chiliz.com',
16
+ 'https://chiliz-spicy.publicnode.com',
17
+ ],
18
+ webSocket: [
19
+ 'wss://spicy-rpc-ws.chiliz.com',
20
+ 'wss://chiliz-spicy.publicnode.com',
21
+ ],
12
22
  },
13
- rpcUrls: {
14
- default: {
15
- http: [
16
- 'https://spicy-rpc.chiliz.com',
17
- 'https://chiliz-spicy.publicnode.com'
18
- ],
19
- webSocket:[
20
- 'wss://spicy-rpc-ws.chiliz.com',
21
- 'wss://chiliz-spicy.publicnode.com'
22
- ]
23
- },
24
- public: {
25
- http: [
26
- 'https://spicy-rpc.chiliz.com',
27
- 'https://chiliz-spicy.publicnode.com'
28
- ],
29
- webSocket:[
30
- 'wss://spicy-rpc-ws.chiliz.com',
31
- 'wss://chiliz-spicy.publicnode.com'
32
- ]
33
- },
23
+ public: {
24
+ http: [
25
+ 'https://spicy-rpc.chiliz.com',
26
+ 'https://chiliz-spicy.publicnode.com',
27
+ ],
28
+ webSocket: [
29
+ 'wss://spicy-rpc-ws.chiliz.com',
30
+ 'wss://chiliz-spicy.publicnode.com',
31
+ ],
34
32
  },
35
- blockExplorers: {
36
- default: {
37
- name: 'Chiliz Explorer',
38
- url: 'http://spicy-explorer.chiliz.com',
39
- },
33
+ },
34
+ blockExplorers: {
35
+ default: {
36
+ name: 'Chiliz Explorer',
37
+ url: 'http://spicy-explorer.chiliz.com',
40
38
  },
41
- testnet: true,
42
39
  },
43
- )
40
+ testnet: true,
41
+ })
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '0.0.0-main.20231113T152842'
1
+ export const version = '0.0.0-main.20231113T184305'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "0.0.0-main.20231113T152842",
4
+ "version": "0.0.0-main.20231113T184305",
5
5
  "type": "module",
6
6
  "main": "./_cjs/index.js",
7
7
  "module": "./_esm/index.js",