Documentation ¶
Index ¶
- Constants
- Variables
- type Address
- type AddressType
- type Client
- func (s Client) CacheAdd(key Address, val any)
- func (s Client) CacheGet(key Address) (any, bool)
- func (s Client) Retries() int
- func (s Client) RetryDelay() time.Duration
- func (s *Client) UseScriptCache(cache *lru.TwoQueueCache[Address, any])
- func (s *Client) WithApiKey(key string) *Client
- func (s *Client) WithCacheSize(sz int) *Client
- func (s *Client) WithHeader(key, value string) *Client
- func (s *Client) WithIpfsUrl(url string) *Client
- func (s *Client) WithLogger(log log.Logger) *Client
- func (s *Client) WithMarketUrl(url string) *Client
- func (s *Client) WithRetry(num int, delay time.Duration) *Client
- func (s *Client) WithTLS(tc *tls.Config) *Client
- func (s *Client) WithTimeout(d time.Duration) *Client
- func (s *Client) WithUserAgent(agent string) *Client
- type ErrApi
- type ErrHttp
- type ErrRateLimited
- type FillMode
- type FilterMode
- type FormatType
- type Key
- type OrderType
- type PoolAddress
- type Query
- func And(key string) Query
- func Arg(key string, val ...any) Query
- func Asc() Query
- func Desc() Query
- func Equal(key string, val any) Query
- func Filter(key string, mode FilterMode, val ...any) Query
- func Gt(key string, val any) Query
- func Gte(key string, val any) Query
- func In(key string, val ...any) Query
- func Lt(key string, val any) Query
- func Lte(key string, val any) Query
- func Not(key string) Query
- func NotEqual(key string, val any) Query
- func NotIn(key string, val ...any) Query
- func Range(key string, from, to any) Query
- func Regexp(key string, re string) Query
- func WithCursor(v uint64) Query
- func WithFrom(t time.Time) Query
- func WithLimit(v uint) Query
- func WithMerge() Query
- func WithMeta() Query
- func WithOffset(v uint) Query
- func WithOrder(o OrderType) Query
- func WithPrim() Query
- func WithRights() Query
- func WithStorage() Query
- func WithTags(t ...string) Query
- func WithTimeRange(from, to time.Time) Query
- func WithTo(t time.Time) Query
- func WithUnpack() Query
- type Token
- type Z
Constants ¶
View Source
const ( Collapse1m = time.Minute Collapse1h = time.Hour Collapse1d = 24 * time.Hour Collapse1w = 7 * 24 * time.Hour )
View Source
const ( OpTypeBake = index.OpTypeBake OpTypeEndorsement = index.OpTypeEndorsement OpTypeTransaction = index.OpTypeTransaction OpTypeReveal = index.OpTypeReveal OpTypeDelegation = index.OpTypeDelegation OpTypeOrigination = index.OpTypeOrigination OpTypeNonceRevelation = index.OpTypeNonceRevelation OpTypeActivation = index.OpTypeActivation OpTypeBallot = index.OpTypeBallot OpTypeProposal = index.OpTypeProposal OpTypeDoubleBaking = index.OpTypeDoubleBaking OpTypeDoubleEndorsement = index.OpTypeDoubleEndorsement OpTypeUnfreeze = index.OpTypeUnfreeze OpTypeInvoice = index.OpTypeInvoice OpTypeAirdrop = index.OpTypeAirdrop OpTypeSeedSlash = index.OpTypeSeedSlash OpTypeMigration = index.OpTypeMigration OpTypeSubsidy = index.OpTypeSubsidy OpTypeRegisterConstant = index.OpTypeRegisterConstant OpTypePreendorsement = index.OpTypePreendorsement OpTypeDoublePreendorsement = index.OpTypeDoublePreendorsement OpTypeDepositsLimit = index.OpTypeDepositsLimit OpTypeDeposit = index.OpTypeDeposit OpTypeBonus = index.OpTypeBonus OpTypeReward = index.OpTypeReward OpTypeRollupOrigination = index.OpTypeRollupOrigination OpTypeRollupTransaction = index.OpTypeRollupTransaction OpTypeVdfRevelation = index.OpTypeVdfRevelation OpTypeIncreasePaidStorage = index.OpTypeIncreasePaidStorage OpTypeDrainDelegate = index.OpTypeDrainDelegate OpTypeUpdateConsensusKey = index.OpTypeUpdateConsensusKey OpTypeTransferTicket = index.OpTypeTransferTicket OpTypeBatch = index.OpTypeBatch OpTypeInvalid = index.OpTypeInvalid )
Variables ¶
View Source
var ( SdkVersion = "0.18.0" DefaultClient = NewClient("https://api.mvpro.io", nil) )
View Source
var ( NewAddress = mavryk.MustParseAddress ParseAddress = mavryk.ParseAddress NewPoolAddres = defi.MustParsePoolAddress ParsePoolAddress = defi.ParsePoolAddress NewToken = mavryk.MustParseToken NewQuery = client.NewQuery IsErrApi = client.IsErrApi IsErrHttp = client.IsErrHttp IsErrRateLimited = client.IsErrRateLimited ErrorStatus = client.ErrorStatus NoQuery = NewQuery() )
Functions ¶
This section is empty.
Types ¶
type AddressType ¶
type AddressType = mavryk.AddressType
type Client ¶
type Client struct { Account index.AccountAPI Block index.BlockAPI Baker index.BakerAPI Contract index.ContractAPI Explorer index.ExplorerAPI Metadata index.MetadataAPI Op index.OpAPI Stats index.StatsAPI Dex defi.DexAPI Farm defi.FarmAPI Lend defi.LendingAPI Nft nft.NftAPI Token token.TokenAPI Domain identity.DomainAPI Profile identity.ProfileAPI Wallet wallet.WalletAPI Market market.MarketAPI Ipfs ipfs.IpfsAPI // contains filtered or unexported fields }
func (Client) RetryDelay ¶
func (*Client) UseScriptCache ¶
func (s *Client) UseScriptCache(cache *lru.TwoQueueCache[Address, any])
func (*Client) WithApiKey ¶
func (*Client) WithCacheSize ¶
func (*Client) WithHeader ¶
func (*Client) WithIpfsUrl ¶
func (*Client) WithMarketUrl ¶
func (*Client) WithUserAgent ¶
type ErrRateLimited ¶
type ErrRateLimited = client.ErrRateLimited
type FilterMode ¶
type FilterMode = client.FilterMode
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 = client.FormatType
const ( FormatJSON FormatType = "json" FormatCSV FormatType = "csv" )
type PoolAddress ¶
type PoolAddress = defi.PoolAddress
type Query ¶
func WithCursor ¶
func WithOffset ¶
func WithRights ¶
func WithRights() Query
func WithStorage ¶
func WithStorage() Query
func WithTimeRange ¶
func WithUnpack ¶
func WithUnpack() Query
Click to show internal directories.
Click to hide internal directories.