account

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 16 Imported by: 4

README

account

Action Has Superuser Domain Admin Account Owner Anyone
Registar a domain yes no no yes
Registar a domain no no no no
Change domain admin yes yes no no
Change domain admin no no no no
Renew a domain no yes yes yes
Renew a domain yes yes yes yes
Delete a domain yes yes no no
Delete a domain no no no no
Register an account yes yes no no
Register an account no no no yes
Renew an account no yes yes yes
Renew an account yes yes yes yes
Change account owner yes yes no no
Change account owner no no yes no
Change account targets yes no yes no
Change account targets no no yes no
Delete an account yes yes yes no
Delete an account no no yes no

Documentation

Overview

Package account implements Account functionality.

TODO

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 NewAccountBucket

func NewAccountBucket() orm.ModelBucket

func NewAccountMsgFeeDecorator

func NewAccountMsgFeeDecorator() weave.Decorator

NewAccountMsgFeeDecorator returns a weave decorator that charge additional fee for each account modifying message as defined by the domain that modified account belongs to.

func NewDomainBucket

func NewDomainBucket() orm.ModelBucket

func RegisterQuery

func RegisterQuery(qr weave.QueryRouter)

func RegisterRoutes

func RegisterRoutes(r weave.Registry, auth x.Authenticator)

Types

type Account

type Account struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Domain references a domain that this account belongs to.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	Name   string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Owner is a weave.Address that controls this account. Can be empty.
	//
	// An account can be administrated by the domain admin. In addition,
	// ownership can be assigned to an address to allow another party to manage
	// selected account.
	Owner github_com_iov_one_weave.Address `protobuf:"bytes,4,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"`
	// Valid until defines the expiration date for the account. Expired account
	// cannot be used or modified. This date is always considered in context of
	// the domain that this account belongs. Expired domain expires all belonging
	// accounts as well, event if that account valid until date is not yet due.
	ValidUntil   github_com_iov_one_weave.UnixTime `` /* 135-byte string literal not displayed */
	Targets      []BlockchainAddress               `protobuf:"bytes,6,rep,name=targets,proto3" json:"targets"`
	Certificates [][]byte                          `protobuf:"bytes,7,rep,name=certificates,proto3" json:"certificates,omitempty"`
	// Broker is a weave address (bech32 or hex) that can be provided by a middleman that helped
	// facilitate the registration transaction. For example, an IOV token holder that registers
	// a domain in exchange for fiat from a client is a broker. Storing the broker helps identify
	// the contribution of such a party, which allows for automated commission distribution through
	// an IOV reward initiative, for example. Must be a weave address that starts with a format or hex
	// for example: bech32:tiov16hzpmhecd65u993lasmexrdlkvhcxtlnf7f4ws.
	Broker github_com_iov_one_weave.Address `protobuf:"bytes,8,opt,name=broker,proto3,casttype=github.com/iov-one/weave.Address" json:"broker,omitempty"`
}

Account represents an account that belongs to a domain.

String representation of an account is `<name>*<domain>`. Empty name is an acceptable account string. Complete validation rules for name and domain are declared by configuration entity.

An account must always belong to an existing domain.

func (*Account) Descriptor

func (*Account) Descriptor() ([]byte, []int)

func (*Account) GetBroker added in v1.0.1

func (m *Account) GetBroker() github_com_iov_one_weave.Address

func (*Account) GetCertificates

func (m *Account) GetCertificates() [][]byte

func (*Account) GetDomain

func (m *Account) GetDomain() string

func (*Account) GetMetadata

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

func (*Account) GetName

func (m *Account) GetName() string

func (*Account) GetOwner

func (*Account) GetTargets

func (m *Account) GetTargets() []BlockchainAddress

func (*Account) GetValidUntil

func (m *Account) GetValidUntil() github_com_iov_one_weave.UnixTime

func (*Account) Marshal

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

func (*Account) MarshalTo

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

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) Size

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

func (*Account) String

func (m *Account) String() string

func (*Account) Unmarshal

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

func (*Account) Validate

func (a *Account) Validate() error

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

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

func (*Account) XXX_Merge

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

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

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

type AccountMsgFee

type AccountMsgFee struct {
	MsgPath string    `protobuf:"bytes,1,opt,name=msg_path,json=msgPath,proto3" json:"msg_path,omitempty"`
	Fee     coin.Coin `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee"`
}

AccountMsgFee defines a fee for processing a message of a given type, determined by that message path. This is a way to declare an additional price for processing a message in a scope of a domain.

func (*AccountMsgFee) Descriptor

func (*AccountMsgFee) Descriptor() ([]byte, []int)

func (*AccountMsgFee) GetFee

func (m *AccountMsgFee) GetFee() coin.Coin

func (*AccountMsgFee) GetMsgPath

func (m *AccountMsgFee) GetMsgPath() string

func (*AccountMsgFee) Marshal

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

func (*AccountMsgFee) MarshalTo

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

func (*AccountMsgFee) ProtoMessage

func (*AccountMsgFee) ProtoMessage()

func (*AccountMsgFee) Reset

func (m *AccountMsgFee) Reset()

func (*AccountMsgFee) Size

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

func (*AccountMsgFee) String

func (m *AccountMsgFee) String() string

func (*AccountMsgFee) Unmarshal

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

func (*AccountMsgFee) XXX_DiscardUnknown

func (m *AccountMsgFee) XXX_DiscardUnknown()

func (*AccountMsgFee) XXX_Marshal

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

func (*AccountMsgFee) XXX_Merge

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

func (*AccountMsgFee) XXX_Size

func (m *AccountMsgFee) XXX_Size() int

func (*AccountMsgFee) XXX_Unmarshal

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

type AddAccountCertificateMsg

type AddAccountCertificateMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Domain that account belongs to.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// Account name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Certificate content.
	Certificate []byte `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"`
}

func (*AddAccountCertificateMsg) Descriptor

func (*AddAccountCertificateMsg) Descriptor() ([]byte, []int)

func (*AddAccountCertificateMsg) GetCertificate

func (m *AddAccountCertificateMsg) GetCertificate() []byte

func (*AddAccountCertificateMsg) GetDomain

func (m *AddAccountCertificateMsg) GetDomain() string

func (*AddAccountCertificateMsg) GetMetadata

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

func (*AddAccountCertificateMsg) GetName

func (m *AddAccountCertificateMsg) GetName() string

func (*AddAccountCertificateMsg) Marshal

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

func (*AddAccountCertificateMsg) MarshalTo

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

func (AddAccountCertificateMsg) Path

func (*AddAccountCertificateMsg) ProtoMessage

func (*AddAccountCertificateMsg) ProtoMessage()

func (*AddAccountCertificateMsg) Reset

func (m *AddAccountCertificateMsg) Reset()

func (*AddAccountCertificateMsg) Size

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

func (*AddAccountCertificateMsg) String

func (m *AddAccountCertificateMsg) String() string

func (*AddAccountCertificateMsg) Unmarshal

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

func (*AddAccountCertificateMsg) Validate

func (msg *AddAccountCertificateMsg) Validate() error

func (*AddAccountCertificateMsg) XXX_DiscardUnknown

func (m *AddAccountCertificateMsg) XXX_DiscardUnknown()

func (*AddAccountCertificateMsg) XXX_Marshal

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

func (*AddAccountCertificateMsg) XXX_Merge

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

func (*AddAccountCertificateMsg) XXX_Size

func (m *AddAccountCertificateMsg) XXX_Size() int

func (*AddAccountCertificateMsg) XXX_Unmarshal

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

type BlockchainAddress

type BlockchainAddress struct {
	// An arbitrary blockchain ID.
	BlockchainID string `protobuf:"bytes,1,opt,name=blockchain_id,json=blockchainId,proto3" json:"blockchain_id,omitempty"`
	// An address on the specified blockchain network. Address is not a
	// weave.Address as we cannot know what is the format of an address on the
	// chain that this token instance links to. Because we do not know the rules
	// to validate an address for any blockchain ID, this is an arbitrary bulk of
	// data.
	// It is more convenient to always use encoded representation of each address
	// and store it as a string. Using bytes while compact is not as comfortable
	// to use.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

BlockchainAddress represents a blochain address. This structure clubs together blokchain ID together with an address on that network. It is used to point to an address on any blockchain network.

func (*BlockchainAddress) Descriptor

func (*BlockchainAddress) Descriptor() ([]byte, []int)

func (*BlockchainAddress) GetAddress

func (m *BlockchainAddress) GetAddress() string

func (*BlockchainAddress) GetBlockchainID

func (m *BlockchainAddress) GetBlockchainID() string

func (*BlockchainAddress) Marshal

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

func (*BlockchainAddress) MarshalTo

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

func (*BlockchainAddress) ProtoMessage

func (*BlockchainAddress) ProtoMessage()

func (*BlockchainAddress) Reset

func (m *BlockchainAddress) Reset()

func (*BlockchainAddress) Size

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

func (*BlockchainAddress) String

func (m *BlockchainAddress) String() string

func (*BlockchainAddress) Unmarshal

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

func (*BlockchainAddress) XXX_DiscardUnknown

func (m *BlockchainAddress) XXX_DiscardUnknown()

func (*BlockchainAddress) XXX_Marshal

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

func (*BlockchainAddress) XXX_Merge

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

func (*BlockchainAddress) XXX_Size

func (m *BlockchainAddress) XXX_Size() int

func (*BlockchainAddress) XXX_Unmarshal

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

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"`
	// Valid domain defines a regular expression that every valid domain of an
	// account must match. Rule must not include the asterisk (*) character.
	ValidDomain string `protobuf:"bytes,3,opt,name=valid_domain,json=validDomain,proto3" json:"valid_domain,omitempty"`
	// Valid name defines a regular expression that every valid name of an
	// account must match. Rule must not include the asterisk (*) character.
	ValidName string `protobuf:"bytes,4,opt,name=valid_name,json=validName,proto3" json:"valid_name,omitempty"`
	// Valid blockchain ID defines a regular expression that a valid target
	// blockchain ID must match.
	ValidBlockchainID string `protobuf:"bytes,5,opt,name=valid_blockchain_id,json=validBlockchainId,proto3" json:"valid_blockchain_id,omitempty"`
	// Valid blockchain address defines a regular expression that a valid target
	// blockchain address must match.
	ValidBlockchainAddress string `` /* 129-byte string literal not displayed */
	// Domain renew defines the duration of the domain renewal period.
	DomainRenew github_com_iov_one_weave.UnixDuration `` /* 142-byte string literal not displayed */
	// Domain grace period defines the duration of the release duration of a domain. A non-admin
	// can delete the domain after the grace period ends.
	DomainGracePeriod github_com_iov_one_weave.UnixDuration `` /* 162-byte string literal not displayed */
}

Configuration is a dynamic configuration used by this extension, managed by the functionality provided by gconf package.

func (*Configuration) Descriptor

func (*Configuration) Descriptor() ([]byte, []int)

func (*Configuration) GetDomainGracePeriod added in v1.0.2

func (m *Configuration) GetDomainGracePeriod() github_com_iov_one_weave.UnixDuration

func (*Configuration) GetDomainRenew

func (*Configuration) GetMetadata

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

func (*Configuration) GetOwner

func (*Configuration) GetValidBlockchainAddress

func (m *Configuration) GetValidBlockchainAddress() string

func (*Configuration) GetValidBlockchainID

func (m *Configuration) GetValidBlockchainID() string

func (*Configuration) GetValidDomain

func (m *Configuration) GetValidDomain() string

func (*Configuration) GetValidName

func (m *Configuration) GetValidName() string

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 DeleteAccountCertificateMsg

type DeleteAccountCertificateMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Domain that account belongs to.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// Account name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Certificate hash is a sha256 checksum of the certificate content.
	// Certificates are bytes without any identifier. They are also not parsed by
	// the application. We optimize transferred data by sending only a checksum
	// of a certificate in order to identify it.
	CertificateHash []byte `protobuf:"bytes,4,opt,name=certificate_hash,json=certificateHash,proto3" json:"certificate_hash,omitempty"`
}

func (*DeleteAccountCertificateMsg) Descriptor

func (*DeleteAccountCertificateMsg) Descriptor() ([]byte, []int)

func (*DeleteAccountCertificateMsg) GetCertificateHash

func (m *DeleteAccountCertificateMsg) GetCertificateHash() []byte

func (*DeleteAccountCertificateMsg) GetDomain

func (m *DeleteAccountCertificateMsg) GetDomain() string

func (*DeleteAccountCertificateMsg) GetMetadata

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

func (*DeleteAccountCertificateMsg) GetName

func (m *DeleteAccountCertificateMsg) GetName() string

func (*DeleteAccountCertificateMsg) Marshal

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

func (*DeleteAccountCertificateMsg) MarshalTo

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

func (DeleteAccountCertificateMsg) Path

func (*DeleteAccountCertificateMsg) ProtoMessage

func (*DeleteAccountCertificateMsg) ProtoMessage()

func (*DeleteAccountCertificateMsg) Reset

func (m *DeleteAccountCertificateMsg) Reset()

func (*DeleteAccountCertificateMsg) Size

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

func (*DeleteAccountCertificateMsg) String

func (m *DeleteAccountCertificateMsg) String() string

func (*DeleteAccountCertificateMsg) Unmarshal

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

func (*DeleteAccountCertificateMsg) Validate

func (msg *DeleteAccountCertificateMsg) Validate() error

func (*DeleteAccountCertificateMsg) XXX_DiscardUnknown

func (m *DeleteAccountCertificateMsg) XXX_DiscardUnknown()

func (*DeleteAccountCertificateMsg) XXX_Marshal

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

func (*DeleteAccountCertificateMsg) XXX_Merge

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

func (*DeleteAccountCertificateMsg) XXX_Size

func (m *DeleteAccountCertificateMsg) XXX_Size() int

func (*DeleteAccountCertificateMsg) XXX_Unmarshal

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

type DeleteAccountMsg

type DeleteAccountMsg 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"`
	Name     string          `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
}

DeleteAccountMsg issues deletion of a name that belongs to given domain. Message must be signed by the domain owner.

func (*DeleteAccountMsg) Descriptor

func (*DeleteAccountMsg) Descriptor() ([]byte, []int)

func (*DeleteAccountMsg) GetDomain

func (m *DeleteAccountMsg) GetDomain() string

func (*DeleteAccountMsg) GetMetadata

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

func (*DeleteAccountMsg) GetName

func (m *DeleteAccountMsg) GetName() string

func (*DeleteAccountMsg) Marshal

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

func (*DeleteAccountMsg) MarshalTo

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

func (DeleteAccountMsg) Path

func (DeleteAccountMsg) Path() string

func (*DeleteAccountMsg) ProtoMessage

func (*DeleteAccountMsg) ProtoMessage()

func (*DeleteAccountMsg) Reset

func (m *DeleteAccountMsg) Reset()

func (*DeleteAccountMsg) Size

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

func (*DeleteAccountMsg) String

func (m *DeleteAccountMsg) String() string

func (*DeleteAccountMsg) Unmarshal

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

func (*DeleteAccountMsg) Validate

func (msg *DeleteAccountMsg) Validate() error

func (*DeleteAccountMsg) XXX_DiscardUnknown

func (m *DeleteAccountMsg) XXX_DiscardUnknown()

func (*DeleteAccountMsg) XXX_Marshal

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

func (*DeleteAccountMsg) XXX_Merge

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

func (*DeleteAccountMsg) XXX_Size

func (m *DeleteAccountMsg) XXX_Size() int

func (*DeleteAccountMsg) XXX_Unmarshal

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

type DeleteDomainMsg

type DeleteDomainMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Name of the domain that is deleted.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
}

DeleteDomainMsg issues deletion of a domain and all accounts that belong to that domain.

func (*DeleteDomainMsg) Descriptor

func (*DeleteDomainMsg) Descriptor() ([]byte, []int)

func (*DeleteDomainMsg) GetDomain

func (m *DeleteDomainMsg) GetDomain() string

func (*DeleteDomainMsg) GetMetadata

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

func (*DeleteDomainMsg) Marshal

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

func (*DeleteDomainMsg) MarshalTo

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

func (DeleteDomainMsg) Path

func (DeleteDomainMsg) Path() string

func (*DeleteDomainMsg) ProtoMessage

func (*DeleteDomainMsg) ProtoMessage()

func (*DeleteDomainMsg) Reset

func (m *DeleteDomainMsg) Reset()

func (*DeleteDomainMsg) Size

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

func (*DeleteDomainMsg) String

func (m *DeleteDomainMsg) String() string

func (*DeleteDomainMsg) Unmarshal

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

func (*DeleteDomainMsg) Validate

func (msg *DeleteDomainMsg) Validate() error

func (*DeleteDomainMsg) XXX_DiscardUnknown

func (m *DeleteDomainMsg) XXX_DiscardUnknown()

func (*DeleteDomainMsg) XXX_Marshal

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

func (*DeleteDomainMsg) XXX_Merge

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

func (*DeleteDomainMsg) XXX_Size

func (m *DeleteDomainMsg) XXX_Size() int

func (*DeleteDomainMsg) XXX_Unmarshal

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

type Domain

type Domain 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"`
	// Admin is a weave.Address that controls this domain and all accounts that
	// belong to this domain.
	Admin github_com_iov_one_weave.Address `protobuf:"bytes,3,opt,name=admin,proto3,casttype=github.com/iov-one/weave.Address" json:"admin,omitempty"`
	// Valid until defines the expiration date for the domain. Expired domain
	// cannot be used or modified. None of the accounts that belong to an expired
	// domain can be used of modified as well.
	ValidUntil github_com_iov_one_weave.UnixTime `` /* 135-byte string literal not displayed */
	// Has Superuser is a feature switch flag.
	HasSuperuser bool `protobuf:"varint,5,opt,name=has_superuser,json=hasSuperuser,proto3" json:"has_superuser,omitempty"`
	// Msg fees declares an optional list of additional fees that paying is
	// required when processing a message within this domain.
	MsgFees []AccountMsgFee `protobuf:"bytes,6,rep,name=msg_fees,json=msgFees,proto3" json:"msg_fees"`
	// Account review defines the duration of the account renewal period for each
	// account that belongs to this domain.
	AccountRenew github_com_iov_one_weave.UnixDuration `` /* 145-byte string literal not displayed */
	// Broker is a weave address (bech32 or hex) that can be provided by a middleman that helped
	// facilitate the registration transaction. For example, an IOV token holder that registers
	// a domain in exchange for fiat from a client is a broker. Storing the broker helps identify
	// the contribution of such a party, which allows for automated commission distribution through
	// an IOV reward initiative, for example. Must be a weave address that starts with a format or hex
	// for example: bech32:tiov16hzpmhecd65u993lasmexrdlkvhcxtlnf7f4ws.
	Broker github_com_iov_one_weave.Address `protobuf:"bytes,8,opt,name=broker,proto3,casttype=github.com/iov-one/weave.Address" json:"broker,omitempty"`
}

Domain represents an account domain.

Domain is a container for accounts. Account representation is `<name>*<domain>`.

Each domain admin controls all accounts that belong to that domain. Each domain controls expiration of all accounts that belong to that domain.

func (*Domain) Descriptor

func (*Domain) Descriptor() ([]byte, []int)

func (*Domain) GetAccountRenew

func (m *Domain) GetAccountRenew() github_com_iov_one_weave.UnixDuration

func (*Domain) GetAdmin

func (m *Domain) GetAdmin() github_com_iov_one_weave.Address

func (*Domain) GetBroker added in v1.0.1

func (m *Domain) GetBroker() github_com_iov_one_weave.Address

func (*Domain) GetDomain

func (m *Domain) GetDomain() string

func (*Domain) GetHasSuperuser

func (m *Domain) GetHasSuperuser() bool

func (*Domain) GetMetadata

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

func (*Domain) GetMsgFees

func (m *Domain) GetMsgFees() []AccountMsgFee

func (*Domain) GetValidUntil

func (m *Domain) GetValidUntil() github_com_iov_one_weave.UnixTime

func (*Domain) Marshal

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

func (*Domain) MarshalTo

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

func (*Domain) ProtoMessage

func (*Domain) ProtoMessage()

func (*Domain) Reset

func (m *Domain) Reset()

func (*Domain) Size

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

func (*Domain) String

func (m *Domain) String() string

func (*Domain) Unmarshal

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

func (*Domain) Validate

func (d *Domain) Validate() error

func (*Domain) XXX_DiscardUnknown

func (m *Domain) XXX_DiscardUnknown()

func (*Domain) XXX_Marshal

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

func (*Domain) XXX_Merge

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

func (*Domain) XXX_Size

func (m *Domain) XXX_Size() int

func (*Domain) XXX_Unmarshal

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

type FlushDomainMsg

type FlushDomainMsg 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"`
}

FlushDomainMsg issues deletion of all names (except the one with an empty name) that belongs to given domain. Message must be signed by the domain admin.

func (*FlushDomainMsg) Descriptor

func (*FlushDomainMsg) Descriptor() ([]byte, []int)

func (*FlushDomainMsg) GetDomain

func (m *FlushDomainMsg) GetDomain() string

func (*FlushDomainMsg) GetMetadata

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

func (*FlushDomainMsg) Marshal

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

func (*FlushDomainMsg) MarshalTo

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

func (FlushDomainMsg) Path

func (FlushDomainMsg) Path() string

func (*FlushDomainMsg) ProtoMessage

func (*FlushDomainMsg) ProtoMessage()

func (*FlushDomainMsg) Reset

func (m *FlushDomainMsg) Reset()

func (*FlushDomainMsg) Size

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

func (*FlushDomainMsg) String

func (m *FlushDomainMsg) String() string

func (*FlushDomainMsg) Unmarshal

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

func (*FlushDomainMsg) Validate

func (msg *FlushDomainMsg) Validate() error

func (*FlushDomainMsg) XXX_DiscardUnknown

func (m *FlushDomainMsg) XXX_DiscardUnknown()

func (*FlushDomainMsg) XXX_Marshal

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

func (*FlushDomainMsg) XXX_Merge

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

func (*FlushDomainMsg) XXX_Size

func (m *FlushDomainMsg) XXX_Size() int

func (*FlushDomainMsg) XXX_Unmarshal

func (m *FlushDomainMsg) 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 RegisterAccountMsg

type RegisterAccountMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Domain that a new account is the be registered under.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// Name that a new account is the be registered with.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Owner holds the address of the newly registered account. Can be empty to
	// leave the administration to the domain owner only.
	Owner   github_com_iov_one_weave.Address `protobuf:"bytes,4,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"`
	Targets []BlockchainAddress              `protobuf:"bytes,5,rep,name=targets,proto3" json:"targets"`
	// Broker is a weave address (bech32 or hex) that can be provided by a middleman that helped
	// facilitate the registration transaction. For example, an IOV token holder that registers
	// a domain in exchange for fiat from a client is a broker. Storing the broker helps identify
	// the contribution of such a party, which allows for automated commission distribution through
	// an IOV reward initiative, for example. Must be a weave address that starts with a format or hex
	// for example: bech32:tiov16hzpmhecd65u993lasmexrdlkvhcxtlnf7f4ws.
	Broker github_com_iov_one_weave.Address `protobuf:"bytes,6,opt,name=broker,proto3,casttype=github.com/iov-one/weave.Address" json:"broker,omitempty"`
}

RegisterAccountMsg issues registration of an account. Requested domain must exist and belong to the same user that signs this message. If domain does not have a public registration enabled, transaction must be signed by the domain admin.

func (*RegisterAccountMsg) Descriptor

func (*RegisterAccountMsg) Descriptor() ([]byte, []int)

func (*RegisterAccountMsg) GetBroker added in v1.0.1

func (*RegisterAccountMsg) GetDomain

func (m *RegisterAccountMsg) GetDomain() string

func (*RegisterAccountMsg) GetMetadata

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

func (*RegisterAccountMsg) GetName

func (m *RegisterAccountMsg) GetName() string

func (*RegisterAccountMsg) GetOwner

func (*RegisterAccountMsg) GetTargets

func (m *RegisterAccountMsg) GetTargets() []BlockchainAddress

func (*RegisterAccountMsg) Marshal

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

func (*RegisterAccountMsg) MarshalTo

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

func (RegisterAccountMsg) Path

func (RegisterAccountMsg) Path() string

func (*RegisterAccountMsg) ProtoMessage

func (*RegisterAccountMsg) ProtoMessage()

func (*RegisterAccountMsg) Reset

func (m *RegisterAccountMsg) Reset()

func (*RegisterAccountMsg) Size

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

func (*RegisterAccountMsg) String

func (m *RegisterAccountMsg) String() string

func (*RegisterAccountMsg) Unmarshal

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

func (*RegisterAccountMsg) Validate

func (msg *RegisterAccountMsg) Validate() error

func (*RegisterAccountMsg) XXX_DiscardUnknown

func (m *RegisterAccountMsg) XXX_DiscardUnknown()

func (*RegisterAccountMsg) XXX_Marshal

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

func (*RegisterAccountMsg) XXX_Merge

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

func (*RegisterAccountMsg) XXX_Size

func (m *RegisterAccountMsg) XXX_Size() int

func (*RegisterAccountMsg) XXX_Unmarshal

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

type RegisterDomainMsg

type RegisterDomainMsg 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"`
	// Admin holds the address of the newly registered domain.
	Admin github_com_iov_one_weave.Address `protobuf:"bytes,3,opt,name=admin,proto3,casttype=github.com/iov-one/weave.Address" json:"admin,omitempty"`
	// Has Superuser is a feature switch flag.
	HasSuperuser bool `protobuf:"varint,4,opt,name=has_superuser,json=hasSuperuser,proto3" json:"has_superuser,omitempty"`
	// Broker is a weave address (bech32 or hex) that can be provided by a middleman that helped
	// facilitate the registration transaction. For example, an IOV token holder that registers
	// a domain in exchange for fiat from a client is a broker. Storing the broker helps identify
	// the contribution of such a party, which allows for automated commission distribution through
	// an IOV reward initiative, for example. Must be a weave address that starts with a format or hex
	// for example: bech32:tiov16hzpmhecd65u993lasmexrdlkvhcxtlnf7f4ws.
	Broker       github_com_iov_one_weave.Address      `protobuf:"bytes,5,opt,name=broker,proto3,casttype=github.com/iov-one/weave.Address" json:"broker,omitempty"`
	MsgFees      []AccountMsgFee                       `protobuf:"bytes,6,rep,name=msg_fees,json=msgFees,proto3" json:"msg_fees"`
	AccountRenew github_com_iov_one_weave.UnixDuration `` /* 145-byte string literal not displayed */
}

RegisterDomainMsg is issuing registration of a new domain. Requested domain name must be available (not yet registed) in order for the request to succeed. Registering a domain creates an account with no name that belongs to this domain.

func (*RegisterDomainMsg) Descriptor

func (*RegisterDomainMsg) Descriptor() ([]byte, []int)

func (*RegisterDomainMsg) GetAccountRenew

func (*RegisterDomainMsg) GetAdmin

func (*RegisterDomainMsg) GetBroker added in v1.0.1

func (*RegisterDomainMsg) GetDomain

func (m *RegisterDomainMsg) GetDomain() string

func (*RegisterDomainMsg) GetHasSuperuser

func (m *RegisterDomainMsg) GetHasSuperuser() bool

func (*RegisterDomainMsg) GetMetadata

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

func (*RegisterDomainMsg) GetMsgFees

func (m *RegisterDomainMsg) GetMsgFees() []AccountMsgFee

func (*RegisterDomainMsg) Marshal

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

func (*RegisterDomainMsg) MarshalTo

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

func (RegisterDomainMsg) Path

func (RegisterDomainMsg) Path() string

func (*RegisterDomainMsg) ProtoMessage

func (*RegisterDomainMsg) ProtoMessage()

func (*RegisterDomainMsg) Reset

func (m *RegisterDomainMsg) Reset()

func (*RegisterDomainMsg) Size

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

func (*RegisterDomainMsg) String

func (m *RegisterDomainMsg) String() string

func (*RegisterDomainMsg) Unmarshal

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

func (*RegisterDomainMsg) Validate

func (msg *RegisterDomainMsg) Validate() error

func (*RegisterDomainMsg) XXX_DiscardUnknown

func (m *RegisterDomainMsg) XXX_DiscardUnknown()

func (*RegisterDomainMsg) XXX_Marshal

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

func (*RegisterDomainMsg) XXX_Merge

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

func (*RegisterDomainMsg) XXX_Size

func (m *RegisterDomainMsg) XXX_Size() int

func (*RegisterDomainMsg) XXX_Unmarshal

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

type RenewAccountMsg

type RenewAccountMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Name of the domain that is transferred.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	Name   string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
}

RenewAccountMsg is issuing an account expiration time extension. Extension period is defined by the domain that this account belongs to.

func (*RenewAccountMsg) Descriptor

func (*RenewAccountMsg) Descriptor() ([]byte, []int)

func (*RenewAccountMsg) GetDomain

func (m *RenewAccountMsg) GetDomain() string

func (*RenewAccountMsg) GetMetadata

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

func (*RenewAccountMsg) GetName

func (m *RenewAccountMsg) GetName() string

func (*RenewAccountMsg) Marshal

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

func (*RenewAccountMsg) MarshalTo

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

func (RenewAccountMsg) Path

func (RenewAccountMsg) Path() string

func (*RenewAccountMsg) ProtoMessage

func (*RenewAccountMsg) ProtoMessage()

func (*RenewAccountMsg) Reset

func (m *RenewAccountMsg) Reset()

func (*RenewAccountMsg) Size

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

func (*RenewAccountMsg) String

func (m *RenewAccountMsg) String() string

func (*RenewAccountMsg) Unmarshal

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

func (*RenewAccountMsg) Validate

func (msg *RenewAccountMsg) Validate() error

func (*RenewAccountMsg) XXX_DiscardUnknown

func (m *RenewAccountMsg) XXX_DiscardUnknown()

func (*RenewAccountMsg) XXX_Marshal

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

func (*RenewAccountMsg) XXX_Merge

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

func (*RenewAccountMsg) XXX_Size

func (m *RenewAccountMsg) XXX_Size() int

func (*RenewAccountMsg) XXX_Unmarshal

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

type RenewDomainMsg

type RenewDomainMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Name of the domain that is transferred.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
}

RenewDomainMsg is issuing a domain expiration time extension. Extension period is defined by the configuration entity.

func (*RenewDomainMsg) Descriptor

func (*RenewDomainMsg) Descriptor() ([]byte, []int)

func (*RenewDomainMsg) GetDomain

func (m *RenewDomainMsg) GetDomain() string

func (*RenewDomainMsg) GetMetadata

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

func (*RenewDomainMsg) Marshal

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

func (*RenewDomainMsg) MarshalTo

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

func (RenewDomainMsg) Path

func (RenewDomainMsg) Path() string

func (*RenewDomainMsg) ProtoMessage

func (*RenewDomainMsg) ProtoMessage()

func (*RenewDomainMsg) Reset

func (m *RenewDomainMsg) Reset()

func (*RenewDomainMsg) Size

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

func (*RenewDomainMsg) String

func (m *RenewDomainMsg) String() string

func (*RenewDomainMsg) Unmarshal

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

func (*RenewDomainMsg) Validate

func (msg *RenewDomainMsg) Validate() error

func (*RenewDomainMsg) XXX_DiscardUnknown

func (m *RenewDomainMsg) XXX_DiscardUnknown()

func (*RenewDomainMsg) XXX_Marshal

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

func (*RenewDomainMsg) XXX_Merge

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

func (*RenewDomainMsg) XXX_Size

func (m *RenewDomainMsg) XXX_Size() int

func (*RenewDomainMsg) XXX_Unmarshal

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

type ReplaceAccountMsgFeesMsg

type ReplaceAccountMsgFeesMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Name of the domain that is configured.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// A set of message fees that will replacce existing configuration.
	NewMsgFees []AccountMsgFee `protobuf:"bytes,6,rep,name=new_msg_fees,json=newMsgFees,proto3" json:"new_msg_fees"`
}

ReplaceMsgFeesMsg is configuring a set of additional prices that must be paid in order to process messages for accounts that belong to this domain.

func (*ReplaceAccountMsgFeesMsg) Descriptor

func (*ReplaceAccountMsgFeesMsg) Descriptor() ([]byte, []int)

func (*ReplaceAccountMsgFeesMsg) GetDomain

func (m *ReplaceAccountMsgFeesMsg) GetDomain() string

func (*ReplaceAccountMsgFeesMsg) GetMetadata

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

func (*ReplaceAccountMsgFeesMsg) GetNewMsgFees

func (m *ReplaceAccountMsgFeesMsg) GetNewMsgFees() []AccountMsgFee

func (*ReplaceAccountMsgFeesMsg) Marshal

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

func (*ReplaceAccountMsgFeesMsg) MarshalTo

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

func (ReplaceAccountMsgFeesMsg) Path

func (*ReplaceAccountMsgFeesMsg) ProtoMessage

func (*ReplaceAccountMsgFeesMsg) ProtoMessage()

func (*ReplaceAccountMsgFeesMsg) Reset

func (m *ReplaceAccountMsgFeesMsg) Reset()

func (*ReplaceAccountMsgFeesMsg) Size

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

func (*ReplaceAccountMsgFeesMsg) String

func (m *ReplaceAccountMsgFeesMsg) String() string

func (*ReplaceAccountMsgFeesMsg) Unmarshal

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

func (*ReplaceAccountMsgFeesMsg) Validate

func (msg *ReplaceAccountMsgFeesMsg) Validate() error

func (*ReplaceAccountMsgFeesMsg) XXX_DiscardUnknown

func (m *ReplaceAccountMsgFeesMsg) XXX_DiscardUnknown()

func (*ReplaceAccountMsgFeesMsg) XXX_Marshal

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

func (*ReplaceAccountMsgFeesMsg) XXX_Merge

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

func (*ReplaceAccountMsgFeesMsg) XXX_Size

func (m *ReplaceAccountMsgFeesMsg) XXX_Size() int

func (*ReplaceAccountMsgFeesMsg) XXX_Unmarshal

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

type ReplaceAccountTargetsMsg

type ReplaceAccountTargetsMsg 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"`
	Name       string              `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	NewTargets []BlockchainAddress `protobuf:"bytes,5,rep,name=new_targets,json=newTargets,proto3" json:"new_targets"`
}

ReplaceAccountTargetsMsg is issuing rewrite of all targets that given account points to.

func (*ReplaceAccountTargetsMsg) Descriptor

func (*ReplaceAccountTargetsMsg) Descriptor() ([]byte, []int)

func (*ReplaceAccountTargetsMsg) GetDomain

func (m *ReplaceAccountTargetsMsg) GetDomain() string

func (*ReplaceAccountTargetsMsg) GetMetadata

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

func (*ReplaceAccountTargetsMsg) GetName

func (m *ReplaceAccountTargetsMsg) GetName() string

func (*ReplaceAccountTargetsMsg) GetNewTargets

func (m *ReplaceAccountTargetsMsg) GetNewTargets() []BlockchainAddress

func (*ReplaceAccountTargetsMsg) Marshal

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

func (*ReplaceAccountTargetsMsg) MarshalTo

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

func (ReplaceAccountTargetsMsg) Path

func (*ReplaceAccountTargetsMsg) ProtoMessage

func (*ReplaceAccountTargetsMsg) ProtoMessage()

func (*ReplaceAccountTargetsMsg) Reset

func (m *ReplaceAccountTargetsMsg) Reset()

func (*ReplaceAccountTargetsMsg) Size

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

func (*ReplaceAccountTargetsMsg) String

func (m *ReplaceAccountTargetsMsg) String() string

func (*ReplaceAccountTargetsMsg) Unmarshal

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

func (*ReplaceAccountTargetsMsg) Validate

func (msg *ReplaceAccountTargetsMsg) Validate() error

func (*ReplaceAccountTargetsMsg) XXX_DiscardUnknown

func (m *ReplaceAccountTargetsMsg) XXX_DiscardUnknown()

func (*ReplaceAccountTargetsMsg) XXX_Marshal

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

func (*ReplaceAccountTargetsMsg) XXX_Merge

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

func (*ReplaceAccountTargetsMsg) XXX_Size

func (m *ReplaceAccountTargetsMsg) XXX_Size() int

func (*ReplaceAccountTargetsMsg) XXX_Unmarshal

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

type TransferAccountMsg

type TransferAccountMsg 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"`
	Name     string          `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// New owner holds the address that the ownership of the domain is
	// transferred to.
	NewOwner github_com_iov_one_weave.Address `` /* 127-byte string literal not displayed */
}

TransferAccountMsg is issuing an ownership transfer over specified account. Transfering an account ownership does not affect related domain owner permissions to administrate that account. Domain that this account belongs to determines if the account owner can transfer ownership. Domain admin can always transfer ownership.

func (*TransferAccountMsg) Descriptor

func (*TransferAccountMsg) Descriptor() ([]byte, []int)

func (*TransferAccountMsg) GetDomain

func (m *TransferAccountMsg) GetDomain() string

func (*TransferAccountMsg) GetMetadata

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

func (*TransferAccountMsg) GetName

func (m *TransferAccountMsg) GetName() string

func (*TransferAccountMsg) GetNewOwner

func (*TransferAccountMsg) Marshal

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

func (*TransferAccountMsg) MarshalTo

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

func (TransferAccountMsg) Path

func (TransferAccountMsg) Path() string

func (*TransferAccountMsg) ProtoMessage

func (*TransferAccountMsg) ProtoMessage()

func (*TransferAccountMsg) Reset

func (m *TransferAccountMsg) Reset()

func (*TransferAccountMsg) Size

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

func (*TransferAccountMsg) String

func (m *TransferAccountMsg) String() string

func (*TransferAccountMsg) Unmarshal

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

func (*TransferAccountMsg) Validate

func (msg *TransferAccountMsg) Validate() error

func (*TransferAccountMsg) XXX_DiscardUnknown

func (m *TransferAccountMsg) XXX_DiscardUnknown()

func (*TransferAccountMsg) XXX_Marshal

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

func (*TransferAccountMsg) XXX_Merge

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

func (*TransferAccountMsg) XXX_Size

func (m *TransferAccountMsg) XXX_Size() int

func (*TransferAccountMsg) XXX_Unmarshal

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

type TransferDomainMsg

type TransferDomainMsg struct {
	Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Name of the domain that is transferred.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// New admin holds the address that the ownership of the domain is
	// transferred to.
	NewAdmin github_com_iov_one_weave.Address `` /* 127-byte string literal not displayed */
}

TransferDomainMsg is issuing a change of the admin for the specified domain.

func (*TransferDomainMsg) Descriptor

func (*TransferDomainMsg) Descriptor() ([]byte, []int)

func (*TransferDomainMsg) GetDomain

func (m *TransferDomainMsg) GetDomain() string

func (*TransferDomainMsg) GetMetadata

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

func (*TransferDomainMsg) GetNewAdmin

func (*TransferDomainMsg) Marshal

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

func (*TransferDomainMsg) MarshalTo

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

func (TransferDomainMsg) Path

func (TransferDomainMsg) Path() string

func (*TransferDomainMsg) ProtoMessage

func (*TransferDomainMsg) ProtoMessage()

func (*TransferDomainMsg) Reset

func (m *TransferDomainMsg) Reset()

func (*TransferDomainMsg) Size

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

func (*TransferDomainMsg) String

func (m *TransferDomainMsg) String() string

func (*TransferDomainMsg) Unmarshal

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

func (*TransferDomainMsg) Validate

func (msg *TransferDomainMsg) Validate() error

func (*TransferDomainMsg) XXX_DiscardUnknown

func (m *TransferDomainMsg) XXX_DiscardUnknown()

func (*TransferDomainMsg) XXX_Marshal

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

func (*TransferDomainMsg) XXX_Merge

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

func (*TransferDomainMsg) XXX_Size

func (m *TransferDomainMsg) XXX_Size() int

func (*TransferDomainMsg) XXX_Unmarshal

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

type UpdateConfigurationMsg

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"`
}

UpdateConfigurationMsg is used by the gconf extension to update the configuration.

func (*UpdateConfigurationMsg) Descriptor

func (*UpdateConfigurationMsg) Descriptor() ([]byte, []int)

func (*UpdateConfigurationMsg) GetMetadata

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

func (*UpdateConfigurationMsg) GetPatch

func (m *UpdateConfigurationMsg) GetPatch() *Configuration

func (*UpdateConfigurationMsg) Marshal

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

func (*UpdateConfigurationMsg) MarshalTo

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

func (UpdateConfigurationMsg) Path

func (*UpdateConfigurationMsg) ProtoMessage

func (*UpdateConfigurationMsg) ProtoMessage()

func (*UpdateConfigurationMsg) Reset

func (m *UpdateConfigurationMsg) Reset()

func (*UpdateConfigurationMsg) Size

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

func (*UpdateConfigurationMsg) String

func (m *UpdateConfigurationMsg) String() string

func (*UpdateConfigurationMsg) Unmarshal

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

func (*UpdateConfigurationMsg) Validate

func (msg *UpdateConfigurationMsg) Validate() error

func (*UpdateConfigurationMsg) XXX_DiscardUnknown

func (m *UpdateConfigurationMsg) XXX_DiscardUnknown()

func (*UpdateConfigurationMsg) XXX_Marshal

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

func (*UpdateConfigurationMsg) XXX_Merge

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

func (*UpdateConfigurationMsg) XXX_Size

func (m *UpdateConfigurationMsg) XXX_Size() int

func (*UpdateConfigurationMsg) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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