constants

package
v0.2.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Decimals18  = 18
	Univ2Symbol = "UNI-V2"
	Univ2Name   = "Uniswap V2"
)

Variables

View Source
var (
	MinimumLiquidity = big.NewInt(1000)

	Zero  = big.NewInt(0)
	One   = big.NewInt(1)
	Two   = big.NewInt(2)
	Three = big.NewInt(3)
	Five  = big.NewInt(5)
	Ten   = big.NewInt(10)

	B100  = big.NewInt(100)
	B997  = big.NewInt(997)
	B1000 = big.NewInt(1000)
)
View Source
var (
	FactoryAddress = common.HexToAddress("0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f")
	InitCodeHash   = common.FromHex("0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f")
)
View Source
var (
	SolidityTypeMaxima = map[SolidityType]*big.Int{
		Uint8:   big.NewInt(0xff),
		Uint256: math.MaxBig256,
	}
)

Functions

This section is empty.

Types

type ChainID

type ChainID int

ChainID network chain id

const (
	Mainnet ChainID = 1
	Ropsten ChainID = 3
	Rinkeby ChainID = 4
	Goerli  ChainID = 5
	Kovan   ChainID = 42
)

func (ChainID) String

func (i ChainID) String() string

type Rounding

type Rounding int
const (
	RoundDown Rounding = iota
	RoundHalfUp
	RoundUp
)

func (Rounding) Valid

func (r Rounding) Valid() bool

Valid check this rounding mode is valid

type SolidityType

type SolidityType string
const (
	Uint8   SolidityType = "uint8"
	Uint256 SolidityType = "uint256"
)

type TradeType

type TradeType int
const (
	ExactInput TradeType = iota
	ExactOutput
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL