v1

package
v0.60.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Sequence v1 core primitives

Index

Constants

This section is empty.

Variables

Functions

func ApprovalDigest

func ApprovalDigest(imageHash core.ImageHashable) common.Hash

Types

type ApprovalPayload

type ApprovalPayload struct {
	core.ImageHashable
	// contains filtered or unexported fields
}

func Approval

func Approval(imageHash core.ImageHashable, address common.Address) ApprovalPayload

func (ApprovalPayload) Address

func (p ApprovalPayload) Address() common.Address

func (ApprovalPayload) ChainID

func (p ApprovalPayload) ChainID() *big.Int

func (ApprovalPayload) Digest

func (p ApprovalPayload) Digest() core.PayloadDigest

type DigestPayload

type DigestPayload struct {
	common.Hash
	// contains filtered or unexported fields
}

func Digest

func Digest(digest common.Hash, address common.Address, chainID ...*big.Int) DigestPayload

func (DigestPayload) Address

func (p DigestPayload) Address() common.Address

func (DigestPayload) ChainID

func (p DigestPayload) ChainID() *big.Int

func (DigestPayload) Digest

func (p DigestPayload) Digest() core.PayloadDigest

type WalletConfig

type WalletConfig struct {
	Threshold_ uint16              `json:"threshold" toml:"threshold"`
	Signers_   WalletConfigSigners `json:"signers" toml:"signers"`
}

func (*WalletConfig) BuildSignature

func (c *WalletConfig) BuildSignature(ctx context.Context, sign core.SigningFunction, validateSigningPower ...bool) (core.Signature[*WalletConfig], error)

func (*WalletConfig) Checkpoint

func (c *WalletConfig) Checkpoint() uint64

func (*WalletConfig) Clone added in v0.22.0

func (c *WalletConfig) Clone() *WalletConfig

func (*WalletConfig) ImageHash

func (c *WalletConfig) ImageHash() core.ImageHash

func (*WalletConfig) IsComplete

func (c *WalletConfig) IsComplete() bool

func (*WalletConfig) IsUsable added in v0.22.0

func (c *WalletConfig) IsUsable() error

func (*WalletConfig) Signers

func (c *WalletConfig) Signers() map[common.Address]uint16

func (*WalletConfig) SignersWeight added in v0.22.0

func (c *WalletConfig) SignersWeight(signers []common.Address) uint16

func (*WalletConfig) Threshold

func (c *WalletConfig) Threshold() uint16

type WalletConfigSigner

type WalletConfigSigner struct {
	Weight  uint8          `json:"weight" toml:"weight"`
	Address common.Address `json:"address" toml:"address"`
}

func (*WalletConfigSigner) MarshalJSON

func (s *WalletConfigSigner) MarshalJSON() ([]byte, error)

type WalletConfigSigners added in v0.22.0

type WalletConfigSigners []*WalletConfigSigner

func (WalletConfigSigners) Len added in v0.22.0

func (s WalletConfigSigners) Len() int

func (WalletConfigSigners) Less added in v0.22.0

func (s WalletConfigSigners) Less(i, j int) bool

func (WalletConfigSigners) Swap added in v0.22.0

func (s WalletConfigSigners) Swap(i, j int)

Jump to

Keyboard shortcuts

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