Documentation ¶
Index ¶
- func GetBlockTxHashes(cliCtx context.CLIContext, height int64) ([]string, error)
- func ManageContractBlockedListProposalRESTHandler(context.CLIContext) govRest.ProposalRESTHandler
- func ManageContractBytecodeProposalRESTHandler(context.CLIContext) govRest.ProposalRESTHandler
- func ManageContractDeploymentWhitelistProposalRESTHandler(context.CLIContext) govRest.ProposalRESTHandler
- func ManageContractMethodBlockedListProposalRESTHandler(context.CLIContext) govRest.ProposalRESTHandler
- func ManageSysContractAddressProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
- func QueryContractBlockedListHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func QueryContractMethodBlockedListHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func QueryManageSysContractAddressFn(cliCtx context.CLIContext) http.HandlerFunc
- func QuerySectionFn(cliCtx context.CLIContext) http.HandlerFunc
- func QueryTx(cliCtx context.CLIContext, hashHexStr string) (interface{}, error)
- func QueryTxRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
- func ValidateTxResult(cliCtx context.CLIContext, resTx *ctypes.ResultTx) error
- type ManageSysContractAddressProposalReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockTxHashes ¶ added in v1.1.5
func GetBlockTxHashes(cliCtx context.CLIContext, height int64) ([]string, error)
GetBlockTxHashes return tx hashes in the block of the given height
func ManageContractBlockedListProposalRESTHandler ¶
func ManageContractBlockedListProposalRESTHandler(context.CLIContext) govRest.ProposalRESTHandler
ManageContractBlockedListProposalRESTHandler defines evm proposal handler
func ManageContractBytecodeProposalRESTHandler ¶ added in v1.7.0
func ManageContractBytecodeProposalRESTHandler(context.CLIContext) govRest.ProposalRESTHandler
ManageContractBytecodeProposalRESTHandler defines evm proposal handler
func ManageContractDeploymentWhitelistProposalRESTHandler ¶
func ManageContractDeploymentWhitelistProposalRESTHandler(context.CLIContext) govRest.ProposalRESTHandler
ManageContractDeploymentWhitelistProposalRESTHandler defines evm proposal handler
func ManageContractMethodBlockedListProposalRESTHandler ¶ added in v1.0.0
func ManageContractMethodBlockedListProposalRESTHandler(context.CLIContext) govRest.ProposalRESTHandler
ManageContractMethodBlockedListProposalRESTHandler defines evm proposal handler
func ManageSysContractAddressProposalRESTHandler ¶ added in v1.6.6
func ManageSysContractAddressProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
ManageSysContractAddressProposalRESTHandler defines evm proposal handler
func QueryContractBlockedListHandlerFn ¶ added in v0.19.7
func QueryContractBlockedListHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
QueryContractBlockedListHandlerFn defines evm contract blocked list handler
func QueryContractMethodBlockedListHandlerFn ¶ added in v1.0.0
func QueryContractMethodBlockedListHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
QueryContractMethodBlockedListHandlerFn defines evm contract method blocked list handler
func QueryManageSysContractAddressFn ¶ added in v1.6.6
func QueryManageSysContractAddressFn(cliCtx context.CLIContext) http.HandlerFunc
QueryManageSysContractAddressFn defines evm contract method blocked list handler
func QuerySectionFn ¶
func QuerySectionFn(cliCtx context.CLIContext) http.HandlerFunc
func QueryTx ¶
func QueryTx(cliCtx context.CLIContext, hashHexStr string) (interface{}, error)
QueryTx queries for a single transaction by a hash string in hex format. An error is returned if the transaction does not exist or cannot be queried.
func QueryTxRequestHandlerFn ¶
func QueryTxRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes - Central function to define routes that get registered by the main application
func ValidateTxResult ¶
func ValidateTxResult(cliCtx context.CLIContext, resTx *ctypes.ResultTx) error
ValidateTxResult performs transaction verification.
Types ¶
type ManageSysContractAddressProposalReq ¶ added in v1.6.6
type ManageSysContractAddressProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` ContractAddr sdk.AccAddress `json:"contract_address" yaml:"contract_address"` IsAdded bool `json:"is_added" yaml:"is_added"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"` }