api

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetActiveAuthConditionHandler

func NewGetActiveAuthConditionHandler(plugin *authcointx.Plugin, txpool modules.TransactionPool, authConditionTxVersion types.TransactionVersion) httprouter.Handle

NewGetActiveAuthConditionHandler creates a handler to handle the API calls to /explorer/authcoin/condition.

func NewGetAddressesAuthStateHandler

func NewGetAddressesAuthStateHandler(plugin *authcointx.Plugin, txpool modules.TransactionPool, authAddressTxVersion types.TransactionVersion) httprouter.Handle

NewGetAddressesAuthStateHandler creates a handler to handle the API calls to /<root>/authcoin/status.

func NewGetAuthConditionAtHandler

func NewGetAuthConditionAtHandler(plugin *authcointx.Plugin) httprouter.Handle

NewGetAuthConditionAtHandler creates a handler to handle the API calls to /explorer/authcoin/condition/:height.

func RegisterConsensusAuthCoinHTTPHandlers

func RegisterConsensusAuthCoinHTTPHandlers(router rapi.Router, plugin *authcointx.Plugin, txpool modules.TransactionPool, authConditionTxVersion, authAddressTxVersion types.TransactionVersion)

RegisterConsensusAuthCoinHTTPHandlers registers the default Rivine handlers for all default Rivine Consensus HTTP endpoints.

func RegisterExplorerAuthCoinHTTPHandlers

func RegisterExplorerAuthCoinHTTPHandlers(router rapi.Router, plugin *authcointx.Plugin, txpool modules.TransactionPool, authConditionTxVersion, authAddressTxVersion types.TransactionVersion)

RegisterExplorerAuthCoinHTTPHandlers registers the default Rivine handlers for all default Rivine Explorer HTTP endpoints.

Types

type GetAddressesAuthStateResponse

type GetAddressesAuthStateResponse struct {
	AuthStates []bool `json:"auths"`
}

GetAddressesAuthStateResponse contains a requested auth state for the requested addresses, either the current active one active for the given blockheight or lower.

type GetAuthConditionResponse

type GetAuthConditionResponse struct {
	AuthCondition types.UnlockConditionProxy `json:"authcondition"`
}

GetAuthConditionResponse contains a requested auth condition, either the current active one active for the given blockheight or lower.

Jump to

Keyboard shortcuts

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