Documentation
¶
Index ¶
- func GetETHAccountBalance(address string) (float64, error)
- type Config
- type Verifier
- func (v *Verifier) CLIToolExecutor(userText string)
- func (v *Verifier) CLIToolStart()
- func (v *Verifier) DepositHandler(c *gin.Context)
- func (v *Verifier) EthereumBalance(c *gin.Context)
- func (v *Verifier) ExitHandler(c *gin.Context)
- func (v *Verifier) HistoryAllHandler(c *gin.Context)
- func (v *Verifier) HistoryTxHandler(c *gin.Context)
- func (v *Verifier) LatestBlockHandler(c *gin.Context)
- func (v *Verifier) PlasmaBalance(c *gin.Context)
- func (v *Verifier) PlasmaContractAddress(c *gin.Context)
- func (v *Verifier) Serve(ctx context.Context) error
- func (v *Verifier) ServerStart(r *gin.Engine) error
- func (v *Verifier) TotalBalanceHandler(c *gin.Context)
- func (v *Verifier) TransferHandler(c *gin.Context)
- func (v *Verifier) VerifiersAmountHandler(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetETHAccountBalance ¶
Types ¶
type Config ¶
type Config struct {
VerifierPort int `env:"verifier_port" envDefault:"8080"` // port where verifier server runs
VerifierPrivateKey string `env:"main_account_private_key" envDefault:"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201"` // private key of account who deploy plasma contract and who push blocks to it (operator)
VerifierEthereumAddress string `env:"main_account_public_key" envDefault:"0x6704Fbfcd5Ef766B287262fA2281C105d57246a6"` // public key of account who deploy plasma contract and who push blocks to it (operator)
PlasmaContractAddress string `env:"plasma_contract_address" envDefault:"0xb70f898520cd51d2a258ff0af25578289140c2fe"` // address of plasma smart contract
GethHost string `env:"geth_host" envDefault:"ws://127.0.0.1:8545"`
OperatorHost string `env:"operator_host" envDefault:"http://127.0.0.1:3001"`
}
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
func NewVerifier ¶
func (*Verifier) CLIToolExecutor ¶
func (*Verifier) CLIToolStart ¶
func (v *Verifier) CLIToolStart()
func (*Verifier) DepositHandler ¶
func (*Verifier) EthereumBalance ¶
func (*Verifier) ExitHandler ¶
func (*Verifier) HistoryAllHandler ¶
func (*Verifier) HistoryTxHandler ¶
func (*Verifier) LatestBlockHandler ¶
func (*Verifier) PlasmaBalance ¶
func (*Verifier) PlasmaContractAddress ¶
func (*Verifier) TotalBalanceHandler ¶
func (*Verifier) TransferHandler ¶
func (*Verifier) VerifiersAmountHandler ¶
Click to show internal directories.
Click to hide internal directories.