signatures

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proposal

type Proposal struct {
	// contains filtered or unexported fields
}

func (*Proposal) String

func (p *Proposal) String() string

type Signature

type Signature struct {
	OriginDomainID      uint8
	DestinationDomainID uint8
	DestinationBridge   common.Address
	DepositNonce        uint64
	ResourceID          [32]byte
	Data                []byte
	Signature           []byte
}

type SignaturesContract

type SignaturesContract struct {
	contracts.Contract
}

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 (c *SignaturesContract) CheckSignature(
	domainID uint8,
	destinationDomainID uint8,
	destinationBridge common.Address,
	depositNonce uint64,
	resourceID [32]byte,
	data []byte,
	signature []byte,
) (bool, error)

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 (c *SignaturesContract) GetRoleMember(role [32]byte, i int64) (common.Address, error)

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) HasVote

func (c *SignaturesContract) HasVote(sig []byte) (bool, 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

Jump to

Keyboard shortcuts

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