Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainnetName  = "mainnet"
	BuildnetName = "buildnet"

	MainnetChainID  = 77658377
	BuildnetChainID = 77658366

	DefaultNodeURL = "https://buildnet.massa.net/api/v2"
)
View Source
const (
	DefaultMinimalFees = uint64(100_000_000)
	DefaultMaxGas      = uint64(3_980_167_295)
	DefaultMaxCoins    = uint64(10_000_000_000)
	DefaultExpiry      = uint64(3)
	NoCoins            = uint64(0)
)

Variables

This section is empty.

Functions

func NewNetworkConfig

func NewNetworkConfig(NodeURL string) msConfig.NetworkInfos

Types

type SCConfig

type SCConfig struct {
	MinimalFees uint64
	MaxGas      uint64
	MaxCoins    uint64
	Expiry      uint64
}

func NewSCConfig

func NewSCConfig(NodeURL string) SCConfig

Returns a new Config for call sc's

type WalletConfig

type WalletConfig struct {
	WalletNickname string
	NodeUrl        string
}

func NewWalletConfig

func NewWalletConfig(walletNickname string, nodeURL string) WalletConfig

Jump to

Keyboard shortcuts

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