Documentation ¶
Overview ¶
Package preregistration implements a storage for account preregistration. This extension has no functionality beside being a storage for the preregistration list. Once preregistration period is over, we will use state migration to rewrite all preregistered names to the final account implementation.
This extension does not support schema migrations.
Index ¶
- Variables
- func NewRecordBucket() orm.ModelBucket
- func RegisterQuery(qr weave.QueryRouter)
- func RegisterRoutes(r weave.Registry, auth x.Authenticator)
- type Configuration
- func (*Configuration) Descriptor() ([]byte, []int)
- func (m *Configuration) GetMetadata() *weave.Metadata
- func (m *Configuration) GetOwner() github_com_iov_one_weave.Address
- func (m *Configuration) Marshal() (dAtA []byte, err error)
- func (m *Configuration) MarshalTo(dAtA []byte) (int, error)
- func (*Configuration) ProtoMessage()
- func (m *Configuration) Reset()
- func (m *Configuration) Size() (n int)
- func (m *Configuration) String() string
- func (m *Configuration) Unmarshal(dAtA []byte) error
- func (c *Configuration) Validate() error
- func (m *Configuration) XXX_DiscardUnknown()
- func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Configuration) XXX_Merge(src proto.Message)
- func (m *Configuration) XXX_Size() int
- func (m *Configuration) XXX_Unmarshal(b []byte) error
- type Initializer
- type Record
- func (*Record) Descriptor() ([]byte, []int)
- func (m *Record) GetDomain() string
- func (m *Record) GetMetadata() *weave.Metadata
- func (m *Record) GetOwner() github_com_iov_one_weave.Address
- func (m *Record) Marshal() (dAtA []byte, err error)
- func (m *Record) MarshalTo(dAtA []byte) (int, error)
- func (*Record) ProtoMessage()
- func (m *Record) Reset()
- func (m *Record) Size() (n int)
- func (m *Record) String() string
- func (m *Record) Unmarshal(dAtA []byte) error
- func (r *Record) Validate() error
- func (m *Record) XXX_DiscardUnknown()
- func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Record) XXX_Merge(src proto.Message)
- func (m *Record) XXX_Size() int
- func (m *Record) XXX_Unmarshal(b []byte) error
- type RegisterMsg
- func (*RegisterMsg) Descriptor() ([]byte, []int)
- func (m *RegisterMsg) GetDomain() string
- func (m *RegisterMsg) GetMetadata() *weave.Metadata
- func (m *RegisterMsg) GetOwner() github_com_iov_one_weave.Address
- func (m *RegisterMsg) Marshal() (dAtA []byte, err error)
- func (m *RegisterMsg) MarshalTo(dAtA []byte) (int, error)
- func (RegisterMsg) Path() string
- func (*RegisterMsg) ProtoMessage()
- func (m *RegisterMsg) Reset()
- func (m *RegisterMsg) Size() (n int)
- func (m *RegisterMsg) String() string
- func (m *RegisterMsg) Unmarshal(dAtA []byte) error
- func (msg *RegisterMsg) Validate() error
- func (m *RegisterMsg) XXX_DiscardUnknown()
- func (m *RegisterMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterMsg) XXX_Merge(src proto.Message)
- func (m *RegisterMsg) XXX_Size() int
- func (m *RegisterMsg) XXX_Unmarshal(b []byte) error
- type UpdateConfigurationMsg
- func (*UpdateConfigurationMsg) Descriptor() ([]byte, []int)
- func (m *UpdateConfigurationMsg) GetMetadata() *weave.Metadata
- func (m *UpdateConfigurationMsg) GetPatch() *Configuration
- func (m *UpdateConfigurationMsg) Marshal() (dAtA []byte, err error)
- func (m *UpdateConfigurationMsg) MarshalTo(dAtA []byte) (int, error)
- func (UpdateConfigurationMsg) Path() string
- func (*UpdateConfigurationMsg) ProtoMessage()
- func (m *UpdateConfigurationMsg) Reset()
- func (m *UpdateConfigurationMsg) Size() (n int)
- func (m *UpdateConfigurationMsg) String() string
- func (m *UpdateConfigurationMsg) Unmarshal(dAtA []byte) error
- func (m *UpdateConfigurationMsg) Validate() error
- func (m *UpdateConfigurationMsg) XXX_DiscardUnknown()
- func (m *UpdateConfigurationMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateConfigurationMsg) XXX_Merge(src proto.Message)
- func (m *UpdateConfigurationMsg) XXX_Size() int
- func (m *UpdateConfigurationMsg) XXX_Unmarshal(b []byte) error
- type ZeroFeeDecorator
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthCodec = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCodec = fmt.Errorf("proto: integer overflow") )
Functions ¶
func NewRecordBucket ¶
func NewRecordBucket() orm.ModelBucket
func RegisterQuery ¶ added in v1.0.0
func RegisterQuery(qr weave.QueryRouter)
func RegisterRoutes ¶
func RegisterRoutes(r weave.Registry, auth x.Authenticator)
Types ¶
type Configuration ¶
type Configuration struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // Owner is present to implement gconf.OwnedConfig interface // This defines the Address that is allowed to update the Configuration object and is // needed to make use of gconf.NewUpdateConfigurationHandler Owner github_com_iov_one_weave.Address `protobuf:"bytes,2,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"` }
func (*Configuration) Descriptor ¶
func (*Configuration) Descriptor() ([]byte, []int)
func (*Configuration) GetMetadata ¶
func (m *Configuration) GetMetadata() *weave.Metadata
func (*Configuration) GetOwner ¶
func (m *Configuration) GetOwner() github_com_iov_one_weave.Address
func (*Configuration) Marshal ¶
func (m *Configuration) Marshal() (dAtA []byte, err error)
func (*Configuration) ProtoMessage ¶
func (*Configuration) ProtoMessage()
func (*Configuration) Reset ¶
func (m *Configuration) Reset()
func (*Configuration) Size ¶
func (m *Configuration) Size() (n int)
func (*Configuration) String ¶
func (m *Configuration) String() string
func (*Configuration) Unmarshal ¶
func (m *Configuration) Unmarshal(dAtA []byte) error
func (*Configuration) Validate ¶
func (c *Configuration) Validate() error
func (*Configuration) XXX_DiscardUnknown ¶
func (m *Configuration) XXX_DiscardUnknown()
func (*Configuration) XXX_Marshal ¶
func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Configuration) XXX_Merge ¶
func (m *Configuration) XXX_Merge(src proto.Message)
func (*Configuration) XXX_Size ¶
func (m *Configuration) XXX_Size() int
func (*Configuration) XXX_Unmarshal ¶
func (m *Configuration) XXX_Unmarshal(b []byte) error
type Initializer ¶
type Initializer struct{}
Initializer fulfils the Initializer interface to load data from the genesis file
func (*Initializer) FromGenesis ¶
func (*Initializer) FromGenesis(opts weave.Options, params weave.GenesisParams, kv weave.KVStore) error
FromGenesis will parse initial account info from genesis and save it to the database
type Record ¶
type Record struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` Owner github_com_iov_one_weave.Address `protobuf:"bytes,3,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"` }
func (*Record) Descriptor ¶
func (*Record) GetMetadata ¶
func (*Record) GetOwner ¶
func (m *Record) GetOwner() github_com_iov_one_weave.Address
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) XXX_DiscardUnknown ¶
func (m *Record) XXX_DiscardUnknown()
func (*Record) XXX_Marshal ¶
func (*Record) XXX_Unmarshal ¶
type RegisterMsg ¶
type RegisterMsg struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` Owner github_com_iov_one_weave.Address `protobuf:"bytes,3,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"` }
func (*RegisterMsg) Descriptor ¶
func (*RegisterMsg) Descriptor() ([]byte, []int)
func (*RegisterMsg) GetDomain ¶
func (m *RegisterMsg) GetDomain() string
func (*RegisterMsg) GetMetadata ¶
func (m *RegisterMsg) GetMetadata() *weave.Metadata
func (*RegisterMsg) GetOwner ¶
func (m *RegisterMsg) GetOwner() github_com_iov_one_weave.Address
func (*RegisterMsg) Marshal ¶
func (m *RegisterMsg) Marshal() (dAtA []byte, err error)
func (RegisterMsg) Path ¶
func (RegisterMsg) Path() string
func (*RegisterMsg) ProtoMessage ¶
func (*RegisterMsg) ProtoMessage()
func (*RegisterMsg) Reset ¶
func (m *RegisterMsg) Reset()
func (*RegisterMsg) Size ¶
func (m *RegisterMsg) Size() (n int)
func (*RegisterMsg) String ¶
func (m *RegisterMsg) String() string
func (*RegisterMsg) Unmarshal ¶
func (m *RegisterMsg) Unmarshal(dAtA []byte) error
func (*RegisterMsg) Validate ¶
func (msg *RegisterMsg) Validate() error
func (*RegisterMsg) XXX_DiscardUnknown ¶
func (m *RegisterMsg) XXX_DiscardUnknown()
func (*RegisterMsg) XXX_Marshal ¶
func (m *RegisterMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterMsg) XXX_Merge ¶
func (m *RegisterMsg) XXX_Merge(src proto.Message)
func (*RegisterMsg) XXX_Size ¶
func (m *RegisterMsg) XXX_Size() int
func (*RegisterMsg) XXX_Unmarshal ¶
func (m *RegisterMsg) XXX_Unmarshal(b []byte) error
type UpdateConfigurationMsg ¶ added in v1.0.0
type UpdateConfigurationMsg struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Patch *Configuration `protobuf:"bytes,2,opt,name=patch,proto3" json:"patch,omitempty"` }
func (*UpdateConfigurationMsg) Descriptor ¶ added in v1.0.0
func (*UpdateConfigurationMsg) Descriptor() ([]byte, []int)
func (*UpdateConfigurationMsg) GetMetadata ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) GetMetadata() *weave.Metadata
func (*UpdateConfigurationMsg) GetPatch ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) GetPatch() *Configuration
func (*UpdateConfigurationMsg) Marshal ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) Marshal() (dAtA []byte, err error)
func (*UpdateConfigurationMsg) MarshalTo ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) MarshalTo(dAtA []byte) (int, error)
func (UpdateConfigurationMsg) Path ¶ added in v1.0.0
func (UpdateConfigurationMsg) Path() string
func (*UpdateConfigurationMsg) ProtoMessage ¶ added in v1.0.0
func (*UpdateConfigurationMsg) ProtoMessage()
func (*UpdateConfigurationMsg) Reset ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) Reset()
func (*UpdateConfigurationMsg) Size ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) Size() (n int)
func (*UpdateConfigurationMsg) String ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) String() string
func (*UpdateConfigurationMsg) Unmarshal ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) Unmarshal(dAtA []byte) error
func (*UpdateConfigurationMsg) Validate ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) Validate() error
func (*UpdateConfigurationMsg) XXX_DiscardUnknown ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) XXX_DiscardUnknown()
func (*UpdateConfigurationMsg) XXX_Marshal ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateConfigurationMsg) XXX_Merge ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) XXX_Merge(src proto.Message)
func (*UpdateConfigurationMsg) XXX_Size ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) XXX_Size() int
func (*UpdateConfigurationMsg) XXX_Unmarshal ¶ added in v1.0.0
func (m *UpdateConfigurationMsg) XXX_Unmarshal(b []byte) error
type ZeroFeeDecorator ¶ added in v1.0.0
type ZeroFeeDecorator struct{}
ZeroFeeDecorator zero fee for a transaction that contains a single message of registering a preregistration record. Preregistration records can be inserted only by an admin, so even the antispam fee is not necessary.
func NewZeroFeeDecorator ¶ added in v1.0.0
func NewZeroFeeDecorator() *ZeroFeeDecorator
NewZeroFeeDecorator returns a decorator that lowers the fee for a record preregistration message.