5a6e2ec46f
* WIP: migrating the nameservice module * WIP: migrating the nameservice module from dxns to ethermint * refactor: move the proto package version from `v1` to `v1beta1` for vulcanize modules * refactor: added bond module dependency to nameserivce module * feat: added graphql for bond module * feat: added auction module dependency to nameservice module * refactor: refactored the nameservice module * refactor: add human-readable attributes output to cli nameservice `list` * WIP: add grpc query test cases * fix: fix the sub names authority storing issue * WIP: add the test cases * refactor: removed legacyCodec from nameservice * fix: fix the responses for `authority-expiry` and `records-expiry` commands query result * refactor: sort the imports in app * WIP: add test cases for cli query, tx for nameservice module * feat: add test cases for grpc of nameservice module 1. renamed grpc gateway routes from ethermint to vulcanize * refactor: refactored the test cases for grpc lookup of nameservice * refactor: refactored the test cases for bond module * feat: add node status for gql * feat: add get actions by ids in gql * feat: add lookup authorities,resolve name, lookup name queries to gql * updated readme file
161 lines
4.4 KiB
Go
161 lines
4.4 KiB
Go
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
package gql
|
|
|
|
type Account struct {
|
|
Address string `json:"address"`
|
|
PubKey *string `json:"pubKey"`
|
|
Number string `json:"number"`
|
|
Sequence string `json:"sequence"`
|
|
Balance []*Coin `json:"balance"`
|
|
}
|
|
|
|
type Auction struct {
|
|
ID string `json:"id"`
|
|
Status string `json:"status"`
|
|
OwnerAddress string `json:"ownerAddress"`
|
|
CreateTime string `json:"createTime"`
|
|
CommitsEndTime string `json:"commitsEndTime"`
|
|
RevealsEndTime string `json:"revealsEndTime"`
|
|
CommitFee *Coin `json:"commitFee"`
|
|
RevealFee *Coin `json:"revealFee"`
|
|
MinimumBid *Coin `json:"minimumBid"`
|
|
WinnerAddress string `json:"winnerAddress"`
|
|
WinnerBid *Coin `json:"winnerBid"`
|
|
WinnerPrice *Coin `json:"winnerPrice"`
|
|
Bids []*AuctionBid `json:"bids"`
|
|
}
|
|
|
|
type AuctionBid struct {
|
|
BidderAddress string `json:"bidderAddress"`
|
|
Status string `json:"status"`
|
|
CommitHash string `json:"commitHash"`
|
|
CommitTime string `json:"commitTime"`
|
|
CommitFee *Coin `json:"commitFee"`
|
|
RevealTime string `json:"revealTime"`
|
|
RevealFee *Coin `json:"revealFee"`
|
|
BidAmount *Coin `json:"bidAmount"`
|
|
}
|
|
|
|
type AuthorityRecord struct {
|
|
OwnerAddress string `json:"ownerAddress"`
|
|
OwnerPublicKey string `json:"ownerPublicKey"`
|
|
Height string `json:"height"`
|
|
Status string `json:"status"`
|
|
BondID string `json:"bondId"`
|
|
ExpiryTime string `json:"expiryTime"`
|
|
Auction *Auction `json:"auction"`
|
|
}
|
|
|
|
type Bond struct {
|
|
ID string `json:"id"`
|
|
Owner string `json:"owner"`
|
|
Balance []*Coin `json:"balance"`
|
|
}
|
|
|
|
type Coin struct {
|
|
Type string `json:"type"`
|
|
Quantity string `json:"quantity"`
|
|
}
|
|
|
|
type KeyValue struct {
|
|
Key string `json:"key"`
|
|
Value *Value `json:"value"`
|
|
}
|
|
|
|
type KeyValueInput struct {
|
|
Key string `json:"key"`
|
|
Value *ValueInput `json:"value"`
|
|
}
|
|
|
|
type NameRecord struct {
|
|
Latest *NameRecordEntry `json:"latest"`
|
|
History []*NameRecordEntry `json:"history"`
|
|
}
|
|
|
|
type NameRecordEntry struct {
|
|
ID string `json:"id"`
|
|
Height string `json:"height"`
|
|
}
|
|
|
|
type NodeInfo struct {
|
|
ID string `json:"id"`
|
|
Network string `json:"network"`
|
|
Moniker string `json:"moniker"`
|
|
}
|
|
|
|
type OwnerBonds struct {
|
|
Owner string `json:"owner"`
|
|
Bonds []*Bond `json:"bonds"`
|
|
}
|
|
|
|
type PeerInfo struct {
|
|
Node *NodeInfo `json:"node"`
|
|
IsOutbound bool `json:"is_outbound"`
|
|
RemoteIP string `json:"remote_ip"`
|
|
}
|
|
|
|
type Record struct {
|
|
ID string `json:"id"`
|
|
Names []string `json:"names"`
|
|
BondID string `json:"bondId"`
|
|
CreateTime string `json:"createTime"`
|
|
ExpiryTime string `json:"expiryTime"`
|
|
Owners []string `json:"owners"`
|
|
Attributes []*KeyValue `json:"attributes"`
|
|
References []*Record `json:"references"`
|
|
}
|
|
|
|
type Reference struct {
|
|
ID string `json:"id"`
|
|
}
|
|
|
|
type ReferenceInput struct {
|
|
ID string `json:"id"`
|
|
}
|
|
|
|
type Status struct {
|
|
Version string `json:"version"`
|
|
Node *NodeInfo `json:"node"`
|
|
Sync *SyncInfo `json:"sync"`
|
|
Validator *ValidatorInfo `json:"validator"`
|
|
Validators []*ValidatorInfo `json:"validators"`
|
|
NumPeers string `json:"num_peers"`
|
|
Peers []*PeerInfo `json:"peers"`
|
|
DiskUsage string `json:"disk_usage"`
|
|
}
|
|
|
|
type SyncInfo struct {
|
|
LatestBlockHash string `json:"latest_block_hash"`
|
|
LatestBlockHeight string `json:"latest_block_height"`
|
|
LatestBlockTime string `json:"latest_block_time"`
|
|
CatchingUp bool `json:"catching_up"`
|
|
}
|
|
|
|
type ValidatorInfo struct {
|
|
Address string `json:"address"`
|
|
VotingPower string `json:"voting_power"`
|
|
ProposerPriority *string `json:"proposer_priority"`
|
|
}
|
|
|
|
type Value struct {
|
|
Null *bool `json:"null"`
|
|
Int *int `json:"int"`
|
|
Float *float64 `json:"float"`
|
|
String *string `json:"string"`
|
|
Boolean *bool `json:"boolean"`
|
|
JSON *string `json:"json"`
|
|
Reference *Reference `json:"reference"`
|
|
Values []*Value `json:"values"`
|
|
}
|
|
|
|
type ValueInput struct {
|
|
Null *bool `json:"null"`
|
|
Int *int `json:"int"`
|
|
Float *float64 `json:"float"`
|
|
String *string `json:"string"`
|
|
Boolean *bool `json:"boolean"`
|
|
Reference *ReferenceInput `json:"reference"`
|
|
Values []*ValueInput `json:"values"`
|
|
}
|