Documentation ¶
Index ¶
- Constants
- Variables
- type Reader
- func (r *Reader) AddressChains(ctx context.Context, p *params.AddressChainsParams) (*models.AddressChains, error)
- func (r *Reader) Aggregate(ctx context.Context, params *params.AggregateParams) (*models.AggregatesHistogram, error)
- func (r *Reader) GetAddress(ctx context.Context, p *params.ListAddressesParams) (*models.AddressInfo, error)
- func (r *Reader) GetOutput(ctx context.Context, id ids.ID) (*models.Output, error)
- func (r *Reader) GetTransaction(ctx context.Context, id ids.ID, avaxAssetID ids.ID) (*models.Transaction, error)
- func (r *Reader) ListAddresses(ctx context.Context, p *params.ListAddressesParams) (*models.AddressList, error)
- func (r *Reader) ListOutputs(ctx context.Context, p *params.ListOutputsParams) (*models.OutputList, error)
- func (r *Reader) ListTransactions(ctx context.Context, p *params.ListTransactionsParams, avaxAssetID ids.ID) (*models.TransactionList, error)
- func (r *Reader) Search(ctx context.Context, p *params.SearchParams, avaxAssetID ids.ID) (*models.SearchResults, error)
- func (r *Reader) TxfeeAggregate(ctx context.Context, params *params.TxfeeAggregateParams) (*models.TxfeeAggregatesHistogram, error)
- type Writer
- func (w *Writer) InsertAddressFromPublicKey(ctx services.ConsumerCtx, publicKey crypto.PublicKey) error
- func (w *Writer) InsertOutput(ctx services.ConsumerCtx, txID ids.ID, idx uint32, assetID ids.ID, ...) error
- func (w *Writer) InsertOutputAddress(ctx services.ConsumerCtx, outputID ids.ID, address ids.ShortID, sig []byte) error
- func (w *Writer) InsertTransaction(ctx services.ConsumerCtx, txBytes []byte, unsignedBytes []byte, ...) error
Constants ¶
View Source
const ( MaxAggregateIntervalCount = 20000 MinSearchQueryLength = 1 )
Variables ¶
View Source
var ( ErrAggregateIntervalCountTooLarge = errors.New("requesting too many intervals") ErrFailedToParseStringAsBigInt = errors.New("failed to parse string to big.Int") ErrSearchQueryTooShort = errors.New("search query too short") )
View Source
var ( MaxSerializationLen = 64000 // MaxMemoLen is the maximum number of bytes a memo can be in the database MaxMemoLen = 2048 )
Functions ¶
This section is empty.
Types ¶
type Reader ¶ added in v1.1.2
type Reader struct {
// contains filtered or unexported fields
}
func NewReader ¶ added in v1.1.2
func NewReader(conns *services.Connections) *Reader
func (*Reader) AddressChains ¶ added in v1.1.2
func (r *Reader) AddressChains(ctx context.Context, p *params.AddressChainsParams) (*models.AddressChains, error)
func (*Reader) Aggregate ¶ added in v1.1.2
func (r *Reader) Aggregate(ctx context.Context, params *params.AggregateParams) (*models.AggregatesHistogram, error)
func (*Reader) GetAddress ¶ added in v1.1.2
func (r *Reader) GetAddress(ctx context.Context, p *params.ListAddressesParams) (*models.AddressInfo, error)
func (*Reader) GetTransaction ¶ added in v1.1.2
func (*Reader) ListAddresses ¶ added in v1.1.2
func (r *Reader) ListAddresses(ctx context.Context, p *params.ListAddressesParams) (*models.AddressList, error)
func (*Reader) ListOutputs ¶ added in v1.1.2
func (r *Reader) ListOutputs(ctx context.Context, p *params.ListOutputsParams) (*models.OutputList, error)
func (*Reader) ListTransactions ¶ added in v1.1.2
func (r *Reader) ListTransactions(ctx context.Context, p *params.ListTransactionsParams, avaxAssetID ids.ID) (*models.TransactionList, error)
func (*Reader) Search ¶ added in v1.1.2
func (r *Reader) Search(ctx context.Context, p *params.SearchParams, avaxAssetID ids.ID) (*models.SearchResults, error)
func (*Reader) TxfeeAggregate ¶ added in v1.1.2
func (r *Reader) TxfeeAggregate(ctx context.Context, params *params.TxfeeAggregateParams) (*models.TxfeeAggregatesHistogram, error)
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) InsertAddressFromPublicKey ¶
func (*Writer) InsertOutput ¶
func (w *Writer) InsertOutput(ctx services.ConsumerCtx, txID ids.ID, idx uint32, assetID ids.ID, out *secp256k1fx.TransferOutput, outputType models.OutputType, groupID uint32, payload []byte, stakeLocktime uint64, chainID string) error
func (*Writer) InsertOutputAddress ¶
func (*Writer) InsertTransaction ¶
func (w *Writer) InsertTransaction(ctx services.ConsumerCtx, txBytes []byte, unsignedBytes []byte, baseTx *avax.BaseTx, creds []verify.Verifiable, txType models.TransactionType, addIns []*avax.TransferableInput, inChainID string, addOuts []*avax.TransferableOutput, outChainID string, addlOutTxfee uint64, genesis bool) error
Click to show internal directories.
Click to hide internal directories.