Documentation ¶
Index ¶
- Variables
- func BuildPermitHash(w http.ResponseWriter, r *http.Request)
- func CreateAirdrop(w http.ResponseWriter, r *http.Request)
- func DBCloneMiddleware(db *pgdb.DB) func(http.Handler) http.Handler
- func GetAirdrop(w http.ResponseWriter, r *http.Request)
- func GetAirdropParams(w http.ResponseWriter, r *http.Request)
- func GetBalance(w http.ResponseWriter, r *http.Request)
- func GetTokenDetails(w http.ResponseWriter, r *http.Request)
- func GetTransferParams(w http.ResponseWriter, r *http.Request)
- func MakeTransferWithPermitTx(r *http.Request, attr resources.TransferErc20TokenAttributes, ...) (*types.Transaction, error)
- func SendTransfer(w http.ResponseWriter, r *http.Request)
- type TransferTxParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInsufficienciesAmount = errors.New("amount is insufficient to pay tx fee")
Functions ¶
func BuildPermitHash ¶
func BuildPermitHash(w http.ResponseWriter, r *http.Request)
func CreateAirdrop ¶
func CreateAirdrop(w http.ResponseWriter, r *http.Request)
func DBCloneMiddleware ¶
DBCloneMiddleware is designed to clone DB session on each request. You must put all new DB handlers here instead of ape.CtxMiddleware, unless you have a reason to do otherwise.
func GetAirdrop ¶
func GetAirdrop(w http.ResponseWriter, r *http.Request)
func GetAirdropParams ¶
func GetAirdropParams(w http.ResponseWriter, r *http.Request)
func GetBalance ¶ added in v0.2.1
func GetBalance(w http.ResponseWriter, r *http.Request)
func GetTokenDetails ¶ added in v0.3.0
func GetTokenDetails(w http.ResponseWriter, r *http.Request)
func GetTransferParams ¶
func GetTransferParams(w http.ResponseWriter, r *http.Request)
func MakeTransferWithPermitTx ¶
func MakeTransferWithPermitTx( r *http.Request, attr resources.TransferErc20TokenAttributes, params TransferTxParams, ) (*types.Transaction, error)
func SendTransfer ¶
func SendTransfer(w http.ResponseWriter, r *http.Request)
Types ¶
type TransferTxParams ¶
type TransferTxParams struct {
// contains filtered or unexported fields
}
func EstimateTransfer ¶
func EstimateTransfer(r *http.Request, attr resources.TransferErc20TokenAttributes) (*TransferTxParams, error)
Click to show internal directories.
Click to hide internal directories.