Documentation ¶
Index ¶
- Constants
- Variables
- func GetAccessKey() string
- func GetAccessKeyId() string
- func GetAccountId() string
- func GetBool(key string) bool
- func GetGlobalString(key string) string
- func GetString(key string) string
- func GetToken() string
- func Init()
- func IsLoggedIn() bool
- func IsNetworkConfigured(network string) bool
- func IsProjectInit() bool
- func MaybeGetMap(key string) map[string]interface{}
- func MaybeGetString(key string) string
- func SetGlobalConfig(key string, value interface{})
- func SetProjectConfig(key string, value interface{})
- func UnmarshalKey(key string, val interface{}) error
- func WriteExportNetwork(networkId string, network *ExportNetwork) error
- func WriteGlobalConfig() error
- func WriteProjectConfig() error
- type BigInt
- type ChainConfig
- type CliqueConfig
- type EthashConfig
- type ExportNetwork
Constants ¶
View Source
const ( Token = "token" AccessKey = "access_key" AccessKeyId = "access_key_id" AccountID = "account_id" Username = "username" Email = "email" ProjectSlug = "project_slug" Provider = "provider" Exports = "exports" Projects = "projects" )
Variables ¶
View Source
var DefaultChainConfig = &ChainConfig{ HomesteadBlock: 0, EIP150Block: 0, EIP150Hash: common.Hash{}, EIP155Block: 0, EIP158Block: 0, ByzantiumBlock: 0, ConstantinopleBlock: 0, PetersburgBlock: 0, IstanbulBlock: 0, }
View Source
var GlobalConfigName string
View Source
var ProjectConfigName string
View Source
var ProjectDirectory string
Functions ¶
func GetAccessKey ¶ added in v0.8.0
func GetAccessKey() string
func GetAccessKeyId ¶ added in v0.8.0
func GetAccessKeyId() string
func GetAccountId ¶ added in v0.8.0
func GetAccountId() string
func GetGlobalString ¶ added in v0.5.4
func IsLoggedIn ¶ added in v0.1.5
func IsLoggedIn() bool
func IsNetworkConfigured ¶ added in v0.6.0
func IsProjectInit ¶ added in v0.1.5
func IsProjectInit() bool
func MaybeGetMap ¶ added in v0.5.2
func MaybeGetString ¶ added in v0.2.5
func SetGlobalConfig ¶ added in v0.1.5
func SetGlobalConfig(key string, value interface{})
func SetProjectConfig ¶ added in v0.1.5
func SetProjectConfig(key string, value interface{})
func UnmarshalKey ¶ added in v0.6.0
func WriteExportNetwork ¶ added in v0.6.0
func WriteExportNetwork(networkId string, network *ExportNetwork) error
func WriteGlobalConfig ¶ added in v0.1.5
func WriteGlobalConfig() error
func WriteProjectConfig ¶ added in v0.1.5
func WriteProjectConfig() error
Types ¶
type ChainConfig ¶ added in v0.6.0
type ChainConfig struct { HomesteadBlock BigInt `mapstructure:"homestead_block,omitempty" yaml:"homestead_block,omitempty"` EIP150Block BigInt `mapstructure:"eip150_block,omitempty" yaml:"eip150_block,omitempty"` EIP150Hash common.Hash `mapstructure:"eip150_hash,omitempty" yaml:"eip150_hash,omitempty"` EIP155Block BigInt `mapstructure:"eip155_block,omitempty" yaml:"eip155_block,omitempty"` EIP158Block BigInt `mapstructure:"eip158_block,omitempty" yaml:"eip158_block,omitempty"` ByzantiumBlock BigInt `mapstructure:"byzantium_block,omitempty" yaml:"byzantium_block,omitempty"` ConstantinopleBlock BigInt `mapstructure:"constantinople_block,omitempty" yaml:"constantinople_block,omitempty"` PetersburgBlock BigInt `mapstructure:"petersburg_block,omitempty" yaml:"petersburg_block,omitempty"` IstanbulBlock BigInt `mapstructure:"istanbul_block,omitempty" yaml:"istanbul_block,omitempty"` }
func (*ChainConfig) Config ¶ added in v0.6.0
func (c *ChainConfig) Config() (*params.ChainConfig, error)
type CliqueConfig ¶ added in v0.6.0
type EthashConfig ¶ added in v0.6.0
type EthashConfig struct{}
type ExportNetwork ¶ added in v0.6.0
type ExportNetwork struct { Name string `mapstructure:"-"` ProjectSlug string `mapstructure:"project_slug"` RpcAddress string `mapstructure:"rpc_address"` Protocol string `mapstructure:"protocol"` ForkedNetwork string `mapstructure:"forked_network"` ChainConfig *params.ChainConfig `mapstructure:"chain_config"` }
Click to show internal directories.
Click to hide internal directories.