model

package
v0.0.0-...-f5e7e2f Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllOrder = []Order{
	OrderAsc,
	OrderDesc,
}

Functions

This section is empty.

Types

type Account

type Account struct {
	ID              string         `json:"id"`
	Sequence        string         `json:"sequence"`
	HomeDomain      string         `json:"homeDomain"`
	NativeBalance   string         `json:"nativeBalance"`
	MasterWeight    int            `json:"masterWeight"`
	LowThreshold    int            `json:"lowThreshold"`
	MediumThreshold int            `json:"mediumThreshold"`
	HighThreshold   int            `json:"highThreshold"`
	Flags           *Flags         `json:"flags"`
	Balances        []*Balance     `json:"balances"`
	Signers         []*Signer      `json:"signers"`
	Data            []*Data        `json:"data"`
	Transactions    []*Transaction `json:"transactions"`
}

type AccountFilter

type AccountFilter struct {
	PubKey    string              `json:"pubKey"`
	Direction AccountFilterOption `json:"direction"`
}

type AccountFilterOption

type AccountFilterOption string
const (
	AccountFilterOptionAll  AccountFilterOption = "all"
	AccountFilterOptionFrom AccountFilterOption = "from"
	AccountFilterOptionTo   AccountFilterOption = "to"
)

func (AccountFilterOption) IsValid

func (e AccountFilterOption) IsValid() bool

func (AccountFilterOption) MarshalGQL

func (e AccountFilterOption) MarshalGQL(w io.Writer)

func (AccountFilterOption) String

func (e AccountFilterOption) String() string

func (*AccountFilterOption) UnmarshalGQL

func (e *AccountFilterOption) UnmarshalGQL(v interface{}) error

type Balance

type Balance struct {
	Balance            string `json:"balance"`
	BuyingLiabilities  string `json:"buyingLiabilities"`
	SellingLiabilities string `json:"sellingLiabilities"`
	Limit              string `json:"limit"`
	LastModifiedLedger int    `json:"lastModifiedLedger"`
	IsAuthorized       bool   `json:"isAuthorized"`
	AssetCode          string `json:"assetCode"`
	AssetIssuer        string `json:"assetIssuer"`
}

type Data

type Data struct {
	Name  *string `json:"name"`
	Value *string `json:"value"`
}

type DateFilter

type DateFilter struct {
	FromDate string `json:"fromDate"`
	ToDate   string `json:"toDate"`
}

type FilterBy

type FilterBy struct {
	Account *AccountFilter `json:"account"`
	Date    *DateFilter    `json:"date"`
	Ledger  *LedgerFilter  `json:"ledger"`
}

type Flags

type Flags struct {
	AuthRequired  bool `json:"authRequired"`
	AuthRevocable bool `json:"authRevocable"`
	AuthImmutable bool `json:"authImmutable"`
}

type Ledger

type Ledger struct {
	Sequence                   int            `json:"sequence"`
	LedgerHash                 string         `json:"ledgerHash"`
	PreviousLedgerHash         *string        `json:"previousLedgerHash"`
	TransactionCount           int            `json:"transactionCount"`
	OperationCount             int            `json:"operationCount"`
	ClosedAt                   string         `json:"closedAt"`
	CreatedAt                  *string        `json:"createdAt"`
	UpdatedAt                  *string        `json:"updatedAt"`
	ID                         *int           `json:"id"`
	ImporterVersion            int            `json:"importerVersion"`
	TotalCoins                 string         `json:"totalCoins"`
	FeePool                    string         `json:"feePool"`
	BaseFee                    int            `json:"baseFee"`
	BaseReserve                int            `json:"baseReserve"`
	MaxTxSetSize               int            `json:"maxTxSetSize"`
	ProtocolVersion            int            `json:"protocolVersion"`
	LedgerHeader               *string        `json:"ledgerHeader"`
	SuccessfulTransactionCount *int           `json:"successfulTransactionCount"`
	FailedTransactionCount     *int           `json:"failedTransactionCount"`
	Transactions               []*Transaction `json:"transactions"`
}

type LedgerFilter

type LedgerFilter struct {
	FromNumber int `json:"fromNumber"`
	ToNumber   int `json:"toNumber"`
}

type Operation

type Operation struct {
	ID               string  `json:"id"`
	TransactionID    string  `json:"transactionID"`
	ApplicationOrder int     `json:"applicationOrder"`
	Type             int     `json:"type"`
	Details          *string `json:"details"`
	SourceAccount    string  `json:"sourceAccount"`
}

type Order

type Order string
const (
	OrderAsc  Order = "asc"
	OrderDesc Order = "desc"
)

func (Order) IsValid

func (e Order) IsValid() bool

func (Order) MarshalGQL

func (e Order) MarshalGQL(w io.Writer)

func (Order) String

func (e Order) String() string

func (*Order) UnmarshalGQL

func (e *Order) UnmarshalGQL(v interface{}) error

type Signer

type Signer struct {
	Weight int    `json:"weight"`
	Key    string `json:"key"`
}

type Transaction

type Transaction struct {
	TransactionHash      string       `json:"transactionHash"`
	LedgerSequence       int          `json:"ledgerSequence"`
	ApplicationOrder     int          `json:"applicationOrder"`
	Account              string       `json:"account"`
	AccountSequence      string       `json:"accountSequence"`
	MaxFee               string       `json:"maxFee"`
	OperationCount       int          `json:"operationCount"`
	CreatedAt            *string      `json:"createdAt"`
	UpdatedAt            *string      `json:"updatedAt"`
	ID                   *string      `json:"id"`
	TxEnvelope           string       `json:"txEnvelope"`
	TxResult             string       `json:"txResult"`
	TxMeta               string       `json:"txMeta"`
	TxFeeMeta            string       `json:"txFeeMeta"`
	Signatures           []string     `json:"signatures"`
	MemoType             string       `json:"memoType"`
	Memo                 *string      `json:"memo"`
	TimeBounds           []*int       `json:"timeBounds"`
	Successful           *bool        `json:"successful"`
	FeeCharged           *string      `json:"feeCharged"`
	InnerTransactionHash *string      `json:"innerTransactionHash"`
	FeeAccount           *string      `json:"feeAccount"`
	InnerSignatures      []*string    `json:"innerSignatures"`
	NewMaxFee            *string      `json:"newMaxFee"`
	Operations           []*Operation `json:"operations"`
}

Jump to

Keyboard shortcuts

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