near

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//币种
	Symbol    = "NEAR"
	CurveType = owcrypt.ECC_CURVE_ED25519
	Decimal   = 24
)

Variables

View Source
var (
	ErrorInvalidHashLength = errors.New("Invalid hash length!")
	ErrorInvalidAddress    = errors.New("Invalid address!")
)
View Source
var (
	Default = AddressDecoderV2{}
)

Functions

This section is empty.

Types

type AccessKeyResponse added in v1.0.1

type AccessKeyResponse struct {
	Nonce uint64 `json:"nonce"`
}

type AccountResponse added in v1.0.1

type AccountResponse struct {
	Amount string `json:"amount"`
}

type Action added in v1.0.1

type Action struct {
	Transfer interface{} `json:"Transfer"`
}

Action struct

type ActionRoot added in v1.0.1

type ActionRoot struct {
	Actions             []Action `json:"actions"`
	GasPrice            string   `json:"gas_price"`
	InputDataIDs        []string `json:"input_data_ids"`
	OutputDataReceivers []string `json:"output_data_receivers"`
	SignerID            string   `json:"signer_id"`
	SignerPublicKey     string   `json:"signer_public_key"`
}

type AddrBalance added in v1.0.1

type AddrBalance struct {
	Address      string
	Balance      string
	TokenBalance string
}

func NewAddrBalance added in v1.0.1

func NewAddrBalance(b *openwallet.Balance) *AddrBalance

type AddressDecoder added in v1.0.1

type AddressDecoder struct {
	openwallet.AddressDecoder
	IsTestNet bool
}

DigestSize is the number of bytes in the preferred hash Digest used here.

func NewAddressDecoder

func NewAddressDecoder() *AddressDecoder

type AddressDecoderV2 added in v1.0.1

type AddressDecoderV2 struct {
	*openwallet.AddressDecoderV2Base

	IsTestNet bool
	// contains filtered or unexported fields
}

AddressDecoderV2

func NewAddressDecoderV2 added in v1.0.1

func NewAddressDecoderV2(wm *WalletManager) *AddressDecoderV2

NewAddressDecoder 地址解析器

func (*AddressDecoderV2) AddressEncode added in v1.0.1

func (dec *AddressDecoderV2) AddressEncode(pub []byte, opts ...interface{}) (string, error)

AddressEncode encode address bytes

func (*AddressDecoderV2) AddressVerify added in v1.0.1

func (dec *AddressDecoderV2) AddressVerify(address string, opts ...interface{}) bool

AddressVerify 地址校验

type Block

type Block struct {
	Author     string        `json:"author"`
	Chunks     []ChunkHeader `json:"chunks"`
	Header     BlockHeader   `json:"header"`
	TxTransfer []TxTransfer
}

Block struct

type BlockHeader

type BlockHeader struct {
	//Approvals          []string    `json:"approvals"`
	//BlockMerkleRoot    string      `json:"block_merkle_root"`
	//ChallengesResult   []string    `json:"challenges_result"`
	//ChallengesRoot     string      `json:"challenges_root"`
	//ChunkHeadersRoot   string      `json:"chunk_headers_root"`
	//ChunkMask          interface{} `json:"chunk_mask"`
	//ChunkReceiptsRoot  string      `json:"chunk_receipts_root"`
	//ChunkTxRoot        string      `json:"chunk_tx_root"`
	ChunksIncluded   uint64 `json:"chunks_included"`
	EpochID          string `json:"epoch_id"`
	GasPrice         string `json:"gas_price"`
	Hash             string `json:"hash"`
	Height           uint64 `json:"height"`
	LastDSFinalBlock string `json:"last_ds_final_block"`
	LastFinalBlock   string `json:"last_final_block"`
	LatestFinalBlock uint64 `json:"latest_protocol_version"`
	NextBPHash       string `json:"next_bp_hash"`
	NextEpochID      string `json:"next_epoch_id"`
	OutcomeRoot      string `json:"outcome_root"`
	PrevHash         string `json:"prev_hash"`
	PrevStateRoot    string `json:"prev_state_root"`
	RandomValue      string `json:"random_value"`
	RentPaid         string `json:"rent_paid"`
	Signature        string `json:"signature"`
	//Timestamp          string      `json:"timestamp"`
	TotalSupply string `json:"total_supply"`
	//ValidatorProposals interface{} `json:"validator_proposals"`
	ValidatorReward string `json:"validator_reward"`
}

BlockHeader struct

type ChunkHeader

type ChunkHeader struct {
	BalanceBurnt         string `json:"balance_burnt"`
	ChunkHash            string `json:"chunk_hash"`
	EncodedLength        int64  `json:"encoded_length"`
	EncodedMerkleRoot    string `json:"encoded_merkle_root"`
	GasLimit             int64  `json:"gas_limit"`
	GasUsed              int64  `json:"gas_used"`
	HeightCreated        int64  `json:"height_created"`
	HeightIncluded       int64  `json:"height_included"`
	OutcomeRoot          string `json:"outcome_root"`
	OutgoingReceiptsRoot string `json:"outgoing_receipts_root"`
	PrevBlockHash        string `json:"prev_block_hash"`
	PrevStateRoot        string `json:"prev_state_root"`
	RentPaid             string `json:"rent_paid"`
	ShardID              int64  `json:"shard_id"`
	Signature            string `json:"signature"`
	TxRoot               string `json:"tx_root"`
	ValidatorReward      string `json:"validator_reward"`
}

ChunkHeader struct

type ChunkResponse added in v1.0.1

type ChunkResponse struct {
	Author string      `json:"author"`
	Header ChunkHeader `json:"header"`
	//Receipts     []ReceiptHeader `json:"receipts"`
	Transactions []Transaction `json:"transactions"`
}

ChunkResponse struct

type Client added in v1.0.1

type Client struct {
	BaseURL string
	Debug   bool
}

func (*Client) Call added in v1.0.1

func (c *Client) Call(method string, params []interface{}) (*gjson.Result, error)

func (*Client) Call2 added in v1.0.1

func (c *Client) Call2(method string, params map[string]interface{}) (*gjson.Result, error)

func (*Client) Get added in v1.0.1

func (c *Client) Get(path string, queryparams []interface{}) (*gjson.Result, error)

type EpochKickout added in v1.0.1

type EpochKickout struct {
	AccountID string                 `json:"account_id"`
	Reason    map[string]interface{} `json:"reason"`
}

EpochKickout struct

type ExtractResult

type ExtractResult struct {
	TxID        string
	BlockHeight uint64
	Success     bool
	// contains filtered or unexported fields
}

//ExtractResult 扫描完成的提取结果

type Fisherman added in v1.0.1

type Fisherman struct {
	AccountID string `json:"account_id"`
	PublicKey string `json:"public_key"`
	Stake     string `json:"stake"`
}

Fisherman struct

type GasPrice added in v1.0.1

type GasPrice struct {
	GasPrice string `json:"gas_price"`
}

GasPrice Gas Price

type NearBlockScanner added in v1.0.1

type NearBlockScanner struct {
	*openwallet.BlockScannerBase

	CurrentBlockHeight uint64 //当前区块高度

	RescanLastBlockCount uint64 //重扫上N个区块数量
	// contains filtered or unexported fields
}

func NewNearBlockScanner added in v1.0.1

func NewNearBlockScanner(wm *WalletManager) *NearBlockScanner

// NewEOSBlockScanner create a block scanner

func (*NearBlockScanner) BatchExtractTransaction added in v1.0.1

func (bs *NearBlockScanner) BatchExtractTransaction(blockHeight uint64, blockHash string, txs []TxTransfer, blockTime int64) error

BatchExtractTransaction 批量提取交易单 直接获取区块 Payment 操作

func (*NearBlockScanner) DeleteUnscanRecord added in v1.0.1

func (bs *NearBlockScanner) DeleteUnscanRecord(height uint64) error

DeleteUnscanRecord 删除指定高度的未扫记录

func (*NearBlockScanner) DeleteUnscanRecordNotFindTX added in v1.0.1

func (bs *NearBlockScanner) DeleteUnscanRecordNotFindTX() error

DeleteUnscanRecordNotFindTX 删除未没有找到交易记录的重扫记录

func (*NearBlockScanner) ExtractTransaction added in v1.0.1

func (bs *NearBlockScanner) ExtractTransaction(blockHeight uint64, blockHash string, tx TxTransfer, scanTargetFunc openwallet.BlockScanTargetFunc) ExtractResult

提取交易单

func (*NearBlockScanner) ExtractTransactionData added in v1.0.1

func (bs *NearBlockScanner) ExtractTransactionData(txid string, scanAddressFunc openwallet.BlockScanTargetFunc) (map[string][]*openwallet.TxExtractData, error)

ExtractTransactionData

func (*NearBlockScanner) GetAccountBalance added in v1.0.1

func (bs *NearBlockScanner) GetAccountBalance(accountId string) (string, error)

获取含有transfer action 的 tx

func (*NearBlockScanner) GetAccountNonce added in v1.0.1

func (bs *NearBlockScanner) GetAccountNonce(accountId string) (uint64, error)

获取含有transfer action 的 tx

func (*NearBlockScanner) GetBalanceByAddress added in v1.0.1

func (bs *NearBlockScanner) GetBalanceByAddress(address ...string) ([]*openwallet.Balance, error)

GetBalanceByAddress 查询地址余额

func (*NearBlockScanner) GetBlockByHeight added in v1.0.1

func (bs *NearBlockScanner) GetBlockByHeight(height uint64, getTxs bool) (*Block, error)

func (*NearBlockScanner) GetCurrentBlock added in v1.0.1

func (bs *NearBlockScanner) GetCurrentBlock() (uint64, error)

GetBlockHeight 获取区块链高度

func (*NearBlockScanner) GetCurrentBlockHeader added in v1.0.1

func (bs *NearBlockScanner) GetCurrentBlockHeader() (*openwallet.BlockHeader, error)

GetCurrentBlockHeader 获取当前区块高度

func (*NearBlockScanner) GetGasPrice added in v1.0.1

func (bs *NearBlockScanner) GetGasPrice() (string, error)

获取含有transfer action 的 tx

func (*NearBlockScanner) GetGlobalMaxBlockHeight added in v1.0.1

func (bs *NearBlockScanner) GetGlobalMaxBlockHeight() uint64

GetGlobalMaxBlockHeight 获取区块链全网最大高度

func (*NearBlockScanner) GetLatestRefBlockHash added in v1.0.1

func (bs *NearBlockScanner) GetLatestRefBlockHash() (string, error)

func (*NearBlockScanner) GetLocalBlock added in v1.0.1

func (bs *NearBlockScanner) GetLocalBlock(height uint64) (*BlockHeader, error)

GetLocalBlock 获取本地区块数据

func (*NearBlockScanner) GetLocalBlockHead added in v1.0.1

func (bs *NearBlockScanner) GetLocalBlockHead() (uint64, string, error)

GetLocalBlockHead 获取本地记录的区块高度和hash

func (*NearBlockScanner) GetLocalNewBlock added in v1.0.1

func (bs *NearBlockScanner) GetLocalNewBlock() (uint64, string, error)

GetLocalNewBlock 获取本地记录的区块高度和hash

func (*NearBlockScanner) GetScannedBlockHeader added in v1.0.1

func (bs *NearBlockScanner) GetScannedBlockHeader() (*openwallet.BlockHeader, error)

GetScannedBlockHeader 获取已扫高度区块头

func (*NearBlockScanner) GetScannedBlockHeight added in v1.0.1

func (bs *NearBlockScanner) GetScannedBlockHeight() uint64

GetScannedBlockHeight 获取已扫区块高度

func (*NearBlockScanner) GetTxByChunk added in v1.0.1

func (bs *NearBlockScanner) GetTxByChunk(chunkHash string) (*ChunkResponse, error)

获取含有transfer action 的 tx

func (*NearBlockScanner) GetTxStatus added in v1.0.1

func (bs *NearBlockScanner) GetTxStatus(txId, senderId string) (string, string, error)

获取含有transfer action 的 tx

func (*NearBlockScanner) GetUnscanRecords added in v1.0.1

func (bs *NearBlockScanner) GetUnscanRecords() ([]*openwallet.UnscanRecord, error)

func (*NearBlockScanner) InitExtractResult added in v1.0.1

func (bs *NearBlockScanner) InitExtractResult(tx TxTransfer, feePayed string, blockHeight uint64, blockHash string, sourceKey string, result *ExtractResult, operate int64)

InitTronExtractResult operate = 0: 输入输出提取,1: 输入提取,2:输出提取

func (*NearBlockScanner) Pause added in v1.0.1

func (bs *NearBlockScanner) Pause() error

Pause 暂停扫描

func (*NearBlockScanner) RescanFailedRecord added in v1.0.1

func (bs *NearBlockScanner) RescanFailedRecord()

rescanFailedRecord 重扫失败记录

func (*NearBlockScanner) Restart added in v1.0.1

func (bs *NearBlockScanner) Restart() error

Restart 继续扫描

func (*NearBlockScanner) Run added in v1.0.1

func (bs *NearBlockScanner) Run() error

Run 运行

func (*NearBlockScanner) SaveLocalBlock added in v1.0.1

func (bs *NearBlockScanner) SaveLocalBlock(blockHeader *BlockHeader) error

SaveLocalBlock 记录本地新区块

func (*NearBlockScanner) SaveLocalBlockHead added in v1.0.1

func (bs *NearBlockScanner) SaveLocalBlockHead(blockHeight uint64, blockHash string) error

SaveLocalBlockHead 记录区块高度和hash到本地

func (*NearBlockScanner) SaveLocalNewBlock added in v1.0.1

func (bs *NearBlockScanner) SaveLocalNewBlock(blockHeight uint64, blockHash string) error

GetTransaction

func (bs *NearBlockScanner) GetTransaction(hash string) (*Transaction, error) {
	r, err := bs.wm.client.TransactionByID(hash)
	if err != nil {
		return nil, err
	}
	return NewTransaction(r), nil
}

SaveLocalNewBlock 记录区块高度和hash到本地

func (*NearBlockScanner) SaveUnscanRecord added in v1.0.1

func (bs *NearBlockScanner) SaveUnscanRecord(record *openwallet.UnscanRecord) error

SaveUnscanRecord 保存交易记录到钱包数据库

func (*NearBlockScanner) ScanBlock added in v1.0.1

func (bs *NearBlockScanner) ScanBlock(height uint64) error

ScanBlock 扫描指定高度区块

func (*NearBlockScanner) ScanBlockTask added in v1.0.1

func (bs *NearBlockScanner) ScanBlockTask()

ScanBlockTask 扫描任务

func (*NearBlockScanner) SetRescanBlockHeight added in v1.0.1

func (bs *NearBlockScanner) SetRescanBlockHeight(height uint64) error

SetRescanBlockHeight 重置区块链扫描高度

func (*NearBlockScanner) Stop added in v1.0.1

func (bs *NearBlockScanner) Stop() error

//Stop 停止扫描

func (*NearBlockScanner) SupportBlockchainDAI added in v1.0.1

func (bs *NearBlockScanner) SupportBlockchainDAI() bool

SupportBlockchainDAI 支持外部设置区块链数据访问接口 @optional

type Outcome

type Outcome struct {
	GasBurnt    int64       `json:"gas_burnt"`
	TokensBurnt string      `json:"tokens_burnt"`
	Logs        []string    `json:"logs"`
	ReceiptIDs  []string    `json:"receipt_ids"`
	Status      interface{} `json:"status"`
}

Outcome struct

type Proof added in v1.0.1

type Proof struct {
	Direction string `json:"direction,omitempty"`
	Hash      string `json:"hash,omitempty"`
}

Proof struct

type Receipt

type Receipt struct {
	Action ActionRoot `json:"Action"`
}

type ReceiptHeader added in v1.0.1

type ReceiptHeader struct {
	PredecessorID string  `json:"predecessor_id"`
	Receipt       Receipt `json:"receipt"`
	ReceiptID     string  `json:"receipt_id"`
	ReceiverID    string  `json:"receiver_id"`
}

type RootOutcome added in v1.0.1

type RootOutcome struct {
	BlockHash string  `json:"block_hash"`
	ID        string  `json:"id"`
	Outcome   Outcome `json:"outcome"`
	Proof     []Proof `json:"proof,omitempty"`
}

RootOutcome struct

type SaveResult

type SaveResult struct {
	TxID        string
	BlockHeight uint64
	Success     bool
}

//SaveResult result

type Status added in v1.0.1

type Status struct {
	ChainID    string     `json:"chain_id"`
	RPCAddr    string     `json:"rpc_addr"`
	SyncInfo   SyncInfo   `json:"sync_info"`
	Validators Validators `json:"validators"`
	Version    Version    `json:"version"`
}

Status struct

type SyncInfo added in v1.0.1

type SyncInfo struct {
	LatestBlockHash   string `json:"latest_block_hash"`
	LatestBlockHeight int64  `json:"latest_block_height"`
	LatestBlockTime   string `json:"latest_block_time"`
	LatestStateRoot   string `json:"latest_state_root"`
	Syncing           bool   `json:"syncing"`
}

SyncInfo struct

type Transaction

type Transaction struct {
	SignerID   string        `json:"signer_id"`
	PublicKey  string        `json:"public_key"`
	Nonce      int64         `json:"nonce"`
	Hash       string        `json:"hash"`
	ReceiverID string        `json:"receiver_id"`
	BlockHash  string        `json:"block_hash"`
	Signature  string        `json:"signature"`
	Actions    []interface{} `json:"actions"`
}

Transaction struct

type TransactionDecoder

type TransactionDecoder struct {
	openwallet.TransactionDecoderBase
	// contains filtered or unexported fields
}

func NewTransactionDecoder

func NewTransactionDecoder(wm *WalletManager) *TransactionDecoder

NewTransactionDecoder 交易单解析器

func (*TransactionDecoder) CreateRawSimpleTransaction added in v1.0.1

func (decoder *TransactionDecoder) CreateRawSimpleTransaction(wrapper openwallet.WalletDAI, rawTx *openwallet.RawTransaction) error

CreateRawTransaction 创建交易单

func (*TransactionDecoder) CreateRawTransaction

func (decoder *TransactionDecoder) CreateRawTransaction(wrapper openwallet.WalletDAI, rawTx *openwallet.RawTransaction) error

func (*TransactionDecoder) CreateSimpleSummaryRawTransaction added in v1.0.1

func (decoder *TransactionDecoder) CreateSimpleSummaryRawTransaction(wrapper openwallet.WalletDAI, sumRawTx *openwallet.SummaryRawTransaction) ([]*openwallet.RawTransaction, error)

CreateSummaryRawTransaction 创建RIA汇总交易

func (*TransactionDecoder) CreateSummaryRawTransaction

func (decoder *TransactionDecoder) CreateSummaryRawTransaction(wrapper openwallet.WalletDAI, sumRawTx *openwallet.SummaryRawTransaction) ([]*openwallet.RawTransaction, error)

汇总币种

func (*TransactionDecoder) CreateSummaryRawTransactionWithError

func (decoder *TransactionDecoder) CreateSummaryRawTransactionWithError(wrapper openwallet.WalletDAI, sumRawTx *openwallet.SummaryRawTransaction) ([]*openwallet.RawTransactionWithError, error)

CreateSummaryRawTransactionWithError 创建汇总交易,返回能原始交易单数组(包含带错误的原始交易单)

func (*TransactionDecoder) SignRawTransaction

func (decoder *TransactionDecoder) SignRawTransaction(wrapper openwallet.WalletDAI, rawTx *openwallet.RawTransaction) error

SignRawTransaction 签名交易单

func (*TransactionDecoder) SubmitRawTransaction

func (decoder *TransactionDecoder) SubmitRawTransaction(wrapper openwallet.WalletDAI, rawTx *openwallet.RawTransaction) (*openwallet.Transaction, error)

SendRawTransaction 广播交易单

func (*TransactionDecoder) VerifyRawTransaction

func (decoder *TransactionDecoder) VerifyRawTransaction(wrapper openwallet.WalletDAI, rawTx *openwallet.RawTransaction) error

VerifyRawTransaction 验证交易单,验证交易单并返回加入签名后的交易单

type TransactionStatus added in v1.0.1

type TransactionStatus struct {
	ReceiptsOutcome    []RootOutcome     `json:"receipts_outcome"`
	Transaction        Transaction       `json:"transaction"`
	Status             map[string]string `json:"status"`
	TransactionOutcome RootOutcome       `json:"transaction_outcome"`
}

TransactionStatus struct

type TxTransfer added in v1.0.1

type TxTransfer struct {
	From   string
	To     string
	TxId   string
	Value  string
	Fee    string
	Status string
}

type Validator added in v1.0.1

type Validator struct {
	AccountID         string  `json:"account_id"`
	IsSlashed         bool    `json:"is_slashed"`
	ExpectedBlocksNum int64   `json:"num_expected_blocks,omitempty"`
	ProducedBlocksNum int64   `json:"num_produced_blocks,omitempty"`
	PublicKey         string  `json:"public_key,omitempty"`
	Shards            []int64 `json:"shards,omitempty"`
	Stake             string  `json:"stake,omitempty"`
}

Validator struct

type Validators added in v1.0.1

type Validators []Validator

Validators array

type ValidatorsResponse added in v1.0.1

type ValidatorsResponse struct {
	CurrentFishermans []Fisherman    `json:"current_fishermen,omitempty"`
	NextFishermans    []Fisherman    `json:"next_fishermen,omitempty"`
	CurrentValidators Validators     `json:"current_validators,omitempty"`
	NextValidators    Validators     `json:"next_validators,omitempty"`
	CurrentProposal   string         `json:"current_proposal,omitempty"`
	EpochStartHeight  int64          `json:"epoch_start_height"`
	PrevEpochKickout  []EpochKickout `json:"prev_epoch_kickout"`
}

ValidatorsResponse struct

type Version added in v1.0.1

type Version struct {
	Build   string `json:"build"`
	Version string `json:"version"`
}

Version struct

type WalletConfig

type WalletConfig struct {

	//币种
	Symbol string
	//精度
	Decimal int32

	//区块链数据文件
	BlockchainFile string

	//钱包服务API
	ServerAPI string

	//默认配置内容
	DefaultConfig string
	//曲线类型
	CurveType uint32
	//链ID
	Network string
	//固定手续费
	FixFees string

	AddressRetainAmount string
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(symbol string) *WalletConfig

type WalletManager

type WalletManager struct {
	openwallet.AssetsAdapterBase

	Config          *WalletConfig                   // 节点配置
	Decoder         openwallet.AddressDecoder       //地址编码器
	DecoderV2       openwallet.AddressDecoderV2     //地址编码器
	TxDecoder       openwallet.TransactionDecoder   //交易单编码器
	Log             *log.OWLogger                   //日志工具
	ContractDecoder openwallet.SmartContractDecoder //智能合约解析器
	Blockscanner    *NearBlockScanner               //区块扫描器
	// contains filtered or unexported fields
}

func NewWalletManager

func NewWalletManager() *WalletManager

func (*WalletManager) BalanceModelType

func (wm *WalletManager) BalanceModelType() openwallet.BalanceModelType

BalanceModelType 余额模型类别

func (*WalletManager) CurveType

func (wm *WalletManager) CurveType() uint32

CurveType 曲线类型

func (*WalletManager) Decimal

func (wm *WalletManager) Decimal() int32

Decimal 小数位精度

func (*WalletManager) FullName

func (wm *WalletManager) FullName() string

FullName 币种全名

func (*WalletManager) GetAddressDecode

func (wm *WalletManager) GetAddressDecode() openwallet.AddressDecoder

GetAddressDecode 地址解析器

func (*WalletManager) GetAddressDecoderV2 added in v1.0.1

func (wm *WalletManager) GetAddressDecoderV2() openwallet.AddressDecoderV2

GetAddressDecode 地址解析器

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 加载外部配置

func (*WalletManager) Symbol

func (wm *WalletManager) Symbol() string

Symbol 币种标识

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL