smartcontract

package
v0.0.0-...-886a677 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 29 Imported by: 0

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 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

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