Skip to content

Commit

Permalink
Added paris2net (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-karuna committed May 30, 2024
1 parent 7f32574 commit 6fce04b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion internal/bcd/protocols.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ var symLinks = map[string]string{
"ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH": SymLinkJakarta, // Oxford 2
"PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5": SymLinkJakarta, // Paris A
"PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz": SymLinkJakarta, // Paris B
"PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ": SymLinkJakarta, // Paris B 2
}

// GetProtoSymLink -
Expand Down Expand Up @@ -81,5 +82,5 @@ var ChainID = map[string]string{
"NetXQw6nWSnrJ5t": "mumbainet",
"NetXyuzvDo2Ugzb": "nairobinet",
"NetXxWsskGahzQB": "oxfordnet",
"NetXo8SqH1c38SS": "parisnet",
"NetXR64bNAYkP4S": "parisnet",
}
3 changes: 2 additions & 1 deletion internal/parsers/operations/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ func (m Migration) Parse(ctx context.Context, data noderpc.Operation, operation
"ProxfordSW2S7fvchT1Zgj2avb5UES194neRyYVXoaDGvF9egt8",
"ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",
"PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5",
"PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz":
"PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz",
"PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ":
return m.fromLazyStorageDiff(ctx, data, operation, store)
default:
return errors.Errorf("unknown protocol for migration parser: %s", protocol)
Expand Down
6 changes: 4 additions & 2 deletions internal/parsers/protocols/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ func Get(ctx *config.Context, protocol string) (*Specific, error) {
"ProxfordSW2S7fvchT1Zgj2avb5UES194neRyYVXoaDGvF9egt8",
"ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",
"PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5",
"PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz":
"PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz",
"PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ":
return &Specific{
StorageParser: storage.NewLazyBabylon(ctx.BigMapDiffs, ctx.Operations, ctx.Accounts),
ContractParser: contract.NewJakarta(ctx),
Expand Down Expand Up @@ -137,7 +138,8 @@ func NeedImplicitParsing(protocol string) bool {
"ProxfordSW2S7fvchT1Zgj2avb5UES194neRyYVXoaDGvF9egt8",
"ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",
"PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5",
"PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz":
"PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz",
"PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ":
return true
}
return false
Expand Down

0 comments on commit 6fce04b

Please sign in to comment.