 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- type AA
- type Config
- func (c *Config) GetAA() AA
- func (c *Config) GetAccount() accountservice.Config
- func (c *Config) GetContracts() Contracts
- func (c *Config) GetDrpc() rpc.Config
- func (c *Config) GetLimiterConf() limiter.Config
- func (c *Config) GetMetric() metric.Config
- func (c *Config) GetNodeConf() nodeconf.Configuration
- func (c *Config) GetNodeConfStorePath() string
- func (c *Config) GetNonce() Nonce
- func (c *Config) GetQueue() Queue
- func (c *Config) GetQuic() quic.Config
- func (c *Config) GetSentry() Sentry
- 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
- type Nonce
- type Queue
- type Sentry
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          accountservice.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"`
	Nonce            Nonce                  `yaml:"nonce"`
	Queue            Queue                  `yaml:"queue"`
	Limiter          limiter.Config         `yaml:"limiter"`
	Sentry           Sentry                 `yaml:"sentry"`
	// use mongo cache to read data from
	ReadFromCache bool `yaml:"readFromCache"`
	// if false -> will use old-school ENSIP1
	//
	// 1. ENSIP1 standard: ens-go v3.6.0 (current) is using it
	// 2. ENSIP15 standard: that is an another standard for ENS namehashes
	// that was accepted in June 2023.
	//
	// Current AnyNS (as of June 2024) implementation supports ENSIP1, ENSIP15
	Ensip15Validation bool `yaml:"ensip15validation"`
}
    func NewFromFile ¶
func (*Config) GetAccount ¶
func (c *Config) GetAccount() accountservice.Config
func (*Config) GetContracts ¶
func (*Config) GetLimiterConf ¶ added in v0.2.2
func (*Config) GetNodeConf ¶
func (c *Config) GetNodeConf() nodeconf.Configuration
func (*Config) GetNodeConfStorePath ¶
type Contracts ¶
type Contracts struct {
	GethUrl                        string `yaml:"gethUrl"`
	AddrRegistry                   string `yaml:"ensRegistry"`
	AddrResolver                   string `yaml:"resolver"`
	AddrRegistrarImplementation    string `yaml:"registrarImplementation"`
	AddrRegistrarConroller         string `yaml:"registrarController"`
	AddrRegistrarPrivateController string `yaml:"registrarControllerPrivate"`
	AddrToken                      string `yaml:"nameToken"`
	TokenDecimals                  uint8  `yaml:"tokenDecimals"`
	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"`
}
    type Queue ¶
type Queue struct {
	// if true - do not scan DB for items in "stuck" states
	// and do not try to process them
	SkipExistingItemsInDB bool `yaml:"skipExistingItemsInDB"`
	// do not process items means that we will just update their status in the DB
	// as if they were successfully processed (for testing purposes only!)
	SkipProcessing bool `yaml:"isSkipProcessing"`
	SkipBackroundProcessing bool `yaml:"isSkipProcessingBackground"`
	LowNonceRetryCount uint `yaml:"retryCountNonce"`
	HighNonceRetryCount uint `yaml:"retryCountHighNonce"`
}
     Click to show internal directories. 
   Click to hide internal directories.