Skip to content

Commit

Permalink
Add BlockInterval and BlockRetention to network (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScreamingHawk authored Dec 17, 2024
1 parent fa040e7 commit d8e6ba8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions networks/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package networks

import (
"strconv"
"time"

"github.com/0xsequence/ethkit/ethproviders"
)
Expand Down Expand Up @@ -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"`
}
Expand Down

0 comments on commit d8e6ba8

Please sign in to comment.