morph

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: GPL-3.0 Imports: 85 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RootCmd is a root command of config section.
	RootCmd = &cobra.Command{
		Use:   "morph",
		Short: "Section for morph network configuration commands",
	}
)

Functions

This section is empty.

Types

type Client added in v0.28.2

type Client interface {
	invoker.RPCInvoke

	GetBlockCount() (uint32, error)
	GetContractStateByID(int32) (*state.Contract, error)
	GetContractStateByHash(util.Uint160) (*state.Contract, error)
	GetNativeContracts() ([]state.NativeContract, error)
	GetNetwork() (netmode.Magic, error)
	GetApplicationLog(util.Uint256, *trigger.Type) (*result.ApplicationLog, error)
	GetVersion() (*result.Version, error)
	CreateTxFromScript([]byte, *wallet.Account, int64, int64, []rpcclient.SignerAccount) (*transaction.Transaction, error)
	NEP17BalanceOf(util.Uint160, util.Uint160) (int64, error)
	SendRawTransaction(*transaction.Transaction) (util.Uint256, error)
	GetCommittee() (keys.PublicKeys, error)
	CalculateNotaryFee(uint8) (int64, error)
	CalculateNetworkFee(tx *transaction.Transaction) (int64, error)
	AddNetworkFee(*transaction.Transaction, int64, ...*wallet.Account) error
	SignAndPushInvocationTx([]byte, *wallet.Account, int64, fixedn.Fixed8, []rpcclient.SignerAccount) (util.Uint256, error)
	SignAndPushP2PNotaryRequest(*transaction.Transaction, []byte, int64, int64, uint32, *wallet.Account) (*payload.P2PNotaryRequest, error)
}

Client represents N3 client interface capable of test-invoking scripts and sending signed transactions to chain.

type Container added in v0.24.0

type Container struct {
	Value     []byte `json:"value"`
	Signature []byte `json:"signature"`
	PublicKey []byte `json:"public_key"`
	Token     []byte `json:"token"`
	EACL      *EACL  `json:"eacl"`
}

Container represents container struct in contract storage.

func (*Container) FromStackItem added in v0.24.0

func (c *Container) FromStackItem(item stackitem.Item) error

FromStackItem implements stackitem.Convertible.

func (*Container) ToStackItem added in v0.24.0

func (c *Container) ToStackItem() (stackitem.Item, error)

ToStackItem implements stackitem.Convertible.

type EACL added in v0.24.0

type EACL struct {
	Value     []byte `json:"value"`
	Signature []byte `json:"signature"`
	PublicKey []byte `json:"public_key"`
	Token     []byte `json:"token"`
}

EACL represents extended ACL struct in contract storage.

func (*EACL) FromStackItem added in v0.24.0

func (c *EACL) FromStackItem(item stackitem.Item) error

FromStackItem implements stackitem.Convertible.

func (*EACL) ToStackItem added in v0.24.0

func (c *EACL) ToStackItem() (stackitem.Item, error)

ToStackItem implements stackitem.Convertible.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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