bridge

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: LGPL-3.0 Imports: 20 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
	DepositorOffset uint64
	Execute         string
	Hash            bool
	Native          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
	DataHashBytes      [32]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 AdminInfoCmd

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

func BindAdminInfoFlags

func BindAdminInfoFlags(cmd *cobra.Command)

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 BindRegisterNativeResourceFlags

func BindRegisterNativeResourceFlags(cmd *cobra.Command)

func BindRegisterResourceFlags

func BindRegisterResourceFlags(cmd *cobra.Command)

func BindRelayerInfoFlags

func BindRelayerInfoFlags(cmd *cobra.Command)

func BindRemoveGenericResourceFlags

func BindRemoveGenericResourceFlags(cmd *cobra.Command)

func BindRemoveResourceFlags

func BindRemoveResourceFlags(cmd *cobra.Command)

func BindSetBurnFlags

func BindSetBurnFlags(cmd *cobra.Command)

func BindVoteProposalCmdFlags

func BindVoteProposalCmdFlags(cmd *cobra.Command)

func ProcessAdminInfoFlags

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

func ProcessCancelProposalFlags

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

func ProcessQueryProposalFlags

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

func ProcessRegisterGenericResourceFlags

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

func ProcessRegisterNativeResourceFlags

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

func ProcessRegisterResourceFlags

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

func ProcessRelayerInfoFlags

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

func ProcessRemoveGenericResourceFlags

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

func ProcessRemoveResourceFlags

func ProcessRemoveResourceFlags(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 RegisterNativeResource

func RegisterNativeResource(cmd *cobra.Command, args []string, contract *bridge.BridgeContract, handlerContract *erc20.ERC20HandlerContract) error

func RegisterResourceCmd

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

func RelayerInfoCmd

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

func RemoveGenericResource

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

func RemoveResourceCmd

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

func SetBurnCmd

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

func ValidateAdminInfoFlags

func ValidateAdminInfoFlags(cmd *cobra.Command, args []string) 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 ValidateRegisterNativeResourceFlags

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

func ValidateRegisterResourceFlags

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

func ValidateRelayerInfoFlags

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

func ValidateRemoveGenericResourceFlags

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

func ValidateRemoveResourceFlags

func ValidateRemoveResourceFlags(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