Documentation ¶
Index ¶
- func NewGetActiveAuthConditionHandler(plugin *authcointx.Plugin, txpool modules.TransactionPool, ...) httprouter.Handle
- func NewGetAddressesAuthStateHandler(plugin *authcointx.Plugin, txpool modules.TransactionPool, ...) httprouter.Handle
- func NewGetAuthConditionAtHandler(plugin *authcointx.Plugin) httprouter.Handle
- func RegisterConsensusAuthCoinHTTPHandlers(router rapi.Router, plugin *authcointx.Plugin, txpool modules.TransactionPool, ...)
- func RegisterExplorerAuthCoinHTTPHandlers(router rapi.Router, plugin *authcointx.Plugin, txpool modules.TransactionPool, ...)
- type GetAddressesAuthStateResponse
- type GetAuthConditionResponse
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.