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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeContract

type BridgeContract struct {
	contracts.Contract
}

func NewBridgeContract

func NewBridgeContract(
	client calls.ContractCallerDispatcher,
	bridgeContractAddress common.Address,
	transactor transactor.Transactor,
) *BridgeContract

func (*BridgeContract) AddRelayer

func (c *BridgeContract) AddRelayer(
	relayerAddr common.Address,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) AdminChangeRelayerThreshold

func (c *BridgeContract) AdminChangeRelayerThreshold(
	threshold uint64,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) AdminSetGenericResource

func (c *BridgeContract) AdminSetGenericResource(
	handler common.Address,
	rID types.ResourceID,
	addr common.Address,
	depositFunctionSig [4]byte,
	depositerOffset *big.Int,
	executeFunctionSig [4]byte,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) AdminSetResource

func (c *BridgeContract) AdminSetResource(
	handlerAddr common.Address,
	rID types.ResourceID,
	targetContractAddr common.Address,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) Erc20Deposit

func (c *BridgeContract) Erc20Deposit(
	recipient common.Address,
	amount *big.Int,
	resourceID types.ResourceID,
	destDomainID uint8,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) Erc721Deposit

func (c *BridgeContract) Erc721Deposit(
	tokenId *big.Int,
	metadata string,
	recipient common.Address,
	resourceID types.ResourceID,
	destDomainID uint8,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) ExecuteProposal

func (c *BridgeContract) ExecuteProposal(
	proposal *proposal.Proposal,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) GenericDeposit

func (c *BridgeContract) GenericDeposit(
	metadata []byte,
	resourceID types.ResourceID,
	destDomainID uint8,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) GetHandlerAddressForResourceID

func (c *BridgeContract) GetHandlerAddressForResourceID(
	resourceID types.ResourceID,
) (common.Address, error)

func (*BridgeContract) GetThreshold

func (c *BridgeContract) GetThreshold() (uint8, error)

func (*BridgeContract) IsFeeClaimThresholdReached

func (c *BridgeContract) IsFeeClaimThresholdReached() (bool, error)

func (*BridgeContract) IsProposalVotedBy

func (c *BridgeContract) IsProposalVotedBy(by common.Address, p *proposal.Proposal) (bool, error)

func (*BridgeContract) IsRelayer

func (c *BridgeContract) IsRelayer(relayerAddress common.Address) (bool, error)

func (*BridgeContract) Pause

func (*BridgeContract) ProposalStatus

func (c *BridgeContract) ProposalStatus(p *proposal.Proposal) (message.ProposalStatus, error)

func (*BridgeContract) RelayerClaimFees

func (c *BridgeContract) RelayerClaimFees(
	destDomainID uint8,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) SetBurnableInput

func (c *BridgeContract) SetBurnableInput(
	handlerAddr common.Address,
	tokenContractAddr common.Address,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) SetDepositNonce

func (c *BridgeContract) SetDepositNonce(
	domainId uint8,
	depositNonce uint64,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) SimulateVoteProposal

func (c *BridgeContract) SimulateVoteProposal(proposal *proposal.Proposal) error

func (*BridgeContract) Unpause

func (*BridgeContract) VoteProposal

func (c *BridgeContract) VoteProposal(
	proposal *proposal.Proposal,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*BridgeContract) Withdraw

func (c *BridgeContract) Withdraw(
	handlerAddress,
	tokenAddress,
	recipientAddress common.Address,
	amountOrTokenId *big.Int,
	opts transactor.TransactOptions,
) (*common.Hash, error)

Jump to

Keyboard shortcuts

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