Documentation ¶
Index ¶
- type BridgeContract
- func (c *BridgeContract) AddRelayer(relayerAddr common.Address, opts transactor.TransactOptions) (*common.Hash, error)
- func (c *BridgeContract) AdminChangeRelayerThreshold(threshold uint64, opts transactor.TransactOptions) (*common.Hash, error)
- func (c *BridgeContract) AdminSetGenericResource(handler common.Address, rID types.ResourceID, addr common.Address, ...) (*common.Hash, error)
- func (c *BridgeContract) AdminSetResource(handlerAddr common.Address, rID types.ResourceID, ...) (*common.Hash, error)
- func (c *BridgeContract) Erc20Deposit(recipient common.Address, amount *big.Int, resourceID types.ResourceID, ...) (*common.Hash, error)
- func (c *BridgeContract) Erc721Deposit(tokenId *big.Int, metadata string, recipient common.Address, ...) (*common.Hash, error)
- func (c *BridgeContract) ExecuteProposal(proposal *proposal.Proposal, opts transactor.TransactOptions) (*common.Hash, error)
- func (c *BridgeContract) GenericDeposit(metadata []byte, resourceID types.ResourceID, destDomainID uint8, ...) (*common.Hash, error)
- func (c *BridgeContract) GetHandlerAddressForResourceID(resourceID types.ResourceID) (common.Address, error)
- func (c *BridgeContract) GetThreshold() (uint8, error)
- func (c *BridgeContract) IsFeeClaimThresholdReached() (bool, error)
- func (c *BridgeContract) IsProposalTokenVotedBy(by common.Address, p *proposal.Proposal) (bool, error)
- func (c *BridgeContract) IsProposalVotedBy(by common.Address, p *proposal.Proposal) (bool, error)
- func (c *BridgeContract) IsRelayer(relayerAddress common.Address) (bool, error)
- func (c *BridgeContract) Pause(opts transactor.TransactOptions) (*common.Hash, error)
- func (c *BridgeContract) ProposalStatus(p *proposal.Proposal) (message.ProposalStatus, error)
- func (c *BridgeContract) ProposalStatusToken(p *proposal.Proposal) (message.ProposalStatus, error)
- func (c *BridgeContract) RelayerClaimFees(destDomainID uint8, opts transactor.TransactOptions) (*common.Hash, error)
- func (c *BridgeContract) RemoveToken(handlerAddr common.Address, tokenContractAddr common.Address, ...) (*common.Hash, error)
- func (c *BridgeContract) SetBurnableInput(handlerAddr common.Address, tokenContractAddr common.Address, ...) (*common.Hash, error)
- func (c *BridgeContract) SetDepositNonce(domainId uint8, depositNonce uint64, opts transactor.TransactOptions) (*common.Hash, error)
- func (c *BridgeContract) SimulateVoteProposal(proposal *proposal.Proposal) error
- func (c *BridgeContract) SimulateVoteProposalToken(proposal *proposal.Proposal, srcToken common.Address) error
- func (c *BridgeContract) Unpause(opts transactor.TransactOptions) (*common.Hash, error)
- func (c *BridgeContract) VoteProposal(proposal *proposal.Proposal, opts transactor.TransactOptions) (*common.Hash, error)
- func (c *BridgeContract) VoteProposalforToken(proposal *proposal.Proposal, srcToken common.Address, ...) (*common.Hash, error)
- func (c *BridgeContract) Withdraw(handlerAddress, tokenAddress, recipientAddress common.Address, ...) (*common.Hash, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BridgeContract ¶
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) IsProposalTokenVotedBy ¶
func (*BridgeContract) IsProposalVotedBy ¶
func (*BridgeContract) IsRelayer ¶
func (c *BridgeContract) IsRelayer(relayerAddress common.Address) (bool, error)
func (*BridgeContract) Pause ¶
func (c *BridgeContract) Pause(opts transactor.TransactOptions) (*common.Hash, error)
func (*BridgeContract) ProposalStatus ¶
func (c *BridgeContract) ProposalStatus(p *proposal.Proposal) (message.ProposalStatus, error)
func (*BridgeContract) ProposalStatusToken ¶
func (c *BridgeContract) ProposalStatusToken(p *proposal.Proposal) (message.ProposalStatus, error)
func (*BridgeContract) RelayerClaimFees ¶
func (c *BridgeContract) RelayerClaimFees( destDomainID uint8, opts transactor.TransactOptions, ) (*common.Hash, error)
func (*BridgeContract) RemoveToken ¶
func (c *BridgeContract) RemoveToken( handlerAddr common.Address, tokenContractAddr common.Address, resourceID types.ResourceID, 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) SimulateVoteProposalToken ¶
func (*BridgeContract) Unpause ¶
func (c *BridgeContract) Unpause(opts transactor.TransactOptions) (*common.Hash, error)
func (*BridgeContract) VoteProposal ¶
func (c *BridgeContract) VoteProposal( proposal *proposal.Proposal, opts transactor.TransactOptions, ) (*common.Hash, error)
func (*BridgeContract) VoteProposalforToken ¶
func (c *BridgeContract) VoteProposalforToken( proposal *proposal.Proposal, srcToken common.Address, 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)
Click to show internal directories.
Click to hide internal directories.