viem 2.55.19 → 2.56.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 (134) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/_cjs/chains/definitions/berachainBepolia.js +1 -1
  3. package/_cjs/errors/version.js +1 -1
  4. package/_cjs/errors/version.js.map +1 -1
  5. package/_cjs/tempo/Abis.js +4851 -2166
  6. package/_cjs/tempo/Abis.js.map +1 -1
  7. package/_cjs/tempo/Addresses.js +31 -1
  8. package/_cjs/tempo/Addresses.js.map +1 -1
  9. package/_cjs/tempo/Decorator.js +3 -2
  10. package/_cjs/tempo/Decorator.js.map +1 -1
  11. package/_cjs/tempo/Selectors.js +197 -61
  12. package/_cjs/tempo/Selectors.js.map +1 -1
  13. package/_cjs/tempo/Storage.js +6 -6
  14. package/_cjs/tempo/Storage.js.map +1 -1
  15. package/_cjs/tempo/Transport.js +21 -0
  16. package/_cjs/tempo/Transport.js.map +1 -1
  17. package/_cjs/tempo/Zone.js +51 -0
  18. package/_cjs/tempo/Zone.js.map +1 -0
  19. package/_cjs/tempo/actions/earn/deployment.js +59 -21
  20. package/_cjs/tempo/actions/earn/deployment.js.map +1 -1
  21. package/_cjs/tempo/actions/earn.js +2 -3
  22. package/_cjs/tempo/actions/earn.js.map +1 -1
  23. package/_cjs/tempo/actions/zone.js +65 -28
  24. package/_cjs/tempo/actions/zone.js.map +1 -1
  25. package/_cjs/tempo/index.js +3 -3
  26. package/_cjs/tempo/index.js.map +1 -1
  27. package/_esm/chains/definitions/berachainBepolia.js +1 -1
  28. package/_esm/errors/version.js +1 -1
  29. package/_esm/errors/version.js.map +1 -1
  30. package/_esm/tempo/Abis.js +5419 -2732
  31. package/_esm/tempo/Abis.js.map +1 -1
  32. package/_esm/tempo/Addresses.js +36 -0
  33. package/_esm/tempo/Addresses.js.map +1 -1
  34. package/_esm/tempo/Decorator.js +3 -2
  35. package/_esm/tempo/Decorator.js.map +1 -1
  36. package/_esm/tempo/Selectors.js +197 -61
  37. package/_esm/tempo/Selectors.js.map +1 -1
  38. package/_esm/tempo/Storage.js +7 -7
  39. package/_esm/tempo/Storage.js.map +1 -1
  40. package/_esm/tempo/Transport.js +37 -0
  41. package/_esm/tempo/Transport.js.map +1 -1
  42. package/_esm/tempo/Zone.js +48 -0
  43. package/_esm/tempo/Zone.js.map +1 -0
  44. package/_esm/tempo/actions/earn/deployment.js +66 -25
  45. package/_esm/tempo/actions/earn/deployment.js.map +1 -1
  46. package/_esm/tempo/actions/earn.js +2 -3
  47. package/_esm/tempo/actions/earn.js.map +1 -1
  48. package/_esm/tempo/actions/zone.js +111 -66
  49. package/_esm/tempo/actions/zone.js.map +1 -1
  50. package/_esm/tempo/index.js +2 -2
  51. package/_esm/tempo/index.js.map +1 -1
  52. package/_types/chains/definitions/berachainBepolia.d.ts +1 -1
  53. package/_types/errors/version.d.ts +1 -1
  54. package/_types/errors/version.d.ts.map +1 -1
  55. package/_types/tempo/Abis.d.ts +31049 -6004
  56. package/_types/tempo/Abis.d.ts.map +1 -1
  57. package/_types/tempo/Addresses.d.ts +11 -0
  58. package/_types/tempo/Addresses.d.ts.map +1 -1
  59. package/_types/tempo/Decorator.d.ts +30 -22
  60. package/_types/tempo/Decorator.d.ts.map +1 -1
  61. package/_types/tempo/Selectors.d.ts +196 -60
  62. package/_types/tempo/Selectors.d.ts.map +1 -1
  63. package/_types/tempo/Storage.d.ts +1 -1
  64. package/_types/tempo/Storage.d.ts.map +1 -1
  65. package/_types/tempo/Transport.d.ts +24 -0
  66. package/_types/tempo/Transport.d.ts.map +1 -1
  67. package/_types/tempo/Zone.d.ts +6824 -0
  68. package/_types/tempo/Zone.d.ts.map +1 -0
  69. package/_types/tempo/actions/channel.d.ts +72 -0
  70. package/_types/tempo/actions/channel.d.ts.map +1 -1
  71. package/_types/tempo/actions/dex.d.ts +260 -0
  72. package/_types/tempo/actions/dex.d.ts.map +1 -1
  73. package/_types/tempo/actions/earn/deployment.d.ts +86 -278
  74. package/_types/tempo/actions/earn/deployment.d.ts.map +1 -1
  75. package/_types/tempo/actions/earn.d.ts +540 -16
  76. package/_types/tempo/actions/earn.d.ts.map +1 -1
  77. package/_types/tempo/actions/policy.d.ts +108 -0
  78. package/_types/tempo/actions/policy.d.ts.map +1 -1
  79. package/_types/tempo/actions/receivePolicy.d.ts +27 -0
  80. package/_types/tempo/actions/receivePolicy.d.ts.map +1 -1
  81. package/_types/tempo/actions/zone.d.ts +165 -82
  82. package/_types/tempo/actions/zone.d.ts.map +1 -1
  83. package/_types/tempo/index.d.ts +8 -2
  84. package/_types/tempo/index.d.ts.map +1 -1
  85. package/chains/definitions/berachainBepolia.ts +1 -1
  86. package/errors/version.ts +1 -1
  87. package/package.json +1 -6
  88. package/tempo/Abis.ts +5408 -2710
  89. package/tempo/Addresses.ts +40 -0
  90. package/tempo/Decorator.ts +39 -28
  91. package/tempo/Selectors.ts +218 -71
  92. package/tempo/Storage.ts +5 -8
  93. package/tempo/Transport.ts +57 -0
  94. package/tempo/Zone.ts +60 -0
  95. package/tempo/actions/earn/deployment.ts +74 -30
  96. package/tempo/actions/earn.ts +2 -3
  97. package/tempo/actions/zone.ts +188 -84
  98. package/tempo/index.ts +19 -6
  99. package/_cjs/tempo/zones/Abis.js +0 -213
  100. package/_cjs/tempo/zones/Abis.js.map +0 -1
  101. package/_cjs/tempo/zones/Addresses.js +0 -17
  102. package/_cjs/tempo/zones/Addresses.js.map +0 -1
  103. package/_cjs/tempo/zones/index.js +0 -13
  104. package/_cjs/tempo/zones/index.js.map +0 -1
  105. package/_cjs/tempo/zones/transport.js +0 -24
  106. package/_cjs/tempo/zones/transport.js.map +0 -1
  107. package/_cjs/tempo/zones/zone.js +0 -82
  108. package/_cjs/tempo/zones/zone.js.map +0 -1
  109. package/_esm/tempo/zones/Abis.js +0 -210
  110. package/_esm/tempo/zones/Abis.js.map +0 -1
  111. package/_esm/tempo/zones/Addresses.js +0 -14
  112. package/_esm/tempo/zones/Addresses.js.map +0 -1
  113. package/_esm/tempo/zones/index.js +0 -6
  114. package/_esm/tempo/zones/index.js.map +0 -1
  115. package/_esm/tempo/zones/transport.js +0 -39
  116. package/_esm/tempo/zones/transport.js.map +0 -1
  117. package/_esm/tempo/zones/zone.js +0 -78
  118. package/_esm/tempo/zones/zone.js.map +0 -1
  119. package/_types/tempo/zones/Abis.d.ts +0 -383
  120. package/_types/tempo/zones/Abis.d.ts.map +0 -1
  121. package/_types/tempo/zones/Addresses.d.ts +0 -13
  122. package/_types/tempo/zones/Addresses.d.ts.map +0 -1
  123. package/_types/tempo/zones/index.d.ts +0 -5
  124. package/_types/tempo/zones/index.d.ts.map +0 -1
  125. package/_types/tempo/zones/transport.d.ts +0 -26
  126. package/_types/tempo/zones/transport.d.ts.map +0 -1
  127. package/_types/tempo/zones/zone.d.ts +0 -3176
  128. package/_types/tempo/zones/zone.d.ts.map +0 -1
  129. package/tempo/zones/Abis.ts +0 -211
  130. package/tempo/zones/Addresses.ts +0 -15
  131. package/tempo/zones/index.ts +0 -10
  132. package/tempo/zones/package.json +0 -6
  133. package/tempo/zones/transport.ts +0 -58
  134. package/tempo/zones/zone.ts +0 -113
package/CHANGELOG.md CHANGED
@@ -1,5 +1,68 @@
1
1
  # viem
2
2
 
3
+ ## 2.56.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#5052](https://github.com/wevm/viem/pull/5052) [`e336a1d93a39063fb1883ba0a84b5d37f313a35a`](https://github.com/wevm/viem/commit/e336a1d93a39063fb1883ba0a84b5d37f313a35a) Thanks [@jxom](https://github.com/jxom)! - `viem/tempo`: Fixed declaration emit for inferred Tempo chains.
8
+
9
+ ## 2.56.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#5040](https://github.com/wevm/viem/pull/5040) [`c73282bfa7309a5017f684b8001ec5c13fda4194`](https://github.com/wevm/viem/commit/c73282bfa7309a5017f684b8001ec5c13fda4194) Thanks [@jxom](https://github.com/jxom)! - **Breaking (`viem/tempo`):** Renamed `Abis.abis` to `Abis.all` and expanded the aggregate with Earn and Zone ABIs.
14
+
15
+ ```diff
16
+ -const abis = Abis.abis
17
+ +const abis = Abis.all
18
+ ```
19
+
20
+ - [#5040](https://github.com/wevm/viem/pull/5040) [`c73282bfa7309a5017f684b8001ec5c13fda4194`](https://github.com/wevm/viem/commit/c73282bfa7309a5017f684b8001ec5c13fda4194) Thanks [@jxom](https://github.com/jxom)! - **Breaking (`viem/tempo`):** Moved Zone exports from `viem/tempo/zones` into `viem/tempo`.
21
+
22
+ ```diff
23
+ -import { Abis, Addresses, http, zoneModerato } from 'viem/tempo/zones'
24
+ +import { Abis, Addresses, http, Zone } from 'viem/tempo'
25
+ ```
26
+
27
+ - [#5040](https://github.com/wevm/viem/pull/5040) [`c73282bfa7309a5017f684b8001ec5c13fda4194`](https://github.com/wevm/viem/commit/c73282bfa7309a5017f684b8001ec5c13fda4194) Thanks [@jxom](https://github.com/jxom)! - **Breaking (`viem/tempo`):** Replaced curried Zone network factories with built-in Zone definitions and `Zone.from` for custom chains.
28
+
29
+ ```diff
30
+ -const zone = zoneModerato(6)
31
+ +const zone = Zone.a
32
+ ```
33
+
34
+ - [#5040](https://github.com/wevm/viem/pull/5040) [`c73282bfa7309a5017f684b8001ec5c13fda4194`](https://github.com/wevm/viem/commit/c73282bfa7309a5017f684b8001ec5c13fda4194) Thanks [@jxom](https://github.com/jxom)! - **Breaking (`viem/tempo`):** Replaced chain-specific Zone portal registries with deterministic `Addresses.zonePortal(id)` resolution for Zone IDs and chain IDs.
35
+
36
+ ```diff
37
+ -import { getPortalAddress } from 'viem/tempo/zones'
38
+ +import { Addresses, Zone } from 'viem/tempo'
39
+
40
+ -const portal = getPortalAddress(42_431, 7)
41
+ +const portal = Addresses.zonePortal(Zone.b.id)
42
+ ```
43
+
44
+ - [#5040](https://github.com/wevm/viem/pull/5040) [`c73282bfa7309a5017f684b8001ec5c13fda4194`](https://github.com/wevm/viem/commit/c73282bfa7309a5017f684b8001ec5c13fda4194) Thanks [@jxom](https://github.com/jxom)! - Added selector maps for Zone portal, outbox, messenger, and verifier ABIs.
45
+
46
+ ```ts
47
+ import { Selectors } from "viem/tempo";
48
+
49
+ const selector = Selectors.zonePortal.admin;
50
+ ```
51
+
52
+ ### Patch Changes
53
+
54
+ - [#5039](https://github.com/wevm/viem/pull/5039) [`e802c6b16e03c83d61c144d0b6388a21a8391a22`](https://github.com/wevm/viem/commit/e802c6b16e03c83d61c144d0b6388a21a8391a22) Thanks [@struong](https://github.com/struong)! - Replaced `tempo.earn.bindErc4626Engine` with the engine-agnostic `tempo.earn.bindEngine` action and added optional final ownership transfer.
55
+
56
+ - [#5034](https://github.com/wevm/viem/pull/5034) [`b8707d998ab8c7d4ee95c9a70989cd6fbd145356`](https://github.com/wevm/viem/commit/b8707d998ab8c7d4ee95c9a70989cd6fbd145356) Thanks [@jxom](https://github.com/jxom)! - Added `zone.getPortalInfo` to read Zone Portal administration, sequencer, and token metadata.
57
+
58
+ - [#5030](https://github.com/wevm/viem/pull/5030) [`901bf2f09b057e03f34067fdee6c3f6a2dae7bd3`](https://github.com/wevm/viem/commit/901bf2f09b057e03f34067fdee6c3f6a2dae7bd3) Thanks [@decofe](https://github.com/decofe)! - Added Zone protocol addresses, ZoneFactory registry reads, and ZonePortal administration operations to Tempo exports.
59
+
60
+ - [#5028](https://github.com/wevm/viem/pull/5028) [`ffbf342ba3f5b312433ec927332f817b754fdafb`](https://github.com/wevm/viem/commit/ffbf342ba3f5b312433ec927332f817b754fdafb) Thanks [@codingwithmanny](https://github.com/codingwithmanny)! - Updated the Berachain Bepolia block explorer.
61
+
62
+ - [#5040](https://github.com/wevm/viem/pull/5040) [`c73282bfa7309a5017f684b8001ec5c13fda4194`](https://github.com/wevm/viem/commit/c73282bfa7309a5017f684b8001ec5c13fda4194) Thanks [@jxom](https://github.com/jxom)! - Added `Abis.core`, `Abis.earn`, and `Abis.zone` contract groups.
63
+
64
+ - [#5044](https://github.com/wevm/viem/pull/5044) [`56a54cc3c80c5c774963be4f02d68c4b43e261d4`](https://github.com/wevm/viem/commit/56a54cc3c80c5c774963be4f02d68c4b43e261d4) Thanks [@decofe](https://github.com/decofe)! - Added the derived public key address to the `sequencerEncryptionKey` Zone Portal ABI output while preserving T10 encryption key reads.
65
+
3
66
  ## 2.55.19
4
67
 
5
68
  ### Patch Changes
@@ -23,7 +23,7 @@ exports.berachainBepolia = (0, defineChain_js_1.defineChain)({
23
23
  blockExplorers: {
24
24
  default: {
25
25
  name: 'Berascan',
26
- url: 'https://bepolia.beratrail.io',
26
+ url: 'https://testnet.berascan.com',
27
27
  },
28
28
  },
29
29
  testnet: true,
@@ -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 = '2.55.19';
4
+ exports.version = '2.56.1';
5
5
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../errors/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,SAAS,CAAA"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../errors/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAA"}