mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-04-29 20:25:24 +08:00
Merge branch 'feature/bitcoin-indexer' into feat/runes-module
This commit is contained in:
@@ -4,5 +4,5 @@ import "github.com/gaze-network/indexer-network/internal/postgres"
|
||||
|
||||
type Config struct {
|
||||
Database string `mapstructure:"database"` // Database to store bitcoin data.
|
||||
Postgres postgres.Config `mapstructure:"postgresql"`
|
||||
Postgres postgres.Config `mapstructure:"postgres"`
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ type BitcoinDataGateway interface {
|
||||
|
||||
type BitcoinWriterDataDataGateway interface {
|
||||
InsertBlock(context.Context, *types.Block) error
|
||||
ReverBlocks(context.Context, int64) error
|
||||
}
|
||||
|
||||
type BitcoinReaderDataDataGateway interface {
|
||||
|
||||
@@ -5,5 +5,5 @@ import "github.com/gaze-network/indexer-network/internal/postgres"
|
||||
type Config struct {
|
||||
Datasource string `mapstructure:"datasource"` // Datasource to fetch bitcoin data for Meta-Protocol e.g. `bitcoin-node` | `database`
|
||||
Database string `mapstructure:"database"` // Database to store runes data.
|
||||
Postgres postgres.Config `mapstructure:"postgresql"`
|
||||
Postgres postgres.Config `mapstructure:"postgres"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user