Documentation ¶
Index ¶
Constants ¶
View Source
const (
DepositMethodName = "deposit"
)
Variables ¶
View Source
var ( // Tx handles request for transactions Tx TxHandler Action ActionHandler )
Functions ¶
This section is empty.
Types ¶
type ActionHandler ¶
type ActionHandler struct { }
ActionHandler is a container for tx related handlers
func (ActionHandler) AfterSign ¶
func (action ActionHandler) AfterSign(plasma *plasma.Plasma) http.HandlerFunc
func (ActionHandler) Deposit ¶
func (action ActionHandler) Deposit(plasma *plasma.Plasma) http.HandlerFunc
deposit icst to root chain and create block in child chain
type AfterSignRequest ¶
type AfterSignResponse ¶
type AfterSignResponse struct {
Res bool `json:"res"`
}
type DepositRequest ¶
type DepositResponse ¶
type DepositResponse struct {
TxHash string `json:"txhash"`
}
type TxHandler ¶
type TxHandler struct { }
TxHandler is a container for tx related handlers
func (TxHandler) New ¶
func (th TxHandler) New(plasma *plasma.Plasma) http.HandlerFunc
New handles transaction creation request
func (TxHandler) Sign ¶
func (th TxHandler) Sign() http.HandlerFunc
Sign handles transaction signature
Click to show internal directories.
Click to hide internal directories.