Documentation
¶
Index ¶
- type BadgerStore
- func (bs *BadgerStore) Badger() *badger.DB
- func (bs *BadgerStore) Close() error
- func (bs *BadgerStore) DeleteTransaction(old *mtg.Transaction) error
- func (bs *BadgerStore) ListActions(limit int) ([]*mtg.UnifiedOutput, error)
- func (bs *BadgerStore) ListCollectibleOutputsForToken(state, tokenId string, limit int) ([]*mtg.CollectibleOutput, error)
- func (bs *BadgerStore) ListCollectibleOutputsForTransaction(traceId string) ([]*mtg.CollectibleOutput, error)
- func (bs *BadgerStore) ListCollectibleTransactions(state int, limit int) ([]*mtg.CollectibleTransaction, error)
- func (bs *BadgerStore) ListIterations() ([]*mtg.Iteration, error)
- func (bs *BadgerStore) ListOutputsForAsset(groupId, state, assetId string, limit int) ([]*mtg.Output, error)
- func (bs *BadgerStore) ListOutputsForTransaction(traceId string) ([]*mtg.Output, error)
- func (bs *BadgerStore) ListTransactions(state int, limit int) ([]*mtg.Transaction, error)
- func (bs *BadgerStore) ReadCollectibleTransaction(traceId string) (*mtg.CollectibleTransaction, error)
- func (bs *BadgerStore) ReadCollectibleTransactionByHash(hash crypto.Hash) (*mtg.CollectibleTransaction, error)
- func (bs *BadgerStore) ReadMintCollection(collection []byte) (*nft.Collection, error)
- func (bs *BadgerStore) ReadMintToken(collection, token []byte) (*nft.Token, error)
- func (bs *BadgerStore) ReadProperty(key []byte) ([]byte, error)
- func (bs *BadgerStore) ReadTransactionByHash(hash crypto.Hash) (*mtg.Transaction, error)
- func (bs *BadgerStore) ReadTransactionByTraceId(traceId string) (*mtg.Transaction, error)
- func (bs *BadgerStore) WriteAction(act *mtg.Action) error
- func (bs *BadgerStore) WriteCollectibleOutput(out *mtg.CollectibleOutput, traceId string) error
- func (bs *BadgerStore) WriteCollectibleOutputs(outs []*mtg.CollectibleOutput, traceId string) error
- func (bs *BadgerStore) WriteCollectibleTransaction(traceId string, tx *mtg.CollectibleTransaction) error
- func (bs *BadgerStore) WriteIteration(ir *mtg.Iteration) error
- func (bs *BadgerStore) WriteMintToken(collection []byte, id []byte, user string) error
- func (bs *BadgerStore) WriteOutput(utxo *mtg.Output, traceId string) error
- func (bs *BadgerStore) WriteOutputs(utxos []*mtg.Output, traceId string) error
- func (bs *BadgerStore) WriteProperty(key, val []byte) error
- func (bs *BadgerStore) WriteTransaction(tx *mtg.Transaction) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerStore ¶
type BadgerStore struct {
// contains filtered or unexported fields
}
func OpenBadger ¶
func OpenBadger(ctx context.Context, path string) (*BadgerStore, error)
func (*BadgerStore) Badger ¶ added in v0.0.5
func (bs *BadgerStore) Badger() *badger.DB
func (*BadgerStore) Close ¶
func (bs *BadgerStore) Close() error
func (*BadgerStore) DeleteTransaction ¶ added in v0.3.4
func (bs *BadgerStore) DeleteTransaction(old *mtg.Transaction) error
func (*BadgerStore) ListActions ¶
func (bs *BadgerStore) ListActions(limit int) ([]*mtg.UnifiedOutput, error)
func (*BadgerStore) ListCollectibleOutputsForToken ¶
func (bs *BadgerStore) ListCollectibleOutputsForToken(state, tokenId string, limit int) ([]*mtg.CollectibleOutput, error)
func (*BadgerStore) ListCollectibleOutputsForTransaction ¶
func (bs *BadgerStore) ListCollectibleOutputsForTransaction(traceId string) ([]*mtg.CollectibleOutput, error)
func (*BadgerStore) ListCollectibleTransactions ¶
func (bs *BadgerStore) ListCollectibleTransactions(state int, limit int) ([]*mtg.CollectibleTransaction, error)
func (*BadgerStore) ListIterations ¶
func (bs *BadgerStore) ListIterations() ([]*mtg.Iteration, error)
func (*BadgerStore) ListOutputsForAsset ¶
func (*BadgerStore) ListOutputsForTransaction ¶
func (bs *BadgerStore) ListOutputsForTransaction(traceId string) ([]*mtg.Output, error)
func (*BadgerStore) ListTransactions ¶
func (bs *BadgerStore) ListTransactions(state int, limit int) ([]*mtg.Transaction, error)
func (*BadgerStore) ReadCollectibleTransaction ¶
func (bs *BadgerStore) ReadCollectibleTransaction(traceId string) (*mtg.CollectibleTransaction, error)
func (*BadgerStore) ReadCollectibleTransactionByHash ¶ added in v0.0.4
func (bs *BadgerStore) ReadCollectibleTransactionByHash(hash crypto.Hash) (*mtg.CollectibleTransaction, error)
func (*BadgerStore) ReadMintCollection ¶
func (bs *BadgerStore) ReadMintCollection(collection []byte) (*nft.Collection, error)
func (*BadgerStore) ReadMintToken ¶
func (bs *BadgerStore) ReadMintToken(collection, token []byte) (*nft.Token, error)
func (*BadgerStore) ReadProperty ¶
func (bs *BadgerStore) ReadProperty(key []byte) ([]byte, error)
func (*BadgerStore) ReadTransactionByHash ¶ added in v0.0.2
func (bs *BadgerStore) ReadTransactionByHash(hash crypto.Hash) (*mtg.Transaction, error)
func (*BadgerStore) ReadTransactionByTraceId ¶ added in v0.0.2
func (bs *BadgerStore) ReadTransactionByTraceId(traceId string) (*mtg.Transaction, error)
func (*BadgerStore) WriteAction ¶
func (bs *BadgerStore) WriteAction(act *mtg.Action) error
func (*BadgerStore) WriteCollectibleOutput ¶
func (bs *BadgerStore) WriteCollectibleOutput(out *mtg.CollectibleOutput, traceId string) error
func (*BadgerStore) WriteCollectibleOutputs ¶
func (bs *BadgerStore) WriteCollectibleOutputs(outs []*mtg.CollectibleOutput, traceId string) error
func (*BadgerStore) WriteCollectibleTransaction ¶
func (bs *BadgerStore) WriteCollectibleTransaction(traceId string, tx *mtg.CollectibleTransaction) error
func (*BadgerStore) WriteIteration ¶
func (bs *BadgerStore) WriteIteration(ir *mtg.Iteration) error
func (*BadgerStore) WriteMintToken ¶
func (bs *BadgerStore) WriteMintToken(collection []byte, id []byte, user string) error
func (*BadgerStore) WriteOutput ¶
func (bs *BadgerStore) WriteOutput(utxo *mtg.Output, traceId string) error
func (*BadgerStore) WriteOutputs ¶
func (bs *BadgerStore) WriteOutputs(utxos []*mtg.Output, traceId string) error
func (*BadgerStore) WriteProperty ¶
func (bs *BadgerStore) WriteProperty(key, val []byte) error
func (*BadgerStore) WriteTransaction ¶
func (bs *BadgerStore) WriteTransaction(tx *mtg.Transaction) error
Click to show internal directories.
Click to hide internal directories.