multisigcontrol

package
v0.75.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultisigControl

type MultisigControl struct {
	MultisigControlCommon
	MultisigControlNewInV2
	Address common.Address
	Version MultisigControlVersion
	// contains filtered or unexported fields
}

func NewMultisigControl

func NewMultisigControl(
	ethClient *ethclient.Client,
	hexAddress string,
	version MultisigControlVersion,
) (*MultisigControl, error)

type MultisigControlCommon

type MultisigControlCommon interface {
	GetCurrentThreshold(opts *bind.CallOpts) (uint16, error)
	GetValidSignerCount(opts *bind.CallOpts) (uint8, error)
	IsNonceUsed(opts *bind.CallOpts, nonce *big.Int) (bool, error)
	IsValidSigner(opts *bind.CallOpts, signer_address common.Address) (bool, error)

	AddSigner(opts *bind.TransactOpts, new_signer common.Address, nonce *big.Int, signatures []byte) (*ethTypes.Transaction, error)
	RemoveSigner(opts *bind.TransactOpts, old_signer common.Address, nonce *big.Int, signatures []byte) (*ethTypes.Transaction, error)
	SetThreshold(opts *bind.TransactOpts, new_threshold uint16, nonce *big.Int, signatures []byte) (*ethTypes.Transaction, error)
	VerifySignatures(opts *bind.TransactOpts, signatures []byte, message []byte, nonce *big.Int) (*ethTypes.Transaction, error)
}

type MultisigControlNewInV2

type MultisigControlNewInV2 interface {
	Signers(opts *bind.CallOpts, arg0 common.Address) (bool, error)
	BurnNonce(opts *bind.TransactOpts, nonce *big.Int, signatures []byte) (*ethTypes.Transaction, error)
}

type MultisigControlVersion

type MultisigControlVersion string
const (
	MultisigControlV1 MultisigControlVersion = "v1"
	MultisigControlV2 MultisigControlVersion = "v2"
)

func (MultisigControlVersion) IsValid

func (n MultisigControlVersion) IsValid() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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