 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Sequence v2 core primitives
Index ¶
- Variables
- func ApprovalDigest(imageHash core.ImageHashable) common.Hash
- type ApprovalPayload
- type DigestPayload
- 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() uint64
- func (c *WalletConfig) ImageHash() core.ImageHash
- func (c *WalletConfig) IsComplete() bool
- func (c *WalletConfig) IsUsable() error
- func (c *WalletConfig) Signers() map[core.Signer]uint16
- func (c *WalletConfig) SignersWeight(signers map[core.Signer]uint16) 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 ¶
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
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) SignersWeight ¶ added in v0.22.0
func (c *WalletConfig) SignersWeight(signers map[core.Signer]uint16) 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 common.Hash `json:"subdigest" toml:"subdigest"`
}
    func (WalletConfigTreeSubdigestLeaf) ImageHash ¶
func (l WalletConfigTreeSubdigestLeaf) ImageHash() core.ImageHash
 Click to show internal directories. 
   Click to hide internal directories.