Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootnode Registry #2337

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e9122fd
Add IPAddressRegistry field to Network struct
AnkushinDaniil Dec 3, 2024
cc87aba
Add IPAddressRegistry contract ABI
AnkushinDaniil Dec 3, 2024
d87c388
Add go generate comment for IPAddressRegistry ABI
AnkushinDaniil Dec 3, 2024
f967248
Generate IPAddressRegistry
AnkushinDaniil Dec 3, 2024
2511a58
Add prefix check
AnkushinDaniil Dec 4, 2024
95f9c1d
Add a channel to get IPs from l1 and handler for that
AnkushinDaniil Dec 4, 2024
e0baa58
Add a channel to send IPs to P2P and handlers for that
AnkushinDaniil Dec 4, 2024
2e863e6
Add a channel for l1 and P2P communication and change the order of se…
AnkushinDaniil Dec 4, 2024
4a66b16
Separate subscription creation
AnkushinDaniil Dec 5, 2024
eb8d5a1
Regenerate mock
AnkushinDaniil Dec 5, 2024
4c6b870
Update tests
AnkushinDaniil Dec 5, 2024
fb1be0a
Fix arg
AnkushinDaniil Dec 5, 2024
e8586c9
Remove ticker from params
AnkushinDaniil Dec 5, 2024
6d7da99
Add TestMakeSubscribtionsToIPAddresses
AnkushinDaniil Dec 5, 2024
9648a50
Remove debug logs
AnkushinDaniil Dec 5, 2024
639b4c2
Add TestUnreliableSubscriptionToIPAddresses
AnkushinDaniil Dec 5, 2024
cf245be
Set chan to nil
AnkushinDaniil Dec 6, 2024
22e6d4e
Add TestListenForL1Events
AnkushinDaniil Dec 6, 2024
18d9112
Fix listenForL1Events
AnkushinDaniil Dec 6, 2024
e44d6da
Fix minor erorrs and linter issues
AnkushinDaniil Dec 6, 2024
1701dae
Move ticker closer to its usage
AnkushinDaniil Dec 6, 2024
124697e
Set chans to nil
AnkushinDaniil Dec 6, 2024
3220329
Fix test to pass when peer order change
AnkushinDaniil Dec 6, 2024
3e8661f
Set sepolia SC address
AnkushinDaniil Dec 10, 2024
249a9f9
Fix rebase issues
AnkushinDaniil Dec 18, 2024
b22aa53
Fix rebase issues
AnkushinDaniil Dec 18, 2024
2261edf
Fix chan usage
AnkushinDaniil Dec 18, 2024
d6202df
Fix minor issues
AnkushinDaniil Dec 18, 2024
09367b3
Add test cases
AnkushinDaniil Dec 30, 2024
c59ac72
Add interfaces
AnkushinDaniil Dec 30, 2024
d68c1ce
Generate mocks
AnkushinDaniil Dec 30, 2024
c6ed9dd
Add tests
AnkushinDaniil Dec 30, 2024
4727209
Fix test
AnkushinDaniil Dec 30, 2024
d1397f0
Add IPAddressRegistry field to test
AnkushinDaniil Jan 1, 2025
06a7460
Add IPAddressRegistry field to test
AnkushinDaniil Jan 1, 2025
a425c3c
Add TestNodeWithL1Verification tests
AnkushinDaniil Jan 1, 2025
276aedd
Ignore l1/contract in codecov
AnkushinDaniil Jan 1, 2025
c78d536
Remove interfaces
AnkushinDaniil Jan 1, 2025
4a300ff
Rename IPAddressRegistry to BootnodeRegistry
AnkushinDaniil Jan 2, 2025
4f66c6d
Change pointer to value
AnkushinDaniil Jan 2, 2025
26957c0
Change channel initialization
AnkushinDaniil Jan 2, 2025
1f1be62
Specify that the peer removal is specifically from L1 events
AnkushinDaniil Jan 2, 2025
478e8cd
Remove prefix check
AnkushinDaniil Jan 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ coverage:
only_pulls: true
ignore:
- mocks
- l1/internal/contract/starknet.go
- l1/contract/*
- grpc/gen/*
- vm
- p2p
- adapters/core2p2p
- adapters/p2p2core
- docs
- "**/*_enumer.go"
- "**/*_enumer.go"
217 changes: 217 additions & 0 deletions l1/abi/ip_address_registry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "_updater",
"type": "address"
}
],
"name": "addAuthorizedUpdater",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_ipAddress",
"type": "string"
}
],
"name": "addIPAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "OwnableInvalidOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "ipAddress",
"type": "string"
}
],
"name": "IPAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "ipAddress",
"type": "string"
}
],
"name": "IPRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_updater",
"type": "address"
}
],
"name": "removeAuthorizedUpdater",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "removeIPAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "updater",
"type": "address"
}
],
"name": "UpdaterAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "updater",
"type": "address"
}
],
"name": "UpdaterRemoved",
"type": "event"
},
{
"inputs": [],
"name": "getIPAddresses",
"outputs": [
{
"internalType": "string[]",
"name": "",
"type": "string[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_updater",
"type": "address"
}
],
"name": "isAuthorizedUpdater",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading
Loading