Documentation
¶
Index ¶
- Constants
- Variables
- func Exists(path string) bool
- func ProcessorRun(raw []byte) ([]byte, map[string]string)
- type Account
- type AccountKey
- type Accounts
- type Config
- type ConfigParsers
- type Contract
- type Contracts
- type Deploy
- type Deployments
- type Emulator
- type Emulators
- type KeyType
- type Loader
- type Network
- type Networks
- type Parser
Constants ¶
const DefaultEmulatorConfigName = "default"
DefaultEmulatorConfigName
Variables ¶
var ErrDoesNotExist = errors.New("project config file does not exist")
ErrDoesNotExist is error to be returned when config file does not exists
Functions ¶
Types ¶
type AccountKey ¶
type AccountKey struct {
Type KeyType
Index int
SigAlgo crypto.SignatureAlgorithm
HashAlgo crypto.HashAlgorithm
Context map[string]string
}
AccountKey is config for account key
type Accounts ¶
type Accounts []Account
func (*Accounts) AddOrUpdate ¶ added in v0.15.0
AddOrUpdate add new or update if already present
func (*Accounts) GetByAddress ¶
GetByAddress get account by address
type Config ¶
type Config struct {
Emulators Emulators
Contracts Contracts
Networks Networks
Accounts Accounts
Deployments Deployments
}
type ConfigParsers ¶ added in v0.15.0
type ConfigParsers []Parser
ConfigParsers lsit of all configuration parsers
func (*ConfigParsers) FindForFormat ¶ added in v0.15.0
func (c *ConfigParsers) FindForFormat(extension string) Parser
FindForFormat finds a parser that can parse a specific format based on extension
type Contracts ¶
type Contracts []Contract
func (*Contracts) AddOrUpdate ¶ added in v0.15.0
AddOrUpdate add new or update if already present
func (*Contracts) GetByNameAndNetwork ¶
GetByNameAndNetwork get contract array for account and network
func (*Contracts) GetByNetwork ¶
GetByNetwork returns all contracts for specific network
type Deploy ¶
type Deploy struct {
Network string // network name to deploy to
Account string // account name to which to deploy to
Contracts []string // contracts names to deploy
}
Deploy structure for contract
type Deployments ¶
type Deployments []Deploy
func (*Deployments) AddOrUpdate ¶ added in v0.15.0
func (d *Deployments) AddOrUpdate(deployment Deploy)
AddOrUpdate add new or update if already present
func (*Deployments) GetByAccountAndNetwork ¶
func (d *Deployments) GetByAccountAndNetwork(account string, network string) []Deploy
GetByAccountAndNetwork get deploy by account and network
func (*Deployments) GetByNetwork ¶
func (d *Deployments) GetByNetwork(network string) Deployments
GetByNetwork get all deployments by network
type Emulators ¶
type Emulators []Emulator
func (*Emulators) AddOrUpdate ¶ added in v0.15.0
AddOrUpdate add new or update if already present
func (*Emulators) GetDefault ¶
GetDefault gets default emulator
type Loader ¶ added in v0.15.0
type Loader struct {
// contains filtered or unexported fields
}
Loader contains actions for composing and modification of configuration
func (*Loader) AddConfigParser ¶ added in v0.15.0
AddConfigParser adds new parssers for configuration
type Networks ¶
type Networks []Network
func (*Networks) AddOrUpdate ¶ added in v0.15.0
AddOrUpdate add new network or update if already present