github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/pricegetter/priceprovider/config.go (about)

     1  package priceprovider
     2  
     3  // Type for the price provider
     4  type Type string
     5  
     6  const (
     7  	// UniswapType for uniswap price provider
     8  	UniswapType Type = "uniswap"
     9  )
    10  
    11  // Config represents the configuration of the pricegetter
    12  type Config struct {
    13  	// URL is Ethereum network url, if type is uniswap
    14  	URL string `mapstructure:"URL"`
    15  
    16  	// Type is price getter type
    17  	Type Type `mapstructure:"Type"`
    18  }