Documentation ¶
Overview ¶
Package types contains the models, errors, names used by the starname module
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *codec.Codec)
- func ValidateDomainType(typ DomainType) error
- type Account
- type Certificate
- type Domain
- type DomainType
- type MsgAddAccountCertificates
- func (m *MsgAddAccountCertificates) FeePayer() sdk.AccAddress
- func (m *MsgAddAccountCertificates) GetSignBytes() []byte
- func (m *MsgAddAccountCertificates) GetSigners() []sdk.AccAddress
- func (m *MsgAddAccountCertificates) Route() string
- func (m *MsgAddAccountCertificates) Type() string
- func (m *MsgAddAccountCertificates) ValidateBasic() error
- type MsgDeleteAccount
- type MsgDeleteAccountCertificate
- func (m *MsgDeleteAccountCertificate) FeePayer() sdk.AccAddress
- func (m *MsgDeleteAccountCertificate) GetSignBytes() []byte
- func (m *MsgDeleteAccountCertificate) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteAccountCertificate) Route() string
- func (m *MsgDeleteAccountCertificate) Type() string
- func (m *MsgDeleteAccountCertificate) ValidateBasic() error
- type MsgDeleteDomain
- type MsgRegisterAccount
- func (m *MsgRegisterAccount) FeePayer() sdk.AccAddress
- func (m *MsgRegisterAccount) GetSignBytes() []byte
- func (m *MsgRegisterAccount) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterAccount) Route() string
- func (m *MsgRegisterAccount) Type() string
- func (m *MsgRegisterAccount) ValidateBasic() error
- type MsgRegisterDomain
- type MsgRenewAccount
- type MsgRenewDomain
- type MsgReplaceAccountMetadata
- func (m *MsgReplaceAccountMetadata) FeePayer() sdk.AccAddress
- func (m *MsgReplaceAccountMetadata) GetSignBytes() []byte
- func (m *MsgReplaceAccountMetadata) GetSigners() []sdk.AccAddress
- func (m *MsgReplaceAccountMetadata) Route() string
- func (m *MsgReplaceAccountMetadata) Type() string
- func (m *MsgReplaceAccountMetadata) ValidateBasic() error
- type MsgReplaceAccountResources
- func (m *MsgReplaceAccountResources) FeePayer() sdk.AccAddress
- func (m *MsgReplaceAccountResources) GetSignBytes() []byte
- func (m *MsgReplaceAccountResources) GetSigners() []sdk.AccAddress
- func (m *MsgReplaceAccountResources) Route() string
- func (m *MsgReplaceAccountResources) Type() string
- func (m *MsgReplaceAccountResources) ValidateBasic() error
- type MsgTransferAccount
- func (m *MsgTransferAccount) FeePayer() sdk.AccAddress
- func (m *MsgTransferAccount) GetSignBytes() []byte
- func (m *MsgTransferAccount) GetSigners() []sdk.AccAddress
- func (m *MsgTransferAccount) Route() string
- func (m *MsgTransferAccount) Type() string
- func (m *MsgTransferAccount) ValidateBasic() error
- type MsgTransferDomain
- type MsgWithFeePayer
- type Resource
- type TransferFlag
Constants ¶
const ( // TransferFlush clears all domain account data, except empty account) TransferFlush = iota // TransferOwned transfers only accounts owned by the current owner TransferOwned // TransferResetNone leaves things as they are except for empty account TransferResetNone // TransferAll is not available is here only for tests backwards compatibility and will be removed. TODO deprecate TransferAll )
const ( // ModuleName is the name of the module ModuleName = "starname" // DomainStore key defines the store key used to store domains information DomainStoreKey = "starname" // RouterKey defines the path used to interact with the domain module RouterKey = ModuleName QuerierAlias = "starname" // QuerierRoute defines the query path used to interact with the domain module QuerierRoute = ModuleName // DefaultParamSpace defines the key for the default param space DefaultParamSpace = ModuleName )
Module names
const ( AttributeKeyDomainName = "domain_name" AttributeKeyAccountName = "account_name" AttributeKeyDomainType = "domain_type" AttributeKeyFeePaid = "paid_fees" AttributeKeyFeePayer = "fee_payer" AttributeKeyOwner = "owner" AttributeKeyNewCertificate = "new_certificate" AttributeKeyDeletedCertificate = "deleted_certificate" AttributeKeyNewResources = "new_resources" AttributeKeyNewMetadata = "new_metadata" AttributeKeyTransferAccountNewOwner = "new_account_owner" AttributeKeyTransferAccountReset = "transfer_account_reset" AttributeKeyTransferDomainNewOwner = "new_domain_owner" AttributeKeyTransferDomainFlag = "transfer_domain_flag" )
Events attribute keys
const AccountAdminIndex = 0x1
const AccountDomainIndex = 0x2
const AccountResourcesIndex = 0x3
const DomainAdminIndex = 0x1
const EmptyAccountName = ""
EmptyAccountName defines the empty account identifier in an IOV domain
const MaxValidUntil int64 = 4746278435
MaxValidUntil defines the unix timestamp defined in seconds of the default ValidUntil of empty accounts in open domains. refers to date -> Monday 27 May 2120 18:40:35
const StarnameSeparator = "*"
StarnameSeparator defines the starname separator identifier
Variables ¶
var ErrAccountDoesNotExist = sdkerrors.Register(ModuleName, 6, "account does not exist")
ErrAccountDoesNotExist is returned when an action is performed on a domain that does not contain the specified account
var ErrAccountExists = sdkerrors.Register(ModuleName, 13, "account already exists")
ErrAccountExists is returned when a create action is done on an account that already exists
var ErrAccountExpired = sdkerrors.Register(ModuleName, 7, "account has expired")
ErrAccountExpired is returned when actions are performed on expired accounts
var ErrAccountGracePeriodNotFinished = sdkerrors.Register(ModuleName, 21, "account grace period has not finished")
ErrAccountGracePeriodNotFinished is returned when actions are performed on not expired domains
var ErrCertificateDoesNotExist = sdkerrors.Register(ModuleName, 16, "certificate does not exist")
ErrCertificateDoesNotExist is returned when an action is performed on a domain that already exists
var ErrCertificateExists = sdkerrors.Register(ModuleName, 15, "certificate already exists")
ErrCertificateExists is returned when a creation action is done on a certificate that already exists
var ErrCertificateLimitReached = sdkerrors.Register(ModuleName, 24, "certificate limit reached")
ErrCertificateLimitReached is returned when certificate limit is exceeded
var ErrCertificateSizeExceeded = sdkerrors.Register(ModuleName, 23, "certificate size exceeded")
ErrCertificateSizeExceeded is returned when certificate size exceeded
var ErrClosedDomainAccExpire = sdkerrors.Register(ModuleName, 26, "accounts in closed domains do not expire")
ErrClosedDomainAccExpire is returned when expiration related operation trying to be run on closed domain
var ErrDomainAlreadyExists = sdkerrors.Register(ModuleName, 2, "domain already exists")
ErrDomainAlreadyExists is returned when a create action is done on a domain that already exists
var ErrDomainDoesNotExist = sdkerrors.Register(ModuleName, 5, "domain does not exist")
ErrDomainDoesNotExist is returned when an action is performed on a domain that does not exist
var ErrDomainExpired = sdkerrors.Register(ModuleName, 11, "domain has expired")
ErrDomainExpired is returned when actions are performed on expired domains
var ErrDomainGracePeriodNotFinished = sdkerrors.Register(ModuleName, 17, "domain grace period has not finished")
ErrDomainGracePeriodNotFinished is returned when actions are performed on expired domains
var ErrDomainNotExpired = sdkerrors.Register(ModuleName, 12, "domain has not expired")
ErrDomainNotExpired is returned when actions are performed on not expired domains
var ErrInvalidAccountName = sdkerrors.Register(ModuleName, 9, "invalid account name")
ErrInvalidAccountName is returned when the account name does not match the required standards
var ErrInvalidDomainName = sdkerrors.Register(ModuleName, 1, "domain name provided is invalid")
ErrInvalidDomainName is returned when the domain name does not match the required standards
var ErrInvalidDomainType = sdkerrors.Register(ModuleName, 18, "invalid domain type")
ErrInvalidDomainType is returned when domain type is invalid
var ErrInvalidOwner = sdkerrors.Register(ModuleName, 8, "invalid owner")
ErrInvalidOwner is returned when the owner address provided is not valid (empty, malformed, etc)
var ErrInvalidRegisterer = sdkerrors.Register(ModuleName, 19, "invalid registerer")
ErrInvalidRegisterer is returned when the registerer address provided is not valid (empty, malformed, etc)
var ErrInvalidRequest = sdkerrors.Register(ModuleName, 14, "malformed request")
ErrInvalidRequest is a general error that covers the uncommon cases of invalid request
var ErrInvalidResource = sdkerrors.Register(ModuleName, 10, "resource provided is not valid")
ErrInvalidResource is returned when provided resource is not valid
var ErrMaxRenewExceeded = sdkerrors.Register(ModuleName, 27, "max renew exceeded")
ErrMaxRenewExceeded is returned when max renew time exceeded
var ErrMetadataSizeExceeded = sdkerrors.Register(ModuleName, 25, "metadata size exceeded")
ErrMetadataSizeExceeded is returned when metadata size exceeded
var ErrOpEmptyAcc = sdkerrors.Register(ModuleName, 20, "account name provided cannot be empty")
ErrOpEmptyAcc is returned when an operation tried to be run on empty account
var ErrProvideStarnameOrDomainName = sdkerrors.Register(ModuleName, 28, "provide either starname or domain/name")
ErrProvideStarnameOrDomainName is returned when both domain/name and starname provided
var ErrRenewalDeadlineExceeded = sdkerrors.Register(ModuleName, 31, "renewal deadline was exceeded")
ErrRenewalDeadlineExceeded is returned when the renewal deadline was surpassed
var ErrResourceLimitExceeded = sdkerrors.Register(ModuleName, 22, "resource limit exceeded")
ErrResourceLimitExceeded is returned when resource limit is exceeded
var ErrStarnameMultipleSeparator = sdkerrors.Register(ModuleName, 30, "starname should contain single separator")
ErrStarnameMultipleSeparator returned when provided starname contains more than one separator
var ErrStarnameNotContainSep = sdkerrors.Register(ModuleName, 29, "starname does not contain separator")
ErrStarnameNotContainSep is returned when provided starname does not contain separator
ErrUnauthorized is returned when authentication process for an action fails
var ModuleCdc = codec.New()
ModuleCdc instantiates a new codec for the domain module
Functions ¶
func RegisterCodec ¶
RegisterCodec registers the sdk.Msg for the module
func ValidateDomainType ¶
func ValidateDomainType(typ DomainType) error
Types ¶
type Account ¶
type Account struct { // Domain references the domain this account belongs to Domain string `json:"domain"` // Name is the name of the account Name *string `json:"name"` // Owner is the address that owns the account Owner sdk.AccAddress `json:"owner"` // ValidUntil defines a unix timestamp of the expiration of the account ValidUntil int64 `json:"valid_until"` // Resources is the list of resources an account resolves to Resources []Resource `json:"resources"` // Certificates contains the list of certificates to identify the account owner Certificates []Certificate `json:"certificates"` // Broker can be empty // it identifies an entity that facilitated the transaction of the account Broker sdk.AccAddress `json:"broker"` // MetadataURI contains a link to extra information regarding the account MetadataURI string `json:"metadata_uri"` }
Account defines an account that belongs to a domain NOTE: It should not be confused with cosmos-sdk auth account github.com/cosmos/cosmos-sdk/x/auth.Account
func (*Account) MarshalCRUD ¶
func (a *Account) MarshalCRUD() interface{}
func (*Account) PrimaryKey ¶
func (a *Account) PrimaryKey() crud.PrimaryKey
func (*Account) SecondaryKeys ¶
func (a *Account) SecondaryKeys() []crud.SecondaryKey
type Domain ¶
type Domain struct { // Name is the name of the domain Name string `json:"name" crud:"primaryKey"` // Owner is the owner of the domain Admin sdk.AccAddress `json:"admin" crud:"01"` // ValidUntil is a unix timestamp defines the time when the domain will become invalid ValidUntil int64 `json:"valid_until"` // Type defines the type of the domain Type DomainType `json:"type"` // Broker TODO needs comment Broker sdk.AccAddress `json:"broker"` }
Domain defines a domain
func (*Domain) PrimaryKey ¶
func (d *Domain) PrimaryKey() crud.PrimaryKey
func (*Domain) SecondaryKeys ¶
func (d *Domain) SecondaryKeys() []crud.SecondaryKey
type DomainType ¶
type DomainType string
DomainType defines the type of the domain
const ( // OpenDomain is the domain type in which an account owner is the only entity that can perform actions on the account OpenDomain DomainType = "open" // ClosedDomain is the domain type in which the domain owner has control over accounts too ClosedDomain = "closed" )
type MsgAddAccountCertificates ¶
type MsgAddAccountCertificates struct { // Domain is the domain of the account Domain string `json:"domain"` // Name is the name of the account Name string `json:"name"` // Owner is the owner of the account Owner sdk.AccAddress `json:"owner"` // NewCertificate is the new certificate to add NewCertificate []byte `json:"new_certificate"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgAddAccountCertificates is the message used when a user wants to add new certificates to his account
func (*MsgAddAccountCertificates) FeePayer ¶
func (m *MsgAddAccountCertificates) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgAddAccountCertificates) GetSignBytes ¶
func (m *MsgAddAccountCertificates) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgAddAccountCertificates) GetSigners ¶
func (m *MsgAddAccountCertificates) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgAddAccountCertificates) Route ¶
func (m *MsgAddAccountCertificates) Route() string
Route implements sdk.Msg
func (*MsgAddAccountCertificates) Type ¶
func (m *MsgAddAccountCertificates) Type() string
Type implements sdk.Msg
func (*MsgAddAccountCertificates) ValidateBasic ¶
func (m *MsgAddAccountCertificates) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgDeleteAccount ¶
type MsgDeleteAccount struct { // Domain is the name of the domain of the account Domain string `json:"domain"` // Name is the name of the account Name string `json:"name"` // Owner is the owner of the account Owner sdk.AccAddress `json:"owner"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgDeleteAccount is the request model used to delete an account
func (*MsgDeleteAccount) FeePayer ¶
func (m *MsgDeleteAccount) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgDeleteAccount) GetSignBytes ¶
func (m *MsgDeleteAccount) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgDeleteAccount) GetSigners ¶
func (m *MsgDeleteAccount) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgDeleteAccount) ValidateBasic ¶
func (m *MsgDeleteAccount) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgDeleteAccountCertificate ¶
type MsgDeleteAccountCertificate struct { // Domain is the name of the domain of the account Domain string `json:"domain"` // Name is the name of the account Name string `json:"name"` // DeleteCertificate is the certificate to delete DeleteCertificate []byte `json:"delete_certificate"` // Owner is the owner of the account Owner sdk.AccAddress `json:"owner"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgDeleteAccountCertificate is the request model used to remove certificates from an account
func (*MsgDeleteAccountCertificate) FeePayer ¶
func (m *MsgDeleteAccountCertificate) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgDeleteAccountCertificate) GetSignBytes ¶
func (m *MsgDeleteAccountCertificate) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgDeleteAccountCertificate) GetSigners ¶
func (m *MsgDeleteAccountCertificate) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgDeleteAccountCertificate) Route ¶
func (m *MsgDeleteAccountCertificate) Route() string
Route implements sdk.Msg
func (*MsgDeleteAccountCertificate) Type ¶
func (m *MsgDeleteAccountCertificate) Type() string
Type implements sdk.Msg
func (*MsgDeleteAccountCertificate) ValidateBasic ¶
func (m *MsgDeleteAccountCertificate) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgDeleteDomain ¶
type MsgDeleteDomain struct { // Domain is the domain to delete Domain string `json:"domain"` // Owner is the owner of the domain Owner sdk.AccAddress `json:"owner"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgDeleteDomain is the request model to delete a domain
func (*MsgDeleteDomain) FeePayer ¶
func (m *MsgDeleteDomain) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgDeleteDomain) GetSignBytes ¶
func (m *MsgDeleteDomain) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgDeleteDomain) GetSigners ¶
func (m *MsgDeleteDomain) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgDeleteDomain) ValidateBasic ¶
func (m *MsgDeleteDomain) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgRegisterAccount ¶
type MsgRegisterAccount struct { // Domain is the domain of the account Domain string `json:"domain"` // Name is the name of the account Name string `json:"name"` // Owner is the owner of the account Owner sdk.AccAddress `json:"owner"` // Registerer is the user who registers this account Registerer sdk.AccAddress `json:"registerer"` // Resources are the blockchain addresses of the account Resources []Resource `json:"resources"` // Broker is the account that facilitated the transaction Broker sdk.AccAddress `json:"broker"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgRegisterAccount is the request model used to register new accounts
func (*MsgRegisterAccount) FeePayer ¶
func (m *MsgRegisterAccount) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgRegisterAccount) GetSignBytes ¶
func (m *MsgRegisterAccount) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgRegisterAccount) GetSigners ¶
func (m *MsgRegisterAccount) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgRegisterAccount) Route ¶
func (m *MsgRegisterAccount) Route() string
Route implements sdk.Msg
func (*MsgRegisterAccount) Type ¶
func (m *MsgRegisterAccount) Type() string
Type implements sdk.Msg
func (*MsgRegisterAccount) ValidateBasic ¶
func (m *MsgRegisterAccount) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgRegisterDomain ¶
type MsgRegisterDomain struct { // Name is the name of the domain we want to register Name string `json:"domain" arg:"--domain" helper:"name of the domain"` // Admin is the address of the newly registered domain Admin sdk.AccAddress `json:"admin"` // DomainType defines the type of the domain DomainType DomainType `json:"type"` // Broker TODO document Broker sdk.AccAddress `json:"broker" arg:"--broker" helper:"the broker"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgRegisterDomain is the request used to register new domains
func (*MsgRegisterDomain) FeePayer ¶
func (m *MsgRegisterDomain) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgRegisterDomain) GetSignBytes ¶
func (m *MsgRegisterDomain) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgRegisterDomain) GetSigners ¶
func (m *MsgRegisterDomain) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgRegisterDomain) Route ¶
func (m *MsgRegisterDomain) Route() string
Route implements sdk.Msg
func (*MsgRegisterDomain) ValidateBasic ¶
func (m *MsgRegisterDomain) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgRenewAccount ¶
type MsgRenewAccount struct { // Domain is the domain of the account Domain string `json:"domain"` // Name is the name of the account Name string `json:"name"` // Signer is the signer of the request Signer sdk.AccAddress `json:"signer"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgRenewAccount is the request model used to renew accounts
func (*MsgRenewAccount) FeePayer ¶
func (m *MsgRenewAccount) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgRenewAccount) GetSignBytes ¶
func (m *MsgRenewAccount) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgRenewAccount) GetSigners ¶
func (m *MsgRenewAccount) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgRenewAccount) ValidateBasic ¶
func (m *MsgRenewAccount) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgRenewDomain ¶
type MsgRenewDomain struct { // Domain is the domain name to renew Domain string `json:"domain"` // Signer is the request signer Signer sdk.AccAddress `json:"signer"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgRenewDomain is the request model used to renew a domain
func (*MsgRenewDomain) FeePayer ¶
func (m *MsgRenewDomain) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgRenewDomain) GetSignBytes ¶
func (m *MsgRenewDomain) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgRenewDomain) GetSigners ¶
func (m *MsgRenewDomain) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgRenewDomain) ValidateBasic ¶
func (m *MsgRenewDomain) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgReplaceAccountMetadata ¶
type MsgReplaceAccountMetadata struct { // Domain is the domain name of the account Domain string `json:"domain"` // Name is the name of the account Name string `json:"name"` // NewMetadataURI is the metadata URI of the account // we want to update or insert NewMetadataURI string `json:"new_metadata_uri"` // Owner is the owner of the account Owner sdk.AccAddress `json:"owner"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgReplaceAccountMetadata is the function used to set accounts metadata
func (*MsgReplaceAccountMetadata) FeePayer ¶
func (m *MsgReplaceAccountMetadata) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgReplaceAccountMetadata) GetSignBytes ¶
func (m *MsgReplaceAccountMetadata) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgReplaceAccountMetadata) GetSigners ¶
func (m *MsgReplaceAccountMetadata) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgReplaceAccountMetadata) Route ¶
func (m *MsgReplaceAccountMetadata) Route() string
Route implements sdk.Msg
func (*MsgReplaceAccountMetadata) Type ¶
func (m *MsgReplaceAccountMetadata) Type() string
Type implements sdk.Msg
func (*MsgReplaceAccountMetadata) ValidateBasic ¶
func (m *MsgReplaceAccountMetadata) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgReplaceAccountResources ¶
type MsgReplaceAccountResources struct { // Domain is the domain name of the account Domain string `json:"domain"` // Name is the name of the account Name string `json:"name"` // NewResources are the new resources NewResources []Resource `json:"new_resources"` // Owner is the owner of the account Owner sdk.AccAddress `json:"owner"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgReplaceAccountResources is the request model used to renew resources associated with an account
func (*MsgReplaceAccountResources) FeePayer ¶
func (m *MsgReplaceAccountResources) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgReplaceAccountResources) GetSignBytes ¶
func (m *MsgReplaceAccountResources) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgReplaceAccountResources) GetSigners ¶
func (m *MsgReplaceAccountResources) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgReplaceAccountResources) Route ¶
func (m *MsgReplaceAccountResources) Route() string
Route implements sdk.Msg
func (*MsgReplaceAccountResources) Type ¶
func (m *MsgReplaceAccountResources) Type() string
Type implements sdk.Msg
func (*MsgReplaceAccountResources) ValidateBasic ¶
func (m *MsgReplaceAccountResources) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgTransferAccount ¶
type MsgTransferAccount struct { // Domain is the domain name of the account Domain string `json:"domain"` // Account is the account name Name string `json:"name"` // Owner is the actual owner of the account Owner sdk.AccAddress `json:"owner"` // NewOwner is the new owner of the account NewOwner sdk.AccAddress `json:"new_owner"` // Reset indicates if the accounts content will be reset Reset bool `json:"reset"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgTransferAccount is the request model used to transfer accounts
func (*MsgTransferAccount) FeePayer ¶
func (m *MsgTransferAccount) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgTransferAccount) GetSignBytes ¶
func (m *MsgTransferAccount) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgTransferAccount) GetSigners ¶
func (m *MsgTransferAccount) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgTransferAccount) Route ¶
func (m *MsgTransferAccount) Route() string
Route implements sdk.Msg
func (*MsgTransferAccount) Type ¶
func (m *MsgTransferAccount) Type() string
Type implements sdk.Msg
func (*MsgTransferAccount) ValidateBasic ¶
func (m *MsgTransferAccount) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgTransferDomain ¶
type MsgTransferDomain struct { // Domain is the name of the domain Domain string `json:"domain"` // Owner is the address of the owner of the domain Owner sdk.AccAddress `json:"owner"` // NewAdmin is the address of the entity that will own the domain NewAdmin sdk.AccAddress `json:"new_admin"` // TransferFlag is the flag used to determine how to transfer the domain and the related accounts TransferFlag TransferFlag `json:"transfer_flag"` // FeePayerAddr is the address of the entity that has to pay product fees FeePayerAddr sdk.AccAddress `json:"fee_payer"` }
MsgTransferDomain is the request model used to transfer a domain
func (*MsgTransferDomain) FeePayer ¶
func (m *MsgTransferDomain) FeePayer() sdk.AccAddress
FeePayer implements FeePayer interface
func (*MsgTransferDomain) GetSignBytes ¶
func (m *MsgTransferDomain) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgTransferDomain) GetSigners ¶
func (m *MsgTransferDomain) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgTransferDomain) Route ¶
func (m *MsgTransferDomain) Route() string
Route implements sdk.Msg
func (*MsgTransferDomain) ValidateBasic ¶
func (m *MsgTransferDomain) ValidateBasic() error
ValidateBasic implements sdk.Msg
type MsgWithFeePayer ¶
type MsgWithFeePayer interface { sdk.Msg FeePayer() sdk.AccAddress }
MsgWithFeePayer abstracts the Msg type to support a fee payer which takes care of handling product fees