schema

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccBalance

type AccBalance struct {
	AccId   string  `json:"accid"`
	Balance Balance `json:"balance"`
}

type AccBalances

type AccBalances struct {
	AccId    string    `json:"accid"`
	Balances []Balance `json:"balances"`
}

type AccTxs

type AccTxs struct {
	AccId string `json:"accid"`
	Txs
}

type Balance

type Balance struct {
	Tag      string `json:"tag"`
	Amount   string `json:"amount"`
	Decimals int    `json:"decimals"`
}

type Fee

type Fee struct {
	Fee confSchema.TokenFee `json:"fee"`
}

type Fees

type Fees struct {
	Fees []confSchema.TokenFee `json:"fees"`
}

type Info

type Info struct {
	IsSynced        bool              `json:"isSynced"`
	IsClosed        bool              `json:"isClosed"`
	BalanceRootHash string            `json:"balanceRootHash"`
	RootHash        string            `json:"rootHash"`
	EverRootHash    string            `json:"everRootHash"`
	Owner           string            `json:"owner"`
	EthChainID      string            `json:"ethChainID"`
	FeeRecipient    string            `json:"feeRecipient"`
	EthLocker       string            `json:"ethLocker"`
	ArLocker        string            `json:"arLocker"`
	Lockers         map[string]string `json:"lockers"`
	TokenList       []TokenInfo       `json:"tokenList"`
}

type LimitIp

type LimitIp struct {
	Limit bool `json:"limit"`
}

type PendingTxs

type PendingTxs struct {
	Total       int                       `json:"total"`
	HasNextPage bool                      `json:"hasNextPage"` // true means can get more
	Txs         []*cacheSchema.TxResponse `json:"txs"`
}

type RespErr

type RespErr struct {
	Err string `json:"error"`
}

func (RespErr) Error

func (r RespErr) Error() string

type RespStatus

type RespStatus struct {
	Status string `json:"status"`
}

type TokenInfo

type TokenInfo struct {
	Tag                string                           `json:"tag"`
	ID                 string                           `json:"id"`
	Symbol             string                           `json:"symbol"`
	Decimals           int                              `json:"decimals"`
	TotalSupply        string                           `json:"totalSupply"`
	ChainType          string                           `json:"chainType"`
	ChainID            string                           `json:"chainID"`
	BurnFees           map[string]string                `json:"burnFees"` // key: targetChainType, val: fee
	TransferFee        string                           `json:"transferFee"`
	BundleFee          string                           `json:"bundleFee"`
	HolderNum          int                              `json:"holderNum"`
	CrossChainInfoList map[string]tokSchema.TargetChain `json:"crossChainInfoList"` // key: targetChainType
}

type TuringInfo

type TuringInfo struct {
	IsSynced                    bool   `json:"isSynced"`
	RollupWatcherArId           string `json:"rollupWatcherArId"`
	RollupLastArId              string `json:"rollupLastArId"`
	RollupLastOnChainEverTxHash string `json:"rollupLastOnChainEverTxHash"`
	TrackerLastArId             string `json:"trackerLastArId"`
	PendingTxNum                int    `json:"pendingTxNum"`
	CurRollupTxNum              int    `json:"curRollupTxNum"`
	RollupAddr                  string `json:"rollupAddr"`
	TrackerAddr                 string `json:"trackerAddr"`
}

type Tx

type Tx struct {
	Tx *cacheSchema.TxResponse `json:"tx"`
}

type Txs

type Txs struct {
	Txs         []*cacheSchema.TxResponse `json:"txs"`
	CurrentPage int                       `json:"currentPage"`
	TotalPages  int                       `json:"totalPages"`
}

type WithdrawTxResponse

type WithdrawTxResponse struct {
	EverHash    string
	Token       string
	Status      string
	WithdrawFee string
	WithdrawTx  string
	RefundTx    string
	Error       string
}

Jump to

Keyboard shortcuts

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