Documentation ¶
Index ¶
- Constants
- type Manager
- func (manager *Manager) ApproveAllowance(approveAllowance relayerTypes.ApproveAllowance, result *interface{}) error
- func (manager *Manager) Burn(burn relayerTypes.Burn, result *interface{}) error
- func (manager *Manager) BurnAsync(burn relayerTypes.Burn, result *interface{}) error
- func (manager *Manager) ChangePassphase(setPasswdReq relayerTypes.ReqChangePasswd, result *interface{}) error
- func (manager *Manager) CreateBridgeToken(symbol string, result *interface{}) error
- func (manager *Manager) CreateERC20Token(symbol string, result *interface{}) error
- func (manager *Manager) DeployContrcts(param interface{}, result *interface{}) error
- func (manager *Manager) GenerateEthereumPrivateKey(param interface{}, result *interface{}) error
- func (manager *Manager) GetBalance(balanceAddr relayerTypes.BalanceAddr, result *interface{}) error
- func (manager *Manager) GetDecimals(tokenAddr string) (int64, error)
- func (manager *Manager) ImportChain33PrivateKey4EthRelayer(privateKey string, result *interface{}) error
- func (manager *Manager) ImportChain33RelayerPrivateKey(importKeyReq relayerTypes.ImportKeyReq, result *interface{}) error
- func (manager *Manager) IsProphecyPending(claimID [32]byte, result *interface{}) error
- func (manager *Manager) IsValidatorActive(vallidatorAddr string, result *interface{}) error
- func (manager *Manager) Lock(param interface{}, result *interface{}) error
- func (manager *Manager) LockEthErc20Asset(lockEthErc20Asset relayerTypes.LockEthErc20, result *interface{}) error
- func (manager *Manager) LockEthErc20AssetAsync(lockEthErc20Asset relayerTypes.LockEthErc20, result *interface{}) error
- func (manager *Manager) MintErc20(mintToken relayerTypes.MintToken, result *interface{}) error
- func (manager *Manager) SetPassphase(setPasswdReq relayerTypes.ReqSetPasswd, result *interface{}) error
- func (manager *Manager) ShowBridgeBankAddr(para interface{}, result *interface{}) error
- func (manager *Manager) ShowBridgeRegistryAddr(para interface{}, result *interface{}) error
- func (manager *Manager) ShowChain33Relayer2EthTxs(param interface{}, result *interface{}) error
- func (manager *Manager) ShowChain33RelayerValidator(param interface{}, result *interface{}) error
- func (manager *Manager) ShowDepositStatics(token relayerTypes.TokenStatics, result *interface{}) error
- func (manager *Manager) ShowEthRelayer2Chain33Txs(param interface{}, result *interface{}) error
- func (manager *Manager) ShowEthRelayer2EthTxs(param interface{}, result *interface{}) error
- func (manager *Manager) ShowEthRelayerValidator(param interface{}, result *interface{}) error
- func (manager *Manager) ShowLockStatics(token relayerTypes.TokenStatics, result *interface{}) error
- func (manager *Manager) ShowOperator(param interface{}, result *interface{}) error
- func (manager *Manager) ShowTokenAddrBySymbol(token relayerTypes.TokenStatics, result *interface{}) error
- func (manager *Manager) ShowTxReceipt(txhash string, result *interface{}) error
- func (manager *Manager) ShowTxsChain33ToEthTxBurn(param interface{}, result *interface{}) error
- func (manager *Manager) ShowTxsChain33ToEthTxLock(param interface{}, result *interface{}) error
- func (manager *Manager) ShowTxsEth2chain33TxBurn(param interface{}, result *interface{}) error
- func (manager *Manager) ShowTxsEth2chain33TxLock(param interface{}, result *interface{}) error
- func (manager *Manager) TransferToken(transfer relayerTypes.TransferToken, result *interface{}) error
- func (manager *Manager) Unlock(passphase string, result *interface{}) error
- type Store
- func (store *Store) Close()
- func (store *Store) Get(key []byte) ([]byte, error)
- func (store *Store) GetDB() db.DB
- func (store *Store) GetEncryptionFlag() int64
- func (store *Store) NewBatch(sync bool) db.Batch
- func (store *Store) NewListHelper() *db.ListHelper
- func (store *Store) Set(key []byte, value []byte) (err error)
- func (store *Store) SetEncryptionFlag(batch db.Batch) error
- func (store *Store) SetPasswordHash(password string, batch db.Batch) error
- func (store *Store) VerifyPasswordHash(password string) bool
Constants ¶
const ( Locked = int32(1) Unlocked = int32(99) EncryptEnable = int64(1) )
status ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager ...
func NewRelayerManager ¶
func NewRelayerManager(chain33Relayer *chain33.Relayer4Chain33, ethRelayer *ethereum.Relayer4Ethereum, db dbm.DB) *Manager
NewRelayerManager ... 1.验证人的私钥需要通过cli命令行进行导入,且chain33和ethereum两种不同的验证人需要分别导入 2.显示或者重新替换原有的私钥首先需要通过passpin进行unlock的操作
func (*Manager) ApproveAllowance ¶
func (manager *Manager) ApproveAllowance(approveAllowance relayerTypes.ApproveAllowance, result *interface{}) error
ApproveAllowance ...
func (*Manager) Burn ¶
func (manager *Manager) Burn(burn relayerTypes.Burn, result *interface{}) error
Burn ...
func (*Manager) BurnAsync ¶
func (manager *Manager) BurnAsync(burn relayerTypes.Burn, result *interface{}) error
BurnAsync ...
func (*Manager) ChangePassphase ¶
func (manager *Manager) ChangePassphase(setPasswdReq relayerTypes.ReqChangePasswd, result *interface{}) error
ChangePassphase ...
func (*Manager) CreateBridgeToken ¶
CreateBridgeToken ...
func (*Manager) CreateERC20Token ¶
CreateERC20Token ...
func (*Manager) DeployContrcts ¶
DeployContrcts ...
func (*Manager) GenerateEthereumPrivateKey ¶
GenerateEthereumPrivateKey 生成以太坊私钥
func (*Manager) GetBalance ¶
func (manager *Manager) GetBalance(balanceAddr relayerTypes.BalanceAddr, result *interface{}) error
GetBalance ...
func (*Manager) GetDecimals ¶
GetDecimals ...
func (*Manager) ImportChain33PrivateKey4EthRelayer ¶
func (manager *Manager) ImportChain33PrivateKey4EthRelayer(privateKey string, result *interface{}) error
ImportChain33PrivateKey4EthRelayer 为ethrelayer导入chain33私钥,为向chain33发送交易时进行签名使用
func (*Manager) ImportChain33RelayerPrivateKey ¶
func (manager *Manager) ImportChain33RelayerPrivateKey(importKeyReq relayerTypes.ImportKeyReq, result *interface{}) error
ImportChain33RelayerPrivateKey 导入chain33relayer验证人的私钥,该私钥实际用于向ethereum提交验证交易时签名使用
func (*Manager) IsProphecyPending ¶
IsProphecyPending ...
func (*Manager) IsValidatorActive ¶
IsValidatorActive ...
func (*Manager) LockEthErc20Asset ¶
func (manager *Manager) LockEthErc20Asset(lockEthErc20Asset relayerTypes.LockEthErc20, result *interface{}) error
LockEthErc20Asset ...
func (*Manager) LockEthErc20AssetAsync ¶
func (manager *Manager) LockEthErc20AssetAsync(lockEthErc20Asset relayerTypes.LockEthErc20, result *interface{}) error
LockEthErc20AssetAsync ...
func (*Manager) MintErc20 ¶
func (manager *Manager) MintErc20(mintToken relayerTypes.MintToken, result *interface{}) error
MintErc20 ...
func (*Manager) SetPassphase ¶
func (manager *Manager) SetPassphase(setPasswdReq relayerTypes.ReqSetPasswd, result *interface{}) error
SetPassphase ...
func (*Manager) ShowBridgeBankAddr ¶
ShowBridgeBankAddr ...
func (*Manager) ShowBridgeRegistryAddr ¶
ShowBridgeRegistryAddr ...
func (*Manager) ShowChain33Relayer2EthTxs ¶
ShowChain33Relayer2EthTxs ...
func (*Manager) ShowChain33RelayerValidator ¶
ShowChain33RelayerValidator 显示在chain33中以验证人validator身份进行登录的地址
func (*Manager) ShowDepositStatics ¶
func (manager *Manager) ShowDepositStatics(token relayerTypes.TokenStatics, result *interface{}) error
ShowDepositStatics ...
func (*Manager) ShowEthRelayer2Chain33Txs ¶
ShowEthRelayer2Chain33Txs ...
func (*Manager) ShowEthRelayer2EthTxs ¶
ShowEthRelayer2EthTxs ...
func (*Manager) ShowEthRelayerValidator ¶
ShowEthRelayerValidator 显示在Ethereum中以验证人validator身份进行登录的地址
func (*Manager) ShowLockStatics ¶
func (manager *Manager) ShowLockStatics(token relayerTypes.TokenStatics, result *interface{}) error
ShowLockStatics ...
func (*Manager) ShowOperator ¶
ShowOperator ...
func (*Manager) ShowTokenAddrBySymbol ¶
func (manager *Manager) ShowTokenAddrBySymbol(token relayerTypes.TokenStatics, result *interface{}) error
ShowTokenAddrBySymbol ...
func (*Manager) ShowTxReceipt ¶
ShowTxReceipt ...
func (*Manager) ShowTxsChain33ToEthTxBurn ¶
ShowTxsChain33ToEthTxBurn ...
func (*Manager) ShowTxsChain33ToEthTxLock ¶
ShowTxsChain33ToEthTxLock ...
func (*Manager) ShowTxsEth2chain33TxBurn ¶
ShowTxsEth2chain33TxBurn ...
func (*Manager) ShowTxsEth2chain33TxLock ¶
ShowTxsEth2chain33TxLock ...
func (*Manager) TransferToken ¶
func (manager *Manager) TransferToken(transfer relayerTypes.TransferToken, result *interface{}) error
TransferToken ...
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store 钱包通用数据库存储类,实现对钱包账户数据库操作的基本实现
func (*Store) GetEncryptionFlag ¶
GetEncryptionFlag 获取加密方式
func (*Store) NewListHelper ¶
func (store *Store) NewListHelper() *db.ListHelper
NewListHelper 新建列表复制操作对象
func (*Store) SetEncryptionFlag ¶
SetEncryptionFlag 设置加密方式标志
func (*Store) SetPasswordHash ¶
SetPasswordHash 保存密码哈希
func (*Store) VerifyPasswordHash ¶
VerifyPasswordHash 检查密码有效性