types

package
v0.0.0-...-4aeec5d Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bid

type Bid struct {
	Id    BidId    `json:"bid_id"`
	Price BidPrice `json:"price"`
}

type BidId

type BidId struct {
	Provider string `json:"provider"`
}

type BidPrice

type BidPrice struct {
	Amount float32 `json:"amount,string"`
}

type BidWrapper

type BidWrapper struct {
	Bid Bid `json:"bid"`
}

type Bids

type Bids []Bid

func (Bids) FindAllByProviders

func (b Bids) FindAllByProviders(providers []string) Bids

FindAllByProviders finds all the Bid structures that have any of the given providers. It returns a slice of all the Bid structures where the providers were found.

func (Bids) FindByProvider

func (b Bids) FindByProvider(provider string) Bid

func (Bids) GetProviderAddresses

func (b Bids) GetProviderAddresses() []string

type BidsSliceWrapper

type BidsSliceWrapper struct {
	BidWrappers []BidWrapper `json:"bids"`
}

type Deployment

type Deployment struct {
	DeploymentInfo DeploymentInfo `json:"deployment"`
	EscrowAccount  EscrowAccount  `json:"escrow_account"`
}

type DeploymentId

type DeploymentId struct {
	Dseq  string `json:"dseq"`
	Owner string `json:"owner"`
}

type DeploymentInfo

type DeploymentInfo struct {
	State        string       `json:"state"`
	DeploymentId DeploymentId `json:"deployment_id"`
}

type DeploymentResponse

type DeploymentResponse struct {
	Deployments []Deployment `json:"deployments"`
}

type EscrowAccount

type EscrowAccount struct {
	Owner   string               `json:"owner"`
	State   string               `json:"state"`
	Balance EscrowAccountBalance `json:"balance"`
}

type EscrowAccountBalance

type EscrowAccountBalance struct {
	Denom  string `json:"denom"`
	Amount string `json:"amount"`
}

type Provider

type Provider struct {
	Address    string            `json:"address"`
	Active     bool              `json:"active"`
	Uptime     float32           `json:"uptime"`
	Attributes map[string]string `json:"attributes"`
}

type Transaction

type Transaction struct {
	Height string           `json:"height"`
	Logs   []TransactionLog `json:"logs"`
	RawLog string           `json:"raw_log"`
}

type TransactionEvent

type TransactionEvent struct {
	Type       string                     `json:"type"`
	Attributes TransactionEventAttributes `json:"attributes"`
}

type TransactionEventAttribute

type TransactionEventAttribute struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type TransactionEventAttributes

type TransactionEventAttributes []TransactionEventAttribute

func (TransactionEventAttributes) Get

type TransactionLog

type TransactionLog struct {
	Events []TransactionEvent `json:"events"`
}

Jump to

Keyboard shortcuts

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