Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ModVersion string
ModVersion contains `pkg/interop` module version suitable to be used in go.mod.
Functions ¶
func GetAccFromContext ¶ added in v0.104.0
GetAccFromContext returns account and wallet from context. If address is not set, default address is used.
func GetUnlockedAccount ¶ added in v0.104.0
func GetUnlockedAccount(wall *wallet.Wallet, addr util.Uint160, pass *string) (*wallet.Account, error)
GetUnlockedAccount returns account from wallet, address and uses pass to unlock specified account if given. If the password is not given, then it is requested from user.
Types ¶
type ProjectConfig ¶
type ProjectConfig struct {
Name string
SourceURL string
SafeMethods []string
SupportedStandards []string
Events []compiler.HybridEvent
Permissions []permission
Overloads map[string]string `yaml:"overloads,omitempty"`
NamedTypes map[string]binding.ExtendedType `yaml:"namedtypes,omitempty"`
}
ProjectConfig contains project metadata.
func ParseContractConfig ¶ added in v0.94.1
func ParseContractConfig(confFile string) (ProjectConfig, error)
ParseContractConfig reads contract configuration file (.yaml) and returns unmarshalled ProjectConfig.
Click to show internal directories.
Click to hide internal directories.