multisigcontrol

package
v0.73.9 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployMultisigControl

func DeployMultisigControl(
	version MultisigControlVersion,
	auth *bind.TransactOpts,
	backend bind.ContractBackend,
) (address common.Address, tx *ethTypes.Transaction, err error)

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