Skip to content

Commit 88a61d4

Browse files
authored
chore: add support for denergy chain (#72)
docs: release 1.0.3
1 parent 33c8209 commit 88a61d4

File tree

6 files changed

+38
-21
lines changed

6 files changed

+38
-21
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@
33
All notable changes to this project will be documented in this file. The format is based on
44
[Common Changelog](https://common-changelog.org/).
55

6+
[1.0.3]: https://github.com/sablier-labs/evm-utils/releases/tag/v1.0.3
67
[1.0.2]: https://github.com/sablier-labs/evm-utils/releases/tag/v1.0.2
78
[1.0.1]: https://github.com/sablier-labs/evm-utils/releases/tag/v1.0.1
89
[1.0.0]: https://github.com/sablier-labs/evm-utils/releases/tag/v1.0.0
910

11+
## [1.0.3] - 2025-11-28
12+
13+
### Added
14+
15+
- Support for Denergy network
16+
- Chainlink Oracles for HyperEVM and Monad
17+
1018
## [1.0.2] - 2025-11-10
1119

1220
### Added

foundry.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
bsc = "https://direct.routeme.sh/rpc/56/${ROUTEMESH_API_KEY}"
6464
chiliz = "https://direct.routeme.sh/rpc/88888/${ROUTEMESH_API_KEY}"
6565
core_dao = "https://direct.routeme.sh/rpc/1116/${ROUTEMESH_API_KEY}"
66+
denergy = "https://rpc.d.energy"
6667
ethereum = "https://direct.routeme.sh/rpc/1/${ROUTEMESH_API_KEY}"
6768
gnosis = "https://direct.routeme.sh/rpc/100/${ROUTEMESH_API_KEY}"
6869
hyperevm = "https://direct.routeme.sh/rpc/999/${ROUTEMESH_API_KEY}"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@sablier/evm-utils",
33
"description": "Utilities solidity files used across Sablier's smart contracts",
44
"license": "SEE LICENSE IN LICENSE",
5-
"version": "1.0.2",
5+
"version": "1.0.3",
66
"author": {
77
"name": "Sablier Labs Ltd",
88
"url": "https://sablier.com"

src/tests/BaseScript.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ abstract contract BaseScript is Script {
135135
// For Linea, return the different address.
136136
if (chainId == ChainId.LINEA) return 0xF21b304A08993f98A79C7Eb841f812CCeab49B8b;
137137

138+
// For Denergy, return the different address.
139+
if (chainId == ChainId.DENERGY) return 0x946654AB30Dd6eD10236C89f2C8B2719df653691;
140+
138141
// For all other chains, return the vanity address.
139142
return 0x0000008ABbFf7a84a2fE09f9A9b74D3BC2072399;
140143
}

src/tests/ChainId.sol

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ library ChainId {
77
MAINNETS
88
//////////////////////////////////////////////////////////////////////////*/
99

10-
uint256 public constant MAINNETS_COUNT = 27;
10+
uint256 public constant MAINNETS_COUNT = 28;
1111

1212
uint256 public constant ABSTRACT = 2741;
1313
uint256 public constant ARBITRUM = 42_161;
@@ -18,6 +18,7 @@ library ChainId {
1818
uint256 public constant BSC = 56;
1919
uint256 public constant CHILIZ = 88_888;
2020
uint256 public constant COREDAO = 1116;
21+
uint256 public constant DENERGY = 369_369;
2122
uint256 public constant ETHEREUM = 1;
2223
uint256 public constant GNOSIS = 100;
2324
uint256 public constant HYPEREVM = 999;
@@ -66,24 +67,25 @@ library ChainId {
6667
supportedIds[6] = BSC;
6768
supportedIds[7] = CHILIZ;
6869
supportedIds[8] = COREDAO;
69-
supportedIds[9] = ETHEREUM;
70-
supportedIds[10] = GNOSIS;
71-
supportedIds[11] = HYPEREVM;
72-
supportedIds[12] = LIGHTLINK;
73-
supportedIds[13] = LINEA;
74-
supportedIds[14] = MODE;
75-
supportedIds[15] = MONAD;
76-
supportedIds[16] = MORPH;
77-
supportedIds[17] = OPTIMISM;
78-
supportedIds[18] = POLYGON;
79-
supportedIds[19] = SCROLL;
80-
supportedIds[20] = SEI;
81-
supportedIds[21] = SOPHON;
82-
supportedIds[22] = SUPERSEED;
83-
supportedIds[23] = SONIC;
84-
supportedIds[24] = UNICHAIN;
85-
supportedIds[25] = XDC;
86-
supportedIds[26] = ZKSYNC;
70+
supportedIds[9] = DENERGY;
71+
supportedIds[10] = ETHEREUM;
72+
supportedIds[11] = GNOSIS;
73+
supportedIds[12] = HYPEREVM;
74+
supportedIds[13] = LIGHTLINK;
75+
supportedIds[14] = LINEA;
76+
supportedIds[15] = MODE;
77+
supportedIds[16] = MONAD;
78+
supportedIds[17] = MORPH;
79+
supportedIds[18] = OPTIMISM;
80+
supportedIds[19] = POLYGON;
81+
supportedIds[20] = SCROLL;
82+
supportedIds[21] = SEI;
83+
supportedIds[22] = SOPHON;
84+
supportedIds[23] = SUPERSEED;
85+
supportedIds[24] = SONIC;
86+
supportedIds[25] = UNICHAIN;
87+
supportedIds[26] = XDC;
88+
supportedIds[27] = ZKSYNC;
8789
}
8890

8991
/// @notice Returns the full list of supported testnet chain IDs.
@@ -109,6 +111,7 @@ library ChainId {
109111
if (chainId == ChainId.BSC) return "bsc";
110112
if (chainId == ChainId.CHILIZ) return "chiliz";
111113
if (chainId == ChainId.COREDAO) return "core_dao";
114+
if (chainId == ChainId.DENERGY) return "denergy";
112115
if (chainId == ChainId.ETHEREUM) return "ethereum";
113116
if (chainId == ChainId.GNOSIS) return "gnosis";
114117
if (chainId == ChainId.HYPEREVM) return "hyperevm";

tests/integration/fuzz/base-script/BaseScript.t.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ contract BaseScriptMock is BaseScript { }
1212
contract BaseScript_Fuzz_Test is StdAssertions {
1313
BaseScriptMock internal baseScript;
1414

15-
string public constant PACKAGE_VERSION = "1.0.2";
15+
string public constant PACKAGE_VERSION = "1.0.3";
1616

1717
Vm internal vm = StdConstants.VM;
1818

@@ -120,6 +120,8 @@ contract BaseScript_Fuzz_Test is StdAssertions {
120120
if (ChainId.isSupported(chainId)) {
121121
if (chainId == ChainId.LINEA) {
122122
assertEq(baseScript.getComptroller(), 0xF21b304A08993f98A79C7Eb841f812CCeab49B8b, "comptroller");
123+
} else if (chainId == ChainId.DENERGY) {
124+
assertEq(baseScript.getComptroller(), 0x946654AB30Dd6eD10236C89f2C8B2719df653691, "comptroller");
123125
} else {
124126
assertEq(baseScript.getComptroller(), 0x0000008ABbFf7a84a2fE09f9A9b74D3BC2072399, "comptroller");
125127
}

0 commit comments

Comments
 (0)