Skip to content

Commit

Permalink
Remove bmd repo from babylon migration
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Sep 29, 2023
1 parent 4b24cb4 commit f10ff52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions internal/parsers/migrations/babylon.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/baking-bad/bcdhub/internal/bcd"
"github.com/baking-bad/bcdhub/internal/bcd/contract"
"github.com/baking-bad/bcdhub/internal/models"
"github.com/baking-bad/bcdhub/internal/models/bigmapdiff"
modelsContract "github.com/baking-bad/bcdhub/internal/models/contract"
"github.com/baking-bad/bcdhub/internal/models/migration"
"github.com/baking-bad/bcdhub/internal/models/protocol"
Expand All @@ -18,15 +17,11 @@ import (
)

// Babylon -
type Babylon struct {
bmdRepo bigmapdiff.Repository
}
type Babylon struct{}

// NewBabylon -
func NewBabylon(bmdRepo bigmapdiff.Repository) *Babylon {
return &Babylon{
bmdRepo: bmdRepo,
}
func NewBabylon() *Babylon {
return &Babylon{}
}

// Parse -
Expand Down
2 changes: 1 addition & 1 deletion internal/parsers/protocols/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func Get(ctx *config.Context, protocol string) (*Specific, error) {
return &Specific{
StorageParser: storage.NewBabylon(ctx.BigMapDiffs, ctx.Operations, ctx.Accounts),
ContractParser: contract.NewBabylon(ctx),
MigrationParser: migrations.NewBabylon(ctx.BigMapDiffs),
MigrationParser: migrations.NewBabylon(),
NeedReceiveRawStorage: true,
}, nil
case "PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",
Expand Down

0 comments on commit f10ff52

Please sign in to comment.