Documentation ¶
Index ¶
- Constants
- type AA
- type Config
- func (c *Config) GetAA() AA
- func (c *Config) GetAccount() commonaccount.Config
- func (c *Config) GetContracts() Contracts
- func (c *Config) GetDrpc() rpc.Config
- func (c *Config) GetMetric() metric.Config
- func (c *Config) GetNodeConf() nodeconf.Configuration
- func (c *Config) GetNodeConfStorePath() string
- func (c *Config) GetQuic() quic.Config
- func (c *Config) GetYamux() yamux.Config
- func (c *Config) Init(a *app.App) (err error)
- func (c *Config) Name() (name string)
- type Contracts
- type Mongo
Constants ¶
View Source
const CName = "config"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AA ¶
type AA struct { AlchemyApiKey string `yaml:"alchemyApiKey"` AlchemyRpcUrl string `yaml:"alchemyRpcUrl"` AccountFactory string `yaml:"accountFactory"` EntryPoint string `yaml:"entryPoint"` GasPolicyId string `yaml:"gasPolicyID"` ChainID int `yaml:"chainID"` NameTokensPerName uint8 `yaml:"nameTokensPerName"` }
type Config ¶
type Config struct { Drpc rpc.Config `yaml:"drpc"` Log logger.Config `yaml:"log"` Account commonaccount.Config `yaml:"account"` Network nodeconf.Configuration `yaml:"network"` NetworkStorePath string `yaml:"networkStorePath"` Quic quic.Config `yaml:"quic"` Yamux yamux.Config `yaml:"yamux"` Mongo Mongo `yaml:"mongo"` Contracts Contracts `yaml:"contracts"` Aa AA `yaml:"accountAbstraction"` Metric metric.Config `yaml:"metric"` // use mongo cache to read data from ReadFromCache bool `yaml:"readFromCache"` }
func NewFromFile ¶
func (*Config) GetAccount ¶
func (c *Config) GetAccount() commonaccount.Config
func (*Config) GetContracts ¶
func (*Config) GetNodeConf ¶
func (c *Config) GetNodeConf() nodeconf.Configuration
func (*Config) GetNodeConfStorePath ¶
type Contracts ¶
type Contracts struct { GethUrl string `yaml:"gethUrl"` AddrRegistry string `yaml:"registry"` AddrResolver string `yaml:"resolver"` AddrRegistrar string `yaml:"registrar"` AddrToken string `yaml:"token"` TokenDecimals uint8 `yaml:"tokenDecimals"` AddrPrivateController string `yaml:"privateController"` AddrNameWrapper string `yaml:"nameWrapper"` AddrAdmin string `yaml:"admin"` AdminPk string `yaml:"adminPk"` // when tx is sent, we will first try to get it N times // each time waiting for X seconds. If we will not get it -> we will think that TX // was immediately rejected without mining, which is a "high nonce" sign // (probabilistic, but it's ok) WaitMiningRetryCount uint `yaml:"waitMintingRetryCount"` }
Click to show internal directories.
Click to hide internal directories.