Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyAddRepoContribs

type BodyAddRepoContribs struct {
	RepoName      string
	ProposalID    string
	PushKeys      []string
	FeeCap        float64
	FeeMode       int
	Nonce         uint64
	Value         float64
	Fee           float64
	Namespace     string
	NamespaceOnly string
	Policies      []*state.ContributorPolicy
	SigningKey    *ed25519.Key
}

BodyAddRepoContribs contains arguments for adding repo contributors

type BodyBuyTicket

type BodyBuyTicket struct {
	Nonce      uint64
	Fee        float64
	Value      float64
	SigningKey *ed25519.Key
	Delegate   ed25519.PublicKey
	BLSPubKey  util.Bytes
}

BodyBuyTicket contains arguments for purchasing a ticket

type BodyCreateRepo

type BodyCreateRepo struct {
	Name        string
	Description string
	Nonce       uint64
	Value       float64
	Fee         float64
	Config      map[string]interface{}
	SigningKey  *ed25519.Key
}

BodyCreateRepo contains arguments for creating a repository

type BodyRegisterPushKey

type BodyRegisterPushKey struct {
	Nonce      uint64
	Fee        float64
	PublicKey  ed25519.PublicKey
	Scopes     []string
	FeeCap     float64
	SigningKey *ed25519.Key
}

BodyRegisterPushKey contains arguments for registering a push key

type BodyRepoVote

type BodyRepoVote struct {
	RepoName   string
	ProposalID string
	Vote       int
	Fee        float64
	Nonce      uint64
	SigningKey *ed25519.Key
}

BodyRepoVote contains arguments for voting on a proposal

type BodySendCoin

type BodySendCoin struct {
	Nonce      uint64
	Value      float64
	Fee        float64
	To         identifier.Address
	SigningKey *ed25519.Key
}

BodySendCoin contains arguments for sending coins

type BodySetCommission

type BodySetCommission struct {
	Nonce      uint64
	Fee        float64
	Commission float64
	SigningKey *ed25519.Key
}

BodySetCommission contains arguments for updating a validators commission value

type BodyTicketQuery

type BodyTicketQuery struct {
	ProposerPubKey string
	QueryOption    *tickettypes.QueryOptions
}

BodyTicketQuery contains arguments for querying tickets

type GetRepoOpts

type GetRepoOpts struct {
	Height      uint64 `json:"height"`
	NoProposals bool   `json:"noProposals"`
}

GetRepoOpts contains arguments for fetching a repository

type ResultAccount

type ResultAccount struct {
	*state.Account `json:",flatten"`
}

ResultAccount is the result for a request to get an account.

type ResultAccountNonce

type ResultAccountNonce struct {
	Nonce string `json:"nonce"`
}

ResultAccountNonce is the result for a request to get an account's nonce.

type ResultBlock

type ResultBlock struct {
	*core_types.ResultBlock `json:",flatten"`
}

ResultBlock is the result for a request to get a block.

type ResultBlockInfo

type ResultBlockInfo struct {
	*state.BlockInfo `json:",flatten"`
}

ResultBlockInfo is the result for a request to get summarized block info.

type ResultCreateRepo

type ResultCreateRepo struct {
	Address string `json:"address"`
	Hash    string `json:"hash"`
}

ResultCreateRepo is the result for a request to create a repository

type ResultDHTProvider

type ResultDHTProvider struct {
	ID        string   `json:"id"`
	Addresses []string `json:"addresses"`
}

ResultDHTProvider describes a DHT provider

type ResultGetMethod

type ResultGetMethod struct {
	Methods []rpc.MethodInfo
}

ResultGetMethod is the response for RPC server methods

type ResultHash

type ResultHash struct {
	Hash string `json:"hash"`
}

ResultHash contains the hash of a transaction request

type ResultPoolSize

type ResultPoolSize struct {
	Count int `json:"count"`
	Size  int `json:"size"`
}

ResultPoolSize describes size information of the mempool

type ResultPushKey

type ResultPushKey struct {
	*state.PushKey `json:",flatten"`
}

ResultPushKey is the result for a request to get a push key.

type ResultRegisterPushKey

type ResultRegisterPushKey struct {
	Address string `json:"address"`
	Hash    string `json:"hash"`
}

ResultRegisterPushKey is the result for a request to register a push key

type ResultRepository

type ResultRepository struct {
	*state.Repository `json:",flatten"`
}

ResultRepository is the result for a request to get a repository

type ResultTicket

type ResultTicket struct {
	*tickettypes.Ticket `json:",flatten"`
}

ResultTicket represents a ticket

type ResultTx

type ResultTx struct {
	Data   map[string]interface{} `json:"data"`
	Status string                 `json:"status"`
}

ResultTx contains the result for a request to get a transaction

type ResultValidator

type ResultValidator struct {
	Address           string `json:"address"`
	PubKey            string `json:"pubkey"`
	TicketID          string `json:"ticketId"`
	TendermintAddress string `json:"tmAddr"`
}

ResultValidators is the result for a request to a get block validator

type ResultValidatorInfo

type ResultValidatorInfo struct {
	PublicKey         string `json:"pubkey"`
	Address           string `json:"address"`
	PrivateKey        string `json:"privkey"`
	TendermintAddress string `json:"tmAddr"`
}

ResultValidatorInfo is the result for request to get a node's validator information

Jump to

Keyboard shortcuts

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