config

package
v0.0.0-...-1ac23cf Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerGetConfig

func HandlerGetConfig(ctx *context.Context) http.HandlerFunc

func HandlerUpdateConfig

func HandlerUpdateConfig(ctx *context.Context) http.HandlerFunc

func RegisterRoutes

func RegisterRoutes(r *mux.Router, ctx *context.Context)

Types

type RequestUpdateConfig

type RequestUpdateConfig struct {
	Setup bool   `json:"setup"`
	From  string `json:"from"`
	Chain struct {
		BroadcastMode      string  `json:"broadcast_mode"`
		GasAdjustment      float64 `json:"gas_adjustment"`
		GasPrices          string  `json:"gas_prices"`
		Gas                uint64  `json:"gas"`
		ID                 string  `json:"id"`
		RPCAddress         string  `json:"rpc_address"`
		SimulateAndExecute bool    `json:"simulate_and_execute"`
	} `json:"chain"`
}

func NewRequestUpdateConfig

func NewRequestUpdateConfig(r *http.Request) (*RequestUpdateConfig, error)

func (*RequestUpdateConfig) Validate

func (r *RequestUpdateConfig) Validate() error

Jump to

Keyboard shortcuts

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