Skip to content

Commit

Permalink
node: Add emitters for Lido wstETH NTT deployment to NTT Accountant m…
Browse files Browse the repository at this point in the history
…ainnet tracking (#3997)
  • Loading branch information
nik-suri authored and evan-gray committed Jul 5, 2024
1 parent 0988062 commit 31b0162
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions node/pkg/accountant/ntt_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ func nttGetEmitters(env common.Environment) (validEmitters, validEmitters, error
arEmitterConfig := sdk.KnownAutomaticRelayerEmitters
if env == common.MainNet {
directEmitterConfig = emitterConfig{
// W + NTT deployment emitters
{chainId: vaa.ChainIDSolana, addr: "cf5f3614e2cd9b374558f35c7618b25f0d306d5e749b7d29cc030a1a15686238"},
{chainId: vaa.ChainIDEthereum, addr: "000000000000000000000000Db55492d7190D1baE8ACbE03911C4E3E7426870c"},
{chainId: vaa.ChainIDArbitrum, addr: "000000000000000000000000D1a8AB69e00266e8B791a15BC47514153A5045a6"},
{chainId: vaa.ChainIDOptimism, addr: "0000000000000000000000009bD8b7b527CA4e6738cBDaBdF51C22466756073d"},
{chainId: vaa.ChainIDBase, addr: "000000000000000000000000D1a8AB69e00266e8B791a15BC47514153A5045a6"},
// Lido wstETH + NTT deployment emitters
{chainId: vaa.ChainIDEthereum, addr: "000000000000000000000000A1ACC1e6edaB281Febd91E3515093F1DE81F25c0"},
{chainId: vaa.ChainIDBSC, addr: "000000000000000000000000be3F7e06872E0dF6CD7FF35B7aa4Bb1446DC9986"},
}
} else if env == common.TestNet {
directEmitterConfig = emitterConfig{
Expand Down
2 changes: 1 addition & 1 deletion node/pkg/accountant/ntt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func TestNttParseArMsgUnknownArEmitter(t *testing.T) {
func TestNttVerifyMainnetEmitters(t *testing.T) {
directEmitters, arEmitters, err := nttGetEmitters(common.MainNet)
require.NoError(t, err)
assert.Equal(t, 5, len(directEmitters)) // TODO: Change this when we add a mainnet emitter!
assert.Equal(t, 7, len(directEmitters)) // TODO: Change this when we add a mainnet emitter!
assert.NotEqual(t, 0, len(arEmitters))
}

Expand Down

0 comments on commit 31b0162

Please sign in to comment.