chain33

package
v0.0.0-...-7251441 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: GPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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
	Chain33MsgChan     map[string]chan<- *events.Chain33Msg
	ChainID            int32
	ProcessWithDraw    bool
	SignViaHsm         bool
	Secp256k1Index     int
	Chain33PubKey      []byte
}

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) 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) ImportPassPin

func (chain33Relayer *Relayer4Chain33) ImportPassPin(passphrase, keyPasspinStr, addr string) error

func (*Relayer4Chain33) ImportPrivateKey

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

func (*Relayer4Chain33) IsSignViaHsm

func (chain33Relayer *Relayer4Chain33) IsSignViaHsm() bool

func (*Relayer4Chain33) LockBTYAssetAsync

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

func (*Relayer4Chain33) ResendChain33Event

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

DeployContrcts 部署以太坊合约

func (*Relayer4Chain33) RestorePrivateKeyOrPasspin

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

RestorePrivateKeyOrPasspin ...

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

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