Documentation ¶
Index ¶
- func GetRoundingFunction(interval time.Duration) (string, error)
- type AccountMetric
- type AccountRepository
- type AccountsReq
- type AccountsRes
- type BigIntRes
- type CountRes
- type MessageMetric
- type MessageRepository
- type MessagesReq
- type MessagesRes
- type ReqParams
- type TransactionMetric
- type TransactionRepository
- type TransactionsReq
- type TransactionsRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountMetric ¶
type AccountMetric string
const (
ActiveAddresses AccountMetric = "active_addresses"
)
type AccountRepository ¶
type AccountRepository interface {
AggregateAccountsHistory(ctx context.Context, req *AccountsReq) (*AccountsRes, error)
}
type AccountsReq ¶
type AccountsReq struct { Metric AccountMetric `form:"metric"` ContractTypes []abi.ContractName `form:"interface"` MinterAddress *addr.Address // NFT or FT minter ReqParams }
type AccountsRes ¶
type AccountsRes struct {
CountRes `json:"count_results,omitempty"`
}
type MessageMetric ¶
type MessageMetric string
var ( MessageCount MessageMetric = "message_count" MessageAmountSum MessageMetric = "message_amount_sum" )
type MessageRepository ¶
type MessageRepository interface {
AggregateMessagesHistory(ctx context.Context, req *MessagesReq) (*MessagesRes, error)
}
type MessagesReq ¶
type MessagesReq struct { Metric MessageMetric `form:"metric"` SrcAddresses []*addr.Address // `form:"src_address"` DstAddresses []*addr.Address // `form:"dst_address"` SrcWorkchain *int32 `form:"src_workchain"` DstWorkchain *int32 `form:"dst_workchain"` SrcContracts []string `form:"src_contract"` DstContracts []string `form:"dst_contract"` OperationNames []string `form:"operation_name"` MinterAddress *addr.Address // `form:"minter_address"` ReqParams }
type MessagesRes ¶
type TransactionMetric ¶
type TransactionMetric string
var (
TransactionCount TransactionMetric = "transaction_count"
)
type TransactionRepository ¶
type TransactionRepository interface {
AggregateTransactionsHistory(ctx context.Context, req *TransactionsReq) (*TransactionsRes, error)
}
type TransactionsReq ¶
type TransactionsReq struct { Metric TransactionMetric `form:"metric"` Addresses []*addr.Address // `form:"addresses"` Workchain *int32 `form:"workchain"` ReqParams }
type TransactionsRes ¶
type TransactionsRes struct {
CountRes `json:"count_results,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.