Documentation ¶
Index ¶
- type Proposal
- type Signature
- type SignaturesContract
- func (c *SignaturesContract) AddAdmin(admin common.Address, opts transactor.TransactOptions) (*common.Hash, error)
- func (c *SignaturesContract) AdminSetDestChainId(destinationDomainID uint8, chainId uint64, bridge common.Address, ...) (*common.Hash, error)
- func (c *SignaturesContract) CheckSignature(domainID uint8, destinationDomainID uint8, destinationBridge common.Address, ...) (bool, error)
- func (c *SignaturesContract) DefaultAdminRole() ([32]byte, error)
- func (c *SignaturesContract) GetDestChainId(destinationDomainID uint8) (*big.Int, error)
- func (c *SignaturesContract) GetRoleMember(role [32]byte, i int64) (common.Address, error)
- func (c *SignaturesContract) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (c *SignaturesContract) GetSignatures(domainID uint8, destinationDomainID uint8, depositNonce uint64, ...) ([][]byte, error)
- func (c *SignaturesContract) GetThreshold(domain uint8) (uint8, error)
- func (c *SignaturesContract) GrantRole(role [32]byte, account common.Address, opts transactor.TransactOptions) (*common.Hash, error)
- func (c *SignaturesContract) HasVote(sig []byte) (bool, error)
- func (c *SignaturesContract) MinterRole() ([32]byte, error)
- func (c *SignaturesContract) QueryProposal(depositHash [32]byte) (*Proposal, error)
- func (c *SignaturesContract) RelayerRole() ([32]byte, error)
- func (c *SignaturesContract) RemoveAdmin(admin common.Address, opts transactor.TransactOptions) (*common.Hash, error)
- func (c *SignaturesContract) RemoveRelayer(relayer common.Address, opts transactor.TransactOptions) (*common.Hash, error)
- func (c *SignaturesContract) SetThresholdInput(destinationDomainID uint8, threshold uint64, opts transactor.TransactOptions) (*common.Hash, error)
- func (c *SignaturesContract) SubmitSignature(originDomainID uint8, destinationDomainID uint8, depositNonce uint64, ...) (*common.Hash, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignaturesContract ¶
func NewSignaturesContract ¶
func NewSignaturesContract( client calls.ContractCallerDispatcher, contractAddress common.Address, transactor transactor.Transactor, ) *SignaturesContract
func (*SignaturesContract) AddAdmin ¶
func (c *SignaturesContract) AddAdmin( admin common.Address, opts transactor.TransactOptions, ) (*common.Hash, error)
func (*SignaturesContract) AdminSetDestChainId ¶
func (c *SignaturesContract) AdminSetDestChainId( destinationDomainID uint8, chainId uint64, bridge common.Address, opts transactor.TransactOptions, ) (*common.Hash, error)
func (*SignaturesContract) CheckSignature ¶
func (*SignaturesContract) DefaultAdminRole ¶
func (c *SignaturesContract) DefaultAdminRole() ([32]byte, error)
func (*SignaturesContract) GetDestChainId ¶
func (c *SignaturesContract) GetDestChainId( destinationDomainID uint8, ) (*big.Int, error)
func (*SignaturesContract) GetRoleMember ¶
func (*SignaturesContract) GetRoleMemberCount ¶
func (c *SignaturesContract) GetRoleMemberCount(role [32]byte) (*big.Int, error)
func (*SignaturesContract) GetSignatures ¶
func (c *SignaturesContract) GetSignatures( domainID uint8, destinationDomainID uint8, depositNonce uint64, resourceID [32]byte, data []byte, ) ([][]byte, error)
GetSignatures uint8 domainID, uint64 depositNonce, bytes32 resourceID, bytes calldata data
func (*SignaturesContract) GetThreshold ¶
func (c *SignaturesContract) GetThreshold(domain uint8) (uint8, error)
func (*SignaturesContract) GrantRole ¶
func (c *SignaturesContract) GrantRole( role [32]byte, account common.Address, opts transactor.TransactOptions, ) (*common.Hash, error)
func (*SignaturesContract) MinterRole ¶
func (c *SignaturesContract) MinterRole() ([32]byte, error)
func (*SignaturesContract) QueryProposal ¶
func (c *SignaturesContract) QueryProposal( depositHash [32]byte, ) (*Proposal, error)
func (*SignaturesContract) RelayerRole ¶
func (c *SignaturesContract) RelayerRole() ([32]byte, error)
func (*SignaturesContract) RemoveAdmin ¶
func (c *SignaturesContract) RemoveAdmin( admin common.Address, opts transactor.TransactOptions, ) (*common.Hash, error)
func (*SignaturesContract) RemoveRelayer ¶
func (c *SignaturesContract) RemoveRelayer( relayer common.Address, opts transactor.TransactOptions, ) (*common.Hash, error)
func (*SignaturesContract) SetThresholdInput ¶
func (c *SignaturesContract) SetThresholdInput( destinationDomainID uint8, threshold uint64, opts transactor.TransactOptions, ) (*common.Hash, error)
func (*SignaturesContract) SubmitSignature ¶
func (c *SignaturesContract) SubmitSignature( originDomainID uint8, destinationDomainID uint8, depositNonce uint64, resourceID [32]byte, data []byte, signature []byte, opts transactor.TransactOptions, ) (*common.Hash, error)
SubmitSignature uint8 originDomainID, uint8 destinationDomainID, uint64 depositNonce, bytes32 resourceID, bytes calldata data, bytes calldata signature
Click to show internal directories.
Click to hide internal directories.