handlers

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ONE = 1000000000

ONE - One GWEI

Functions

func Config added in v0.3.4

func Config(r *http.Request) config.Config

func CtxConfig added in v0.3.4

func CtxConfig(cfg config.Config) func(context.Context) context.Context

func CtxLightweightState added in v0.3.0

func CtxLightweightState(registry *contracts.LightweightState) func(context.Context) context.Context

func CtxLog

func CtxLog(entry *logan.Entry) func(context.Context) context.Context

func CtxSignedTransitStateMethod added in v0.3.0

func CtxSignedTransitStateMethod(method *abi.Method) func(context.Context) context.Context

func CtxStateQ added in v0.3.4

func CtxStateQ(stateQ data.StateQ) func(context.Context) context.Context

func CtxVoteVerifierRegisterMethod

func CtxVoteVerifierRegisterMethod(method *abi.Method) func(context.Context) context.Context

func CtxVotingRegistry

func CtxVotingRegistry(registry *contracts.VotingRegistry) func(context.Context) context.Context

func GetSignedState added in v0.3.4

func GetSignedState(w http.ResponseWriter, r *http.Request)

func LightweightState added in v0.3.0

func LightweightState(r *http.Request) *contracts.LightweightState

func Log

func Log(r *http.Request) *logan.Entry

func Register added in v0.3.0

func Register(w http.ResponseWriter, r *http.Request)

func SignedTransitStateMethod added in v0.3.0

func SignedTransitStateMethod(r *http.Request) *abi.Method

func StateQ added in v0.3.4

func StateQ(r *http.Request) data.StateQ

func TransitState added in v0.3.0

func TransitState(w http.ResponseWriter, r *http.Request)

func Vote added in v0.3.0

func Vote(w http.ResponseWriter, r *http.Request)

func VoteVerifierRegisterMethod

func VoteVerifierRegisterMethod(r *http.Request) *abi.Method

func VotingRegistry

func VotingRegistry(r *http.Request) *contracts.VotingRegistry

Types

This section is empty.

Jump to

Keyboard shortcuts

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