Documentation ¶
Index ¶
- func EVTInit()
- func HexToPubKey(pubKeyHex string) (ecc.PublicKey, error)
- func PubKeyToHex(pk string) (pubKeyHex string, _ error)
- type ActionType
- type Args
- type Authorizers
- type EvtHandler
- func (h *EvtHandler) BuildUnsignedTransaction(fromAddress, fromPublicKey, toAddress string, amount *big.Int, ...) (transaction interface{}, digests []string, err error)
- func (h *EvtHandler) GetAddressBalance(address string, jsonstring string) (balance types.Balance, err error)
- func (h *EvtHandler) GetDefaultFee() types.Value
- func (h *EvtHandler) GetTransactionInfo(txhash string) (fromAddress string, txOutputs []types.TxOutput, jsonstring string, ...)
- func (h *EvtHandler) IsToken() bool
- func (h *EvtHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)
- func (h *EvtHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)
- func (h *EvtHandler) SubmitTransaction(signedTransaction interface{}) (txhash string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PubKeyToHex ¶
Types ¶
type ActionType ¶
type ActionType struct { Name string `json:"name"` Threshold int `json:"threshold"` Authorizers []Authorizers `json:"authorizers"` }
type Args ¶
type Args struct { Name string `json:"name,omitempty"` Creator string `json:"creator,omitempty"` Issue ActionType `json:"issue,omitempty"` Transfer ActionType `json:"transfer,omitempty"` Manage ActionType `json:"manage,omitempty"` TotalSupply int64 `json:"total_supply,omitempty"` From string `json:"from,omitempty"` To string `json:"to,omitempty"` Number string `json:"number,omitempty"` Memo string `json:"memo,omitempty"` }
type Authorizers ¶
type EvtHandler ¶
type EvtHandler struct {
TokenId uint
}
func NewEvtHandler ¶
func NewEvtHandler(tokenId string) *EvtHandler
只支持fungible token EVT币是id=1的token, 用EVT1表示, 其他token表示成EVTid, 比如: EVT2, EVT3
func (*EvtHandler) BuildUnsignedTransaction ¶
func (*EvtHandler) GetAddressBalance ¶
func (*EvtHandler) GetDefaultFee ¶
func (h *EvtHandler) GetDefaultFee() types.Value
func (*EvtHandler) GetTransactionInfo ¶
func (*EvtHandler) IsToken ¶
func (h *EvtHandler) IsToken() bool
func (*EvtHandler) MakeSignedTransaction ¶
func (h *EvtHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)
func (*EvtHandler) PublicKeyToAddress ¶
func (h *EvtHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)
EVT地址就是EVT格式的pubkey
func (*EvtHandler) SubmitTransaction ¶
func (h *EvtHandler) SubmitTransaction(signedTransaction interface{}) (txhash string, err error)
Click to show internal directories.
Click to hide internal directories.