 Documentation
      ¶
      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) GetNodeConf() nodeconf.Configuration
- func (c *Config) GetNodeConfStorePath() string
- func (c *Config) GetQueue() Queue
- 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
- type Nonce
- type Queue
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"`
	Queue            Queue                  `yaml:"queue"`
	Nonce            Nonce                  `yaml:"nonce"`
	Aa               AA                     `yaml:"accountAbstraction"`
}
    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"`
}
    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:"skip_existing_items_in_db"`
	// 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.