Merge branch 'feature/bitcoin-indexer' into feat/runes-module

This commit is contained in:
Gaze
2024-04-16 23:35:55 +07:00
3 changed files with 3 additions and 2 deletions

View File

@@ -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"`
}

View File

@@ -13,6 +13,7 @@ type BitcoinDataGateway interface {
type BitcoinWriterDataDataGateway interface {
InsertBlock(context.Context, *types.Block) error
ReverBlocks(context.Context, int64) error
}
type BitcoinReaderDataDataGateway interface {

View File

@@ -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"`
}