mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 01:38:32 +00:00
## Summary of changes - We decided to remove the topics and nonce from the massage encoding since we don't use them (original commit:ee2a3f2fd4). - Besides, we already have a nonce at the Snowbridge message levelf4ab5c2b2e/operator/primitives/snowbridge/inbound-queue/src/v2/message.rs (L105)- I had to recreate the static test for _encoding_ (happens in [DataHavenSnowbridgeMessages.sol](d12d40634f/contracts/src/libraries/DataHavenSnowbridgeMessages.sol) ) / _decoding_ (happens in [operator/primitives/bridge/src/lib.rs)](f9f9cc65fe/operator/primitives/bridge/src/lib.rs). Now it matches the current structure. The idea is that now we can test that we don't break the decoding in followup refactoring. - Fixes a problem with EigenLayer validator addresses. In all our contracts we were using `bytes32` to refer to a Solochain validator address. But on our Substrate change we actually expect AccountId20, so only 20 bytes. This was causing the decoding to fail. - I opted for the minimal change that would be to take the right-most 20 bytes to send that to our chain. But we might want aswell to limit our EigenLayer contracts to be only 20 bytes long. @ahmadkaouk showcase this [here](92a34c273c) - Adds a bash script to run the static test. The test will compile the contracts, run the encoding test, compile the operator, and run the decoding test. This saves a huge amount of time since we don't need to run the full e2e setup. The way of running it is the following: ```bash cd operator/test/scripts ./test_message_encoding.sh ``` - As a consequence of this PR, the execution relayer now works properly. EDIT: > [!IMPORTANT] **We decided to use 20-byte addresses in our contracts**. So what is stated above is not valid anymore. The change implies that the mapping from Ethereum addresses to bytes32 addresses now it's a mapping as follows:dd3ba99ac0/contracts/src/DataHavenServiceManager.sol (L51-L52)I've updated helper functions, tests, etc to be compliant with this change. The execution relayer and beefy relayer look stable now. --------- Co-authored-by: Ahmad Kaouk <ahmadkaouk.93@gmail.com> Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com>
51 lines
No EOL
1.9 KiB
JSON
51 lines
No EOL
1.9 KiB
JSON
{
|
|
"eigenLayer": {
|
|
"pausers": [
|
|
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
],
|
|
"unpauser": "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC",
|
|
"rewardsUpdater": "0x90F79bf6EB2c4f870365E785982E1f101E93b906",
|
|
"calculationIntervalSeconds": 86400,
|
|
"maxRewardsDuration": 6048000,
|
|
"maxRetroactiveLength": 7776000,
|
|
"maxFutureLength": 2592000,
|
|
"genesisRewardsTimestamp": 1710979200,
|
|
"activationDelay": 7200,
|
|
"globalCommissionBips": 1000,
|
|
"executorMultisig": "0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65",
|
|
"operationsMultisig": "0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc",
|
|
"minWithdrawalDelayBlocks": 50,
|
|
"delegationInitPausedStatus": 0,
|
|
"eigenPodManagerInitPausedStatus": 0,
|
|
"rewardsCoordinatorInitPausedStatus": 0,
|
|
"allocationManagerInitPausedStatus": 0,
|
|
"deallocationDelay": 50,
|
|
"allocationConfigurationDelay": 75,
|
|
"beaconChainGenesisTimestamp": 1695902400
|
|
},
|
|
"avs": {
|
|
"avsOwner": "0x976EA74026E726554dB657fA54763abd0C3a0aa9",
|
|
"rewardsInitiator": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955",
|
|
"vetoCommitteeMember": "0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f",
|
|
"vetoWindowBlocks": 100,
|
|
"validatorsStrategies": [],
|
|
"bspsStrategies": [],
|
|
"mspsStrategies": []
|
|
},
|
|
"snowbridge": {
|
|
"randaoCommitDelay": 4,
|
|
"randaoCommitExpiration": 24,
|
|
"minNumRequiredSignatures": 2,
|
|
"startBlock": 1,
|
|
"rewardsMessageOrigin": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
"initialValidatorHashes": [
|
|
"0xaeb47a269393297f4b0a3c9c9cfd00c7a4195255274cf39d83dabc2fcc9ff3d7",
|
|
"0xf68aec7304bf37f340dae2ea20fb5271ee28a3128812b84a615da4789e458bde"
|
|
],
|
|
"nextValidatorHashes": [
|
|
"0xaeb47a269393297f4b0a3c9c9cfd00c7a4195255274cf39d83dabc2fcc9ff3d7",
|
|
"0xf68aec7304bf37f340dae2ea20fb5271ee28a3128812b84a615da4789e458bde"
|
|
]
|
|
}
|
|
} |