bridge

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: LGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bridge          string
	DataHash        string
	DomainID        uint8
	Data            string
	DepositNonce    uint64
	Handler         string
	ResourceID      string
	Target          string
	Deposit         string
	DepositerOffset uint64
	Execute         string
	Hash            bool
	TokenContract   string
)

flag vars

View Source
var (
	BridgeAddr         common.Address
	ResourceIdBytesArr types.ResourceID
	HandlerAddr        common.Address
	TargetContractAddr common.Address
	TokenContractAddr  common.Address
	DepositSigBytes    [4]byte
	ExecuteSigBytes    [4]byte
	DataBytes          []byte
)

processed flag vars

View Source
var BridgeCmd = &cobra.Command{
	Use:   "bridge",
	Short: "Set of commands for interacting with a bridge",
	Long:  "Set of commands for interacting with a bridge",
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		var err error

		url, gasLimit, gasPrice, senderKeyPair, prepare, err = flags.GlobalFlagValues(cmd)
		if err != nil {
			return fmt.Errorf("could not get global flags: %v", err)
		}
		return nil
	},
}

Functions

func BindCancelProposalFlags

func BindCancelProposalFlags(cmd *cobra.Command)

func BindQueryProposalFlags

func BindQueryProposalFlags(cmd *cobra.Command)

func BindQueryResourceFlags

func BindQueryResourceFlags(cmd *cobra.Command)

func BindRegisterGenericResourceFlags

func BindRegisterGenericResourceFlags(cmd *cobra.Command)

func BindRegisterResourceFlags

func BindRegisterResourceFlags(cmd *cobra.Command)

func BindSetBurnFlags

func BindSetBurnFlags(cmd *cobra.Command)

func BindVoteProposalCmdFlags

func BindVoteProposalCmdFlags(cmd *cobra.Command)

func ProcessRegisterGenericResourceFlags

func ProcessRegisterGenericResourceFlags(cmd *cobra.Command, args []string) error

func ProcessRegisterResourceFlags

func ProcessRegisterResourceFlags(cmd *cobra.Command, args []string) error

func ProcessSetBurnFlags

func ProcessSetBurnFlags(cmd *cobra.Command, args []string)

func ProcessVoteProposalFlags

func ProcessVoteProposalFlags(cmd *cobra.Command, args []string) error

func RegisterGenericResource

func RegisterGenericResource(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

func RegisterResourceCmd

func RegisterResourceCmd(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

func SetBurnCmd

func SetBurnCmd(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

func ValidateCancelProposalFlags

func ValidateCancelProposalFlags(cmd *cobra.Command, args []string) error

func ValidateQueryProposalFlags

func ValidateQueryProposalFlags(cmd *cobra.Command, args []string) error

func ValidateQueryResourceFlags

func ValidateQueryResourceFlags(cmd *cobra.Command, args []string) error

func ValidateRegisterGenericResourceFlags

func ValidateRegisterGenericResourceFlags(cmd *cobra.Command, args []string) error

func ValidateRegisterResourceFlags

func ValidateRegisterResourceFlags(cmd *cobra.Command, args []string) error

func ValidateSetBurnFlags

func ValidateSetBurnFlags(cmd *cobra.Command, args []string) error

func ValidateVoteProposalFlags

func ValidateVoteProposalFlags(cmd *cobra.Command, args []string) error

func VoteProposalCmd

func VoteProposalCmd(cmd *cobra.Command, args []string, voter Voter) error

Types

type Voter

type Voter interface {
	SimulateVoteProposal(proposal *proposal.Proposal) error
	VoteProposal(proposal *proposal.Proposal, opts transactor.TransactOptions) (*common.Hash, error)
}

Directories

Path Synopsis
Package mock_bridge is a generated GoMock package.
Package mock_bridge is a generated GoMock package.

Jump to

Keyboard shortcuts

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