v2

package
v0.60.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Overview

Sequence v2 core primitives

Index

Constants

This section is empty.

Variables

Functions

func ApprovalDigest added in v0.60.0

func ApprovalDigest(imageHash core.ImageHashable) common.Hash

Types

type ApprovalPayload added in v0.60.0

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

func Approval added in v0.60.0

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

func (ApprovalPayload) Address added in v0.60.0

func (p ApprovalPayload) Address() common.Address

func (ApprovalPayload) ChainID added in v0.60.0

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

func (ApprovalPayload) Digest added in v0.60.0

func (p ApprovalPayload) Digest() core.PayloadDigest

type DigestPayload added in v0.60.0

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

func Digest added in v0.60.0

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

func (DigestPayload) Address added in v0.60.0

func (p DigestPayload) Address() common.Address

func (DigestPayload) ChainID added in v0.60.0

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

func (DigestPayload) Digest added in v0.60.0

func (p DigestPayload) Digest() core.PayloadDigest

type WalletConfig

type WalletConfig struct {
	Threshold_  uint16           `json:"threshold" toml:"threshold"`
	Checkpoint_ uint32           `json:"checkpoint" toml:"checkpoint"`
	Tree        WalletConfigTree `json:"tree" toml:"tree"`
}

func (*WalletConfig) BuildNoChainIDSignature

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

func (*WalletConfig) BuildRegularSignature

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

func (*WalletConfig) Checkpoint

func (c *WalletConfig) Checkpoint() uint64

func (*WalletConfig) ImageHash

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

func (*WalletConfig) IsComplete added in v0.60.0

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 WalletConfigTree

type WalletConfigTree interface {
	core.ImageHashable
	// contains filtered or unexported methods
}

func DecodeWalletConfigTree

func DecodeWalletConfigTree(object any) (WalletConfigTree, error)

func WalletConfigTreeNodes added in v0.22.0

func WalletConfigTreeNodes(nodes ...WalletConfigTree) WalletConfigTree

type WalletConfigTreeAddressLeaf

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

func (*WalletConfigTreeAddressLeaf) ImageHash

func (*WalletConfigTreeAddressLeaf) MarshalJSON

func (l *WalletConfigTreeAddressLeaf) MarshalJSON() ([]byte, error)

type WalletConfigTreeNestedLeaf

type WalletConfigTreeNestedLeaf struct {
	Weight    uint8            `json:"weight" toml:"weight"`
	Threshold uint16           `json:"threshold" toml:"threshold"`
	Tree      WalletConfigTree `json:"tree" toml:"tree"`
}

func (*WalletConfigTreeNestedLeaf) ImageHash

func (l *WalletConfigTreeNestedLeaf) ImageHash() core.ImageHash

type WalletConfigTreeNode

type WalletConfigTreeNode struct {
	Left  WalletConfigTree `json:"left" toml:"left"`
	Right WalletConfigTree `json:"right" toml:"right"`
}

func (*WalletConfigTreeNode) ImageHash

func (n *WalletConfigTreeNode) ImageHash() core.ImageHash

type WalletConfigTreeNodeLeaf

type WalletConfigTreeNodeLeaf struct {
	Node core.ImageHash `json:"node" toml:"node"`
}

func (WalletConfigTreeNodeLeaf) ImageHash

func (l WalletConfigTreeNodeLeaf) ImageHash() core.ImageHash

type WalletConfigTreeSubdigestLeaf

type WalletConfigTreeSubdigestLeaf struct {
	Subdigest common.Hash `json:"subdigest" toml:"subdigest"`
}

func (WalletConfigTreeSubdigestLeaf) ImageHash

Jump to

Keyboard shortcuts

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