Documentation ¶
Index ¶
- Constants
- func NewChainAdaptor(conf *config.Config) (wallet.WalletAdaptor, error)
- func NewLocalWalletAdaptor(network config.NetWorkType) wallet.WalletAdaptor
- type GetTxByAddressRes
- type GetTxByAddressTx
- type Header
- type Instructions
- type Message
- type Transaction
- type TxMessage
- type WalletAdaptor
- func (a *WalletAdaptor) ConvertAddress(req *wallet2.ConvertAddressRequest) (*wallet2.ConvertAddressResponse, error)
- func (a *WalletAdaptor) CreateAccountSignedTx(req *wallet2.CreateAccountSignedTxRequest) (*wallet2.CreateSignedTxResponse, error)
- func (a *WalletAdaptor) CreateAccountTx(req *wallet2.CreateAccountTxRequest) (*wallet2.CreateAccountTxResponse, error)
- func (a *WalletAdaptor) CreateUtxoSignedTx(req *wallet2.CreateUtxoSignedTxRequest) (*wallet2.CreateSignedTxResponse, error)
- func (a *WalletAdaptor) CreateUtxoTx(req *wallet2.CreateUtxoTxRequest) (*wallet2.CreateUtxoTxResponse, error)
- func (a *WalletAdaptor) GetAccount(req *wallet2.AccountRequest) (*wallet2.AccountResponse, error)
- func (a *WalletAdaptor) GetAccountTxFromData(req *wallet2.TxFromDataRequest) (*wallet2.AccountTxResponse, error)
- func (a *WalletAdaptor) GetAccountTxFromSignedData(req *wallet2.TxFromSignedDataRequest) (*wallet2.AccountTxResponse, error)
- func (a *WalletAdaptor) GetBalance(req *wallet2.BalanceRequest) (*wallet2.BalanceResponse, error)
- func (w *WalletAdaptor) GetGasPrice(req *wallet2.GasPriceRequest) (*wallet2.GasPriceResponse, error)
- func (a *WalletAdaptor) GetMinRent(req *wallet2.MinRentRequest) (*wallet2.MinRentResponse, error)
- func (w *WalletAdaptor) GetNonce(req *wallet2.NonceRequest) (*wallet2.NonceResponse, error)
- func (w *WalletAdaptor) GetSupportCoins(req *wallet2.SupportCoinsRequest) (*wallet2.SupportCoinsResponse, error)
- func (a *WalletAdaptor) GetTxByAddress(req *wallet2.TxAddressRequest) (*wallet2.TxAddressResponse, error)
- func (a *WalletAdaptor) GetTxByHash(req *wallet2.TxHashRequest) (*wallet2.TxHashResponse, error)
- func (a *WalletAdaptor) GetUtxo(req *wallet2.UtxoRequest) (*wallet2.UtxoResponse, error)
- func (a *WalletAdaptor) GetUtxoInsFromData(req *wallet2.UtxoInsFromDataRequest) (*wallet2.UtxoInsResponse, error)
- func (a *WalletAdaptor) GetUtxoTxFromData(req *wallet2.TxFromDataRequest) (*wallet2.UtxoTxResponse, error)
- func (a *WalletAdaptor) GetUtxoTxFromSignedData(req *wallet2.TxFromSignedDataRequest) (*wallet2.UtxoTxResponse, error)
- func (w *WalletAdaptor) SendTx(req *wallet2.SendTxRequest) (*wallet2.SendTxResponse, error)
- func (a *WalletAdaptor) ValidAddress(req *wallet2.ValidAddressRequest) (*wallet2.ValidAddressResponse, error)
- func (a *WalletAdaptor) VerifyAccountSignedTx(req *wallet2.VerifySignedTxRequest) (*wallet2.VerifySignedTxResponse, error)
- func (a *WalletAdaptor) VerifyUtxoSignedTx(req *wallet2.VerifySignedTxRequest) (*wallet2.VerifySignedTxResponse, error)
Constants ¶
View Source
const ( ChainName = "sol" Symbol = "sol" Coin = "sol" )
Variables ¶
This section is empty.
Functions ¶
func NewChainAdaptor ¶
func NewChainAdaptor(conf *config.Config) (wallet.WalletAdaptor, error)
func NewLocalWalletAdaptor ¶
func NewLocalWalletAdaptor(network config.NetWorkType) wallet.WalletAdaptor
Types ¶
type GetTxByAddressRes ¶
type GetTxByAddressRes struct {
Data []GetTxByAddressTx
}
type GetTxByAddressTx ¶
type GetTxByAddressTx struct { ID string `json:"_id"` Src string `json:"src"` Dst string `json:"dst"` Lamport int `json:"lamport"` BlockTime int `json:"blockTime"` Slot int `json:"slot"` TxHash string `json:"txHash"` Fee int `json:"fee"` Status string `json:"status"` Decimals int `json:"decimals"` TxNumberSolTransfer int `json:"txNumberSolTransfer"` }
type Instructions ¶
type Message ¶
type Message struct { AccountKeys []string `json:"accountKeys"` Header Header `json:"header"` Instructions []Instructions `json:"instructions"` RecentBlockhash string `json:"recentBlockhash"` }
type Transaction ¶
type WalletAdaptor ¶
type WalletAdaptor struct { fallback.WalletAdaptor // contains filtered or unexported fields }
func (*WalletAdaptor) ConvertAddress ¶
func (a *WalletAdaptor) ConvertAddress(req *wallet2.ConvertAddressRequest) (*wallet2.ConvertAddressResponse, error)
func (*WalletAdaptor) CreateAccountSignedTx ¶
func (a *WalletAdaptor) CreateAccountSignedTx(req *wallet2.CreateAccountSignedTxRequest) (*wallet2.CreateSignedTxResponse, error)
func (*WalletAdaptor) CreateAccountTx ¶
func (a *WalletAdaptor) CreateAccountTx(req *wallet2.CreateAccountTxRequest) (*wallet2.CreateAccountTxResponse, error)
func (*WalletAdaptor) CreateUtxoSignedTx ¶
func (a *WalletAdaptor) CreateUtxoSignedTx(req *wallet2.CreateUtxoSignedTxRequest) (*wallet2.CreateSignedTxResponse, error)
func (*WalletAdaptor) CreateUtxoTx ¶
func (a *WalletAdaptor) CreateUtxoTx(req *wallet2.CreateUtxoTxRequest) (*wallet2.CreateUtxoTxResponse, error)
func (*WalletAdaptor) GetAccount ¶
func (a *WalletAdaptor) GetAccount(req *wallet2.AccountRequest) (*wallet2.AccountResponse, error)
func (*WalletAdaptor) GetAccountTxFromData ¶
func (a *WalletAdaptor) GetAccountTxFromData(req *wallet2.TxFromDataRequest) (*wallet2.AccountTxResponse, error)
func (*WalletAdaptor) GetAccountTxFromSignedData ¶
func (a *WalletAdaptor) GetAccountTxFromSignedData(req *wallet2.TxFromSignedDataRequest) (*wallet2.AccountTxResponse, error)
func (*WalletAdaptor) GetBalance ¶
func (a *WalletAdaptor) GetBalance(req *wallet2.BalanceRequest) (*wallet2.BalanceResponse, error)
func (*WalletAdaptor) GetGasPrice ¶
func (w *WalletAdaptor) GetGasPrice(req *wallet2.GasPriceRequest) (*wallet2.GasPriceResponse, error)
func (*WalletAdaptor) GetMinRent ¶
func (a *WalletAdaptor) GetMinRent(req *wallet2.MinRentRequest) (*wallet2.MinRentResponse, error)
func (*WalletAdaptor) GetNonce ¶
func (w *WalletAdaptor) GetNonce(req *wallet2.NonceRequest) (*wallet2.NonceResponse, error)
func (*WalletAdaptor) GetSupportCoins ¶
func (w *WalletAdaptor) GetSupportCoins(req *wallet2.SupportCoinsRequest) (*wallet2.SupportCoinsResponse, error)
func (*WalletAdaptor) GetTxByAddress ¶
func (a *WalletAdaptor) GetTxByAddress(req *wallet2.TxAddressRequest) (*wallet2.TxAddressResponse, error)
func (*WalletAdaptor) GetTxByHash ¶
func (a *WalletAdaptor) GetTxByHash(req *wallet2.TxHashRequest) (*wallet2.TxHashResponse, error)
func (*WalletAdaptor) GetUtxo ¶
func (a *WalletAdaptor) GetUtxo(req *wallet2.UtxoRequest) (*wallet2.UtxoResponse, error)
func (*WalletAdaptor) GetUtxoInsFromData ¶
func (a *WalletAdaptor) GetUtxoInsFromData(req *wallet2.UtxoInsFromDataRequest) (*wallet2.UtxoInsResponse, error)
func (*WalletAdaptor) GetUtxoTxFromData ¶
func (a *WalletAdaptor) GetUtxoTxFromData(req *wallet2.TxFromDataRequest) (*wallet2.UtxoTxResponse, error)
func (*WalletAdaptor) GetUtxoTxFromSignedData ¶
func (a *WalletAdaptor) GetUtxoTxFromSignedData(req *wallet2.TxFromSignedDataRequest) (*wallet2.UtxoTxResponse, error)
func (*WalletAdaptor) SendTx ¶
func (w *WalletAdaptor) SendTx(req *wallet2.SendTxRequest) (*wallet2.SendTxResponse, error)
func (*WalletAdaptor) ValidAddress ¶
func (a *WalletAdaptor) ValidAddress(req *wallet2.ValidAddressRequest) (*wallet2.ValidAddressResponse, error)
func (*WalletAdaptor) VerifyAccountSignedTx ¶
func (a *WalletAdaptor) VerifyAccountSignedTx(req *wallet2.VerifySignedTxRequest) (*wallet2.VerifySignedTxResponse, error)
func (*WalletAdaptor) VerifyUtxoSignedTx ¶
func (a *WalletAdaptor) VerifyUtxoSignedTx(req *wallet2.VerifySignedTxRequest) (*wallet2.VerifySignedTxResponse, error)
Click to show internal directories.
Click to hide internal directories.