Documentation ¶
Index ¶
- func AsMainUint(value *big.Int, decimals uint64) *big.Float
- func FloatAsSubUnit(amount *big.Float, decimals uint64) *big.Int
- func IntAsSubUnit(amount *big.Int, decimal uint64) *big.Int
- type Amount
- func (a *Amount) Add(toAdd *big.Float)
- func (a *Amount) AsMainUnit() *big.Float
- func (a *Amount) AsSubUnit() *big.Int
- func (a *Amount) Cmp(other *Amount) int
- func (a *Amount) Copy() *Amount
- func (a *Amount) Mul(toMul *big.Float)
- func (a *Amount) String() string
- func (a *Amount) StringWithDecimals() string
- func (a *Amount) Sub(toSub *big.Float)
- type NetworkParams
- func (p *NetworkParams) EVMChainConfig() (*vega.EVMBridgeConfigs, error)
- func (p *NetworkParams) GetEthereumL2Configs() (*vega.EthereumL2Configs, error)
- func (p *NetworkParams) GetMaxTransfersPerEpoch() int64
- func (p *NetworkParams) GetMinFundsForApplyReferral() int64
- func (p *NetworkParams) GetMinimumEthereumEventsForNewValidator() (int, error)
- func (p *NetworkParams) GetMinimumValidatorStake() (*Amount, error)
- func (p *NetworkParams) PrimaryEthereumConfig() (*vega.EthereumConfig, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FloatAsSubUnit ¶ added in v0.76.8
Types ¶
type Amount ¶ added in v0.76.8
type Amount struct {
// contains filtered or unexported fields
}
Amount wraps an amount of a given asset to easily switch between main and sub-unit representation.
func NewAmountFromMainUnit ¶ added in v0.76.8
func NewAmountFromSubUnit ¶ added in v0.76.8
func ParseAmountFromSubUnit ¶ added in v0.76.8
func (*Amount) AsMainUnit ¶ added in v0.76.8
func (*Amount) StringWithDecimals ¶ added in v0.76.8
type NetworkParams ¶
func NewNetworkParams ¶
func NewNetworkParams(params map[string]string) *NetworkParams
func (*NetworkParams) EVMChainConfig ¶ added in v0.76.8
func (p *NetworkParams) EVMChainConfig() (*vega.EVMBridgeConfigs, error)
func (*NetworkParams) GetEthereumL2Configs ¶ added in v0.74.10
func (p *NetworkParams) GetEthereumL2Configs() (*vega.EthereumL2Configs, error)
func (*NetworkParams) GetMaxTransfersPerEpoch ¶ added in v0.76.8
func (p *NetworkParams) GetMaxTransfersPerEpoch() int64
func (*NetworkParams) GetMinFundsForApplyReferral ¶ added in v0.76.8
func (p *NetworkParams) GetMinFundsForApplyReferral() int64
func (*NetworkParams) GetMinimumEthereumEventsForNewValidator ¶
func (p *NetworkParams) GetMinimumEthereumEventsForNewValidator() (int, error)
func (*NetworkParams) GetMinimumValidatorStake ¶
func (p *NetworkParams) GetMinimumValidatorStake() (*Amount, error)
func (*NetworkParams) PrimaryEthereumConfig ¶ added in v0.76.8
func (p *NetworkParams) PrimaryEthereumConfig() (*vega.EthereumConfig, error)
Click to show internal directories.
Click to hide internal directories.