bridge

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: LGPL-3.0 Imports: 17 Imported by: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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