diff --git a/bridge-history-api/internal/config/config.go b/bridge-history-api/internal/config/config.go index d52a112ba..d82bf8785 100644 --- a/bridge-history-api/internal/config/config.go +++ b/bridge-history-api/internal/config/config.go @@ -23,6 +23,7 @@ type FetcherConfig struct { DAIGatewayAddr string `json:"DAIGatewayAddr"` USDCGatewayAddr string `json:"USDCGatewayAddr"` LIDOGatewayAddr string `json:"LIDOGatewayAddr"` + PufferGatewayAddr string `json:"PufferGatewayAddr"` ERC721GatewayAddr string `json:"ERC721GatewayAddr"` ERC1155GatewayAddr string `json:"ERC1155GatewayAddr"` ScrollChainAddr string `json:"ScrollChainAddr"` diff --git a/bridge-history-api/internal/logic/l1_fetcher.go b/bridge-history-api/internal/logic/l1_fetcher.go index d9e42a48d..f2436e6ad 100644 --- a/bridge-history-api/internal/logic/l1_fetcher.go +++ b/bridge-history-api/internal/logic/l1_fetcher.go @@ -93,6 +93,11 @@ func NewL1FetcherLogic(cfg *config.FetcherConfig, db *gorm.DB, client *ethclient gatewayList = append(gatewayList, common.HexToAddress(cfg.LIDOGatewayAddr)) } + if common.HexToAddress(cfg.PufferGatewayAddr) != (common.Address{}) { + addressList = append(addressList, common.HexToAddress(cfg.PufferGatewayAddr)) + gatewayList = append(gatewayList, common.HexToAddress(cfg.PufferGatewayAddr)) + } + log.Info("L1 Fetcher configured with the following address list", "addresses", addressList, "gateways", gatewayList) f := &L1FetcherLogic{ diff --git a/bridge-history-api/internal/logic/l2_fetcher.go b/bridge-history-api/internal/logic/l2_fetcher.go index ec13e70ba..24b583cb5 100644 --- a/bridge-history-api/internal/logic/l2_fetcher.go +++ b/bridge-history-api/internal/logic/l2_fetcher.go @@ -85,7 +85,12 @@ func NewL2FetcherLogic(cfg *config.FetcherConfig, db *gorm.DB, client *ethclient if common.HexToAddress(cfg.LIDOGatewayAddr) != (common.Address{}) { addressList = append(addressList, common.HexToAddress(cfg.LIDOGatewayAddr)) - gatewayList = append(gatewayList, common.HexToAddress(cfg.USDCGatewayAddr)) + gatewayList = append(gatewayList, common.HexToAddress(cfg.LIDOGatewayAddr)) + } + + if common.HexToAddress(cfg.PufferGatewayAddr) != (common.Address{}) { + addressList = append(addressList, common.HexToAddress(cfg.PufferGatewayAddr)) + gatewayList = append(gatewayList, common.HexToAddress(cfg.PufferGatewayAddr)) } log.Info("L2 Fetcher configured with the following address list", "addresses", addressList, "gateways", gatewayList) diff --git a/common/version/version.go b/common/version/version.go index ecd97b2b0..50509e29e 100644 --- a/common/version/version.go +++ b/common/version/version.go @@ -5,7 +5,7 @@ import ( "runtime/debug" ) -var tag = "v4.3.84" +var tag = "v4.3.85" var commit = func() string { if info, ok := debug.ReadBuildInfo(); ok {