Documentation ¶
Overview ¶
Sequence v2 core primitives
Index ¶
- Variables
- type WalletConfig
- func (c *WalletConfig) BuildNoChainIDSignature(ctx context.Context, sign core.SigningFunction, validateSigningPower ...bool) (core.Signature[*WalletConfig], error)
- func (c *WalletConfig) BuildRegularSignature(ctx context.Context, sign core.SigningFunction, validateSigningPower ...bool) (core.Signature[*WalletConfig], error)
- func (c *WalletConfig) Checkpoint() uint32
- func (c *WalletConfig) ImageHash() core.ImageHash
- func (c *WalletConfig) IsUsable() error
- func (c *WalletConfig) Signers() map[common.Address]uint16
- func (c *WalletConfig) SignersWeight(signers []common.Address) uint16
- func (c *WalletConfig) Threshold() uint16
- type WalletConfigTree
- type WalletConfigTreeAddressLeaf
- type WalletConfigTreeNestedLeaf
- type WalletConfigTreeNode
- type WalletConfigTreeNodeLeaf
- type WalletConfigTreeSubdigestLeaf
Constants ¶
This section is empty.
Variables ¶
View Source
var Core core.Core[*WalletConfig, core.Signature[*WalletConfig]] = v2Core{}
Functions ¶
This section is empty.
Types ¶
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() uint32
func (*WalletConfig) ImageHash ¶
func (c *WalletConfig) ImageHash() core.ImageHash
func (*WalletConfig) IsUsable ¶ added in v0.22.0
func (c *WalletConfig) IsUsable() error
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 (l *WalletConfigTreeAddressLeaf) ImageHash() core.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 ¶
func (WalletConfigTreeNodeLeaf) ImageHash ¶
func (l WalletConfigTreeNodeLeaf) ImageHash() core.ImageHash
type WalletConfigTreeSubdigestLeaf ¶
type WalletConfigTreeSubdigestLeaf struct {
Subdigest core.Subdigest `json:"subdigest" toml:"subdigest"`
}
func (WalletConfigTreeSubdigestLeaf) ImageHash ¶
func (l WalletConfigTreeSubdigestLeaf) ImageHash() core.ImageHash
Click to show internal directories.
Click to hide internal directories.