Documentation ¶
Index ¶
- Constants
- Variables
- func DisableLog()
- func ErrorStatus(err error) int
- func ParseU64(s string) (u uint64)
- func UseLogger(logger log.Logger)
- type Account
- type AccountList
- type AccountParams
- type AccountQuery
- func (p AccountQuery) Check() error
- func (q *AccountQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *AccountQuery) ResetFilter() TableQuery
- func (q AccountQuery) Run(ctx context.Context) (*AccountList, error)
- func (p AccountQuery) Url() string
- func (q *AccountQuery) WithColumns(cols ...string) TableQuery
- func (q *AccountQuery) WithCursor(c uint64) TableQuery
- func (q *AccountQuery) WithDesc() TableQuery
- func (q *AccountQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *AccountQuery) WithFormat(format FormatType) TableQuery
- func (q *AccountQuery) WithLimit(limit int) TableQuery
- func (q *AccountQuery) WithOrder(order OrderType) TableQuery
- func (q *AccountQuery) WithPrim() TableQuery
- func (q *AccountQuery) WithQuiet() TableQuery
- func (q *AccountQuery) WithVerbose() TableQuery
- type ActivityReport
- type AgeReport
- type AliasMetadata
- type ApiError
- type ApiErrors
- type AssetMetadata
- type Baker
- type BakerEvents
- type BakerMetadata
- type BakerParams
- type BakerStatistics
- type BalanceReport
- type Ballot
- type BaseParams
- type Bigmap
- type BigmapKey
- type BigmapMeta
- type BigmapQuery
- func (p BigmapQuery) Check() error
- func (q *BigmapQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *BigmapQuery) ResetFilter() TableQuery
- func (q BigmapQuery) Run(ctx context.Context) (*BigmapRowList, error)
- func (p BigmapQuery) Url() string
- func (q *BigmapQuery) WithColumns(cols ...string) TableQuery
- func (q *BigmapQuery) WithCursor(c uint64) TableQuery
- func (q *BigmapQuery) WithDesc() TableQuery
- func (q *BigmapQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *BigmapQuery) WithFormat(format FormatType) TableQuery
- func (q *BigmapQuery) WithLimit(limit int) TableQuery
- func (q *BigmapQuery) WithOrder(order OrderType) TableQuery
- func (q *BigmapQuery) WithPrim() TableQuery
- func (q *BigmapQuery) WithQuiet() TableQuery
- func (q *BigmapQuery) WithVerbose() TableQuery
- type BigmapRow
- type BigmapRowList
- type BigmapUpdate
- type BigmapUpdateQuery
- func (p BigmapUpdateQuery) Check() error
- func (q *BigmapUpdateQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *BigmapUpdateQuery) ResetFilter() TableQuery
- func (q BigmapUpdateQuery) Run(ctx context.Context) (*BigmapUpdateRowList, error)
- func (p BigmapUpdateQuery) Url() string
- func (q *BigmapUpdateQuery) WithColumns(cols ...string) TableQuery
- func (q *BigmapUpdateQuery) WithCursor(c uint64) TableQuery
- func (q *BigmapUpdateQuery) WithDesc() TableQuery
- func (q *BigmapUpdateQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *BigmapUpdateQuery) WithFormat(format FormatType) TableQuery
- func (q *BigmapUpdateQuery) WithLimit(limit int) TableQuery
- func (q *BigmapUpdateQuery) WithOrder(order OrderType) TableQuery
- func (q *BigmapUpdateQuery) WithPrim() TableQuery
- func (q *BigmapUpdateQuery) WithQuiet() TableQuery
- func (q *BigmapUpdateQuery) WithVerbose() TableQuery
- type BigmapUpdateRow
- func (r BigmapUpdateRow) DecodeKey(typ micheline.Type) (micheline.Key, error)
- func (r BigmapUpdateRow) DecodeKeyType() (micheline.Type, error)
- func (r BigmapUpdateRow) DecodeValue(typ micheline.Type) (micheline.Value, error)
- func (r BigmapUpdateRow) DecodeValueType() (micheline.Type, error)
- func (r BigmapUpdateRow) Event() (ev micheline.BigmapEvent)
- func (b *BigmapUpdateRow) UnmarshalJSON(data []byte) error
- func (b *BigmapUpdateRow) UnmarshalJSONBrief(data []byte) error
- type BigmapUpdateRowList
- type BigmapUpdates
- type BigmapValue
- func (v BigmapValue) GetAddress(path string) (tezos.Address, bool)
- func (v BigmapValue) GetBig(path string) (*big.Int, bool)
- func (v BigmapValue) GetInt64(path string) (int64, bool)
- func (v BigmapValue) GetString(path string) (string, bool)
- func (v BigmapValue) GetTime(path string) (time.Time, bool)
- func (v BigmapValue) GetValue(path string) (interface{}, bool)
- func (v BigmapValue) GetZ(path string) (tezos.Z, bool)
- func (v BigmapValue) Has(path string) bool
- func (v BigmapValue) Unmarshal(val interface{}) error
- func (v BigmapValue) Walk(path string, fn ValueWalkerFunc) error
- type BigmapValueQuery
- func (p BigmapValueQuery) Check() error
- func (q *BigmapValueQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *BigmapValueQuery) ResetFilter() TableQuery
- func (q BigmapValueQuery) Run(ctx context.Context) (*BigmapValueRowList, error)
- func (p BigmapValueQuery) Url() string
- func (q *BigmapValueQuery) WithColumns(cols ...string) TableQuery
- func (q *BigmapValueQuery) WithCursor(c uint64) TableQuery
- func (q *BigmapValueQuery) WithDesc() TableQuery
- func (q *BigmapValueQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *BigmapValueQuery) WithFormat(format FormatType) TableQuery
- func (q *BigmapValueQuery) WithLimit(limit int) TableQuery
- func (q *BigmapValueQuery) WithOrder(order OrderType) TableQuery
- func (q *BigmapValueQuery) WithPrim() TableQuery
- func (q *BigmapValueQuery) WithQuiet() TableQuery
- func (q *BigmapValueQuery) WithVerbose() TableQuery
- type BigmapValueRow
- type BigmapValueRowList
- type Block
- type BlockId
- type BlockList
- type BlockParams
- type BlockQuery
- func (p BlockQuery) Check() error
- func (q *BlockQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *BlockQuery) ResetFilter() TableQuery
- func (q BlockQuery) Run(ctx context.Context) (*BlockList, error)
- func (p BlockQuery) Url() string
- func (q *BlockQuery) WithColumns(cols ...string) TableQuery
- func (q *BlockQuery) WithCursor(c uint64) TableQuery
- func (q *BlockQuery) WithDesc() TableQuery
- func (q *BlockQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *BlockQuery) WithFormat(format FormatType) TableQuery
- func (q *BlockQuery) WithLimit(limit int) TableQuery
- func (q *BlockQuery) WithOrder(order OrderType) TableQuery
- func (q *BlockQuery) WithPrim() TableQuery
- func (q *BlockQuery) WithQuiet() TableQuery
- func (q *BlockQuery) WithVerbose() TableQuery
- type BlockchainConfig
- type Candle
- type CandleArgs
- type CandleList
- type Chain
- type ChainList
- type ChainQuery
- func (p ChainQuery) Check() error
- func (q *ChainQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *ChainQuery) ResetFilter() TableQuery
- func (q ChainQuery) Run(ctx context.Context) (*ChainList, error)
- func (p ChainQuery) Url() string
- func (q *ChainQuery) WithColumns(cols ...string) TableQuery
- func (q *ChainQuery) WithCursor(c uint64) TableQuery
- func (q *ChainQuery) WithDesc() TableQuery
- func (q *ChainQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *ChainQuery) WithFormat(format FormatType) TableQuery
- func (q *ChainQuery) WithLimit(limit int) TableQuery
- func (q *ChainQuery) WithOrder(order OrderType) TableQuery
- func (q *ChainQuery) WithPrim() TableQuery
- func (q *ChainQuery) WithQuiet() TableQuery
- func (q *ChainQuery) WithVerbose() TableQuery
- type Client
- func (c *Client) AddCachedScript(addr tezos.Address, script *micheline.Script)
- func (c *Client) Async(ctx context.Context, path string, headers http.Header, result any) FutureResult
- func (c *Client) CreateMetadata(ctx context.Context, metadata []Metadata) ([]Metadata, error)
- func (c *Client) DefaultHeaders() http.Header
- func (c *Client) Describe(ctx context.Context, ident string) (MetadataDescriptor, error)
- func (c *Client) GetAccount(ctx context.Context, addr tezos.Address, params AccountParams) (*Account, error)
- func (c *Client) GetAccountContracts(ctx context.Context, addr tezos.Address, params AccountParams) ([]*Account, error)
- func (c *Client) GetAccountMetadata(ctx context.Context, addr tezos.Address) (Metadata, error)
- func (c *Client) GetAccountOps(ctx context.Context, addr tezos.Address, params OpParams) ([]*Op, error)
- func (c *Client) GetActivityReport(ctx context.Context, params ReportParams) ([]*ActivityReport, error)
- func (c *Client) GetAgeReport(ctx context.Context, params ReportParams) ([]*AgeReport, error)
- func (c *Client) GetAllMetadataSchemas(ctx context.Context) (map[string]json.RawMessage, error)
- func (c *Client) GetAssetMetadata(ctx context.Context, addr tezos.Address, assetId int64) (Metadata, error)
- func (c *Client) GetBaker(ctx context.Context, addr tezos.Address, params BakerParams) (*Baker, error)
- func (c *Client) GetBakerIncome(ctx context.Context, addr tezos.Address, cycle int64, params BakerParams) (*CycleIncome, error)
- func (c *Client) GetBakerSnapshot(ctx context.Context, addr tezos.Address, cycle int64, params BakerParams) (*CycleSnapshot, error)
- func (c *Client) GetBalanceReport(ctx context.Context, params ReportParams) ([]*BalanceReport, error)
- func (c *Client) GetBigmap(ctx context.Context, id int64, params ContractParams) (*Bigmap, error)
- func (c *Client) GetBigmapValue(ctx context.Context, id int64, key string, params ContractParams) (*BigmapValue, error)
- func (c *Client) GetBlock(ctx context.Context, hash tezos.BlockHash, params BlockParams) (*Block, error)
- func (c *Client) GetBlockHeight(ctx context.Context, height int64, params BlockParams) (*Block, error)
- func (c *Client) GetBlockOps(ctx context.Context, hash tezos.BlockHash, params OpParams) ([]*Op, error)
- func (c *Client) GetBlockWithOps(ctx context.Context, hash tezos.BlockHash, params BlockParams) (*Block, error)
- func (c *Client) GetConfig(ctx context.Context) (*BlockchainConfig, error)
- func (c *Client) GetConfigHeight(ctx context.Context, height int64) (*BlockchainConfig, error)
- func (c *Client) GetConstant(ctx context.Context, addr tezos.ExprHash, params ConstantParams) (*Constant, error)
- func (c *Client) GetContract(ctx context.Context, addr tezos.Address, params ContractParams) (*Contract, error)
- func (c *Client) GetContractScript(ctx context.Context, addr tezos.Address, params ContractParams) (*ContractScript, error)
- func (c *Client) GetContractStorage(ctx context.Context, addr tezos.Address, params ContractParams) (*ContractValue, error)
- func (c *Client) GetDexPool(ctx context.Context, addr tezos.Address, id int, params DexPoolParams) (*DexPool, error)
- func (c *Client) GetDexTicker(ctx context.Context, addr tezos.Address, id int) (*DexTicker, error)
- func (c *Client) GetElection(ctx context.Context, id int) (*Election, error)
- func (c *Client) GetHead(ctx context.Context, params BlockParams) (*Block, error)
- func (c *Client) GetIpfsData(ctx context.Context, uri string, val interface{}) error
- func (c *Client) GetIpfsImage(ctx context.Context, uri, mime string, w io.Writer) error
- func (c *Client) GetMetadataSchema(ctx context.Context, name string) (json.RawMessage, error)
- func (c *Client) GetOp(ctx context.Context, hash tezos.OpHash, params OpParams) (OpGroup, error)
- func (c *Client) GetOpReport(ctx context.Context, params ReportParams) ([]*OpReport, error)
- func (c *Client) GetSetsReport(ctx context.Context, params ReportParams) ([]*SetsReport, error)
- func (c *Client) GetStatus(ctx context.Context) (*Status, error)
- func (c *Client) GetSupplyReport(ctx context.Context, params ReportParams) ([]*SupplyReport, error)
- func (c *Client) GetTicker(ctx context.Context, market, pair string) (*Ticker, error)
- func (c *Client) GetTickers(ctx context.Context) ([]Ticker, error)
- func (c *Client) GetTip(ctx context.Context) (*Tip, error)
- func (c *Client) GetToken(ctx context.Context, addr tezos.Token, params TokenParams) (*Token, error)
- func (c *Client) ListBakerDelegations(ctx context.Context, addr tezos.Address, params OpParams) ([]*Op, error)
- func (c *Client) ListBakerEndorsements(ctx context.Context, addr tezos.Address, params OpParams) ([]*Op, error)
- func (c *Client) ListBakerRights(ctx context.Context, addr tezos.Address, cycle int64, params BakerParams) (*CycleRights, error)
- func (c *Client) ListBakerVotes(ctx context.Context, addr tezos.Address, params OpParams) ([]*Ballot, error)
- func (c *Client) ListBakers(ctx context.Context, params BakerParams) ([]*Baker, error)
- func (c *Client) ListBallots(ctx context.Context, id int, stage int) ([]Ballot, error)
- func (c *Client) ListBigmapKeyUpdates(ctx context.Context, id int64, key string, params ContractParams) ([]BigmapUpdate, error)
- func (c *Client) ListBigmapKeys(ctx context.Context, id int64, params ContractParams) ([]BigmapKey, error)
- func (c *Client) ListBigmapUpdates(ctx context.Context, id int64, params ContractParams) ([]BigmapUpdate, error)
- func (c *Client) ListBigmapValues(ctx context.Context, id int64, params ContractParams) ([]BigmapValue, error)
- func (c *Client) ListCandles(ctx context.Context, args CandleArgs) (*CandleList, error)
- func (c *Client) ListContractCalls(ctx context.Context, addr tezos.Address, params ContractParams) ([]*Op, error)
- func (c *Client) ListDexEvents(ctx context.Context, params DexEventParams) ([]*DexEvent, error)
- func (c *Client) ListDexPoolEvents(ctx context.Context, addr tezos.Address, id int, params DexEventParams) ([]*DexEvent, error)
- func (c *Client) ListDexPoolTrades(ctx context.Context, addr tezos.Address, id int, params DexTradeParams) ([]*DexTrade, error)
- func (c *Client) ListDexPools(ctx context.Context, params DexPoolParams) ([]*DexPool, error)
- func (c *Client) ListDexTickers(ctx context.Context, params DexTickerParams) ([]*DexTicker, error)
- func (c *Client) ListDexTrades(ctx context.Context, params DexTradeParams) ([]*DexTrade, error)
- func (c *Client) ListMetadata(ctx context.Context) ([]Metadata, error)
- func (c *Client) ListProtocols(ctx context.Context) ([]Deployment, error)
- func (c *Client) ListTokenEvents(ctx context.Context, params TokenParams) ([]*TokenEvent, error)
- func (c *Client) ListTokenOwners(ctx context.Context, addr tezos.Token, params TokenParams) ([]*TokenBalance, error)
- func (c *Client) ListTokens(ctx context.Context, params TokenParams) ([]*Token, error)
- func (c *Client) ListVoters(ctx context.Context, id int, stage int) ([]Voter, error)
- func (c *Client) ListWalletBalances(ctx context.Context, addr tezos.Address, params TokenParams) ([]*TokenBalance, error)
- func (c *Client) NewAccountQuery() AccountQuery
- func (c *Client) NewBigmapQuery() BigmapQuery
- func (c *Client) NewBigmapUpdateQuery() BigmapUpdateQuery
- func (c *Client) NewBigmapValueQuery() BigmapValueQuery
- func (c *Client) NewBlockQuery() BlockQuery
- func (c *Client) NewChainQuery() ChainQuery
- func (c *Client) NewConstantQuery() ConstantQuery
- func (c *Client) NewContractQuery() ContractQuery
- func (c *Client) NewCycleRightsQuery() CycleRightsQuery
- func (c *Client) NewEventQuery() EventQuery
- func (c *Client) NewIncomeQuery() IncomeQuery
- func (c *Client) NewOpQuery() OpQuery
- func (c *Client) NewSnapshotQuery() SnapshotQuery
- func (c *Client) PurgeMetadata(ctx context.Context) error
- func (c *Client) QueryAccounts(ctx context.Context, filter FilterList, cols []string) (*AccountList, error)
- func (c *Client) QueryBigmapUpdates(ctx context.Context, filter FilterList, cols []string) (*BigmapUpdateRowList, error)
- func (c *Client) QueryBigmapValues(ctx context.Context, filter FilterList, cols []string) (*BigmapValueRowList, error)
- func (c *Client) QueryBigmaps(ctx context.Context, filter FilterList, cols []string) (*BigmapRowList, error)
- func (c *Client) QueryBlocks(ctx context.Context, filter FilterList, cols []string) (*BlockList, error)
- func (c *Client) QueryChains(ctx context.Context, filter FilterList, cols []string) (*ChainList, error)
- func (c *Client) QueryConstants(ctx context.Context, filter FilterList, cols []string) (*ConstantList, error)
- func (c *Client) QueryContracts(ctx context.Context, filter FilterList, cols []string) (*ContractList, error)
- func (c *Client) QueryCycleRights(ctx context.Context, filter FilterList, cols []string) (*CycleRightsList, error)
- func (c *Client) QueryEvents(ctx context.Context, filter FilterList, cols []string) (*EventList, error)
- func (c *Client) QueryIncome(ctx context.Context, filter FilterList, cols []string) (*IncomeList, error)
- func (c *Client) QueryOps(ctx context.Context, filter FilterList, cols []string) (*OpList, error)
- func (c *Client) QuerySnapshots(ctx context.Context, filter FilterList, cols []string) (*SnapshotList, error)
- func (c *Client) QueryTable(ctx context.Context, q TableQuery, result any) error
- func (c *Client) RemoveAccountMetadata(ctx context.Context, addr tezos.Address) error
- func (c *Client) RemoveAssetMetadata(ctx context.Context, addr tezos.Address, assetId int64) error
- func (c Client) Retries() int
- func (c Client) RetryDelay() time.Duration
- func (c *Client) StreamTable(ctx context.Context, q TableQuery, w io.Writer) (StreamResponse, error)
- func (c *Client) UpdateMetadata(ctx context.Context, alias Metadata) (Metadata, error)
- func (c *Client) UseScriptCache(cache *lru.TwoQueueCache)
- func (c *Client) WithApiKey(s string) *Client
- func (c *Client) WithCacheSize(sz int) *Client
- func (c *Client) WithHeader(key, value string) *Client
- func (c *Client) WithLogger(log log.Logger) *Client
- func (c *Client) WithMarketUrl(url string) *Client
- func (c *Client) WithRetry(num int, delay time.Duration) *Client
- func (c *Client) WithTLS(tc *tls.Config) *Client
- func (c *Client) WithTimeout(d time.Duration) *Client
- func (c *Client) WithUserAgent(s string) *Client
- type Constant
- type ConstantList
- type ConstantParams
- type ConstantQuery
- func (p ConstantQuery) Check() error
- func (q *ConstantQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *ConstantQuery) ResetFilter() TableQuery
- func (q ConstantQuery) Run(ctx context.Context) (*ConstantList, error)
- func (p ConstantQuery) Url() string
- func (q *ConstantQuery) WithColumns(cols ...string) TableQuery
- func (q *ConstantQuery) WithCursor(c uint64) TableQuery
- func (q *ConstantQuery) WithDesc() TableQuery
- func (q *ConstantQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *ConstantQuery) WithFormat(format FormatType) TableQuery
- func (q *ConstantQuery) WithLimit(limit int) TableQuery
- func (q *ConstantQuery) WithOrder(order OrderType) TableQuery
- func (q *ConstantQuery) WithPrim() TableQuery
- func (q *ConstantQuery) WithQuiet() TableQuery
- func (q *ConstantQuery) WithVerbose() TableQuery
- type Contract
- type ContractList
- type ContractMeta
- type ContractParameters
- type ContractParams
- type ContractQuery
- func (p ContractQuery) Check() error
- func (q *ContractQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *ContractQuery) ResetFilter() TableQuery
- func (q ContractQuery) Run(ctx context.Context) (*ContractList, error)
- func (p ContractQuery) Url() string
- func (q *ContractQuery) WithColumns(cols ...string) TableQuery
- func (q *ContractQuery) WithCursor(c uint64) TableQuery
- func (q *ContractQuery) WithDesc() TableQuery
- func (q *ContractQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *ContractQuery) WithFormat(format FormatType) TableQuery
- func (q *ContractQuery) WithLimit(limit int) TableQuery
- func (q *ContractQuery) WithOrder(order OrderType) TableQuery
- func (q *ContractQuery) WithPrim() TableQuery
- func (q *ContractQuery) WithQuiet() TableQuery
- func (q *ContractQuery) WithVerbose() TableQuery
- type ContractScript
- type ContractValue
- func (v ContractValue) AsPrim() (micheline.Prim, bool)
- func (v ContractValue) GetAddress(path string) (tezos.Address, bool)
- func (v ContractValue) GetBig(path string) (*big.Int, bool)
- func (v ContractValue) GetInt64(path string) (int64, bool)
- func (v ContractValue) GetString(path string) (string, bool)
- func (v ContractValue) GetTime(path string) (time.Time, bool)
- func (v ContractValue) GetValue(path string) (interface{}, bool)
- func (v ContractValue) GetZ(path string) (tezos.Z, bool)
- func (v ContractValue) Has(path string) bool
- func (v ContractValue) IsPrim() bool
- func (v ContractValue) Unmarshal(val interface{}) error
- func (v ContractValue) Walk(path string, fn ValueWalkerFunc) error
- type Costs
- type CycleIncome
- type CycleRights
- func (r CycleRights) IsLost(pos int) bool
- func (r CycleRights) IsMissed(pos int) bool
- func (r CycleRights) IsSeedRequired(pos int) bool
- func (r CycleRights) IsSeedRevealed(pos int) bool
- func (r CycleRights) IsStolen(pos int) bool
- func (r CycleRights) IsUsed(pos int) bool
- func (r CycleRights) Pos(height int64) int
- func (r CycleRights) RightAt(height int64, typ tezos.RightType) (Right, bool)
- func (r *CycleRights) UnmarshalJSON(data []byte) error
- func (r *CycleRights) UnmarshalJSONBrief(data []byte) error
- type CycleRightsList
- type CycleRightsQuery
- func (p CycleRightsQuery) Check() error
- func (q *CycleRightsQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *CycleRightsQuery) ResetFilter() TableQuery
- func (q CycleRightsQuery) Run(ctx context.Context) (*CycleRightsList, error)
- func (p CycleRightsQuery) Url() string
- func (q *CycleRightsQuery) WithColumns(cols ...string) TableQuery
- func (q *CycleRightsQuery) WithCursor(c uint64) TableQuery
- func (q *CycleRightsQuery) WithDesc() TableQuery
- func (q *CycleRightsQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *CycleRightsQuery) WithFormat(format FormatType) TableQuery
- func (q *CycleRightsQuery) WithLimit(limit int) TableQuery
- func (q *CycleRightsQuery) WithOrder(order OrderType) TableQuery
- func (q *CycleRightsQuery) WithPrim() TableQuery
- func (q *CycleRightsQuery) WithQuiet() TableQuery
- func (q *CycleRightsQuery) WithVerbose() TableQuery
- type CycleSnapshot
- type Delegator
- type Deployment
- type DexEvent
- type DexEventParams
- type DexMetadata
- type DexPair
- type DexPool
- type DexPoolParams
- type DexTicker
- type DexTickerParams
- type DexToken
- type DexTrade
- type DexTradeParams
- type DomainMetadata
- type DomainRecord
- type Election
- type ErrRateLimited
- type Event
- type EventList
- type EventQuery
- func (p EventQuery) Check() error
- func (q *EventQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *EventQuery) ResetFilter() TableQuery
- func (q EventQuery) Run(ctx context.Context) (*EventList, error)
- func (p EventQuery) Url() string
- func (q *EventQuery) WithColumns(cols ...string) TableQuery
- func (q *EventQuery) WithCursor(c uint64) TableQuery
- func (q *EventQuery) WithDesc() TableQuery
- func (q *EventQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *EventQuery) WithFormat(format FormatType) TableQuery
- func (q *EventQuery) WithLimit(limit int) TableQuery
- func (q *EventQuery) WithOrder(order OrderType) TableQuery
- func (q *EventQuery) WithPrim() TableQuery
- func (q *EventQuery) WithQuiet() TableQuery
- func (q *EventQuery) WithVerbose() TableQuery
- type FieldInfo
- type FillMode
- type Filter
- type FilterList
- type FilterMode
- type FormatType
- type FutureResult
- type Head
- type HttpError
- type Income
- type IncomeList
- type IncomeQuery
- func (p IncomeQuery) Check() error
- func (q *IncomeQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *IncomeQuery) ResetFilter() TableQuery
- func (q IncomeQuery) Run(ctx context.Context) (*IncomeList, error)
- func (p IncomeQuery) Url() string
- func (q *IncomeQuery) WithColumns(cols ...string) TableQuery
- func (q *IncomeQuery) WithCursor(c uint64) TableQuery
- func (q *IncomeQuery) WithDesc() TableQuery
- func (q *IncomeQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *IncomeQuery) WithFormat(format FormatType) TableQuery
- func (q *IncomeQuery) WithLimit(limit int) TableQuery
- func (q *IncomeQuery) WithOrder(order OrderType) TableQuery
- func (q *IncomeQuery) WithPrim() TableQuery
- func (q *IncomeQuery) WithQuiet() TableQuery
- func (q *IncomeQuery) WithVerbose() TableQuery
- type LocationMetadata
- type MediaMetadata
- type Metadata
- func (m *Metadata) Alias() *AliasMetadata
- func (m *Metadata) Asset() *AssetMetadata
- func (m *Metadata) Baker() *BakerMetadata
- func (m Metadata) Clone() Metadata
- func (m *Metadata) Delete(name string)
- func (m *Metadata) Dex() *DexMetadata
- func (m *Metadata) Domain() *DomainMetadata
- func (m Metadata) Get(name string) any
- func (m Metadata) Has(name string) bool
- func (m Metadata) ID() string
- func (m Metadata) IsEmpty() bool
- func (m *Metadata) Location() *LocationMetadata
- func (m Metadata) MarshalJSON() ([]byte, error)
- func (m *Metadata) Media() *MediaMetadata
- func (m Metadata) Merge(d Metadata) Metadata
- func (m *Metadata) Payout() *PayoutMetadata
- func (m *Metadata) Rights() *RightsMetadata
- func (m *Metadata) Set(name string, data any)
- func (m *Metadata) Social() *SocialMetadata
- func (m *Metadata) Tz16() *contract.Tz16
- func (m *Metadata) Tz21() *Tz21Metadata
- func (m *Metadata) UnmarshalJSON(buf []byte) error
- func (m *Metadata) Updated() *UpdatedMetadata
- type MetadataDescriptor
- type MultiKey
- func (k MultiKey) GetAddress(path string) (tezos.Address, bool)
- func (k MultiKey) GetBig(path string) (*big.Int, bool)
- func (k MultiKey) GetInt64(path string) (int64, bool)
- func (k MultiKey) GetString(path string) (string, bool)
- func (k MultiKey) GetTime(path string) (time.Time, bool)
- func (k MultiKey) GetValue(path string) (interface{}, bool)
- func (k MultiKey) Len() int
- func (k MultiKey) MarshalJSON() ([]byte, error)
- func (k MultiKey) String() string
- func (k MultiKey) Unmarshal(val interface{}) error
- func (k *MultiKey) UnmarshalJSON(buf []byte) error
- func (k MultiKey) Walk(path string, fn ValueWalkerFunc) error
- type Op
- func (o *Op) Addresses() *tezos.AddressSet
- func (o *Op) BlockId() BlockId
- func (o *Op) Content() []*Op
- func (o Op) Costs() Costs
- func (o *Op) Cursor() uint64
- func (o *Op) OnError(action int) *Op
- func (o *Op) UnmarshalJSON(data []byte) error
- func (o *Op) UnmarshalJSONBrief(data []byte) error
- func (o *Op) WithColumns(cols ...string) *Op
- func (o *Op) WithMeta(b bool) *Op
- func (o *Op) WithPrim(b bool) *Op
- func (o *Op) WithScript(s *ContractScript) *Op
- func (o *Op) WithTypes(param, store micheline.Type, eps micheline.Entrypoints, ...) *Op
- type OpGroup
- type OpList
- type OpParams
- type OpQuery
- func (p OpQuery) Check() error
- func (q *OpQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *OpQuery) ResetFilter() TableQuery
- func (q OpQuery) Run(ctx context.Context) (*OpList, error)
- func (p OpQuery) Url() string
- func (q *OpQuery) WithColumns(cols ...string) TableQuery
- func (q *OpQuery) WithCursor(c uint64) TableQuery
- func (q *OpQuery) WithDesc() TableQuery
- func (q *OpQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *OpQuery) WithFormat(format FormatType) TableQuery
- func (q *OpQuery) WithLimit(limit int) TableQuery
- func (q OpQuery) WithNoFail() OpQuery
- func (q *OpQuery) WithOrder(order OrderType) TableQuery
- func (q *OpQuery) WithPrim() TableQuery
- func (q *OpQuery) WithQuiet() TableQuery
- func (q *OpQuery) WithVerbose() TableQuery
- type OpReport
- type OpType
- type OrderType
- type Params
- func (p Params[T]) Check() error
- func (p Params[T]) Clone() Params[T]
- func (p Params[T]) Parse(s string) (Params[T], error)
- func (p Params[T]) Url() string
- func (p Params[T]) With(key string) Params[T]
- func (p Params[T]) WithArg(key string, values ...any) Params[T]
- func (p Params[T]) WithAsc() Params[T]
- func (p Params[T]) WithCursor(v uint64) Params[T]
- func (p Params[T]) WithDesc() Params[T]
- func (p Params[T]) WithFilter(key string, mode FilterMode, values ...any) Params[T]
- func (p Params[T]) WithFrom(t time.Time) Params[T]
- func (p Params[T]) WithLimit(v uint) Params[T]
- func (p Params[T]) WithMerge() Params[T]
- func (p Params[T]) WithMeta() Params[T]
- func (p Params[T]) WithOffset(v uint) Params[T]
- func (p Params[T]) WithOrder(o OrderType) Params[T]
- func (p Params[T]) WithPath(path string) Params[T]
- func (p Params[T]) WithPrim() Params[T]
- func (p Params[T]) WithRights() Params[T]
- func (p Params[T]) WithStorage() Params[T]
- func (p Params[T]) WithTags(t ...string) Params[T]
- func (p Params[T]) WithTimeRange(from, to time.Time) Params[T]
- func (p Params[T]) WithTo(t time.Time) Params[T]
- func (p Params[T]) WithUnpack() Params[T]
- type PayoutMetadata
- type Proposal
- type ReportParams
- type Right
- type RightsMetadata
- type SetsReport
- type Snapshot
- type SnapshotList
- type SnapshotQuery
- func (p SnapshotQuery) Check() error
- func (q *SnapshotQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *SnapshotQuery) ResetFilter() TableQuery
- func (q SnapshotQuery) Run(ctx context.Context) (*SnapshotList, error)
- func (p SnapshotQuery) Url() string
- func (q *SnapshotQuery) WithColumns(cols ...string) TableQuery
- func (q *SnapshotQuery) WithCursor(c uint64) TableQuery
- func (q *SnapshotQuery) WithDesc() TableQuery
- func (q *SnapshotQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
- func (q *SnapshotQuery) WithFormat(format FormatType) TableQuery
- func (q *SnapshotQuery) WithLimit(limit int) TableQuery
- func (q *SnapshotQuery) WithOrder(order OrderType) TableQuery
- func (q *SnapshotQuery) WithPrim() TableQuery
- func (q *SnapshotQuery) WithQuiet() TableQuery
- func (q *SnapshotQuery) WithVerbose() TableQuery
- type SocialMetadata
- type Status
- type StreamResponse
- type Supply
- type SupplyReport
- type TableQuery
- type Ticker
- type TicketUpdate
- type Tip
- type Token
- type TokenBalance
- type TokenEvent
- type TokenEventParams
- type TokenParams
- type TypeInfo
- type Tz21Attribute
- type Tz21DataRate
- type Tz21Dimension
- type Tz21Format
- type Tz21Metadata
- type UpdatedMetadata
- type ValueWalkerFunc
- type Vote
- type Voter
- type ZmqMessage
- func (m *ZmqMessage) DecodeBlock() (*Block, error)
- func (m *ZmqMessage) DecodeBlockHash() (tezos.BlockHash, error)
- func (m *ZmqMessage) DecodeOp() (*Op, error)
- func (m *ZmqMessage) DecodeOpHash() (tezos.OpHash, error)
- func (m *ZmqMessage) DecodeOpWithScript(ctx context.Context, c *Client) (*Op, error)
- func (m *ZmqMessage) DecodeStatus() (*Status, error)
- func (m *ZmqMessage) GetField(name string) (string, bool)
Constants ¶
Variables ¶
var ( ClientVersion = "0.15.1" DefaultLimit = 50000 DefaultCacheSize = 2048 DefaultClient *Client IpfsClient *Client )
var Schemas = map[string]func() any{ "alias": func() any { return new(AliasMetadata) }, "baker": func() any { return new(BakerMetadata) }, "payout": func() any { return new(PayoutMetadata) }, "asset": func() any { return new(AssetMetadata) }, "dex": func() any { return new(DexMetadata) }, "location": func() any { return new(LocationMetadata) }, "domain": func() any { return new(DomainMetadata) }, "media": func() any { return new(MediaMetadata) }, "rights": func() any { return new(RightsMetadata) }, "social": func() any { return new(SocialMetadata) }, "tz16": func() any { return new(contract.Tz16) }, "tz21": func() any { return new(Tz21Metadata) }, "updated": func() any { return new(UpdatedMetadata) }, }
var ZmqRawBlockColumns = []string{
"row_id",
"hash",
"predecessor",
"height",
"cycle",
"time",
"solvetime",
"version",
"round",
"nonce",
"voting_period_kind",
"baker",
"proposer",
"n_ops_applied",
"n_ops_failed",
"n_calls",
"n_rollup_calls",
"n_events",
"volume",
"fee",
"reward",
"deposit",
"activated_supply",
"burned_supply",
"minted_supply",
"n_accounts",
"n_new_accounts",
"n_new_contracts",
"n_cleared_accounts",
"n_funded_accounts",
"gas_limit",
"gas_used",
"storage_paid",
"lb_esc_vote",
"lb_esc_ema",
"protocol",
}
var ZmqRawOpColumns = []string{
"id",
"type",
"hash",
"block",
"height",
"cycle",
"time",
"op_n",
"op_p",
"op_c",
"op_i",
"status",
"is_success",
"is_contract",
"is_internal",
"is_event",
"is_rollup",
"counter",
"gas_limit",
"gas_used",
"storage_limit",
"storage_paid",
"volume",
"fee",
"reward",
"deposit",
"burned",
"sender_id",
"sender",
"receiver_id",
"receiver",
"creator_id",
"creator",
"baker_id",
"baker",
"data",
"parameters",
"storage",
"big_map_diff",
"errors",
"entrypoint",
}
var ZmqStatusColumns = []string{
"status",
"blocks",
"finalized",
"indexed",
"progress",
}
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
func ErrorStatus ¶
Types ¶
type Account ¶
type Account struct { RowId uint64 `json:"row_id"` Address tezos.Address `json:"address"` AddressType tezos.AddressType `json:"address_type"` Pubkey tezos.Key `json:"pubkey"` Counter int64 `json:"counter"` BakerId uint64 `json:"baker_id,omitempty"` Baker *tezos.Address `json:"baker,omitempty"` CreatorId uint64 `json:"creator_id,omitempty"` Creator *tezos.Address `json:"creator,omitempty"` FirstIn int64 `json:"first_in"` FirstOut int64 `json:"first_out"` FirstSeen int64 `json:"first_seen"` LastIn int64 `json:"last_in"` LastOut int64 `json:"last_out"` LastSeen int64 `json:"last_seen"` FirstSeenTime time.Time `json:"first_seen_time"` LastSeenTime time.Time `json:"last_seen_time"` FirstInTime time.Time `json:"first_in_time"` LastInTime time.Time `json:"last_in_time"` FirstOutTime time.Time `json:"first_out_time"` LastOutTime time.Time `json:"last_out_time"` DelegatedSince int64 `json:"delegated_since"` DelegatedSinceTime time.Time `json:"delegated_since_time"` TotalReceived float64 `json:"total_received"` TotalSent float64 `json:"total_sent"` TotalBurned float64 `json:"total_burned"` TotalFeesPaid float64 `json:"total_fees_paid"` TotalFeesUsed float64 `json:"total_fees_used"` UnclaimedBalance float64 `json:"unclaimed_balance,omitempty"` SpendableBalance float64 `json:"spendable_balance"` FrozenBond float64 `json:"frozen_bond"` LostBond float64 `json:"lost_bond"` IsFunded bool `json:"is_funded"` IsActivated bool `json:"is_activated"` IsDelegated bool `json:"is_delegated"` IsRevealed bool `json:"is_revealed"` IsBaker bool `json:"is_baker"` IsContract bool `json:"is_contract"` NTxSuccess int `json:"n_tx_success"` NTxFailed int `json:"n_tx_failed"` NTxOut int `json:"n_tx_out"` NTxIn int `json:"n_tx_in"` LifetimeRewards float64 `json:"lifetime_rewards,omitempty"` PendingRewards float64 `json:"pending_rewards,omitempty"` Metadata map[string]Metadata `json:"metadata,omitempty" tzpro:"notable"` // contains filtered or unexported fields }
func (*Account) UnmarshalJSON ¶
func (*Account) UnmarshalJSONBrief ¶
type AccountList ¶
type AccountList struct { Rows []*Account // contains filtered or unexported fields }
func (AccountList) Cursor ¶
func (l AccountList) Cursor() uint64
func (AccountList) Len ¶
func (l AccountList) Len() int
func (*AccountList) UnmarshalJSON ¶
func (l *AccountList) UnmarshalJSON(data []byte) error
type AccountParams ¶
func NewAccountParams ¶
func NewAccountParams() AccountParams
type AccountQuery ¶
type AccountQuery struct {
// contains filtered or unexported fields
}
func (*AccountQuery) ReplaceFilter ¶
func (q *AccountQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*AccountQuery) ResetFilter ¶
func (q *AccountQuery) ResetFilter() TableQuery
func (AccountQuery) Run ¶
func (q AccountQuery) Run(ctx context.Context) (*AccountList, error)
func (*AccountQuery) WithColumns ¶
func (q *AccountQuery) WithColumns(cols ...string) TableQuery
func (*AccountQuery) WithCursor ¶
func (q *AccountQuery) WithCursor(c uint64) TableQuery
func (*AccountQuery) WithDesc ¶
func (q *AccountQuery) WithDesc() TableQuery
func (*AccountQuery) WithFilter ¶
func (q *AccountQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*AccountQuery) WithFormat ¶
func (q *AccountQuery) WithFormat(format FormatType) TableQuery
func (*AccountQuery) WithLimit ¶
func (q *AccountQuery) WithLimit(limit int) TableQuery
func (*AccountQuery) WithOrder ¶
func (q *AccountQuery) WithOrder(order OrderType) TableQuery
func (*AccountQuery) WithPrim ¶
func (q *AccountQuery) WithPrim() TableQuery
func (*AccountQuery) WithQuiet ¶
func (q *AccountQuery) WithQuiet() TableQuery
func (*AccountQuery) WithVerbose ¶
func (q *AccountQuery) WithVerbose() TableQuery
type ActivityReport ¶ added in v0.15.0
type ActivityReport struct { RowId uint64 `json:"row_id"` Time time.Time `json:"time"` Height int64 `json:"height"` NumSeenWallets int `json:"num_seen_wallets"` NumActiveWallets int `json:"num_active_wallets"` NumActiveContracts int `json:"num_active_contracts"` NumNewWallets int `json:"num_new_wallets"` NumNewContracts int `json:"num_new_contracts"` NumNewFundedWallets int `json:"num_new_funded_wallets"` NumNewGhostWallets int `json:"num_new_ghost_wallets"` NumClearedWallets int `json:"num_cleared_wallets"` SumVolume float64 `json:"sum_volume"` NumTx int `json:"num_tx"` NumContractCalls int `json:"num_contract_calls"` SumVolumeTop1 float64 `json:"vol_top1"` SumVolumeTop10 float64 `json:"vol_top10"` SumVolumeTop100 float64 `json:"vol_top100"` SumVolumeTop1k float64 `json:"vol_top1k"` SumVolumeTop10k float64 `json:"vol_top10k"` SumVolumeTop100k float64 `json:"vol_top100k"` TrafficTop1 int `json:"num_tx_top1"` TrafficTop10 int `json:"num_tx_top10"` TrafficTop100 int `json:"num_tx_top100"` TrafficTop1k int `json:"num_tx_top1k"` TrafficTop10k int `json:"num_tx_top10k"` TrafficTop100k int `json:"num_tx_top100k"` }
type AliasMetadata ¶
type ApiError ¶
type ApiErrors ¶
type ApiErrors struct {
Errors []ApiError `json:"errors"`
}
func IsApiError ¶
func (*ApiErrors) UnmarshalJSON ¶
type AssetMetadata ¶
type Baker ¶
type Baker struct { Address tezos.Address `json:"address"` BakerSince time.Time `json:"baker_since_time"` BakerUntil *time.Time `json:"baker_until,omitempty"` GracePeriod int64 `json:"grace_period"` BakerVersion string `json:"baker_version"` TotalBalance float64 `json:"total_balance"` SpendableBalance float64 `json:"spendable_balance"` FrozenBalance float64 `json:"frozen_balance"` DelegatedBalance float64 `json:"delegated_balance"` StakingBalance float64 `json:"staking_balance"` StakingCapacity float64 `json:"staking_capacity"` DepositsLimit *float64 `json:"deposits_limit"` ActiveDelegations int64 `json:"active_delegations"` IsFull bool `json:"is_full"` IsActive bool `json:"is_active"` Events *BakerEvents `json:"events,omitempty"` Stats *BakerStatistics `json:"stats,omitempty"` Metadata *Metadata `json:"metadata,omitempty"` }
type BakerEvents ¶
type BakerEvents struct { LastBakeHeight int64 `json:"last_bake_height"` LastBakeBlock string `json:"last_bake_block"` LastBakeTime time.Time `json:"last_bake_time"` LastEndorseHeight int64 `json:"last_endorse_height"` LastEndorseBlock string `json:"last_endorse_block"` LastEndorseTime time.Time `json:"last_endorse_time"` NextBakeHeight int64 `json:"next_bake_height"` NextBakeTime time.Time `json:"next_bake_time"` NextEndorseHeight int64 `json:"next_endorse_height"` NextEndorseTime time.Time `json:"next_endorse_time"` }
type BakerMetadata ¶
type BakerMetadata struct { Status string `json:"status,omitempty"` Fee float64 `json:"fee,omitempty"` PayoutDelay bool `json:"payout_delay,omitempty"` MinPayout float64 `json:"min_payout,omitempty"` MinDelegation float64 `json:"min_delegation,omitempty"` NonDelegatable bool `json:"non_delegatable,omitempty"` Sponsored bool `json:"sponsored,omitempty"` }
type BakerParams ¶
func NewBakerParams ¶
func NewBakerParams() BakerParams
type BakerStatistics ¶
type BakerStatistics struct { TotalRewardsEarned float64 `json:"total_rewards_earned"` TotalFeesEarned float64 `json:"total_fees_earned"` TotalLost float64 `json:"total_lost"` BlocksBaked int64 `json:"blocks_baked"` BlocksProposed int64 `json:"blocks_proposed"` SlotsEndorsed int64 `json:"slots_endorsed"` AvgLuck64 int64 `json:"avg_luck_64"` AvgPerformance64 int64 `json:"avg_performance_64"` AvgContribution64 int64 `json:"avg_contribution_64"` NBakerOps int64 `json:"n_baker_ops"` NProposal int64 `json:"n_proposals"` NBallot int64 `json:"n_ballots"` NEndorsement int64 `json:"n_endorsements"` NPreendorsement int64 `json:"n_preendorsements"` NSeedNonce int64 `json:"n_nonce_revelations"` N2Baking int64 `json:"n_double_bakings"` N2Endorsement int64 `json:"n_double_endorsements"` NSetDepositsLimit int64 `json:"n_set_limits"` }
type BalanceReport ¶ added in v0.15.0
type BalanceReport struct { RowId uint64 `json:"row_id"` Time time.Time `json:"time"` Height int64 `json:"height"` NumFundedTotal int `json:"num_funded_total"` NumFundedWallets int `json:"num_funded_wallets"` NumFundedContracts int `json:"num_funded_contracts"` SumFundedWallets float64 `json:"sum_wallets"` SumFundedContracts float64 `json:"sum_contracts"` BalanceTop1 float64 `json:"balance_top1"` BalanceTop10 float64 `json:"balance_top10"` BalanceTop100 float64 `json:"balance_top100"` BalanceTop1k float64 `json:"balance_top1k"` BalanceTop10k float64 `json:"balance_top10k"` BalanceTop100k float64 `json:"balance_top100k"` NumBalanceHist1E0 int `json:"hist_num_bal_1e0"` NumBalanceHist1E1 int `json:"hist_num_bal_1e1"` NumBalanceHist1E2 int `json:"hist_num_bal_1e2"` NumBalanceHist1E3 int `json:"hist_num_bal_1e3"` NumBalanceHist1E4 int `json:"hist_num_bal_1e4"` NumBalanceHist1E5 int `json:"hist_num_bal_1e5"` NumBalanceHist1E6 int `json:"hist_num_bal_1e6"` NumBalanceHist1E7 int `json:"hist_num_bal_1e7"` NumBalanceHist1E8 int `json:"hist_num_bal_1e8"` NumBalanceHist1E9 int `json:"hist_num_bal_1e9"` NumBalanceHist1E10 int `json:"hist_num_bal_1e10"` NumBalanceHist1E11 int `json:"hist_num_bal_1e11"` NumBalanceHist1E12 int `json:"hist_num_bal_1e12"` NumBalanceHist1E13 int `json:"hist_num_bal_1e13"` NumBalanceHist1E14 int `json:"hist_num_bal_1e14"` NumBalanceHist1E15 int `json:"hist_num_bal_1e15"` NumBalanceHist1E16 int `json:"hist_num_bal_1e16"` NumBalanceHist1E17 int `json:"hist_num_bal_1e17"` NumBalanceHist1E18 int `json:"hist_num_bal_1e18"` NumBalanceHist1E19 int `json:"hist_num_bal_1e19"` SumBalanceHist1E0 float64 `json:"hist_sum_bal_1e0"` SumBalanceHist1E1 float64 `json:"hist_sum_bal_1e1"` SumBalanceHist1E2 float64 `json:"hist_sum_bal_1e2"` SumBalanceHist1E3 float64 `json:"hist_sum_bal_1e3"` SumBalanceHist1E4 float64 `json:"hist_sum_bal_1e4"` SumBalanceHist1E5 float64 `json:"hist_sum_bal_1e5"` SumBalanceHist1E6 float64 `json:"hist_sum_bal_1e6"` SumBalanceHist1E7 float64 `json:"hist_sum_bal_1e7"` SumBalanceHist1E8 float64 `json:"hist_sum_bal_1e8"` SumBalanceHist1E9 float64 `json:"hist_sum_bal_1e9"` SumBalanceHist1E10 float64 `json:"hist_sum_bal_1e10"` SumBalanceHist1E11 float64 `json:"hist_sum_bal_1e11"` SumBalanceHist1E12 float64 `json:"hist_sum_bal_1e12"` SumBalanceHist1E13 float64 `json:"hist_sum_bal_1e13"` SumBalanceHist1E14 float64 `json:"hist_sum_bal_1e14"` SumBalanceHist1E15 float64 `json:"hist_sum_bal_1e15"` SumBalanceHist1E16 float64 `json:"hist_sum_bal_1e16"` SumBalanceHist1E17 float64 `json:"hist_sum_bal_1e17"` SumBalanceHist1E18 float64 `json:"hist_sum_bal_1e18"` GiniFunded float64 `json:"gini_funded"` GiniOneTz float64 `json:"gini_onetez"` GiniBakers float64 `json:"gini_bakers"` }
type Ballot ¶
type Ballot struct { RowId uint64 `json:"row_id"` Height int64 `json:"height"` Timestamp time.Time `json:"time"` ElectionId int `json:"election_id"` VotingPeriod int64 `json:"voting_period"` VotingPeriodKind tezos.VotingPeriodKind `json:"voting_period_kind"` Proposal tezos.ProtocolHash `json:"proposal"` OpHash tezos.OpHash `json:"op"` Ballot tezos.BallotVote `json:"ballot"` Rolls int64 `json:"rolls"` Stake float64 `json:"stake"` Sender tezos.Address `json:"sender"` }
type BaseParams ¶ added in v0.16.2
type BaseParams = Params[base]
func NewBaseParams ¶ added in v0.16.2
func NewBaseParams() BaseParams
type Bigmap ¶
type Bigmap struct { Contract tezos.Address `json:"contract"` BigmapId int64 `json:"bigmap_id"` NUpdates int64 `json:"n_updates"` NKeys int64 `json:"n_keys"` AllocateHeight int64 `json:"alloc_height"` AllocateBlock tezos.BlockHash `json:"alloc_block"` AllocateTime time.Time `json:"alloc_time"` UpdateHeight int64 `json:"update_height"` UpdateBlock tezos.BlockHash `json:"update_block"` UpdateTime time.Time `json:"update_time"` DeleteHeight int64 `json:"delete_height"` DeleteBlock tezos.BlockHash `json:"delete_block"` DeleteTime time.Time `json:"delete_time"` KeyType micheline.Typedef `json:"key_type"` ValueType micheline.Typedef `json:"value_type"` KeyTypePrim micheline.Prim `json:"key_type_prim"` ValueTypePrim micheline.Prim `json:"value_type_prim"` }
func (Bigmap) MakeKeyType ¶
func (Bigmap) MakeValueType ¶
type BigmapMeta ¶
type BigmapQuery ¶
type BigmapQuery struct {
// contains filtered or unexported fields
}
func (*BigmapQuery) ReplaceFilter ¶
func (q *BigmapQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*BigmapQuery) ResetFilter ¶
func (q *BigmapQuery) ResetFilter() TableQuery
func (BigmapQuery) Run ¶
func (q BigmapQuery) Run(ctx context.Context) (*BigmapRowList, error)
func (*BigmapQuery) WithColumns ¶
func (q *BigmapQuery) WithColumns(cols ...string) TableQuery
func (*BigmapQuery) WithCursor ¶
func (q *BigmapQuery) WithCursor(c uint64) TableQuery
func (*BigmapQuery) WithDesc ¶
func (q *BigmapQuery) WithDesc() TableQuery
func (*BigmapQuery) WithFilter ¶
func (q *BigmapQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*BigmapQuery) WithFormat ¶
func (q *BigmapQuery) WithFormat(format FormatType) TableQuery
func (*BigmapQuery) WithLimit ¶
func (q *BigmapQuery) WithLimit(limit int) TableQuery
func (*BigmapQuery) WithOrder ¶
func (q *BigmapQuery) WithOrder(order OrderType) TableQuery
func (*BigmapQuery) WithPrim ¶
func (q *BigmapQuery) WithPrim() TableQuery
func (*BigmapQuery) WithQuiet ¶
func (q *BigmapQuery) WithQuiet() TableQuery
func (*BigmapQuery) WithVerbose ¶
func (q *BigmapQuery) WithVerbose() TableQuery
type BigmapRow ¶
type BigmapRow struct { RowId uint64 `json:"row_id"` Contract tezos.Address `json:"contract"` AccountId uint64 `json:"account_id"` BigmapId int64 `json:"bigmap_id"` NUpdates int64 `json:"n_updates"` NKeys int64 `json:"n_keys"` AllocHeight int64 `json:"alloc_height"` AllocTime time.Time `json:"alloc_time"` AllocBlock tezos.BlockHash `json:"alloc_block"` UpdateHeight int64 `json:"update_height"` UpdateTime time.Time `json:"update_time"` UpdateBlock tezos.BlockHash `json:"update_block"` DeleteHeight int64 `json:"delete_height"` DeleteBlock tezos.BlockHash `json:"delete_block"` DeleteTime time.Time `json:"delete_time"` KeyType string `json:"key_type"` ValueType string `json:"value_type"` // contains filtered or unexported fields }
func (*BigmapRow) UnmarshalJSON ¶
func (*BigmapRow) UnmarshalJSONBrief ¶
type BigmapRowList ¶
type BigmapRowList struct { Rows []*BigmapRow // contains filtered or unexported fields }
func (BigmapRowList) Cursor ¶
func (l BigmapRowList) Cursor() uint64
func (BigmapRowList) Len ¶
func (l BigmapRowList) Len() int
func (*BigmapRowList) UnmarshalJSON ¶
func (l *BigmapRowList) UnmarshalJSON(data []byte) error
type BigmapUpdate ¶
type BigmapUpdate struct { BigmapValue Action micheline.DiffAction `json:"action"` KeyType *micheline.Typedef `json:"key_type,omitempty"` ValueType *micheline.Typedef `json:"value_type,omitempty"` KeyTypePrim *micheline.Prim `json:"key_type_prim,omitempty"` ValueTypePrim *micheline.Prim `json:"value_type_prim,omitempty"` BigmapId int64 `json:"bigmap_id"` SourceId int64 `json:"source_big_map,omitempty"` DestId int64 `json:"destination_big_map,omitempty"` }
func (BigmapUpdate) Event ¶ added in v0.15.0
func (u BigmapUpdate) Event() (ev micheline.BigmapEvent)
type BigmapUpdateQuery ¶
type BigmapUpdateQuery struct {
// contains filtered or unexported fields
}
func (*BigmapUpdateQuery) ReplaceFilter ¶
func (q *BigmapUpdateQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*BigmapUpdateQuery) ResetFilter ¶
func (q *BigmapUpdateQuery) ResetFilter() TableQuery
func (BigmapUpdateQuery) Run ¶
func (q BigmapUpdateQuery) Run(ctx context.Context) (*BigmapUpdateRowList, error)
func (*BigmapUpdateQuery) WithColumns ¶
func (q *BigmapUpdateQuery) WithColumns(cols ...string) TableQuery
func (*BigmapUpdateQuery) WithCursor ¶
func (q *BigmapUpdateQuery) WithCursor(c uint64) TableQuery
func (*BigmapUpdateQuery) WithDesc ¶
func (q *BigmapUpdateQuery) WithDesc() TableQuery
func (*BigmapUpdateQuery) WithFilter ¶
func (q *BigmapUpdateQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*BigmapUpdateQuery) WithFormat ¶
func (q *BigmapUpdateQuery) WithFormat(format FormatType) TableQuery
func (*BigmapUpdateQuery) WithLimit ¶
func (q *BigmapUpdateQuery) WithLimit(limit int) TableQuery
func (*BigmapUpdateQuery) WithOrder ¶
func (q *BigmapUpdateQuery) WithOrder(order OrderType) TableQuery
func (*BigmapUpdateQuery) WithPrim ¶
func (q *BigmapUpdateQuery) WithPrim() TableQuery
func (*BigmapUpdateQuery) WithQuiet ¶
func (q *BigmapUpdateQuery) WithQuiet() TableQuery
func (*BigmapUpdateQuery) WithVerbose ¶
func (q *BigmapUpdateQuery) WithVerbose() TableQuery
type BigmapUpdateRow ¶
type BigmapUpdateRow struct { RowId uint64 `json:"row_id"` BigmapId int64 `json:"bigmap_id"` Action micheline.DiffAction `json:"action"` KeyId uint64 `json:"key_id"` Hash tezos.ExprHash `json:"hash,omitempty"` Key string `json:"key,omitempty"` Value string `json:"value,omitempty"` Height int64 `json:"height"` Time time.Time `json:"time"` // contains filtered or unexported fields }
func (BigmapUpdateRow) DecodeKeyType ¶
func (r BigmapUpdateRow) DecodeKeyType() (micheline.Type, error)
Alloc/Copy only
func (BigmapUpdateRow) DecodeValue ¶
Update only
func (BigmapUpdateRow) DecodeValueType ¶
func (r BigmapUpdateRow) DecodeValueType() (micheline.Type, error)
Alloc/Copy only
func (BigmapUpdateRow) Event ¶ added in v0.15.0
func (r BigmapUpdateRow) Event() (ev micheline.BigmapEvent)
func (*BigmapUpdateRow) UnmarshalJSON ¶
func (b *BigmapUpdateRow) UnmarshalJSON(data []byte) error
func (*BigmapUpdateRow) UnmarshalJSONBrief ¶
func (b *BigmapUpdateRow) UnmarshalJSONBrief(data []byte) error
type BigmapUpdateRowList ¶
type BigmapUpdateRowList struct { Rows []*BigmapUpdateRow // contains filtered or unexported fields }
func (BigmapUpdateRowList) Cursor ¶
func (l BigmapUpdateRowList) Cursor() uint64
func (BigmapUpdateRowList) Events ¶ added in v0.15.0
func (l BigmapUpdateRowList) Events() []micheline.BigmapEvent
func (BigmapUpdateRowList) Len ¶
func (l BigmapUpdateRowList) Len() int
func (*BigmapUpdateRowList) UnmarshalJSON ¶
func (l *BigmapUpdateRowList) UnmarshalJSON(data []byte) error
type BigmapUpdates ¶ added in v0.15.0
type BigmapUpdates []BigmapUpdate
func (BigmapUpdates) Events ¶ added in v0.15.0
func (l BigmapUpdates) Events() (ev micheline.BigmapEvents)
type BigmapValue ¶
type BigmapValue struct { Key MultiKey `json:"key"` Hash tezos.ExprHash `json:"hash"` Meta *BigmapMeta `json:"meta,omitempty"` Value interface{} `json:"value,omitempty"` Height int64 `json:"height"` Time time.Time `json:"time"` KeyPrim *micheline.Prim `json:"key_prim,omitempty"` ValuePrim *micheline.Prim `json:"value_prim,omitempty"` }
func (BigmapValue) GetAddress ¶
func (v BigmapValue) GetAddress(path string) (tezos.Address, bool)
func (BigmapValue) GetValue ¶
func (v BigmapValue) GetValue(path string) (interface{}, bool)
func (BigmapValue) Has ¶
func (v BigmapValue) Has(path string) bool
func (BigmapValue) Unmarshal ¶
func (v BigmapValue) Unmarshal(val interface{}) error
func (BigmapValue) Walk ¶
func (v BigmapValue) Walk(path string, fn ValueWalkerFunc) error
type BigmapValueQuery ¶
type BigmapValueQuery struct {
// contains filtered or unexported fields
}
func (*BigmapValueQuery) ReplaceFilter ¶
func (q *BigmapValueQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*BigmapValueQuery) ResetFilter ¶
func (q *BigmapValueQuery) ResetFilter() TableQuery
func (BigmapValueQuery) Run ¶
func (q BigmapValueQuery) Run(ctx context.Context) (*BigmapValueRowList, error)
func (*BigmapValueQuery) WithColumns ¶
func (q *BigmapValueQuery) WithColumns(cols ...string) TableQuery
func (*BigmapValueQuery) WithCursor ¶
func (q *BigmapValueQuery) WithCursor(c uint64) TableQuery
func (*BigmapValueQuery) WithDesc ¶
func (q *BigmapValueQuery) WithDesc() TableQuery
func (*BigmapValueQuery) WithFilter ¶
func (q *BigmapValueQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*BigmapValueQuery) WithFormat ¶
func (q *BigmapValueQuery) WithFormat(format FormatType) TableQuery
func (*BigmapValueQuery) WithLimit ¶
func (q *BigmapValueQuery) WithLimit(limit int) TableQuery
func (*BigmapValueQuery) WithOrder ¶
func (q *BigmapValueQuery) WithOrder(order OrderType) TableQuery
func (*BigmapValueQuery) WithPrim ¶
func (q *BigmapValueQuery) WithPrim() TableQuery
func (*BigmapValueQuery) WithQuiet ¶
func (q *BigmapValueQuery) WithQuiet() TableQuery
func (*BigmapValueQuery) WithVerbose ¶
func (q *BigmapValueQuery) WithVerbose() TableQuery
type BigmapValueRow ¶
type BigmapValueRow struct { RowId uint64 `json:"row_id"` BigmapId int64 `json:"bigmap_id"` Height int64 `json:"height"` Time time.Time `json:"time"` KeyId uint64 `json:"key_id"` Hash tezos.ExprHash `json:"hash,omitempty"` Key string `json:"key,omitempty"` Value string `json:"value,omitempty"` // contains filtered or unexported fields }
func (BigmapValueRow) DecodeValue ¶
func (*BigmapValueRow) UnmarshalJSON ¶
func (b *BigmapValueRow) UnmarshalJSON(data []byte) error
func (*BigmapValueRow) UnmarshalJSONBrief ¶
func (b *BigmapValueRow) UnmarshalJSONBrief(data []byte) error
type BigmapValueRowList ¶
type BigmapValueRowList struct { Rows []*BigmapValueRow // contains filtered or unexported fields }
func (BigmapValueRowList) Cursor ¶
func (l BigmapValueRowList) Cursor() uint64
func (BigmapValueRowList) Len ¶
func (l BigmapValueRowList) Len() int
func (*BigmapValueRowList) UnmarshalJSON ¶
func (l *BigmapValueRowList) UnmarshalJSON(data []byte) error
type Block ¶
type Block struct { RowId uint64 `json:"row_id"` Hash tezos.BlockHash `json:"hash"` ParentHash *tezos.BlockHash `json:"predecessor,omitempty"` FollowerHash *tezos.BlockHash `json:"successor,omitempty" tzpro:"notable"` Timestamp time.Time `json:"time"` Height int64 `json:"height"` Cycle int64 `json:"cycle"` IsCycleSnapshot bool `json:"is_cycle_snapshot"` Solvetime int `json:"solvetime"` Version int `json:"version"` Round int `json:"round"` Nonce string `json:"nonce"` VotingPeriodKind tezos.VotingPeriodKind `json:"voting_period_kind"` BakerId uint64 `json:"baker_id"` Baker tezos.Address `json:"baker"` ProposerId uint64 `json:"proposer_id"` Proposer tezos.Address `json:"proposer"` NSlotsEndorsed int `json:"n_endorsed_slots"` NOpsApplied int `json:"n_ops_applied"` NOpsFailed int `json:"n_ops_failed"` NContractCalls int `json:"n_calls"` NRollupCalls int `json:"n_rollup_calls"` NEvents int `json:"n_events"` NTx int `json:"n_tx"` NTickets int `json:"n_tickets"` Volume float64 `json:"volume"` Fee float64 `json:"fee"` Reward float64 `json:"reward"` Deposit float64 `json:"deposit"` ActivatedSupply float64 `json:"activated_supply"` MintedSupply float64 `json:"minted_supply"` BurnedSupply float64 `json:"burned_supply"` SeenAccounts int `json:"n_accounts"` NewAccounts int `json:"n_new_accounts"` NewContracts int `json:"n_new_contracts"` ClearedAccounts int `json:"n_cleared_accounts"` FundedAccounts int `json:"n_funded_accounts"` GasLimit int64 `json:"gas_limit"` GasUsed int64 `json:"gas_used"` StoragePaid int64 `json:"storage_paid"` PctAccountReuse float64 `json:"pct_account_reuse"` LbEscapeVote string `json:"lb_esc_vote"` LbEscapeEma int64 `json:"lb_esc_ema"` Protocol tezos.ProtocolHash `json:"protocol"` ProposerKeyId uint64 `json:"proposer_consensus_key_id"` BakerKeyId uint64 `json:"baker_consensus_key_id"` ProposerKey string `json:"proposer_consensus_key"` BakerKey string `json:"baker_consensus_key"` Metadata map[string]Metadata `json:"metadata,omitempty" tzpro:"notable"` Rights []Right `json:"rights,omitempty" tzpro:"notable"` Ops []*Op `json:"ops,omitempty" tzpro:"notable"` // contains filtered or unexported fields }
func (*Block) UnmarshalJSON ¶
func (*Block) UnmarshalJSONBrief ¶
func (*Block) WithColumns ¶
type BlockList ¶
type BlockList struct { Rows []*Block // contains filtered or unexported fields }
func (*BlockList) UnmarshalJSON ¶
type BlockParams ¶
func NewBlockParams ¶
func NewBlockParams() BlockParams
type BlockQuery ¶
type BlockQuery struct {
// contains filtered or unexported fields
}
func (*BlockQuery) ReplaceFilter ¶
func (q *BlockQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*BlockQuery) ResetFilter ¶
func (q *BlockQuery) ResetFilter() TableQuery
func (*BlockQuery) WithColumns ¶
func (q *BlockQuery) WithColumns(cols ...string) TableQuery
func (*BlockQuery) WithCursor ¶
func (q *BlockQuery) WithCursor(c uint64) TableQuery
func (*BlockQuery) WithDesc ¶
func (q *BlockQuery) WithDesc() TableQuery
func (*BlockQuery) WithFilter ¶
func (q *BlockQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*BlockQuery) WithFormat ¶
func (q *BlockQuery) WithFormat(format FormatType) TableQuery
func (*BlockQuery) WithLimit ¶
func (q *BlockQuery) WithLimit(limit int) TableQuery
func (*BlockQuery) WithOrder ¶
func (q *BlockQuery) WithOrder(order OrderType) TableQuery
func (*BlockQuery) WithPrim ¶
func (q *BlockQuery) WithPrim() TableQuery
func (*BlockQuery) WithQuiet ¶
func (q *BlockQuery) WithQuiet() TableQuery
func (*BlockQuery) WithVerbose ¶
func (q *BlockQuery) WithVerbose() TableQuery
type BlockchainConfig ¶
type BlockchainConfig struct { Name string `json:"name"` Network string `json:"network"` Symbol string `json:"symbol"` ChainId string `json:"chain_id"` Deployment int `json:"deployment"` Version int `json:"version"` Protocol string `json:"protocol"` StartHeight int64 `json:"start_height"` EndHeight int64 `json:"end_height"` Decimals int `json:"decimals"` MinimalStake float64 `json:"minimal_stake"` PreservedCycles int64 `json:"preserved_cycles"` MinimalBlockDelay int `json:"minimal_block_delay"` DelayIncrementPerRound int `json:"delay_increment_per_round"` }
type Candle ¶
type Candle struct { Timestamp time.Time `json:"time"` Open float64 `json:"open"` High float64 `json:"high"` Low float64 `json:"low"` Close float64 `json:"close"` Vwap float64 `json:"vwap"` NTrades int64 `json:"n_trades"` NBuy int64 `json:"n_buy"` NSell int64 `json:"n_sell"` VolumeBase float64 `json:"vol_base"` VolumeQuote float64 `json:"vol_quote"` VolumeBuyBase float64 `json:"vol_buy_base"` VolumeBuyQuote float64 `json:"vol_buy_quote"` VolumeSellBase float64 `json:"vol_sell_base"` VolumeSellQuote float64 `json:"vol_sell_quote"` // contains filtered or unexported fields }
func (*Candle) UnmarshalJSON ¶
func (*Candle) UnmarshalJSONBrief ¶
type CandleArgs ¶
type CandleArgs struct { Market string Pair string Collapse time.Duration Fill FillMode Columns []string From time.Time To time.Time Limit int }
func (CandleArgs) Url ¶
func (c CandleArgs) Url(p BaseParams) string
type CandleList ¶
func (CandleList) Len ¶
func (l CandleList) Len() int
func (*CandleList) UnmarshalJSON ¶
func (l *CandleList) UnmarshalJSON(data []byte) error
type Chain ¶
type Chain struct { RowId uint64 `json:"row_id"` Height int64 `json:"height"` Cycle int64 `json:"cycle"` Timestamp time.Time `json:"time"` TotalAccounts int64 `json:"total_accounts"` TotalContracts int64 `json:"total_contracts"` TotalRollups int64 `json:"total_rollups"` TotalOps int64 `json:"total_ops"` TotalOpsFailed int64 `json:"total_ops_failed"` TotalContractOps int64 `json:"total_contract_ops"` TotalContractCalls int64 `json:"total_contract_calls"` TotalRollupCalls int64 `json:"total_rollup_calls"` TotalActivations int64 `json:"total_activations"` TotalNonces int64 `json:"total_nonce_revelations"` TotalEndorsements int64 `json:"total_endorsements"` TotalPreendorsements int64 `json:"total_preendorsements"` TotalDoubleBake int64 `json:"total_double_bakings"` TotalDoubleEndorse int64 `json:"total_double_endorsements"` TotalDelegations int64 `json:"total_delegations"` TotalReveals int64 `json:"total_reveals"` TotalOriginations int64 `json:"total_originations"` TotalTransactions int64 `json:"total_transactions"` TotalProposals int64 `json:"total_proposals"` TotalBallots int64 `json:"total_ballots"` TotalConstants int64 `json:"total_constants"` TotalSetLimits int64 `json:"total_set_limits"` TotalStorageBytes int64 `json:"total_storage_bytes"` TotalTicketTransfers int64 `json:"total_ticket_transfers"` FundedAccounts int64 `json:"funded_accounts"` DustAccounts int64 `json:"dust_accounts"` GhostAccounts int64 `json:"ghost_accounts"` UnclaimedAccounts int64 `json:"unclaimed_accounts"` TotalDelegators int64 `json:"total_delegators"` ActiveDelegators int64 `json:"active_delegators"` InactiveDelegators int64 `json:"inactive_delegators"` DustDelegators int64 `json:"dust_delegators"` TotalBakers int64 `json:"total_bakers"` ActiveBakers int64 `json:"active_bakers"` InactiveBakers int64 `json:"inactive_bakers"` ZeroBakers int64 `json:"zero_bakers"` SelfBakers int64 `json:"self_bakers"` SingleBakers int64 `json:"single_bakers"` MultiBakers int64 `json:"multi_bakers"` Rolls int64 `json:"rolls"` RollOwners int64 `json:"roll_owners"` // contains filtered or unexported fields }
func (*Chain) UnmarshalJSON ¶
func (*Chain) UnmarshalJSONBrief ¶
type ChainList ¶
type ChainList struct { Rows []*Chain // contains filtered or unexported fields }
func (*ChainList) UnmarshalJSON ¶
type ChainQuery ¶
type ChainQuery struct {
// contains filtered or unexported fields
}
func (*ChainQuery) ReplaceFilter ¶
func (q *ChainQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*ChainQuery) ResetFilter ¶
func (q *ChainQuery) ResetFilter() TableQuery
func (*ChainQuery) WithColumns ¶
func (q *ChainQuery) WithColumns(cols ...string) TableQuery
func (*ChainQuery) WithCursor ¶
func (q *ChainQuery) WithCursor(c uint64) TableQuery
func (*ChainQuery) WithDesc ¶
func (q *ChainQuery) WithDesc() TableQuery
func (*ChainQuery) WithFilter ¶
func (q *ChainQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*ChainQuery) WithFormat ¶
func (q *ChainQuery) WithFormat(format FormatType) TableQuery
func (*ChainQuery) WithLimit ¶
func (q *ChainQuery) WithLimit(limit int) TableQuery
func (*ChainQuery) WithOrder ¶
func (q *ChainQuery) WithOrder(order OrderType) TableQuery
func (*ChainQuery) WithPrim ¶
func (q *ChainQuery) WithPrim() TableQuery
func (*ChainQuery) WithQuiet ¶
func (q *ChainQuery) WithQuiet() TableQuery
func (*ChainQuery) WithVerbose ¶
func (q *ChainQuery) WithVerbose() TableQuery
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddCachedScript ¶
func (*Client) CreateMetadata ¶
func (*Client) DefaultHeaders ¶
func (*Client) GetAccount ¶
func (*Client) GetAccountContracts ¶
func (*Client) GetAccountMetadata ¶
func (*Client) GetAccountOps ¶
func (*Client) GetActivityReport ¶ added in v0.15.0
func (c *Client) GetActivityReport(ctx context.Context, params ReportParams) ([]*ActivityReport, error)
func (*Client) GetAgeReport ¶ added in v0.15.0
func (*Client) GetAllMetadataSchemas ¶
func (*Client) GetAssetMetadata ¶
func (*Client) GetBakerIncome ¶
func (c *Client) GetBakerIncome(ctx context.Context, addr tezos.Address, cycle int64, params BakerParams) (*CycleIncome, error)
func (*Client) GetBakerSnapshot ¶
func (c *Client) GetBakerSnapshot(ctx context.Context, addr tezos.Address, cycle int64, params BakerParams) (*CycleSnapshot, error)
func (*Client) GetBalanceReport ¶ added in v0.15.0
func (c *Client) GetBalanceReport(ctx context.Context, params ReportParams) ([]*BalanceReport, error)
func (*Client) GetBigmapValue ¶
func (c *Client) GetBigmapValue(ctx context.Context, id int64, key string, params ContractParams) (*BigmapValue, error)
func (*Client) GetBlockHeight ¶
func (*Client) GetBlockOps ¶
func (*Client) GetBlockWithOps ¶
func (*Client) GetConfig ¶
func (c *Client) GetConfig(ctx context.Context) (*BlockchainConfig, error)
func (*Client) GetConfigHeight ¶
func (*Client) GetConstant ¶
func (*Client) GetContract ¶
func (*Client) GetContractScript ¶
func (c *Client) GetContractScript(ctx context.Context, addr tezos.Address, params ContractParams) (*ContractScript, error)
func (*Client) GetContractStorage ¶
func (c *Client) GetContractStorage(ctx context.Context, addr tezos.Address, params ContractParams) (*ContractValue, error)
func (*Client) GetDexPool ¶ added in v0.15.0
func (*Client) GetDexTicker ¶ added in v0.16.0
func (*Client) GetElection ¶
func (*Client) GetIpfsData ¶
func (*Client) GetIpfsImage ¶
func (*Client) GetMetadataSchema ¶
func (*Client) GetOpReport ¶ added in v0.15.0
func (*Client) GetSetsReport ¶ added in v0.15.0
func (c *Client) GetSetsReport(ctx context.Context, params ReportParams) ([]*SetsReport, error)
func (*Client) GetSupplyReport ¶ added in v0.15.0
func (c *Client) GetSupplyReport(ctx context.Context, params ReportParams) ([]*SupplyReport, error)
func (*Client) ListBakerDelegations ¶
func (*Client) ListBakerEndorsements ¶
func (*Client) ListBakerRights ¶
func (c *Client) ListBakerRights(ctx context.Context, addr tezos.Address, cycle int64, params BakerParams) (*CycleRights, error)
func (*Client) ListBakerVotes ¶
func (*Client) ListBakers ¶
func (*Client) ListBallots ¶
func (*Client) ListBigmapKeyUpdates ¶
func (c *Client) ListBigmapKeyUpdates(ctx context.Context, id int64, key string, params ContractParams) ([]BigmapUpdate, error)
func (*Client) ListBigmapKeys ¶
func (*Client) ListBigmapUpdates ¶
func (c *Client) ListBigmapUpdates(ctx context.Context, id int64, params ContractParams) ([]BigmapUpdate, error)
func (*Client) ListBigmapValues ¶
func (c *Client) ListBigmapValues(ctx context.Context, id int64, params ContractParams) ([]BigmapValue, error)
func (*Client) ListCandles ¶
func (c *Client) ListCandles(ctx context.Context, args CandleArgs) (*CandleList, error)
func (*Client) ListContractCalls ¶
func (*Client) ListDexEvents ¶ added in v0.16.0
func (*Client) ListDexPoolEvents ¶ added in v0.16.0
func (*Client) ListDexPoolTrades ¶ added in v0.15.0
func (*Client) ListDexPools ¶ added in v0.15.0
func (*Client) ListDexTickers ¶ added in v0.16.0
func (*Client) ListDexTrades ¶ added in v0.15.0
func (*Client) ListMetadata ¶
func (*Client) ListProtocols ¶
func (c *Client) ListProtocols(ctx context.Context) ([]Deployment, error)
func (*Client) ListTokenEvents ¶ added in v0.15.0
func (c *Client) ListTokenEvents(ctx context.Context, params TokenParams) ([]*TokenEvent, error)
func (*Client) ListTokenOwners ¶ added in v0.15.0
func (c *Client) ListTokenOwners(ctx context.Context, addr tezos.Token, params TokenParams) ([]*TokenBalance, error)
func (*Client) ListTokens ¶ added in v0.15.0
func (*Client) ListVoters ¶
func (*Client) ListWalletBalances ¶ added in v0.16.2
func (c *Client) ListWalletBalances(ctx context.Context, addr tezos.Address, params TokenParams) ([]*TokenBalance, error)
func (*Client) NewAccountQuery ¶
func (c *Client) NewAccountQuery() AccountQuery
func (*Client) NewBigmapQuery ¶
func (c *Client) NewBigmapQuery() BigmapQuery
func (*Client) NewBigmapUpdateQuery ¶
func (c *Client) NewBigmapUpdateQuery() BigmapUpdateQuery
func (*Client) NewBigmapValueQuery ¶
func (c *Client) NewBigmapValueQuery() BigmapValueQuery
func (*Client) NewBlockQuery ¶
func (c *Client) NewBlockQuery() BlockQuery
func (*Client) NewChainQuery ¶
func (c *Client) NewChainQuery() ChainQuery
func (*Client) NewConstantQuery ¶
func (c *Client) NewConstantQuery() ConstantQuery
func (*Client) NewContractQuery ¶
func (c *Client) NewContractQuery() ContractQuery
func (*Client) NewCycleRightsQuery ¶
func (c *Client) NewCycleRightsQuery() CycleRightsQuery
func (*Client) NewEventQuery ¶
func (c *Client) NewEventQuery() EventQuery
func (*Client) NewIncomeQuery ¶ added in v0.15.0
func (c *Client) NewIncomeQuery() IncomeQuery
func (*Client) NewOpQuery ¶
func (*Client) NewSnapshotQuery ¶
func (c *Client) NewSnapshotQuery() SnapshotQuery
func (*Client) QueryAccounts ¶
func (c *Client) QueryAccounts(ctx context.Context, filter FilterList, cols []string) (*AccountList, error)
func (*Client) QueryBigmapUpdates ¶
func (c *Client) QueryBigmapUpdates(ctx context.Context, filter FilterList, cols []string) (*BigmapUpdateRowList, error)
func (*Client) QueryBigmapValues ¶
func (c *Client) QueryBigmapValues(ctx context.Context, filter FilterList, cols []string) (*BigmapValueRowList, error)
func (*Client) QueryBigmaps ¶
func (c *Client) QueryBigmaps(ctx context.Context, filter FilterList, cols []string) (*BigmapRowList, error)
func (*Client) QueryBlocks ¶
func (*Client) QueryChains ¶
func (*Client) QueryConstants ¶
func (c *Client) QueryConstants(ctx context.Context, filter FilterList, cols []string) (*ConstantList, error)
func (*Client) QueryContracts ¶
func (c *Client) QueryContracts(ctx context.Context, filter FilterList, cols []string) (*ContractList, error)
func (*Client) QueryCycleRights ¶
func (c *Client) QueryCycleRights(ctx context.Context, filter FilterList, cols []string) (*CycleRightsList, error)
func (*Client) QueryEvents ¶
func (*Client) QueryIncome ¶ added in v0.15.0
func (c *Client) QueryIncome(ctx context.Context, filter FilterList, cols []string) (*IncomeList, error)
func (*Client) QuerySnapshots ¶
func (c *Client) QuerySnapshots(ctx context.Context, filter FilterList, cols []string) (*SnapshotList, error)
func (*Client) QueryTable ¶
func (*Client) RemoveAccountMetadata ¶
func (*Client) RemoveAssetMetadata ¶
func (Client) RetryDelay ¶ added in v0.15.0
func (*Client) StreamTable ¶
func (c *Client) StreamTable(ctx context.Context, q TableQuery, w io.Writer) (StreamResponse, error)
func (*Client) UpdateMetadata ¶
func (*Client) UseScriptCache ¶
func (c *Client) UseScriptCache(cache *lru.TwoQueueCache)
func (*Client) WithApiKey ¶ added in v0.16.0
func (*Client) WithCacheSize ¶ added in v0.15.0
func (*Client) WithHeader ¶ added in v0.15.0
func (*Client) WithMarketUrl ¶ added in v0.15.0
func (*Client) WithUserAgent ¶ added in v0.15.0
type Constant ¶
type Constant struct { RowId uint64 `json:"row_id"` Address tezos.ExprHash `json:"address"` CreatorId uint64 `json:"creator_id"` Creator tezos.Address `json:"creator"` Height int64 `json:"height"` Time time.Time `json:"time"` StorageSize int64 `json:"storage_size"` Value micheline.Prim `json:"value"` Features []string `json:"features"` // contains filtered or unexported fields }
func (*Constant) UnmarshalJSON ¶
func (*Constant) UnmarshalJSONBrief ¶
type ConstantList ¶
type ConstantList struct { Rows []*Constant // contains filtered or unexported fields }
func (ConstantList) Cursor ¶
func (l ConstantList) Cursor() uint64
func (ConstantList) Len ¶
func (l ConstantList) Len() int
func (*ConstantList) UnmarshalJSON ¶
func (l *ConstantList) UnmarshalJSON(data []byte) error
type ConstantParams ¶
func NewConstantParams ¶
func NewConstantParams() ConstantParams
type ConstantQuery ¶
type ConstantQuery struct {
// contains filtered or unexported fields
}
func (*ConstantQuery) ReplaceFilter ¶
func (q *ConstantQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*ConstantQuery) ResetFilter ¶
func (q *ConstantQuery) ResetFilter() TableQuery
func (ConstantQuery) Run ¶
func (q ConstantQuery) Run(ctx context.Context) (*ConstantList, error)
func (*ConstantQuery) WithColumns ¶
func (q *ConstantQuery) WithColumns(cols ...string) TableQuery
func (*ConstantQuery) WithCursor ¶
func (q *ConstantQuery) WithCursor(c uint64) TableQuery
func (*ConstantQuery) WithDesc ¶
func (q *ConstantQuery) WithDesc() TableQuery
func (*ConstantQuery) WithFilter ¶
func (q *ConstantQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*ConstantQuery) WithFormat ¶
func (q *ConstantQuery) WithFormat(format FormatType) TableQuery
func (*ConstantQuery) WithLimit ¶
func (q *ConstantQuery) WithLimit(limit int) TableQuery
func (*ConstantQuery) WithOrder ¶
func (q *ConstantQuery) WithOrder(order OrderType) TableQuery
func (*ConstantQuery) WithPrim ¶
func (q *ConstantQuery) WithPrim() TableQuery
func (*ConstantQuery) WithQuiet ¶
func (q *ConstantQuery) WithQuiet() TableQuery
func (*ConstantQuery) WithVerbose ¶
func (q *ConstantQuery) WithVerbose() TableQuery
type Contract ¶
type Contract struct { RowId uint64 `json:"row_id,omitempty"` AccountId uint64 `json:"account_id,omitempty"` Address tezos.Address `json:"address"` CreatorId uint64 `json:"creator_id,omitempty"` Creator tezos.Address `json:"creator"` BakerId uint64 `json:"baker_id,omitempty" tzpro:"notable"` Baker tezos.Address `json:"baker" tzpro:"notable"` FirstSeen int64 `json:"first_seen"` LastSeen int64 `json:"last_seen"` FirstSeenTime time.Time `json:"first_seen_time"` LastSeenTime time.Time `json:"last_seen_time"` StorageSize int64 `json:"storage_size"` StoragePaid int64 `json:"storage_paid"` TotalFeesUsed float64 `json:"total_fees_used" tzpro:"notable"` Script *micheline.Script `json:"script,omitempty"` Storage *micheline.Prim `json:"storage,omitempty"` InterfaceHash string `json:"iface_hash"` CodeHash string `json:"code_hash"` StorageHash string `json:"storage_hash"` Features []string `json:"features"` Interfaces []string `json:"interfaces"` CallStats map[string]int `json:"call_stats"` NCallsIn int `json:"n_calls_in" tzpro:"notable"` NCallsOut int `json:"n_calls_out" tzpro:"notable"` NCallsFailed int `json:"n_calls_failed" tzpro:"notable"` Bigmaps map[string]int64 `json:"bigmaps,omitempty" tzpro:"notable"` Metadata map[string]*Metadata `json:"metadata,omitempty" tzpro:"notable"` // contains filtered or unexported fields }
func (*Contract) UnmarshalJSON ¶
func (*Contract) UnmarshalJSONBrief ¶
type ContractList ¶
type ContractList struct { Rows []*Contract // contains filtered or unexported fields }
func (ContractList) Cursor ¶
func (l ContractList) Cursor() uint64
func (ContractList) Len ¶
func (l ContractList) Len() int
func (*ContractList) UnmarshalJSON ¶
func (l *ContractList) UnmarshalJSON(data []byte) error
type ContractMeta ¶
type ContractParameters ¶
type ContractParameters struct { ContractValue // contract Entrypoint string `json:"entrypoint"` // contract L2Address *tezos.Address `json:"l2_address,omitempty"` // rollup Method string `json:"method,omitempty"` // rollup Arguments json.RawMessage `json:"arguments,omitempty"` // rollup }
type ContractParams ¶
func NewContractParams ¶
func NewContractParams() ContractParams
type ContractQuery ¶
type ContractQuery struct {
// contains filtered or unexported fields
}
func (*ContractQuery) ReplaceFilter ¶
func (q *ContractQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*ContractQuery) ResetFilter ¶
func (q *ContractQuery) ResetFilter() TableQuery
func (ContractQuery) Run ¶
func (q ContractQuery) Run(ctx context.Context) (*ContractList, error)
func (*ContractQuery) WithColumns ¶
func (q *ContractQuery) WithColumns(cols ...string) TableQuery
func (*ContractQuery) WithCursor ¶
func (q *ContractQuery) WithCursor(c uint64) TableQuery
func (*ContractQuery) WithDesc ¶
func (q *ContractQuery) WithDesc() TableQuery
func (*ContractQuery) WithFilter ¶
func (q *ContractQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*ContractQuery) WithFormat ¶
func (q *ContractQuery) WithFormat(format FormatType) TableQuery
func (*ContractQuery) WithLimit ¶
func (q *ContractQuery) WithLimit(limit int) TableQuery
func (*ContractQuery) WithOrder ¶
func (q *ContractQuery) WithOrder(order OrderType) TableQuery
func (*ContractQuery) WithPrim ¶
func (q *ContractQuery) WithPrim() TableQuery
func (*ContractQuery) WithQuiet ¶
func (q *ContractQuery) WithQuiet() TableQuery
func (*ContractQuery) WithVerbose ¶
func (q *ContractQuery) WithVerbose() TableQuery
type ContractScript ¶
type ContractScript struct { Script *micheline.Script `json:"script,omitempty"` StorageType micheline.Typedef `json:"storage_type"` Entrypoints micheline.Entrypoints `json:"entrypoints"` Views micheline.Views `json:"views,omitempty"` BigmapNames map[string]int64 `json:"bigmaps,omitempty"` BigmapTypes map[string]micheline.Type `json:"bigmap_types,omitempty"` BigmapTypesById map[int64]micheline.Type `json:"-"` }
func (ContractScript) Types ¶
func (s ContractScript) Types() (param, store micheline.Type, eps micheline.Entrypoints, bigmaps map[int64]micheline.Type)
type ContractValue ¶
type ContractValue struct { Value any `json:"value,omitempty"` Prim *micheline.Prim `json:"prim,omitempty"` }
func (ContractValue) GetAddress ¶
func (v ContractValue) GetAddress(path string) (tezos.Address, bool)
func (ContractValue) GetValue ¶
func (v ContractValue) GetValue(path string) (interface{}, bool)
func (ContractValue) GetZ ¶ added in v0.15.0
func (v ContractValue) GetZ(path string) (tezos.Z, bool)
func (ContractValue) Has ¶
func (v ContractValue) Has(path string) bool
func (ContractValue) IsPrim ¶
func (v ContractValue) IsPrim() bool
func (ContractValue) Unmarshal ¶
func (v ContractValue) Unmarshal(val interface{}) error
func (ContractValue) Walk ¶
func (v ContractValue) Walk(path string, fn ValueWalkerFunc) error
type Costs ¶
type Costs struct { Fee float64 // the total fee paid Burn float64 // total amount burned (not included in fee) GasUsed int64 // gas used StorageUsed int64 // new storage bytes allocated StorageBurn float64 // burned for allocating new storage (not included in fee) AllocationBurn float64 // burned for allocating a new account (not included in fee) }
type CycleIncome ¶
type CycleIncome struct { Cycle int64 `json:"cycle"` Rolls int64 `json:"snapshot_rolls"` Balance float64 `json:"own_balance"` Delegated float64 `json:"delegated_balance"` Staking float64 `json:"staking_balance"` NDelegations int64 `json:"n_delegations"` NBakingRights int64 `json:"n_baking_rights"` NEndorsingRights int64 `json:"n_endorsing_rights"` Luck float64 `json:"luck"` LuckPct int64 `json:"luck_percent"` ContributionPct int64 `json:"contribution_percent"` PerformancePct int64 `json:"performance_percent"` NBlocksBaked int64 `json:"n_blocks_baked"` NBlocksProposed int64 `json:"n_blocks_proposed"` NBlocksNotBaked int64 `json:"n_blocks_not_baked"` NBlocksEndorsed int64 `json:"n_blocks_endorsed"` NBlocksNotEndorsed int64 `json:"n_blocks_not_endorsed"` NSlotsEndorsed int64 `json:"n_slots_endorsed"` NSeedsRevealed int64 `json:"n_seeds_revealed"` ExpectedIncome float64 `json:"expected_income"` TotalIncome float64 `json:"total_income"` TotalDeposits float64 `json:"total_deposits"` BakingIncome float64 `json:"baking_income"` EndorsingIncome float64 `json:"endorsing_income"` AccusationIncome float64 `json:"accusation_income"` SeedIncome float64 `json:"seed_income"` FeesIncome float64 `json:"fees_income"` TotalLoss float64 `json:"total_loss"` AccusationLoss float64 `json:"accusation_loss"` SeedLoss float64 `json:"seed_loss"` EndorsingLoss float64 `json:"endorsing_loss"` LostAccusationFees float64 `json:"lost_accusation_fees"` LostAccusationRewards float64 `json:"lost_accusation_rewards"` LostAccusationDeposits float64 `json:"lost_accusation_deposits"` LostSeedFees float64 `json:"lost_seed_fees"` LostSeedRewards float64 `json:"lost_seed_rewards"` }
type CycleRights ¶
type CycleRights struct { RowId uint64 `json:"row_id"` Cycle int64 `json:"cycle"` Height int64 `json:"height"` AccountId uint64 `json:"account_id"` Address tezos.Address `json:"address"` Bake tezos.HexBytes `json:"baking_rights"` Endorse tezos.HexBytes `json:"endorsing_rights"` Baked tezos.HexBytes `json:"blocks_baked"` Endorsed tezos.HexBytes `json:"blocks_endorsed"` Seed tezos.HexBytes `json:"seeds_required"` Seeded tezos.HexBytes `json:"seeds_revealed"` // contains filtered or unexported fields }
func (CycleRights) IsLost ¶
func (r CycleRights) IsLost(pos int) bool
func (CycleRights) IsMissed ¶
func (r CycleRights) IsMissed(pos int) bool
func (CycleRights) IsSeedRequired ¶
func (r CycleRights) IsSeedRequired(pos int) bool
func (CycleRights) IsSeedRevealed ¶
func (r CycleRights) IsSeedRevealed(pos int) bool
func (CycleRights) IsStolen ¶
func (r CycleRights) IsStolen(pos int) bool
func (CycleRights) IsUsed ¶
func (r CycleRights) IsUsed(pos int) bool
func (CycleRights) Pos ¶
func (r CycleRights) Pos(height int64) int
func (*CycleRights) UnmarshalJSON ¶
func (r *CycleRights) UnmarshalJSON(data []byte) error
func (*CycleRights) UnmarshalJSONBrief ¶
func (r *CycleRights) UnmarshalJSONBrief(data []byte) error
type CycleRightsList ¶
type CycleRightsList struct { Rows []*CycleRights // contains filtered or unexported fields }
func (CycleRightsList) Cursor ¶
func (l CycleRightsList) Cursor() uint64
func (CycleRightsList) Len ¶
func (l CycleRightsList) Len() int
func (*CycleRightsList) UnmarshalJSON ¶
func (l *CycleRightsList) UnmarshalJSON(data []byte) error
type CycleRightsQuery ¶
type CycleRightsQuery struct {
// contains filtered or unexported fields
}
func (*CycleRightsQuery) ReplaceFilter ¶
func (q *CycleRightsQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*CycleRightsQuery) ResetFilter ¶
func (q *CycleRightsQuery) ResetFilter() TableQuery
func (CycleRightsQuery) Run ¶
func (q CycleRightsQuery) Run(ctx context.Context) (*CycleRightsList, error)
func (*CycleRightsQuery) WithColumns ¶
func (q *CycleRightsQuery) WithColumns(cols ...string) TableQuery
func (*CycleRightsQuery) WithCursor ¶
func (q *CycleRightsQuery) WithCursor(c uint64) TableQuery
func (*CycleRightsQuery) WithDesc ¶
func (q *CycleRightsQuery) WithDesc() TableQuery
func (*CycleRightsQuery) WithFilter ¶
func (q *CycleRightsQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*CycleRightsQuery) WithFormat ¶
func (q *CycleRightsQuery) WithFormat(format FormatType) TableQuery
func (*CycleRightsQuery) WithLimit ¶
func (q *CycleRightsQuery) WithLimit(limit int) TableQuery
func (*CycleRightsQuery) WithOrder ¶
func (q *CycleRightsQuery) WithOrder(order OrderType) TableQuery
func (*CycleRightsQuery) WithPrim ¶
func (q *CycleRightsQuery) WithPrim() TableQuery
func (*CycleRightsQuery) WithQuiet ¶
func (q *CycleRightsQuery) WithQuiet() TableQuery
func (*CycleRightsQuery) WithVerbose ¶
func (q *CycleRightsQuery) WithVerbose() TableQuery
type CycleSnapshot ¶
type CycleSnapshot struct { BakeCycle int64 `json:"baking_cycle"` Height int64 `json:"snapshot_height"` Cycle int64 `json:"snapshot_cycle"` Timestamp time.Time `json:"snapshot_time"` Index int `json:"snapshot_index"` Rolls int64 `json:"snapshot_rolls"` ActiveStake int64 `json:"active_stake"` StakingBalance int64 `json:"staking_balance"` OwnBalance int64 `json:"own_balance"` DelegatedBalance int64 `json:"delegated_balance"` NDelegations int64 `json:"n_delegations"` ExpectedIncome int64 `json:"expected_income"` TotalIncome int64 `json:"total_income"` TotalDeposits int64 `json:"total_deposits"` BakingIncome int64 `json:"baking_income"` EndorsingIncome int64 `json:"endorsing_income"` AccusationIncome int64 `json:"accusation_income"` SeedIncome int64 `json:"seed_income"` FeesIncome int64 `json:"fees_income"` TotalLoss int64 `json:"total_loss"` AccusationLoss int64 `json:"accusation_loss"` SeedLoss int64 `json:"seed_loss"` EndorsingLoss int64 `json:"endorsing_loss"` LostAccusationFees int64 `json:"lost_accusation_fees"` LostAccusationRewards int64 `json:"lost_accusation_rewards"` LostAccusationDeposits int64 `json:"lost_accusation_deposits"` LostSeedFees int64 `json:"lost_seed_fees"` LostSeedRewards int64 `json:"lost_seed_rewards"` Delegators []Delegator `json:"delegators"` }
type Deployment ¶
type DexEvent ¶ added in v0.16.0
type DexEvent struct { Id uint64 `json:"id"` Contract string `json:"contract"` PairId int64 `json:"pair_id"` Name string `json:"name"` Entity string `json:"entity"` Pair string `json:"pair"` Type string `json:"event_type"` VolumeA tezos.Z `json:"vol_token_a"` VolumeB tezos.Z `json:"vol_token_b"` VolumeLP tezos.Z `json:"vol_lp"` DecimalsA int `json:"decimals_a"` DecimalsB int `json:"decimals_b"` DecimalsLP int `json:"decimals_lp"` SupplyA tezos.Z `json:"supply_a"` SupplyB tezos.Z `json:"supply_b"` SupplyLP tezos.Z `json:"supply_lp"` Signer string `json:"signer"` Sender string `json:"sender"` Receiver string `json:"receiver"` TxHash tezos.OpHash `json:"tx_hash"` TxFee int64 `json:"tx_fee"` Block int64 `json:"block"` Time time.Time `json:"time"` }
type DexEventParams ¶ added in v0.16.0
func NewDexEventParams ¶ added in v0.16.0
func NewDexEventParams() DexEventParams
type DexMetadata ¶
type DexMetadata struct { Kind string `json:"kind"` // quipu_v1, quipu_token, quipu_v2, vortex, .. TradingFee float64 `json:"trading_fee,omitempty"` // trading fee ExitFee float64 `json:"exit_fee,omitempty"` // remove liquidity fee Url string `json:"url,omitempty"` // homepage Pairs []DexPair `json:"pairs"` // trading pairs }
AMM and other decentralized exchanges
type DexPool ¶ added in v0.15.0
type DexPool struct { Id uint64 `json:"id"` Contract tezos.Address `json:"contract"` PairId int `json:"pair_id"` Creator string `json:"creator"` Name string `json:"name"` Entity string `json:"entity"` Pair string `json:"pair"` NumTokens int `json:"num_tokens"` TokenA *Token `json:"token_a"` TokenB *Token `json:"token_b"` TokenLP *Token `json:"token_lp"` FirstBlock int64 `json:"first_block"` FirstTime time.Time `json:"first_time"` Tags []string `json:"tags"` SupplyA tezos.Z `json:"supply_a"` SupplyB tezos.Z `json:"supply_b"` SupplyLP tezos.Z `json:"supply_lp"` LastChangeBlock int64 `json:"last_change_block"` LastChangeTime time.Time `json:"last_change_time"` NumTrades int `json:"num_trades"` FeesBps float64 `json:"fees_bps,string"` Price float64 `json:"price,string"` PriceUSD float64 `json:"price_usd,string"` LiquidityUSD float64 `json:"liquidity_usd,string"` }
type DexPoolParams ¶ added in v0.15.0
func NewDexPoolParams ¶ added in v0.15.0
func NewDexPoolParams() DexPoolParams
type DexTicker ¶ added in v0.16.0
type DexTicker struct { Pair string `json:"pair"` Pool string `json:"pool"` Name string `json:"name"` Entity string `json:"entity"` PriceChange string `json:"price_change"` PriceChangeBps string `json:"price_change_bps"` AskPrice string `json:"ask_price"` WeightedAvgPrice string `json:"weighted_avg_price"` LastPrice string `json:"last_price"` LastQty string `json:"last_qty"` LastTradeTime string `json:"last_trade_time"` BaseVolume string `json:"base_volume"` QuoteVolume string `json:"quote_volume"` OpenPrice string `json:"open_price"` HighPrice string `json:"high_price"` LowPrice string `json:"low_price"` OpenTime time.Time `json:"open_time"` CloseTime time.Time `json:"close_time"` NumTrades int `json:"num_trades"` LiquidityUSD string `json:"liquidity_usd"` PriceUSD string `json:"price_usd"` }
type DexTickerParams ¶ added in v0.16.0
func NewDexTickerParams ¶ added in v0.16.0
func NewDexTickerParams() DexTickerParams
type DexTrade ¶ added in v0.15.0
type DexTrade struct { Id uint64 `json:"id"` Contract string `json:"contract"` PairId int64 `json:"pair_id"` Name string `json:"name"` Entity string `json:"entity"` Pair string `json:"pair"` Counter int64 `json:"counter"` Side string `json:"side"` BaseVolume tezos.Z `json:"base_volume"` BaseSymbol string `json:"base_symbol"` BaseDecimals int `json:"base_decimals"` QuoteVolume tezos.Z `json:"quote_volume"` QuoteSymbol string `json:"quote_symbol"` QuoteDecimals int `json:"quote_decimals"` LpFee tezos.Z `json:"lp_fee"` LpFeeBps float64 `json:"lp_fee_bps,string"` LpFeeSymbol string `json:"lp_fee_symbol"` LpFeeDecimals int `json:"lp_fee_decimals"` DevFee tezos.Z `json:"dev_fee"` DevFeeBps float64 `json:"dev_fee_bps,string"` DevFeeSymbol string `json:"dev_fee_symbol"` DevFeeDecimals int `json:"dev_fee_decimals"` RefFee tezos.Z `json:"referral_fee"` RefFeeBps float64 `json:"referral_fee_bps,string"` RefFeeSymbol string `json:"referral_fee_symbol"` RefFeeDecimals int `json:"referral_fee_decimals"` IncFee tezos.Z `json:"incentive_fee"` IncFeeBps float64 `json:"incentive_fee_bps,string"` IncFeeSymbol string `json:"incentive_fee_symbol"` IncFeeDecimals int `json:"incentive_fee_decimals"` Burn tezos.Z `json:"burn"` BurnBps float64 `json:"burn_bps,string"` BurnSymbol string `json:"burn_symbol"` BurnDecimals int `json:"burn_decimals"` PriceSymbol string `json:"price_symbol"` PriceDecimals int `json:"price_decimals"` PriceNet tezos.Z `json:"price_net"` // including fees PriceGross tezos.Z `json:"price_gross"` // excluding fees PriceBefore tezos.Z `json:"price_before"` // marginal price before execution PriceAfter tezos.Z `json:"price_after"` // marginal price after execution Delta float64 `json:"price_delta_bps,string"` // price delta (in basispoints) between mid price and execution price Impact float64 `json:"price_impact_bps,string"` // price impact (in basispoints) between mid price and next mid price Signer string `json:"signer"` Sender string `json:"sender"` Receiver string `json:"receiver"` IsWash bool `json:"is_wash_trade"` TxHash tezos.OpHash `json:"tx_hash"` TxFee int64 `json:"tx_fee,string"` TxFeeSymbol string `json:"tx_fee_symbol"` TxFeeDecimals int `json:"tx_fee_decimals"` Block int64 `json:"block"` Time time.Time `json:"time"` PriceUSD tezos.Z `json:"price_usd"` FeesUSD tezos.Z `json:"fees_usd"` VolumeUSD tezos.Z `json:"volume_usd"` }
type DexTradeParams ¶ added in v0.15.0
func NewDexTradeParams ¶ added in v0.15.0
func NewDexTradeParams() DexTradeParams
type DomainMetadata ¶
type DomainMetadata struct { Name string `json:"name"` Records []DomainRecord `json:"records,omitempty"` }
type DomainRecord ¶
type Election ¶
type Election struct { Id int `json:"election_id"` NumPeriods int `json:"num_periods"` NumProposals int `json:"num_proposals"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` StartHeight int64 `json:"start_height"` EndHeight int64 `json:"end_height"` IsEmpty bool `json:"is_empty"` IsOpen bool `json:"is_open"` IsFailed bool `json:"is_failed"` NoQuorum bool `json:"no_quorum"` NoMajority bool `json:"no_majority"` NoProposal bool `json:"no_proposal"` VotingPeriodKind tezos.VotingPeriodKind `json:"voting_period"` ProposalPeriod *Vote `json:"proposal"` ExplorationPeriod *Vote `json:"exploration"` CooldownPeriod *Vote `json:"cooldown"` PromotionPeriod *Vote `json:"promotion"` AdoptionPeriod *Vote `json:"adoption"` }
type ErrRateLimited ¶
type ErrRateLimited struct { Status int IsResponseError bool Header http.Header // contains filtered or unexported fields }
func IsErrRateLimited ¶
func IsErrRateLimited(err error) (ErrRateLimited, bool)
func NewErrRateLimited ¶
func NewErrRateLimited(d time.Duration, isResponse bool) ErrRateLimited
func (ErrRateLimited) Deadline ¶
func (e ErrRateLimited) Deadline() time.Duration
func (ErrRateLimited) Done ¶
func (e ErrRateLimited) Done() <-chan struct{}
func (ErrRateLimited) Error ¶
func (e ErrRateLimited) Error() string
type Event ¶
type Event struct { // table API only RowId uint64 `json:"row_id"` AccountId uint64 `json:"account_id"` Height int64 `json:"height"` OpId uint64 `json:"op_id"` // table and explorer API Contract tezos.Address `json:"contract"` Type micheline.Prim `json:"type"` Payload micheline.Prim `json:"payload"` Tag string `json:"tag"` TypeHash string `json:"type_hash"` // contains filtered or unexported fields }
func (*Event) UnmarshalJSON ¶
func (*Event) UnmarshalJSONBrief ¶
type EventList ¶
type EventList struct { Rows []*Event // contains filtered or unexported fields }
func (*EventList) UnmarshalJSON ¶
type EventQuery ¶
type EventQuery struct {
// contains filtered or unexported fields
}
func (*EventQuery) ReplaceFilter ¶
func (q *EventQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*EventQuery) ResetFilter ¶
func (q *EventQuery) ResetFilter() TableQuery
func (*EventQuery) WithColumns ¶
func (q *EventQuery) WithColumns(cols ...string) TableQuery
func (*EventQuery) WithCursor ¶
func (q *EventQuery) WithCursor(c uint64) TableQuery
func (*EventQuery) WithDesc ¶
func (q *EventQuery) WithDesc() TableQuery
func (*EventQuery) WithFilter ¶
func (q *EventQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*EventQuery) WithFormat ¶
func (q *EventQuery) WithFormat(format FormatType) TableQuery
func (*EventQuery) WithLimit ¶
func (q *EventQuery) WithLimit(limit int) TableQuery
func (*EventQuery) WithOrder ¶
func (q *EventQuery) WithOrder(order OrderType) TableQuery
func (*EventQuery) WithPrim ¶
func (q *EventQuery) WithPrim() TableQuery
func (*EventQuery) WithQuiet ¶
func (q *EventQuery) WithQuiet() TableQuery
func (*EventQuery) WithVerbose ¶
func (q *EventQuery) WithVerbose() TableQuery
type FieldInfo ¶
FieldInfo holds details for the representation of a single field.
func (FieldInfo) ContainsFlag ¶
func (*FieldInfo) DerefIndirect ¶
Load value from interface, but only if the result will be usefully addressable.
type Filter ¶
type Filter struct { Mode FilterMode Column string Value any }
type FilterList ¶
type FilterList []Filter
func (*FilterList) Add ¶
func (l *FilterList) Add(mode FilterMode, col string, val ...any)
type FilterMode ¶
type FilterMode string
const ( FilterModeEqual FilterMode = "eq" FilterModeNotEqual FilterMode = "ne" FilterModeGt FilterMode = "gt" FilterModeGte FilterMode = "gte" FilterModeLt FilterMode = "lt" FilterModeLte FilterMode = "lte" FilterModeIn FilterMode = "in" FilterModeNotIn FilterMode = "nin" FilterModeRange FilterMode = "rg" FilterModeRegexp FilterMode = "re" )
type FormatType ¶
type FormatType string
const ( FormatJSON FormatType = "json" FormatCSV FormatType = "csv" )
type FutureResult ¶
type FutureResult chan *response
func (FutureResult) Done ¶
func (r FutureResult) Done() bool
type Head ¶
type Head struct { Hash tezos.BlockHash `json:"hash"` ParentHash tezos.BlockHash `json:"predecessor"` Height int64 `json:"height"` Cycle int64 `json:"cycle"` Timestamp time.Time `json:"time"` Baker tezos.Address `json:"baker"` Proposer tezos.Address `json:"proposer"` Round int `json:"round"` Nonce string `json:"nonce"` NOpsApplied int `json:"n_ops_applied"` NOpsFailed int `json:"n_ops_failed"` Volume float64 `json:"volume"` Fee float64 `json:"fee"` Reward float64 `json:"reward"` GasUsed int64 `json:"gas_used"` }
type HttpError ¶
func IsHttpError ¶
type Income ¶ added in v0.15.0
type Income struct { RowId uint64 `json:"row_id"` Cycle int64 `json:"cycle"` Address tezos.Address `json:"address"` AccountId uint64 `json:"account_id"` Rolls int64 `json:"rolls"` Balance float64 `json:"balance"` Delegated float64 `json:"delegated"` ActiveStake float64 `json:"active_stake"` NDelegations int64 `json:"n_delegations"` NBakingRights int64 `json:"n_baking_rights"` NEndorsingRights int64 `json:"n_endorsing_rights"` Luck float64 `json:"luck"` LuckPct float64 `json:"luck_percent"` ContributionPct float64 `json:"contribution_percent"` PerformancePct float64 `json:"performance_percent"` NBlocksBaked int64 `json:"n_blocks_baked"` NBlocksProposed int64 `json:"n_blocks_proposed"` NBlocksNotBaked int64 `json:"n_blocks_not_baked"` NBlocksEndorsed int64 `json:"n_blocks_endorsed"` NBlocksNotEndorsed int64 `json:"n_blocks_not_endorsed"` NSlotsEndorsed int64 `json:"n_slots_endorsed"` NSeedsRevealed int64 `json:"n_seeds_revealed"` ExpectedIncome float64 `json:"expected_income"` TotalIncome float64 `json:"total_income"` TotalDeposits float64 `json:"total_deposits"` BakingIncome float64 `json:"baking_income"` EndorsingIncome float64 `json:"endorsing_income"` AccusationIncome float64 `json:"accusation_income"` SeedIncome float64 `json:"seed_income"` FeesIncome float64 `json:"fees_income"` TotalLoss float64 `json:"total_loss"` AccusationLoss float64 `json:"accusation_loss"` SeedLoss float64 `json:"seed_loss"` EndorsingLoss float64 `json:"endorsing_loss"` LostAccusationFees float64 `json:"lost_accusation_fees"` LostAccusationRewards float64 `json:"lost_accusation_rewards"` LostAccusationDeposits float64 `json:"lost_accusation_deposits"` LostSeedFees float64 `json:"lost_seed_fees"` LostSeedRewards float64 `json:"lost_seed_rewards"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` // contains filtered or unexported fields }
func (*Income) UnmarshalJSON ¶ added in v0.15.0
func (*Income) UnmarshalJSONBrief ¶ added in v0.15.0
type IncomeList ¶ added in v0.15.0
type IncomeList struct { Rows []*Income // contains filtered or unexported fields }
func (IncomeList) Cursor ¶ added in v0.15.0
func (l IncomeList) Cursor() uint64
func (IncomeList) Len ¶ added in v0.15.0
func (l IncomeList) Len() int
func (*IncomeList) UnmarshalJSON ¶ added in v0.15.0
func (l *IncomeList) UnmarshalJSON(data []byte) error
type IncomeQuery ¶ added in v0.15.0
type IncomeQuery struct {
// contains filtered or unexported fields
}
func (*IncomeQuery) ReplaceFilter ¶ added in v0.15.0
func (q *IncomeQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*IncomeQuery) ResetFilter ¶ added in v0.15.0
func (q *IncomeQuery) ResetFilter() TableQuery
func (IncomeQuery) Run ¶ added in v0.15.0
func (q IncomeQuery) Run(ctx context.Context) (*IncomeList, error)
func (*IncomeQuery) WithColumns ¶ added in v0.15.0
func (q *IncomeQuery) WithColumns(cols ...string) TableQuery
func (*IncomeQuery) WithCursor ¶ added in v0.15.0
func (q *IncomeQuery) WithCursor(c uint64) TableQuery
func (*IncomeQuery) WithDesc ¶ added in v0.15.0
func (q *IncomeQuery) WithDesc() TableQuery
func (*IncomeQuery) WithFilter ¶ added in v0.15.0
func (q *IncomeQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*IncomeQuery) WithFormat ¶ added in v0.15.0
func (q *IncomeQuery) WithFormat(format FormatType) TableQuery
func (*IncomeQuery) WithLimit ¶ added in v0.15.0
func (q *IncomeQuery) WithLimit(limit int) TableQuery
func (*IncomeQuery) WithOrder ¶ added in v0.15.0
func (q *IncomeQuery) WithOrder(order OrderType) TableQuery
func (*IncomeQuery) WithPrim ¶ added in v0.15.0
func (q *IncomeQuery) WithPrim() TableQuery
func (*IncomeQuery) WithQuiet ¶ added in v0.15.0
func (q *IncomeQuery) WithQuiet() TableQuery
func (*IncomeQuery) WithVerbose ¶ added in v0.15.0
func (q *IncomeQuery) WithVerbose() TableQuery
type LocationMetadata ¶
type MediaMetadata ¶
type Metadata ¶
type Metadata struct { // address + id together are used as unique identifier Address tezos.Address `json:"address"` AssetId *int64 `json:"asset_id,omitempty"` Contents map[string]any `json:"-"` }
func NewMetadata ¶ added in v0.15.0
func (*Metadata) Alias ¶
func (m *Metadata) Alias() *AliasMetadata
func (*Metadata) Asset ¶
func (m *Metadata) Asset() *AssetMetadata
func (*Metadata) Baker ¶
func (m *Metadata) Baker() *BakerMetadata
func (*Metadata) Dex ¶
func (m *Metadata) Dex() *DexMetadata
func (*Metadata) Domain ¶
func (m *Metadata) Domain() *DomainMetadata
func (*Metadata) Location ¶
func (m *Metadata) Location() *LocationMetadata
func (Metadata) MarshalJSON ¶
func (*Metadata) Media ¶
func (m *Metadata) Media() *MediaMetadata
func (*Metadata) Payout ¶
func (m *Metadata) Payout() *PayoutMetadata
func (*Metadata) Rights ¶
func (m *Metadata) Rights() *RightsMetadata
func (*Metadata) Social ¶
func (m *Metadata) Social() *SocialMetadata
func (*Metadata) Tz21 ¶
func (m *Metadata) Tz21() *Tz21Metadata
func (*Metadata) UnmarshalJSON ¶
func (*Metadata) Updated ¶
func (m *Metadata) Updated() *UpdatedMetadata
type MetadataDescriptor ¶
type MultiKey ¶
type MultiKey struct {
// contains filtered or unexported fields
}
func (MultiKey) MarshalJSON ¶
func (*MultiKey) UnmarshalJSON ¶
type Op ¶
type Op struct { Id uint64 `json:"id"` Type OpType `json:"type"` Hash tezos.OpHash `json:"hash"` Height int64 `json:"height"` Cycle int64 `json:"cycle"` Timestamp time.Time `json:"time"` OpN int `json:"op_n"` OpP int `json:"op_p"` Status tezos.OpStatus `json:"status"` IsSuccess bool `json:"is_success"` IsContract bool `json:"is_contract"` IsInternal bool `json:"is_internal"` IsEvent bool `json:"is_event"` IsRollup bool `json:"is_rollup"` Counter int64 `json:"counter"` GasLimit int64 `json:"gas_limit"` GasUsed int64 `json:"gas_used"` StorageLimit int64 `json:"storage_limit"` StoragePaid int64 `json:"storage_paid"` Volume float64 `json:"volume"` Fee float64 `json:"fee"` Reward float64 `json:"reward"` Deposit float64 `json:"deposit"` Burned float64 `json:"burned"` SenderId uint64 `json:"sender_id"` ReceiverId uint64 `json:"receiver_id"` CreatorId uint64 `json:"creator_id"` BakerId uint64 `json:"baker_id"` Data json.RawMessage `json:"data,omitempty"` Parameters *ContractParameters `json:"parameters,omitempty"` // transaction StorageHash uint64 `json:"storage_hash,omitempty"` CodeHash string `json:"code_hash,omitempty"` Errors json.RawMessage `json:"errors,omitempty"` Sender tezos.Address `json:"sender"` Receiver tezos.Address `json:"receiver"` Creator tezos.Address `json:"creator"` // origination Baker tezos.Address `json:"baker"` // delegation, origination Block tezos.BlockHash `json:"block"` Entrypoint string `json:"entrypoint,omitempty"` BigmapDiff BigmapUpdates `json:"big_map_diff,omitempty"` // transaction, origination BigmapEvents micheline.BigmapEvents `json:"-"` // raw, transaction, origination // explorer or ZMQ APIs only PrevBaker tezos.Address `json:"previous_baker" tzpro:"notable"` // delegation Source tezos.Address `json:"source" tzpro:"notable"` // internal operations Offender tezos.Address `json:"offender" tzpro:"notable"` // double_x Accuser tezos.Address `json:"accuser" tzpro:"notable"` // double_x Loser tezos.Address `json:"loser" tzpro:"notable"` // smart rollup refutation game Winner tezos.Address `json:"winner" tzpro:"notable"` // smart rollup refutation game Staker tezos.Address `json:"staker" tzpro:"notable"` // smart rollup refutation game Storage *ContractValue `json:"storage,omitempty" tzpro:"notable"` // transaction, origination Script *micheline.Script `json:"script,omitempty" tzpro:"notable"` // origination Power int `json:"power,omitempty" tzpro:"notable"` // endorsement Limit *float64 `json:"limit,omitempty" tzpro:"notable"` // set deposits limit Confirmations int64 `json:"confirmations" tzpro:"notable"` NOps int `json:"n_ops,omitempty" tzpro:"notable"` Batch []*Op `json:"batch,omitempty" tzpro:"notable"` Internal []*Op `json:"internal,omitempty" tzpro:"notable"` Metadata map[string]Metadata `json:"metadata,omitempty" tzpro:"notable"` Events []Event `json:"events,omitempty" tzpro:"notable"` TicketUpdates []TicketUpdate `json:"ticket_updates,omitempty" tzpro:"notable"` // contains filtered or unexported fields }
func (*Op) Addresses ¶ added in v0.15.0
func (o *Op) Addresses() *tezos.AddressSet
func (*Op) UnmarshalJSON ¶
func (*Op) UnmarshalJSONBrief ¶
func (*Op) WithColumns ¶
func (*Op) WithScript ¶
func (o *Op) WithScript(s *ContractScript) *Op
type OpList ¶
type OpList struct { Rows []*Op // contains filtered or unexported fields }
func (*OpList) UnmarshalJSON ¶
type OpQuery ¶
type OpQuery struct { NoFail bool // contains filtered or unexported fields }
func (*OpQuery) ReplaceFilter ¶
func (q *OpQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*OpQuery) ResetFilter ¶
func (q *OpQuery) ResetFilter() TableQuery
func (*OpQuery) WithColumns ¶
func (q *OpQuery) WithColumns(cols ...string) TableQuery
func (*OpQuery) WithCursor ¶
func (q *OpQuery) WithCursor(c uint64) TableQuery
func (*OpQuery) WithDesc ¶
func (q *OpQuery) WithDesc() TableQuery
func (*OpQuery) WithFilter ¶
func (q *OpQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*OpQuery) WithFormat ¶
func (q *OpQuery) WithFormat(format FormatType) TableQuery
func (*OpQuery) WithLimit ¶
func (q *OpQuery) WithLimit(limit int) TableQuery
func (OpQuery) WithNoFail ¶ added in v0.15.0
func (*OpQuery) WithOrder ¶
func (q *OpQuery) WithOrder(order OrderType) TableQuery
func (*OpQuery) WithPrim ¶
func (q *OpQuery) WithPrim() TableQuery
func (*OpQuery) WithQuiet ¶
func (q *OpQuery) WithQuiet() TableQuery
func (*OpQuery) WithVerbose ¶
func (q *OpQuery) WithVerbose() TableQuery
type OpReport ¶ added in v0.15.0
type OpReport struct { RowId uint64 `json:"row_id"` Time time.Time `json:"time"` Height int64 `json:"height"` Kind string `json:"kind"` Type OpType `json:"type"` N int `json:"count"` Sum float64 `json:"sum"` Min float64 `json:"min"` Max float64 `json:"max"` Mean float64 `json:"mean"` Median float64 `json:"median"` }
fee, gas, vol, tdd, add
type OpType ¶
type OpType byte
Indexer operation and event type
const ( OpTypeBake OpType = iota // 0 OpTypeEndorsement // 1 OpTypeTransaction // 2 OpTypeReveal // 3 OpTypeDelegation // 4 OpTypeOrigination // 5 OpTypeNonceRevelation // 6 OpTypeActivation // 7 OpTypeBallot // 8 OpTypeProposal // 9 OpTypeDoubleBaking // 10 OpTypeDoubleEndorsement // 11 OpTypeUnfreeze // 12 implicit event OpTypeInvoice // 13 implicit event OpTypeAirdrop // 14 implicit event OpTypeSeedSlash // 15 implicit event OpTypeMigration // 16 implicit event OpTypeSubsidy // 17 v010 liquidity baking OpTypeRegisterConstant // 18 v011 OpTypePreendorsement // 19 v012 OpTypeDoublePreendorsement // 20 v012 OpTypeDepositsLimit // 21 v012 OpTypeDeposit // 22 v012 implicit event (baker deposit) OpTypeBonus // 23 v012 implicit event (baker extra bonus) OpTypeReward // 24 v012 implicit event (endorsement reward pay/burn) OpTypeRollupOrigination // 25 v013 rollup OpTypeRollupTransaction // 26 v013 rollup OpTypeVdfRevelation // 27 v014 OpTypeIncreasePaidStorage // 28 v014 OpTypeDrainDelegate // 29 v015 OpTypeUpdateConsensusKey // 30 v015 OpTypeTransferTicket // 31 v013 OpTypeBatch = 254 // API output only OpTypeInvalid = 255 )
enums are allocated in chronological order with most often used ops first
func ParseOpType ¶
func (*OpType) MarshalText ¶
func (*OpType) UnmarshalText ¶
type Params ¶
func (Params[T]) Parse ¶ added in v0.16.2
parse from http://server:port/prefix server:port/prefix server/prefix /prefix
func (Params[T]) WithCursor ¶ added in v0.16.2
func (Params[T]) WithFilter ¶ added in v0.16.2
func (p Params[T]) WithFilter(key string, mode FilterMode, values ...any) Params[T]
func (Params[T]) WithOffset ¶ added in v0.16.2
func (Params[T]) WithRights ¶ added in v0.16.2
func (Params[T]) WithStorage ¶ added in v0.16.2
func (Params[T]) WithTimeRange ¶ added in v0.16.2
func (Params[T]) WithUnpack ¶ added in v0.16.2
type PayoutMetadata ¶
type Proposal ¶
type Proposal struct { Hash tezos.ProtocolHash `json:"hash"` SourceAddress tezos.Address `json:"source"` BlockHash tezos.BlockHash `json:"block_hash"` OpHash tezos.OpHash `json:"op_hash"` Height int64 `json:"height"` Time time.Time `json:"time"` Rolls int64 `json:"rolls"` Stake float64 `json:"stake"` Voters int64 `json:"voters"` }
type ReportParams ¶ added in v0.15.0
func NewReportParams ¶ added in v0.15.0
func NewReportParams() ReportParams
type Right ¶
type Right struct { Type tezos.RightType `json:"type"` Address tezos.Address `json:"address"` Round int `json:"round"` IsUsed bool `json:"is_used"` IsLost bool `json:"is_lost"` IsStolen bool `json:"is_stolen"` IsMissed bool `json:"is_missed"` IsSeedRequired bool `json:"is_seed_required"` IsSeedRevealed bool `json:"is_seed_revealed"` }
type RightsMetadata ¶
type RightsMetadata struct { Date time.Time `json:"date,omitempty"` Rights string `json:"rights,omitempty"` License string `json:"license,omitempty"` Minter tezos.Address `json:"minter,omitempty"` Authors []string `json:"authors,omitempty"` Creators []string `json:"creators,omitempty"` Contributors []string `json:"contributors,omitempty"` Publishers []string `json:"publishers,omitempty"` }
type SetsReport ¶ added in v0.15.0
type SetsReport struct { RowId uint64 `json:"row_id"` Time time.Time `json:"time"` Height int64 `json:"height"` ActiveWallets []byte `json:"active_wallets"` ActiveContracts []byte `json:"active_contracts"` GhostWallets []byte `json:"ghost_wallets"` FundedWallets []byte `json:"funded_wallets"` NewGhostWallets []byte `json:"new_ghost_wallets"` NewFundedWallets []byte `json:"new_funded_wallets"` }
type Snapshot ¶
type Snapshot struct { RowId uint64 `json:"row_id"` Height int64 `json:"height"` Cycle int64 `json:"cycle"` IsSelected bool `json:"is_selected"` Timestamp time.Time `json:"time"` Index int64 `json:"index"` Rolls int64 `json:"rolls"` AccountId uint64 `json:"account_id"` Address tezos.Address `json:"address"` BakerId uint64 `json:"baker_id"` Baker tezos.Address `json:"baker"` IsBaker bool `json:"is_baker"` IsActive bool `json:"is_active"` Balance float64 `json:"balance"` Delegated float64 `json:"delegated"` NDelegations int64 `json:"n_delegations"` Since int64 `json:"since"` SinceTime time.Time `json:"since_time"` // contains filtered or unexported fields }
func (*Snapshot) UnmarshalJSON ¶
func (*Snapshot) UnmarshalJSONBrief ¶
type SnapshotList ¶
type SnapshotList struct { Rows []*Snapshot // contains filtered or unexported fields }
func (SnapshotList) Cursor ¶
func (l SnapshotList) Cursor() uint64
func (SnapshotList) Len ¶
func (l SnapshotList) Len() int
func (*SnapshotList) UnmarshalJSON ¶
func (l *SnapshotList) UnmarshalJSON(data []byte) error
type SnapshotQuery ¶
type SnapshotQuery struct {
// contains filtered or unexported fields
}
func (*SnapshotQuery) ReplaceFilter ¶
func (q *SnapshotQuery) ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery
func (*SnapshotQuery) ResetFilter ¶
func (q *SnapshotQuery) ResetFilter() TableQuery
func (SnapshotQuery) Run ¶
func (q SnapshotQuery) Run(ctx context.Context) (*SnapshotList, error)
func (*SnapshotQuery) WithColumns ¶
func (q *SnapshotQuery) WithColumns(cols ...string) TableQuery
func (*SnapshotQuery) WithCursor ¶
func (q *SnapshotQuery) WithCursor(c uint64) TableQuery
func (*SnapshotQuery) WithDesc ¶
func (q *SnapshotQuery) WithDesc() TableQuery
func (*SnapshotQuery) WithFilter ¶
func (q *SnapshotQuery) WithFilter(mode FilterMode, col string, val ...any) TableQuery
func (*SnapshotQuery) WithFormat ¶
func (q *SnapshotQuery) WithFormat(format FormatType) TableQuery
func (*SnapshotQuery) WithLimit ¶
func (q *SnapshotQuery) WithLimit(limit int) TableQuery
func (*SnapshotQuery) WithOrder ¶
func (q *SnapshotQuery) WithOrder(order OrderType) TableQuery
func (*SnapshotQuery) WithPrim ¶
func (q *SnapshotQuery) WithPrim() TableQuery
func (*SnapshotQuery) WithQuiet ¶
func (q *SnapshotQuery) WithQuiet() TableQuery
func (*SnapshotQuery) WithVerbose ¶
func (q *SnapshotQuery) WithVerbose() TableQuery
type SocialMetadata ¶
type Status ¶
type Status struct { Status string `json:"status"` // loading, connecting, stopping, stopped, waiting, syncing, synced, failed Blocks int64 `json:"blocks"` Finalized int64 `json:"finalized"` Indexed int64 `json:"indexed"` Progress float64 `json:"progress"` // contains filtered or unexported fields }
func (*Status) UnmarshalJSON ¶
func (*Status) UnmarshalJSONBrief ¶
func (*Status) WithColumns ¶
type StreamResponse ¶
func NewStreamResponse ¶
func NewStreamResponse(header http.Header) (StreamResponse, error)
type Supply ¶
type Supply struct { RowId uint64 `json:"row_id"` Height int64 `json:"height"` Cycle int64 `json:"cycle"` Timestamp time.Time `json:"time"` Total float64 `json:"total"` Activated float64 `json:"activated"` Unclaimed float64 `json:"unclaimed"` Circulating float64 `json:"circulating"` Liquid float64 `json:"liquid"` Delegated float64 `json:"delegated"` Staking float64 `json:"staking"` Shielded float64 `json:"shielded"` ActiveStake float64 `json:"active_stake"` ActiveDelegated float64 `json:"active_delegated"` ActiveStaking float64 `json:"active_staking"` InactiveDelegated float64 `json:"inactive_delegated"` InactiveStaking float64 `json:"inactive_staking"` Minted float64 `json:"minted"` MintedBaking float64 `json:"minted_baking"` MintedEndorsing float64 `json:"minted_endorsing"` MintedSeeding float64 `json:"minted_seeding"` MintedAirdrop float64 `json:"minted_airdrop"` MintedSubsidy float64 `json:"minted_subsidy"` Burned float64 `json:"burned"` BurnedDoubleBaking float64 `json:"burned_double_baking"` BurnedDoubleEndorse float64 `json:"burned_double_endorse"` BurnedOrigination float64 `json:"burned_origination"` BurnedAllocation float64 `json:"burned_allocation"` BurnedStorage float64 `json:"burned_storage"` BurnedExplicit float64 `json:"burned_explicit"` BurnedSeedMiss float64 `json:"burned_seed_miss"` BurnedAbsence float64 `json:"burned_absence"` BurnedRollup float64 `json:"burned_rollup"` Frozen float64 `json:"frozen"` FrozenDeposits float64 `json:"frozen_deposits"` FrozenRewards float64 `json:"frozen_rewards"` FrozenFees float64 `json:"frozen_fees"` FrozenBonds float64 `json:"frozen_bonds"` }
type SupplyReport ¶ added in v0.15.0
type SupplyReport struct { Supply Inflation1Y int64 `json:"inflation_1y"` // inflation InflationRate1Y float64 `json:"inflation_rate_1y"` FutureInflationRate1Y float64 `json:"future_inflation_rate_1y"` OneYearTransacting int64 `json:"vol_tx_y1"` // 12-month HODL wave supply OneYearDaysDestroyed float64 `json:"tdd_y1"` SixMonthTransacting int64 `json:"vol_tx_m6"` // 6-month HODL wave supply SixMonthDaysDestroyed float64 `json:"tdd_m6"` ThreeMonthTransacting int64 `json:"vol_tx_m3"` // 3-month HODL wave supply ThreeMonthDaysDestroyed float64 `json:"tdd_m3"` OneMonthTransacting int64 `json:"vol_tx_m1"` // 1-month HODL wave supply OneMonthDaysDestroyed float64 `json:"tdd_m1"` OneWeekTransacting int64 `json:"vol_tx_w1"` // 1-week HODL wave supply OneWeekDaysDestroyed float64 `json:"tdd_w1"` OneDayTransacting int64 `json:"vol_tx_d1"` // 1-day HODL wave supply OneDayDaysDestroyed float64 `json:"tdd_d1"` }
type TableQuery ¶
type TableQuery interface { WithFilter(mode FilterMode, col string, val ...any) TableQuery ReplaceFilter(mode FilterMode, col string, val ...any) TableQuery ResetFilter() TableQuery WithLimit(limit int) TableQuery WithColumns(cols ...string) TableQuery WithOrder(order OrderType) TableQuery WithDesc() TableQuery WithVerbose() TableQuery WithQuiet() TableQuery WithFormat(format FormatType) TableQuery WithPrim() TableQuery Check() error Url() string }
type Ticker ¶
type Ticker struct { Pair string `json:"pair"` Base string `json:"base"` Quote string `json:"quote"` Exchange string `json:"exchange"` Open float64 `json:"open"` High float64 `json:"high"` Low float64 `json:"low"` Last float64 `json:"last"` Change float64 `json:"change"` Vwap float64 `json:"vwap"` NTrades int64 `json:"n_trades"` VolumeBase float64 `json:"volume_base"` VolumeQuote float64 `json:"volume_quote"` Time time.Time `json:"timestamp"` }
type TicketUpdate ¶ added in v0.16.1
type Tip ¶
type Tip struct { Name string `json:"name"` Network string `json:"network"` Symbol string `json:"symbol"` ChainId tezos.ChainIdHash `json:"chain_id"` GenesisTime time.Time `json:"genesis_time"` Hash tezos.BlockHash `json:"block_hash"` Height int64 `json:"height"` Cycle int64 `json:"cycle"` Timestamp time.Time `json:"timestamp"` Protocol tezos.ProtocolHash `json:"protocol"` TotalAccounts int64 `json:"total_accounts"` TotalContracts int64 `json:"total_contracts"` TotalRollups int64 `json:"total_rollups"` FundedAccounts int64 `json:"funded_accounts"` DustAccounts int64 `json:"dust_accounts"` DustDelegators int64 `json:"dust_delegators"` TotalOps int64 `json:"total_ops"` Delegators int64 `json:"delegators"` Bakers int64 `json:"bakers"` Rolls int64 `json:"rolls"` RollOwners int64 `json:"roll_owners"` NewAccounts30d int64 `json:"new_accounts_30d"` ClearedAccounts30d int64 `json:"cleared_accounts_30d"` FundedAccounts30d int64 `json:"funded_accounts_30d"` Inflation1Y float64 `json:"inflation_1y"` InflationRate1Y float64 `json:"inflation_rate_1y"` Health int `json:"health"` Supply *Supply `json:"supply"` Status Status `json:"status"` }
type Token ¶ added in v0.15.0
type Token struct { Id uint64 `json:"id"` Contract tezos.Address `json:"contract"` TokenId tezos.Z `json:"token_id"` Kind string `json:"kind"` Type string `json:"type"` Category string `json:"category"` Name string `json:"name"` Symbol string `json:"symbol"` Decimals int `json:"decimals"` Logo string `json:"logo"` Tags []string `json:"tags"` Creator tezos.Address `json:"creator"` FirstBlock int64 `json:"first_block"` FirstTime time.Time `json:"first_time"` Supply tezos.Z `json:"total_supply"` VolMint tezos.Z `json:"total_minted"` VolBurn tezos.Z `json:"total_burned"` LastChange int64 `json:"last_supply_change_block"` LastChangeTime time.Time `json:"last_supply_change_time"` }
type TokenBalance ¶ added in v0.16.2
type TokenBalance struct { Id int64 `json:"id"` Owner tezos.Address `json:"owner"` Contract tezos.Address `json:"contract"` TokenId tezos.Z `json:"token_id"` Kind string `json:"kind"` Type string `json:"type"` Name string `json:"name"` Symbol string `json:"symbol"` Decimals int `json:"decimals"` Balance tezos.Z `json:"balance"` FirstBlock int64 `json:"first_block"` LastBlock int64 `json:"last_block"` NTransfers int `json:"num_transfers"` NMints int `json:"num_mints"` NBurns int `json:"num_burns"` VolSent tezos.Z `json:"vol_sent"` VolRecv tezos.Z `json:"vol_recv"` VolMint tezos.Z `json:"vol_mint"` VolBurn tezos.Z `json:"vol_burn"` }
type TokenEvent ¶ added in v0.15.0
type TokenEvent struct { Id int64 `json:"id"` Contract tezos.Address `json:"contract"` TokenId tezos.Z `json:"token_id"` TokenKind string `json:"kind"` TokenType string `json:"type"` EventType string `json:"event_type"` Name string `json:"name"` Symbol string `json:"symbol"` Decimals int `json:"decimals"` Signer tezos.Address `json:"signer"` Sender tezos.Address `json:"sender"` Receiver tezos.Address `json:"receiver"` Amount tezos.Z `json:"amount"` TxHash tezos.OpHash `json:"tx_hash"` TxFee int64 `json:"tx_fee"` Block int64 `json:"block"` Time time.Time `json:"time"` }
type TokenEventParams ¶ added in v0.15.0
type TokenEventParams = Params[TokenEvent]
func NewTokenEventParams ¶ added in v0.15.0
func NewTokenEventParams() TokenEventParams
type TokenParams ¶ added in v0.15.0
func NewTokenParams ¶ added in v0.15.0
func NewTokenParams() TokenParams
type TypeInfo ¶
TypeInfo holds details for the representation of a type.
func GetTypeInfo ¶
GetTypeInfo returns the typeInfo structure with details necessary for marshaling and unmarshaling typ.
func (TypeInfo) FieldNames ¶
func (TypeInfo) FilteredAliases ¶
type Tz21Attribute ¶
type Tz21DataRate ¶
type Tz21Dimension ¶
type Tz21Format ¶
type Tz21Format struct { Uri string `json:"uri"` Hash string `json:"hash"` MimeType string `json:"mimeType"` FileSize int64 `json:"fileSize"` FileName string `json:"fileName"` Duration string `json:"duration"` Dimensions Tz21Dimension `json:"dimensions"` DataRate Tz21DataRate `json:"dataRate"` }
type Tz21Metadata ¶
type Tz21Metadata struct { Description string `json:"description"` Minter tezos.Address `json:"minter"` Creators []string `json:"creators"` Contributors []string `json:"contributors"` Publishers []string `json:"publishers"` Date time.Time `json:"date"` BlockLevel int64 `json:"blockLevel"` Type string `json:"type"` Tags []string `json:"tags"` Genres []string `json:"genres"` Language string `json:"language"` Identifier string `json:"identifier"` Rights string `json:"rights"` RightUri string `json:"rightUri"` ArtifactUri string `json:"artifactUri"` DisplayUri string `json:"displayUri"` ThumbnailUri string `json:"thumbnailUri"` ExternalUri string `json:"externalUri"` IsTransferable bool `json:"isTransferable"` IsBooleanAmount bool `json:"isBooleanAmount"` ShouldPreferSymbol bool `json:"shouldPreferSymbol"` Formats []Tz21Format `json:"formats"` Attributes []Tz21Attribute `json:"attributes"` Assets []Tz21Metadata `json:"assets"` }
type UpdatedMetadata ¶
type ValueWalkerFunc ¶
type Vote ¶
type Vote struct { VotingPeriod int64 `json:"voting_period"` VotingPeriodKind tezos.VotingPeriodKind `json:"voting_period_kind"` StartTime time.Time `json:"period_start_time"` EndTime time.Time `json:"period_end_time"` StartHeight int64 `json:"period_start_block"` EndHeight int64 `json:"period_end_block"` EligibleRolls int `json:"eligible_rolls"` EligibleVoters int `json:"eligible_voters"` QuorumPct int `json:"quorum_pct"` QuorumRolls int `json:"quorum_rolls"` TurnoutRolls int `json:"turnout_rolls"` TurnoutVoters int `json:"turnout_voters"` TurnoutPct int `json:"turnout_pct"` TurnoutEma int `json:"turnout_ema"` YayRolls int `json:"yay_rolls"` YayStake float64 `json:"yay_stake"` YayVoters int `json:"yay_voters"` NayRolls int `json:"nay_rolls"` NayStake float64 `json:"nay_stake"` NayVoters int `json:"nay_voters"` PassRolls int `json:"pass_rolls"` PassStake float64 `json:"pass_stake"` PassVoters int `json:"pass_voters"` IsOpen bool `json:"is_open"` IsFailed bool `json:"is_failed"` IsDraw bool `json:"is_draw"` NoProposal bool `json:"no_proposal"` NoQuorum bool `json:"no_quorum"` NoMajority bool `json:"no_majority"` Proposals []*Proposal `json:"proposals"` }
type Voter ¶
type Voter struct { RowId uint64 `json:"row_id"` Address tezos.Address `json:"address"` Rolls int64 `json:"rolls"` Stake float64 `json:"stake"` Ballot tezos.BallotVote `json:"ballot"` HasVoted bool `json:"has_voted"` Proposals []tezos.ProtocolHash `json:"proposals"` }
type ZmqMessage ¶
type ZmqMessage struct {
// contains filtered or unexported fields
}
func NewZmqMessage ¶
func NewZmqMessage(topic, body []byte) *ZmqMessage
func (*ZmqMessage) DecodeBlock ¶
func (m *ZmqMessage) DecodeBlock() (*Block, error)
func (*ZmqMessage) DecodeBlockHash ¶
func (m *ZmqMessage) DecodeBlockHash() (tezos.BlockHash, error)
func (*ZmqMessage) DecodeOp ¶
func (m *ZmqMessage) DecodeOp() (*Op, error)
func (*ZmqMessage) DecodeOpHash ¶
func (m *ZmqMessage) DecodeOpHash() (tezos.OpHash, error)
func (*ZmqMessage) DecodeOpWithScript ¶
func (*ZmqMessage) DecodeStatus ¶
func (m *ZmqMessage) DecodeStatus() (*Status, error)
Source Files ¶
- account.go
- baker.go
- bigmap.go
- bigmap_key.go
- bigmap_update.go
- bigmap_value.go
- block.go
- chain.go
- client.go
- constant.go
- contract.go
- dex_event.go
- dex_pool.go
- dex_ticker.go
- dex_trade.go
- error.go
- event.go
- explorer.go
- income.go
- ipfs.go
- log.go
- market.go
- metadata.go
- op.go
- optype.go
- params.go
- reports.go
- response.go
- rights.go
- snapshot.go
- table.go
- ticket.go
- token.go
- token_balance.go
- token_event.go
- typeinfo.go
- utils.go
- votes.go
- zmq.go