Documentation
¶
Index ¶
- Constants
- Variables
- func BalanceContractBalanceOfOptPath() string
- func BalanceContractDecimalsOfOptPath() string
- func ContainerContractDelOptPath() string
- func ContainerContractEACLOptPath() string
- func ContainerContractGetOptPath() string
- func ContainerContractListOptPath() string
- func ContainerContractPutOptPath() string
- func ContainerContractSetEACLOptPath() string
- func ContractEventOptPath(contract, event string) string
- func DialTimeoutOptPath() string
- func EndpointOptPath() string
- func InvocationFeeOptPath(name string) string
- func ListenerDialTimeoutOptPath() string
- func ListenerEndpointOptPath() string
- func MagicNumberOptPath() string
- func NetmapContractAddPeerOptPath() string
- func NetmapContractIRListOptPath() string
- func NetmapContractNetmapOptPath() string
- func NetmapContractNewEpochOptPath() string
- func NetmapContractUpdateStateOptPath() string
- func ScriptHashOptPath(name string) string
- type EventHandlers
- type SmartContracts
Constants ¶
const BalanceContractName = "balance"
BalanceContractName is a name of Balance contract config sub-section.
const (
// NetmapContractName is a Netmap contract's config section name.
NetmapContractName = "netmap"
)
const NewEpochEventType = "new_epoch"
NewEpochEventType is a config section of new epoch notification event.
Variables ¶
var ContractNames = []string{ containerContractName, NetmapContractName, BalanceContractName, }
ContractNames is a list of smart contract names.
var Module = module.Module{
{Constructor: newClient},
{Constructor: newMorphContracts},
{Constructor: newContainerContract},
{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 ¶
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 ¶
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 ScriptHashOptPath ¶
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]*client.StaticClient
SmartContracts maps smart contract name to contract client.