morph

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const BalanceContractName = "balance"

BalanceContractName is a name of Balance contract config sub-section.

View Source
const (
	// NetmapContractName is a Netmap contract's config section name.
	NetmapContractName = "netmap"
)
View Source
const NewEpochEventType = "new_epoch"

NewEpochEventType is a config section of new epoch notification event.

Variables

View Source
var ContractNames = []string{
	containerContractName,
	reputationContractName,
	NetmapContractName,
	BalanceContractName,
}

ContractNames is a list of smart contract names.

View Source
var Module = module.Module{
	{Constructor: newMorphClient},
	{Constructor: newMorphContracts},
	{Constructor: newContainerContract},
	{Constructor: newReputationContract},
	{Constructor: newNetmapContract},
	{Constructor: newEventListener},
	{Constructor: newBalanceContract},
}

Module is a Neo:Morph module.

Functions

func BalanceContractBalanceOfOptPath

func BalanceContractBalanceOfOptPath() string

BalanceContractBalanceOfOptPath is a path to balanceOf method name option.

func BalanceContractDecimalsOfOptPath

func BalanceContractDecimalsOfOptPath() string

BalanceContractDecimalsOfOptPath is a path to decimals method name option.

func ContainerContractDelOptPath

func ContainerContractDelOptPath() string

ContainerContractDelOptPath returns the config path to delete container method name of Container contract.

func ContainerContractEACLOptPath

func ContainerContractEACLOptPath() string

ContainerContractEACLOptPath returns the config path to get eACL method name of Container contract.

func ContainerContractGetOptPath

func ContainerContractGetOptPath() string

ContainerContractGetOptPath returns the config path to get container method name of Container contract.

func ContainerContractListOptPath

func ContainerContractListOptPath() string

ContainerContractListOptPath returns the config path to list containers method name of Container contract.

func ContainerContractPutOptPath

func ContainerContractPutOptPath() string

ContainerContractPutOptPath returns the config path to put container method name of Container contract.

func ContainerContractSetEACLOptPath

func ContainerContractSetEACLOptPath() string

ContainerContractSetEACLOptPath returns the config path to set eACL method name of Container contract.

func ContractEventOptPath

func ContractEventOptPath(contract, event string) string

ContractEventOptPath returns the config path to notification event name of particular contract.

func DialTimeoutOptPath

func DialTimeoutOptPath() string

DialTimeoutOptPath returns the config path to goclient dial timeout.

func EndpointOptPath

func EndpointOptPath() string

EndpointOptPath returns the config path to goclient endpoint.

func InvocationFeeOptPath

func InvocationFeeOptPath(name string) string

InvocationFeeOptPath calculates the config path to invocation fee config of particular contract.

func ListenerDialTimeoutOptPath

func ListenerDialTimeoutOptPath() string

ListenerDialTimeoutOptPath returns the config path to event listener's dial timeout.

func ListenerEndpointOptPath

func ListenerEndpointOptPath() string

ListenerEndpointOptPath returns the config path to event listener's endpoint.

func MagicNumberOptPath

func MagicNumberOptPath() string

MagicNumberOptPath returns the config path to goclient magic number.

func NetmapContractAddPeerOptPath

func NetmapContractAddPeerOptPath() string

NetmapContractAddPeerOptPath returns the config path to add peer method of Netmap contract.

func NetmapContractIRListOptPath

func NetmapContractIRListOptPath() string

NetmapContractIRListOptPath returns the config path to inner ring list method of Netmap contract.

func NetmapContractNetmapOptPath

func NetmapContractNetmapOptPath() string

NetmapContractNetmapOptPath returns the config path to get netmap method of Netmap contract.

func NetmapContractNewEpochOptPath

func NetmapContractNewEpochOptPath() string

NetmapContractNewEpochOptPath returns the config path to new epoch method of Netmap contract.

func NetmapContractUpdateStateOptPath

func NetmapContractUpdateStateOptPath() string

NetmapContractUpdateStateOptPath returns the config path to update state method of Netmap contract.

func ReputationContractListOptPath

func ReputationContractListOptPath() string

ReputationContractListOptPath returns the config path to list method of Reputation contract.

func ReputationContractPutOptPath

func ReputationContractPutOptPath() string

ReputationContractPutOptPath returns the config path to put method of Reputation contract.

func ScriptHashOptPath

func ScriptHashOptPath(name string) string

ScriptHashOptPath calculates the config path to script hash config of particular contract.

Types

type EventHandlers

type EventHandlers map[string]event.HandlerInfo

EventHandlers maps notification event name to handler information.

type SmartContracts

type SmartContracts map[string]implementations.StaticContractClient

SmartContracts maps smart contract name to contract client.

Jump to

Keyboard shortcuts

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