schema

package
v0.0.0-...-cd62ce9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT, GPL-3.0 Imports: 2 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 TokenFee `json:"fee"`
}

type Fees

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

type FilterQuery

type FilterQuery struct {
	StartCursor   int64
	Address       string
	TokenTag      string
	Action        string
	WithoutAction string
}

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"`
	SetActionOwner  string            `json:"setActionOwner"`
	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 RegisterResp

type RegisterResp struct {
	Sig       string `json:"sig"`
	Timestamp int64  `json:"timestamp"`
}

type RespAcc

type RespAcc struct {
	Id           string            `json:"id"`
	Type         string            `json:"type"`
	PublicType   map[string]string `json:"publicType"`   // key: publicId, val: publicType
	PublicValues map[string]string `json:"publicValues"` // key: publicId, val: public base64encode
}

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 TokenFee

type TokenFee struct {
	TokenTag    string            `json:"tokenTag"` // token tag
	TransferFee string            `json:"transferFee"`
	BundleFee   string            `json:"bundleFee"`
	BurnFeeMap  map[string]string `json:"burnFeeMap"` // key: targetChainType, val: burnFee
}

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 TxOpts

type TxOpts struct {
	Address       string
	TokenTag      string
	Action        string
	WithoutAction string
}

type Txs

type Txs struct {
	Txs         []*cacheSchema.TxResponse `json:"txs"`
	HasNextPage bool                      `json:"hasNextPage"`
}

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