Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #91 from lidofinance/feat/update-testnets
Browse files Browse the repository at this point in the history
feat: update testnets
  • Loading branch information
avsetsin authored Oct 3, 2023
2 parents f6649cc + b389044 commit 46916fa
Show file tree
Hide file tree
Showing 6 changed files with 1,438 additions and 958 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
submodules: true

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
Expand All @@ -38,7 +38,9 @@ jobs:
pip install wheel
pip install twine
- uses: Gr1N/setup-poetry@v7
- uses: Gr1N/setup-poetry@v8
with:
poetry-version: "1.2.2"
- name: Install dependencies
run: |
poetry install
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ Depending on which network is configured in web3 object, a set of contracts will
Available networks:
- Mainnet
- Görli
- Ropsten
- Rinkeby
- Holesky

## Development

Expand Down
12 changes: 2 additions & 10 deletions lido_sdk/contract/load_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,13 @@
LIDO_ADDRESSES = {
Network.Mainnet: "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
Network.Görli: "0x1643E812aE58766192Cf7D2Cf9567dF2C37e9B7F",
Network.Ropsten: "0xd40EefCFaB888C9159a61221def03bF77773FC19",
Network.Rinkeby: "0xF4242f9d78DB7218Ad72Ee3aE14469DBDE8731eD",
Network.Kintsugi: "0x3a6a994AC0CC96b6DDbaA99F10769384Fa14227B",
Network.Kiln: "0x3E50180cf438e185ec52Ade55855718584541476",
Network.Zhejiang: "0xDe82ADEd58dA35add75Ea4676239Ca169c8dCD15",
Network.Holesky: "0x3F1c547b21f65e10480dE3ad8E19fAAC46C95034",
}

NODE_OPS_ADDRESSES = {
Network.Mainnet: "0x55032650b14df07b85bF18A3a3eC8E0Af2e028d5",
Network.Görli: "0x9D4AF1Ee19Dad8857db3a45B0374c81c8A1C6320",
Network.Ropsten: "0x32c6f34F3920E8c0074241619c02be2fB722a68d",
Network.Rinkeby: "0x776dFe7Ec5D74526Aa65898B7d77FCfdf15ffBe6",
Network.Kintsugi: "0xeb7D01f713F59EFfB350D05b7AF66720373D4F41",
Network.Kiln: "0xb849C5b35DC45277Bad5c6F2c6C77183d842367c",
Network.Zhejiang: "0xB099EC462e42Ac2570fB298B42083D7A499045D8",
Network.Holesky: "0x595F64Ddc3856a3b5Ff4f4CC1d1fb4B46cFd2bAC",
}


Expand Down
8 changes: 1 addition & 7 deletions lido_sdk/eth_multicall/multicall_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

MULTICALL_ADDRESSES = {
Network.Mainnet: "0xeefBa1e63905eF1D7ACbA5a8513c70307C1cE441",
Network.Kovan: "0x2cc8688C5f75E365aaEEb4ea8D6a480405A48D2A",
Network.Rinkeby: "0x42Ad527de7d4e9d9d011aC45B31D8551f8Fe9821",
Network.Görli: "0x77dCa2C955b15e9dE4dbBCf1246B4B85b651e50e",
Network.xDai: "0xb5b692a88BDFc81ca69dcB1d924f59f0413A602a",
Network.Ropsten: "0x53c43764255c17bd724f74c4ef150724ac50a3ed",
Network.Kintsugi: "0x34cA8B8879C3578FBcDd50D88ECc29eDdBEDE0fD",
Network.Kiln: "0x7C7080f63Bc44321eDbB0b64D3e8B37aC7edc623",
Network.Zhejiang: "0x8BBCF7cCBEE4aaDE9f58D2345Ee7605228974456",
Network.Holesky: "0x34cA8B8879C3578FBcDd50D88ECc29eDdBEDE0fD",
}
26 changes: 3 additions & 23 deletions lido_sdk/network/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,15 @@

class Network(IntEnum):
Mainnet = 1
Kovan = 42
Rinkeby = 4
Görli = 5
xDai = 100
Ropsten = 3
Kintsugi = 1337702
Kiln = 1337802
Zhejiang = 1337803
Holesky = 17000


# Network
GENESIS_FORK_VERSION = {
Network.Mainnet: bytes.fromhex("00000000"),
Network.Görli: bytes.fromhex("00001020"),
Network.Ropsten: bytes.fromhex("00000000"),
Network.Rinkeby: bytes.fromhex("00000000"),
Network.Kintsugi: bytes.fromhex("60000069"),
Network.Kiln: bytes.fromhex("70000069"),
Network.Zhejiang: bytes.fromhex("00000069"),
Network.Holesky: bytes.fromhex("01017000"),
}

# Existing withdrawal credentials on the chain
Expand All @@ -34,15 +24,5 @@ class Network(IntEnum):
Network.Görli: [
"0x00040517ce98f81070cea20e35610a3ae23a45f0883b0b035afc5717cc2e833e"
],
Network.Ropsten: [
"0x01000000000000000000000002139137fdd974181a49268d7b0ae888634e5469",
"0x000000000000000000000000ff139137fdd974181a49268d7b0ae888634e5469",
"0x000000000000000000000000aa139137fdd974181a49268d7b0ae888634e5469",
"0x010000000000000000000000aa139137fdd974181a49268d7b0ae888634e5469",
"0x73c72beecbd832c9ce342e61a772c8cfe6f1c6d661b19a98317b5dac05ce9685",
],
Network.Rinkeby: [],
Network.Kintsugi: [],
Network.Kiln: [],
Network.Zhejiang: [],
Network.Holesky: [],
}
Loading

0 comments on commit 46916fa

Please sign in to comment.