Categorygithub.com/blocktree/cryptochain-adapter
repository
1.0.0
Repository: https://github.com/blocktree/cryptochain-adapter.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

cryptochain-adapter

本项目适配了openwallet.AssetsAdapter接口,给应用提供了底层的区块链协议支持。

如何测试

openwtester包下的测试用例已经集成了openwallet钱包体系,创建conf文件,新建CRO.ini文件,编辑如下内容:

# transaction type
txType = "cosmos-sdk/StdTx"
# message type
msgSend = "/cosmos.bank.v1beta1.MsgSend"
msgVote = "cosmos-sdk/MsgVote"
msgDelegate = "cosmos-sdk/MsgDelegate"
# message choose 1-send  2-vote  3-delegate
msgType = 1


# mainnet rest api url
mainnetRestAPI = "http://ip:port"
# mainnet node api url
mainnetNodeAPI = "http://ip:port"
# chain id
mainnetChainID = ""
# mainnet denom
mainnetDenom = ""

# testnet rest api url
testnetRestAPI = "http://ip:port"
# testnet node api url
testnetNodeAPI = "http://ip:port"
# chain id
testnetChainID = ""
# testnet denom
testnetDenom = ""

# Is network test?
isTestNet = false

# scan mempool or not
isScanMemPool = true

# pay fee or not
payFee = true
# minimum fee to pay in muon/uatom(1 mon = 1000000muon , 1 atom = 1000000uatom)
minFee = 10000
# standed gas
stdGas = 300000

# Cache data file directory, default = "", current directory: ./data
dataDir = ""