Skip to content

Commit

Permalink
fix(core): Rootstock
Browse files Browse the repository at this point in the history
  • Loading branch information
RPate97 committed Feb 22, 2024
1 parent ea68964 commit 51087d6
Show file tree
Hide file tree
Showing 11 changed files with 240 additions and 37 deletions.
6 changes: 6 additions & 0 deletions .changeset/few-carpets-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@sphinx-labs/contracts': patch
'@sphinx-labs/core': patch
---

Improve support for Rootstock
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ Test networks:
- Moonbase Alpha
- Evmos Testnet
- Kava Testnet
- Rootstock Testnet

More networks are on the way! Please reach out to us in our [Discord](https://discord.gg/7Gc3DK33Np) if there are networks you'd like us to add.

Expand Down
15 changes: 11 additions & 4 deletions packages/contracts/contracts/foundry/SphinxConstants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ contract SphinxConstants {
address public constant safeSingletonAddress = 0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552;
address public constant sphinxModuleImplAddress = 0x8f4E4d51B8050B0ff713eff1F88f3dD8b5e8a530;

uint8 internal constant numSupportedNetworks = 41;
uint8 internal constant numSupportedNetworks = 42;

function getNetworkInfoArray() public pure returns (NetworkInfo[] memory) {
NetworkInfo[] memory all = new NetworkInfo[](numSupportedNetworks);
Expand Down Expand Up @@ -241,24 +241,30 @@ contract SphinxConstants {
networkType: NetworkType.Mainnet
});
all[37] = NetworkInfo({
network: Network.rootstock_testnet,
name: "rootstock_testnet",
chainId: 31,
networkType: NetworkType.Testnet
});
all[38] = NetworkInfo({
network: Network.zora,
name: "zora",
chainId: 7777777,
networkType: NetworkType.Mainnet
});
all[38] = NetworkInfo({
all[39] = NetworkInfo({
network: Network.zora_sepolia,
name: "zora_sepolia",
chainId: 999999999,
networkType: NetworkType.Testnet
});
all[39] = NetworkInfo({
all[40] = NetworkInfo({
network: Network.rari,
name: "rari",
chainId: 1380012617,
networkType: NetworkType.Mainnet
});
all[40] = NetworkInfo({
all[41] = NetworkInfo({
network: Network.rari_sepolia,
name: "rari_sepolia",
chainId: 1918988905,
Expand Down Expand Up @@ -306,6 +312,7 @@ enum Network {
scroll,
scroll_sepolia,
rootstock,
rootstock_testnet,
zora,
zora_sepolia,
rari,
Expand Down
Loading

0 comments on commit 51087d6

Please sign in to comment.