Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrProvider = errors.New("unknown provider") ErrAddress = errors.New("invalid address") ErrProperty = errors.New("invalid property value") ErrInvalidRequst = errors.New("provider can't handle request") )
Errors
Functions ¶
Types ¶
type BnbTxRequest ¶
type BnbTxRequest struct {
To string
GasPrice uint64
GasLimits uint64
Value uint64
Script []byte
ChainID string
AccSequence int64
AccNumber int64
Denom string
Memo string
}
BnbTxRequest .
type EthTxRequest ¶
type EthTxRequest struct {
Nonce uint64
To string
GasPrice *fixed.Number
GasLimits *big.Int
Value *fixed.Number
Script []byte
}
EthTxRequest .
type OntTxRequest ¶
type OntTxRequest struct {
// From *ont.Account
To string
GasPrice uint64
GasLimits uint64
Value uint64
Script []byte
}
OntTxRequest .
type Provider ¶
type Provider interface {
Name() string // provider offical name
RawTransaction(key key.Key, request interface{}, property Property) ([]byte, string, error) // transfer global asset
}
Provider .
type TrxTxRequest ¶
type TrxTxRequest struct {
To string
Value uint64
Script []byte
Transaction trx.CreateTransactionResponse
}
TrxTxRequest .
Click to show internal directories.
Click to hide internal directories.