From d8e6ba8f962369be38d127dd7b5b2a01a26612cb Mon Sep 17 00:00:00 2001 From: Michael Standen Date: Wed, 18 Dec 2024 07:11:38 +1300 Subject: [PATCH] Add BlockInterval and BlockRetention to network (#2) --- networks/networks.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/networks/networks.go b/networks/networks.go index f66b21f..af230f3 100644 --- a/networks/networks.go +++ b/networks/networks.go @@ -2,6 +2,7 @@ package networks import ( "strconv" + "time" "github.com/0xsequence/ethkit/ethproviders" ) @@ -30,6 +31,9 @@ type Network struct { InternalIndexerURL string `toml:"internal_indexer_url" json:"-"` InternalRelayerURL string `toml:"internal_relayer_url" json:"-"` + BlockInterval time.Duration `toml:"block_interval" json:"blockInterval,omitempty"` + BlockRetention int `toml:"block_retention" json:"blockRetention,omitempty"` + NativeToken *Currency `toml:"native_token" json:"nativeToken,omitempty"` Currencies []*Currency `toml:"currencies" json:"currencies,omitempty"` }