Documentation ¶
Overview ¶
Sequence v1 core primitives
Index ¶
- Variables
- type WalletConfig
- func (c *WalletConfig) BuildSignature(ctx context.Context, sign core.SigningFunction, validateSigningPower ...bool) (core.Signature[*WalletConfig], error)
- func (c *WalletConfig) Checkpoint() uint32
- func (c *WalletConfig) Clone() *WalletConfig
- 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 WalletConfigSigner
- type WalletConfigSigners
Constants ¶
This section is empty.
Variables ¶
View Source
var Core core.Core[*WalletConfig, core.Signature[*WalletConfig]] = v1Core{}
Functions ¶
This section is empty.
Types ¶
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() uint32
func (*WalletConfig) Clone ¶ added in v0.22.0
func (c *WalletConfig) Clone() *WalletConfig
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 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)
Click to show internal directories.
Click to hide internal directories.