chain33

package
v1.67.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: BSD-3-Clause Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTxStatusByHashesRpc added in v1.66.3

func GetTxStatusByHashesRpc(txhex, rpcLaddr string) int32

func Query

func Query(contractAddr, input, caller, rpcLaddr, abiData string) interface{}

Types

type Chain33StartPara

type Chain33StartPara struct {
	ChainName          string
	Ctx                context.Context
	SyncTxConfig       *ebTypes.SyncTxConfig
	BridgeRegistryAddr string
	DBHandle           dbm.DB
	EthBridgeClaimChan <-chan *ebTypes.EthBridgeClaim
	TxRelayAckRecvChan <-chan *ebTypes.TxRelayAck
	TxRelayAckSendChan map[string]chan<- *ebTypes.TxRelayAck
	Chain33MsgChan     map[string]chan<- *events.Chain33Msg
	ChainID            int32
	ProcessWithDraw    bool
}

type DeployPara4Chain33

type DeployPara4Chain33 struct {
	Deployer       address.Address
	Operator       address.Address
	InitValidators []address.Address
	InitPowers     []*big.Int
}

DeployPara ...

type DeployResult

type DeployResult struct {
	Address address.Address
	TxHash  string
}

type Relayer4Chain33

type Relayer4Chain33 struct {
	// contains filtered or unexported fields
}

Relayer4Chain33 ...

func StartChain33Relayer

func StartChain33Relayer(startPara *Chain33StartPara) *Relayer4Chain33

StartChain33Relayer : initializes a relayer which witnesses events on the chain33 network and relays them to Ethereum

func (*Relayer4Chain33) BurnAsyncFromChain33

func (chain33Relayer *Relayer4Chain33) BurnAsyncFromChain33(ownerPrivateKey, tokenAddr, ethereumReceiver, amount string) (string, error)

func (*Relayer4Chain33) BurnWithIncreaseAsyncFromChain33 added in v1.66.2

func (chain33Relayer *Relayer4Chain33) BurnWithIncreaseAsyncFromChain33(ownerPrivateKey, tokenAddr, ethereumReceiver, amount string) (string, error)

func (*Relayer4Chain33) GetAccount

func (chain33Relayer *Relayer4Chain33) GetAccount(passphrase string) (privateKey, addr string, err error)

GetAccount ...

func (*Relayer4Chain33) GetAccountAddr

func (chain33Relayer *Relayer4Chain33) GetAccountAddr() (addr string, err error)

GetAccountAddr ...

func (*Relayer4Chain33) GetMultiSignAddr added in v1.67.0

func (chain33Relayer *Relayer4Chain33) GetMultiSignAddr() string

func (*Relayer4Chain33) ImportPrivateKey

func (chain33Relayer *Relayer4Chain33) ImportPrivateKey(passphrase, privateKeyStr string) error

func (*Relayer4Chain33) LockBTYAssetAsync

func (chain33Relayer *Relayer4Chain33) LockBTYAssetAsync(ownerPrivateKey, ethereumReceiver, amount string) (string, error)

func (*Relayer4Chain33) ResendChain33Event added in v1.66.0

func (chain33Relayer *Relayer4Chain33) ResendChain33Event(height int64) (err error)

func (*Relayer4Chain33) RestorePrivateKeys

func (chain33Relayer *Relayer4Chain33) RestorePrivateKeys(passPhase string) (err error)

RestorePrivateKeys ...

func (*Relayer4Chain33) RestoreTokenAddress

func (chain33Relayer *Relayer4Chain33) RestoreTokenAddress() error

func (*Relayer4Chain33) SafeTransfer

func (chain33Relayer *Relayer4Chain33) SafeTransfer(para *ebTypes.SafeTransfer) (string, error)

func (*Relayer4Chain33) SetMultiSignAddr

func (chain33Relayer *Relayer4Chain33) SetMultiSignAddr(address string)

func (*Relayer4Chain33) SetTokenAddress

func (chain33Relayer *Relayer4Chain33) SetTokenAddress(token2set *ebTypes.TokenAddress) error

func (*Relayer4Chain33) SetupMulSign

func (chain33Relayer *Relayer4Chain33) SetupMulSign(setupMulSign *ebTypes.SetupMulSign) (string, error)

func (*Relayer4Chain33) ShowBridgeRegistryAddr

func (chain33Relayer *Relayer4Chain33) ShowBridgeRegistryAddr() (string, error)

ShowBridgeRegistryAddr ...

func (*Relayer4Chain33) ShowStatics

func (chain33Relayer *Relayer4Chain33) ShowStatics(request *ebTypes.TokenStaticsRequest) (*ebTypes.TokenStaticsResponse, error)

func (*Relayer4Chain33) ShowTokenAddress

func (chain33Relayer *Relayer4Chain33) ShowTokenAddress(token2show *ebTypes.TokenAddress) (*ebTypes.TokenAddressArray, error)

func (*Relayer4Chain33) StoreAccountWithNewPassphase

func (chain33Relayer *Relayer4Chain33) StoreAccountWithNewPassphase(newPassphrase, oldPassphrase string) error

StoreAccountWithNewPassphase ...

func (*Relayer4Chain33) WithdrawFromChain33 added in v1.66.0

func (chain33Relayer *Relayer4Chain33) WithdrawFromChain33(ownerPrivateKey, tokenAddr, ethereumReceiver, amount string) (string, error)

type X2EthDeployResult

type X2EthDeployResult struct {
	BridgeRegistry *DeployResult
	BridgeBank     *DeployResult
	EthereumBridge *DeployResult
	Valset         *DeployResult
	Oracle         *DeployResult
}

Directories

Path Synopsis
transceiver
sync
Package sync ...
Package sync ...

Jump to

Keyboard shortcuts

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