Documentation ¶
Index ¶
- Constants
- type WalletConfig
- type WalletManager
- func (wm *WalletManager) CreateAssetsAccount(appID, walletID, password string, account *openwallet.AssetsAccount, ...) (*openwallet.AssetsAccount, *openwallet.Address, error)
- func (wm *WalletManager) Decimal() int32
- func (wm *WalletManager) FullName() string
- func (wm *WalletManager) GetAddressDecode() openwallet.AddressDecoder
- func (wm *WalletManager) GetAssetsAccountList(appID, walletID string, offset, limit int) ([]*openwallet.AssetsAccount, error)
- func (wm *WalletManager) GetAssetsLogger() *log.OWLogger
- func (wm *WalletManager) GetBlockScanner() openwallet.BlockScanner
- func (wm *WalletManager) GetSmartContractDecoder() openwallet.SmartContractDecoder
- func (wm *WalletManager) GetTransactionDecoder() openwallet.TransactionDecoder
- func (wm *WalletManager) InitAssetsConfig() (config.Configer, error)
- func (wm *WalletManager) LoadAssetsConfig(c config.Configer) error
- func (wm *WalletManager) Symbol() string
Constants ¶
View Source
const (
Symbol = "IOTA"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WalletConfig ¶
type WalletConfig struct { //币种 Symbol string //默认配置内容 DefaultConfig string //node server ServerAPI string // contains filtered or unexported fields }
WalletConfig is the wallet basic config
type WalletManager ¶
type WalletManager struct { openwallet.AssetsAdapterBase openw.WalletManager API *api.API Config *WalletConfig Log *log.OWLogger Decoder openwallet.AddressDecoder TxDecoder openwallet.TransactionDecoder ContractDecoder openwallet.SmartContractDecoder Blockscanner openwallet.BlockScanner }
WalletManager is wallet manger
func NewWalletManager ¶
func NewWalletManager() *WalletManager
NewWalletManager is init wallet function
func (*WalletManager) CreateAssetsAccount ¶
func (wm *WalletManager) CreateAssetsAccount(appID, walletID, password string, account *openwallet.AssetsAccount, otherOwnerKeys []string) (*openwallet.AssetsAccount, *openwallet.Address, error)
CreateAssetsAccount does not supported.
func (*WalletManager) GetAddressDecode ¶
func (wm *WalletManager) GetAddressDecode() openwallet.AddressDecoder
GetAddressDecode 地址解析器
func (*WalletManager) GetAssetsAccountList ¶
func (wm *WalletManager) GetAssetsAccountList(appID, walletID string, offset, limit int) ([]*openwallet.AssetsAccount, error)
GetAssetsAccountList does not supported.
func (*WalletManager) GetAssetsLogger ¶
func (wm *WalletManager) GetAssetsLogger() *log.OWLogger
GetAssetsLogger 获取资产账户日志工具
func (*WalletManager) GetBlockScanner ¶
func (wm *WalletManager) GetBlockScanner() openwallet.BlockScanner
GetBlockScanner 获取区块链
func (*WalletManager) GetSmartContractDecoder ¶
func (wm *WalletManager) GetSmartContractDecoder() openwallet.SmartContractDecoder
GetSmartContractDecoder 获取智能合约解析器
func (*WalletManager) GetTransactionDecoder ¶
func (wm *WalletManager) GetTransactionDecoder() openwallet.TransactionDecoder
GetTransactionDecoder 交易单解析器
func (*WalletManager) InitAssetsConfig ¶
func (wm *WalletManager) InitAssetsConfig() (config.Configer, error)
InitAssetsConfig 初始化默认配置
func (*WalletManager) LoadAssetsConfig ¶
func (wm *WalletManager) LoadAssetsConfig(c config.Configer) error
LoadAssetsConfig 加载外部配置
Click to show internal directories.
Click to hide internal directories.