Documentation
¶
Index ¶
- Constants
- Variables
- func Exit(code int, msg string)
- func Exitf(code int, msg string, args ...interface{})
- func ProjectExists() bool
- func RandomSeed(n int) []byte
- type Account
- type Contract
- type Project
- func (p *Project) ContractConflictExists(network string) bool
- func (p *Project) EmulatorServiceAccount() config.Account
- func (p *Project) GetAccountByAddress(address string) *Account
- func (p *Project) GetAccountByName(name string) *Account
- func (p *Project) GetAliases(network string) map[string]string
- func (p *Project) GetAllAccountNames() []string
- func (p *Project) GetContractsByNetwork(network string) []Contract
- func (p *Project) Host(network string) string
- func (p *Project) Save()
- type Spinner
Constants ¶
View Source
const DefaultConfigPath = "flow.json"
REF: move this to json config
View Source
const EnvPrefix = "FLOW"
Variables ¶
View Source
var Bold = color.New(color.Bold).SprintfFunc()
Colors
Functions ¶
func ProjectExists ¶
func ProjectExists() bool
func RandomSeed ¶
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func (*Account) DefaultKey ¶
func (a *Account) DefaultKey() keys.AccountKey
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func InitProject ¶
func InitProject() *Project
func LoadProject ¶
func LoadProject() *Project
func (*Project) ContractConflictExists ¶
CheckContractConflict checks if there is any contract duplication between accounts for now we don't allow two different accounts deploying same contract
func (*Project) EmulatorServiceAccount ¶
func (*Project) GetAccountByAddress ¶
func (*Project) GetAccountByName ¶
func (*Project) GetAllAccountNames ¶
func (*Project) GetContractsByNetwork ¶
Click to show internal directories.
Click to hide internal directories.