preregistration

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 13 Imported by: 1

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

Constants

This section is empty.

Variables

View Source
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 (*Configuration) Marshal

func (m *Configuration) Marshal() (dAtA []byte, err error)

func (*Configuration) MarshalTo

func (m *Configuration) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Record) GetDomain

func (m *Record) GetDomain() string

func (*Record) GetMetadata

func (m *Record) GetMetadata() *weave.Metadata

func (*Record) GetOwner

func (m *Record) GetOwner() github_com_iov_one_weave.Address

func (*Record) Marshal

func (m *Record) Marshal() (dAtA []byte, err error)

func (*Record) MarshalTo

func (m *Record) MarshalTo(dAtA []byte) (int, error)

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) Reset

func (m *Record) Reset()

func (*Record) Size

func (m *Record) Size() (n int)

func (*Record) String

func (m *Record) String() string

func (*Record) Unmarshal

func (m *Record) Unmarshal(dAtA []byte) error

func (*Record) Validate

func (r *Record) Validate() error

func (*Record) XXX_DiscardUnknown

func (m *Record) XXX_DiscardUnknown()

func (*Record) XXX_Marshal

func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Record) XXX_Merge

func (m *Record) XXX_Merge(src proto.Message)

func (*Record) XXX_Size

func (m *Record) XXX_Size() int

func (*Record) XXX_Unmarshal

func (m *Record) XXX_Unmarshal(b []byte) error

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 (*RegisterMsg) Marshal

func (m *RegisterMsg) Marshal() (dAtA []byte, err error)

func (*RegisterMsg) MarshalTo

func (m *RegisterMsg) MarshalTo(dAtA []byte) (int, 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) 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.

func (*ZeroFeeDecorator) Check added in v1.0.0

func (*ZeroFeeDecorator) Deliver added in v1.0.0

Jump to

Keyboard shortcuts

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