Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added quebecnet #1026

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions configs/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ rpc:
uri: https://rpc.tzkt.io/parisnet
timeout: 20
requests_per_second: 20
quebecnet:
uri: https://rpc.tzkt.io/quebecnet
timeout: 20
requests_per_second: 20

log_level: ${LOG_LEVEL:-info}

Expand All @@ -21,6 +25,8 @@ services:
mempool: https://mempool.test.dipdup.net/v1/graphql
parisnet:
mempool: https://mempool.test.dipdup.net/v1/graphql
quebecnet:
mempool: https://mempool.test.dipdup.net/v1/graphql

storage:
pg:
Expand Down Expand Up @@ -58,10 +64,12 @@ api:
mainnet: https://rpc.tzkt.io/mainnet
ghostnet: https://rpc.tzkt.io/ghostnet
parisnet: https://rpc.tzkt.io/parisnet
quebecnet: https://rpc.tzkt.io/quebecnet
networks:
- mainnet
- ghostnet
- parisnet
- quebecnet

indexer:
project_name: indexer
Expand All @@ -73,9 +81,12 @@ indexer:
receiver_threads: 5
parisnet:
receiver_threads: 10
quebecnet:
receiver_threads: 10

scripts:
networks:
- mainnet
- ghostnet
- parisnet
- quebecnet
2 changes: 2 additions & 0 deletions internal/bcd/protocols.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ var symLinks = map[string]string{
"PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz": SymLinkJakarta, // Paris B
"PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ": SymLinkJakarta, // Paris B 2,
"PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi": SymLinkJakarta, // Paris C
"PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg": SymLinkJakarta, // Quebec
}

// GetProtoSymLink -
Expand Down Expand Up @@ -84,4 +85,5 @@ var ChainID = map[string]string{
"NetXyuzvDo2Ugzb": "nairobinet",
"NetXxWsskGahzQB": "oxfordnet",
"NetXR64bNAYkP4S": "parisnet",
"NetXuTeGinLEqxp": "quebecnet",
}
3 changes: 3 additions & 0 deletions internal/models/types/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const (
Oxfordnet
Weeklynet
Parisnet
Quebecnet
)

var networkNames = map[Network]string{
Expand All @@ -59,6 +60,7 @@ var networkNames = map[Network]string{
Nairobinet: "nairobinet",
Oxfordnet: "oxfordnet",
Parisnet: "parisnet",
Quebecnet: "quebecnet",
}

var namesToNetwork = map[string]Network{
Expand All @@ -84,6 +86,7 @@ var namesToNetwork = map[string]Network{
"oxfordnet": Oxfordnet,
"weeklynet": Weeklynet,
"parisnet": Parisnet,
"quebecnet": Quebecnet,
}

// String - convert enum to string for printing
Expand Down
3 changes: 2 additions & 1 deletion internal/parsers/operations/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ func (m Migration) Parse(ctx context.Context, data noderpc.Operation, operation
"PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5",
"PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz",
"PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ",
"PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi":
"PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi",
"PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg":
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 @@ -86,7 +86,8 @@ func Get(ctx *config.Context, protocol string) (*Specific, error) {
"PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5",
"PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz",
"PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ",
"PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi":
"PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi",
"PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg":
return &Specific{
StorageParser: storage.NewLazyBabylon(ctx.BigMapDiffs, ctx.Operations, ctx.Accounts),
ContractParser: contract.NewJakarta(ctx),
Expand Down Expand Up @@ -141,7 +142,8 @@ func NeedImplicitParsing(protocol string) bool {
"PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5",
"PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz",
"PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ",
"PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi":
"PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi",
"PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg":
return true
}
return false
Expand Down
Loading