smartcontract

package
v0.104.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 32 Imported by: 1

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

func GetAccFromContext(ctx *cli.Context) (*wallet.Account, *wallet.Wallet, error)

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.

func NewCommands

func NewCommands() []cli.Command

NewCommands returns 'contract' command.

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.

Jump to

Keyboard shortcuts

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