Documentation
¶
Index ¶
- Variables
- func ArrayString(value interface{}) ([]string, bool)
- func GetAssetInfo(asset *types.Asset) *service.AssetInfo
- func GetDescByVMState(state avm.VMState) string
- func GetPayloadInfo(p side.Payload, pVersion byte) sideser.PayloadInfo
- func GetTXInfo(tx *types.Transaction) *service.TransactionInfo
- func GetTransactionInfo(cfg *sideser.Config, header interfaces.Header, tx *side.Transaction) *sideser.TransactionInfo
- func GetTransactionInfoFromBytes(txInfoBytes []byte) (*sideser.TransactionInfo, error)
- func NewEngine() *avm.ExecutionEngine
- func RunGetPriceScript(script []byte) (*avm.ExecutionEngine, error)
- func RunScript(script []byte) (*avm.ExecutionEngine, error)
- type BlockInfo
- type Config
- type DeployInfo
- type HeadInfo
- type HttpServiceExtend
- func (s *HttpServiceExtend) GetBlockByHash(param http.Params) (interface{}, error)
- func (s *HttpServiceExtend) GetBlockByHeight(param http.Params) (interface{}, error)
- func (s *HttpServiceExtend) GetIllegalEvidenceByHeight(param http.Params) (interface{}, error)
- func (s *HttpServiceExtend) GetNodeState(param http.Params) (interface{}, error)
- func (s *HttpServiceExtend) GetOpPrice(param http.Params) (interface{}, error)
- func (s *HttpServiceExtend) GetReceivedByAddress(param http.Params) (interface{}, error)
- func (s *HttpServiceExtend) GetTransactionReceipt(param http.Params) (interface{}, error)
- func (s *HttpServiceExtend) GetWithdrawTransactionsByHeight(param http.Params) (interface{}, error)
- func (s *HttpServiceExtend) InvokeFunction(param http.Params) (interface{}, error)
- func (s *HttpServiceExtend) InvokeScript(param http.Params) (interface{}, error)
- func (s *HttpServiceExtend) ListUnspent(param http.Params) (interface{}, error)
- type InvokeInfo
- type PeerInfo
- type ServerInfo
- type UTXOInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var Store database.Database
View Source
var Table interfaces.IScriptTable
Functions ¶
func ArrayString ¶
func GetDescByVMState ¶
func GetPayloadInfo ¶
func GetPayloadInfo(p side.Payload, pVersion byte) sideser.PayloadInfo
func GetTXInfo ¶
func GetTXInfo(tx *types.Transaction) *service.TransactionInfo
func GetTransactionInfo ¶
func GetTransactionInfo(cfg *sideser.Config, header interfaces.Header, tx *side.Transaction) *sideser.TransactionInfo
func GetTransactionInfoFromBytes ¶
func GetTransactionInfoFromBytes(txInfoBytes []byte) (*sideser.TransactionInfo, error)
func NewEngine ¶
func NewEngine() *avm.ExecutionEngine
func RunGetPriceScript ¶
func RunGetPriceScript(script []byte) (*avm.ExecutionEngine, error)
Types ¶
type BlockInfo ¶
type BlockInfo struct {
Version uint32
PrevBlockHash string
MerkleRoot string
ReceiptHash string
Timestamp uint32
Height uint32
Nonce uint32
Hash string
// contains filtered or unexported fields
}
func GetBlockInfo ¶
type DeployInfo ¶
type HeadInfo ¶
type HeadInfo struct {
Version uint32
PrevBlockHash string
TransactionsRoot string
ReceiptHash string
Timestamp uint32
Height uint32
Nonce uint32
Hash string
}
func GetHeaderInfo ¶
type HttpServiceExtend ¶
type HttpServiceExtend struct {
*sideser.HttpService
// contains filtered or unexported fields
}
func NewHttpService ¶
func NewHttpService(cfg *Config, assetid Uint256) *HttpServiceExtend
func (*HttpServiceExtend) GetBlockByHash ¶
func (s *HttpServiceExtend) GetBlockByHash(param http.Params) (interface{}, error)
func (*HttpServiceExtend) GetBlockByHeight ¶
func (s *HttpServiceExtend) GetBlockByHeight(param http.Params) (interface{}, error)
func (*HttpServiceExtend) GetIllegalEvidenceByHeight ¶
func (s *HttpServiceExtend) GetIllegalEvidenceByHeight(param http.Params) (interface{}, error)
func (*HttpServiceExtend) GetNodeState ¶
func (s *HttpServiceExtend) GetNodeState(param http.Params) (interface{}, error)
func (*HttpServiceExtend) GetOpPrice ¶
func (s *HttpServiceExtend) GetOpPrice(param http.Params) (interface{}, error)
func (*HttpServiceExtend) GetReceivedByAddress ¶
func (s *HttpServiceExtend) GetReceivedByAddress(param http.Params) (interface{}, error)
func (*HttpServiceExtend) GetTransactionReceipt ¶
func (s *HttpServiceExtend) GetTransactionReceipt(param http.Params) (interface{}, error)
func (*HttpServiceExtend) GetWithdrawTransactionsByHeight ¶
func (s *HttpServiceExtend) GetWithdrawTransactionsByHeight(param http.Params) (interface{}, error)
func (*HttpServiceExtend) InvokeFunction ¶
func (s *HttpServiceExtend) InvokeFunction(param http.Params) (interface{}, error)
func (*HttpServiceExtend) InvokeScript ¶
func (s *HttpServiceExtend) InvokeScript(param http.Params) (interface{}, error)
func (*HttpServiceExtend) ListUnspent ¶
func (s *HttpServiceExtend) ListUnspent(param http.Params) (interface{}, error)
type InvokeInfo ¶
type PeerInfo ¶
type PeerInfo struct {
NetAddress string `json:"netaddress"`
Services string `json:"services"`
RelayTx bool `json:"relaytx"`
LastSend string `json:"lastsend"`
LastRecv string `json:"lastrecv"`
ConnTime string `json:"conntime"`
TimeOffset int64 `json:"timeoffset"`
Version uint32 `json:"version"`
Inbound bool `json:"inbound"`
StartingHeight uint32 `json:"startingheight"`
LastBlock uint32 `json:"lastblock"`
LastPingTime string `json:"lastpingtime"`
LastPingMicros int64 `json:"lastpingmicros"`
}
type ServerInfo ¶
type ServerInfo struct {
Compile string `json:"compile"` // The compile version of this server node
Height uint32 `json:"height"` // The ServerNode latest block height
Version uint32 `json:"version"` // The network protocol the ServerNode used
Services string `json:"services"` // The services the server supports
Port uint16 `json:"port"` // The nodes's port
RPCPort uint16 `json:"rpcport"` // The RPC service port
RestPort uint16 `json:"restport"` // The RESTful service port
WSPort uint16 `json:"wsport"` // The webservcie port
Neighbors []*PeerInfo `json:"neighbors"` // The connected neighbor peers.
}
Click to show internal directories.
Click to hide internal directories.