Documentation ¶
Index ¶
- Variables
- func CtxEthClient(client *ethclient.Client) func(context.Context) context.Context
- func CtxLightweightState(registry *contracts.LightweightState) func(context.Context) context.Context
- func CtxLog(entry *logan.Entry) func(context.Context) context.Context
- func CtxNetworkConfig(cfg *config.NetworkConfig) func(context.Context) context.Context
- func CtxSignedTransitStateMethod(method *abi.Method) func(context.Context) context.Context
- func CtxVoteVerifierRegisterMethod(method *abi.Method) func(context.Context) context.Context
- func CtxVotingRegistry(registry *contracts.VotingRegistry) func(context.Context) context.Context
- func CtxVotingVoteMethod(method *abi.Method) func(context.Context) context.Context
- func EthClient(r *http.Request) *ethclient.Client
- func LightweightState(r *http.Request) *contracts.LightweightState
- func Log(r *http.Request) *logan.Entry
- func NetworkConfig(r *http.Request) *config.NetworkConfig
- func Register(w http.ResponseWriter, r *http.Request)
- func SignedTransitStateMethod(r *http.Request) *abi.Method
- func TransitState(w http.ResponseWriter, r *http.Request)
- func Vote(w http.ResponseWriter, r *http.Request)
- func VoteVerifierRegisterMethod(r *http.Request) *abi.Method
- func VotingRegistry(r *http.Request) *contracts.VotingRegistry
- func VotingVoteMethod(r *http.Request) *abi.Method
Constants ¶
This section is empty.
Variables ¶
View Source
var ONE = 1000000000
ONE - One GWEI
Functions ¶
func CtxEthClient ¶
func CtxLightweightState ¶ added in v0.3.0
func CtxNetworkConfig ¶
func CtxSignedTransitStateMethod ¶ added in v0.3.0
func CtxVotingRegistry ¶
func CtxVotingVoteMethod ¶ added in v0.3.0
func LightweightState ¶ added in v0.3.0
func LightweightState(r *http.Request) *contracts.LightweightState
func NetworkConfig ¶
func NetworkConfig(r *http.Request) *config.NetworkConfig
func SignedTransitStateMethod ¶ added in v0.3.0
func TransitState ¶ added in v0.3.0
func TransitState(w http.ResponseWriter, r *http.Request)
func VotingRegistry ¶
func VotingRegistry(r *http.Request) *contracts.VotingRegistry
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.