v05

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenesisState

type GenesisState struct {
	Subscriptions GenesisSubscriptions `json:"_"`
	Params        Params               `json:"params"`
}

type GenesisSubscription

type GenesisSubscription struct {
	Subscription Subscription `json:"_"`
	Quotas       Quotas       `json:"quotas"`
}

type GenesisSubscriptions

type GenesisSubscriptions []GenesisSubscription

type Params

type Params struct {
	InactiveDuration time.Duration `json:"inactive_duration"`
}

type Quota

type Quota struct {
	Address   sdk.AccAddress `json:"address"`
	Consumed  sdk.Int        `json:"consumed"`
	Allocated sdk.Int        `json:"allocated"`
}

type Quotas

type Quotas []Quota

type Subscription

type Subscription struct {
	ID       uint64                `json:"id"`
	Owner    sdk.AccAddress        `json:"owner"`
	Node     hubtypes.NodeAddress  `json:"node"`
	Price    sdk.Coin              `json:"price"`
	Deposit  sdk.Coin              `json:"deposit"`
	Plan     uint64                `json:"plan"`
	Expiry   time.Time             `json:"expiry"`
	Free     sdk.Int               `json:"free"`
	Status   legacyhubtypes.Status `json:"status"`
	StatusAt time.Time             `json:"status_at"`
}

type Subscriptions

type Subscriptions []Subscription

Jump to

Keyboard shortcuts

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