v150

package
v0.1.0-furya.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GenesisTime         = time.Date(2021, 01, 14, 15, 0, 0, 0, time.UTC)
	InitialHeight int64 = 1688950
	ChainID             = "mainnet-3"
)

Functions

func Migrate

func Migrate(genDoc *tmtypes.GenesisDoc, ctx client.Context) (*tmtypes.GenesisDoc, error)

Types

type CommunityState

type CommunityState struct {
	Params struct {
		Moderators []string `json:"moderators" yaml:"moderators"`
		FixedGas   struct {
			CreatePost sdk.Gas `json:"create_post" yaml:"create_post"`
			DeletePost sdk.Gas `json:"delete_post" yaml:"delete_post"`
			SetLike    sdk.Gas `json:"set_like" yaml:"set_like"`
			Follow     sdk.Gas `json:"follow" yaml:"follow"`
			Unfollow   sdk.Gas `json:"unfollow" yaml:"unfollow"`
		} `json:"fixed_gas" yaml:"fixed_gas"`
	} `json:"params"`
	Posts []struct {
		UUID         uuid.UUID      `json:"uuid"`
		Owner        sdk.AccAddress `json:"owner"`
		Title        string         `json:"title"`
		PreviewImage string         `json:"previewImage"`
		Category     uint8          `json:"category"`
		Text         string         `json:"text"`
	} `json:"posts"`
	Likes []struct {
		Owner     sdk.AccAddress `json:"owner"`
		PostOwner sdk.AccAddress `json:"postOwner"`
		PostUUID  uuid.UUID      `json:"postUuid"`
		Weight    int8           `json:"weight"`
	} `json:"likes"`
	Followers map[string][]string `json:"followers"`
}

type OperationsState

type OperationsState struct {
	Params struct {
		Supervisors []string `json:"supervisors" yaml:"supervisors"`
		FixedGas    struct {
			ResetAccount      sdk.Gas `json:"reset_account" yaml:"reset_account"`
			DistributeRewards sdk.Gas `json:"distribute_rewards" yaml:"distribute_rewards"`
		} `json:"fixed_gas" yaml:"fixed_gas"`
		MinGasPrice sdk.DecCoin `json:"min_gas_price" yaml:"min_gas_price"`
	} `json:"params"`
}

type TokenState

type TokenState struct {
	Params struct {
		RewardsBlockInterval int64 `json:"rewards_block_interval" yaml:"rewards_block_interval"`
	} `json:"params"`
	Balances map[string]sdk.Int `json:"balances"`
	Deltas   map[string]sdk.Int `json:"deltas"`
	History  map[string][]struct {
		Height int64     `json:"height"`
		Coins  sdk.Coins `json:"coins"`
	} `json:"history"`
}

Jump to

Keyboard shortcuts

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