Skip to content

Commit d8e6ba8

Browse files
Add BlockInterval and BlockRetention to network (#2)
1 parent fa040e7 commit d8e6ba8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

networks/networks.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package networks
22

33
import (
44
"strconv"
5+
"time"
56

67
"github.com/0xsequence/ethkit/ethproviders"
78
)
@@ -30,6 +31,9 @@ type Network struct {
3031
InternalIndexerURL string `toml:"internal_indexer_url" json:"-"`
3132
InternalRelayerURL string `toml:"internal_relayer_url" json:"-"`
3233

34+
BlockInterval time.Duration `toml:"block_interval" json:"blockInterval,omitempty"`
35+
BlockRetention int `toml:"block_retention" json:"blockRetention,omitempty"`
36+
3337
NativeToken *Currency `toml:"native_token" json:"nativeToken,omitempty"`
3438
Currencies []*Currency `toml:"currencies" json:"currencies,omitempty"`
3539
}

0 commit comments

Comments
 (0)