v0130

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "profiles"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DTagTransferRequest

type DTagTransferRequest struct {
	DTagToTrade string         `json:"dtag_to_trade"`
	Receiver    sdk.AccAddress `json:"current_owner"`
	Sender      sdk.AccAddress `json:"receiving_user"`
}

type DtagParams

type DtagParams struct {
	RegEx      string  `json:"reg_ex"`
	MinDtagLen sdk.Int `json:"min_length"`
	MaxDtagLen sdk.Int `json:"max_length"`
}

type GenesisState

type GenesisState struct {
	Profiles             []Profile             `json:"profiles"`
	Params               Params                `json:"params"`
	DTagTransferRequests []DTagTransferRequest `json:"dtag_transfer_requests"`
}

GenesisState contains the data of a v0.13.0 genesis state for the profiles module

type MonikerParams

type MonikerParams struct {
	MinMonikerLen sdk.Int `json:"min_length"`
	MaxMonikerLen sdk.Int `json:"max_length"`
}

type Params

type Params struct {
	MonikerParams MonikerParams `json:"moniker_params"`
	DtagParams    DtagParams    `json:"dtag_params"`
	MaxBioLen     sdk.Int       `json:"max_bio_length"`
}

type Pictures

type Pictures struct {
	Profile *string `json:"profile,omitempty"`
	Cover   *string `json:"cover,omitempty"`
}

type Profile

type Profile struct {
	DTag         string         `json:"dtag"`
	Moniker      *string        `json:"moniker,omitempty"`
	Bio          *string        `json:"bio,omitempty"`
	Pictures     *Pictures      `json:"pictures,omitempty"`
	Creator      sdk.AccAddress `json:"creator"`
	CreationDate time.Time      `json:"creation_date"`
}

Jump to

Keyboard shortcuts

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