From 31b01629087c610c12fa8e84069786139dc0b6bd Mon Sep 17 00:00:00 2001 From: Nikhil Suri Date: Wed, 26 Jun 2024 10:54:26 -0700 Subject: [PATCH] node: Add emitters for Lido wstETH NTT deployment to NTT Accountant mainnet tracking (#3997) --- node/pkg/accountant/ntt_config.go | 4 ++++ node/pkg/accountant/ntt_test.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/node/pkg/accountant/ntt_config.go b/node/pkg/accountant/ntt_config.go index 5f74457ccc..c1663ecbb4 100644 --- a/node/pkg/accountant/ntt_config.go +++ b/node/pkg/accountant/ntt_config.go @@ -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{ diff --git a/node/pkg/accountant/ntt_test.go b/node/pkg/accountant/ntt_test.go index c2f6638fed..eeafab8278 100644 --- a/node/pkg/accountant/ntt_test.go +++ b/node/pkg/accountant/ntt_test.go @@ -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)) }