diff --git a/configs/development.yml b/configs/development.yml index 6ddad01d7..64a91c3a2 100644 --- a/configs/development.yml +++ b/configs/development.yml @@ -11,6 +11,10 @@ rpc: uri: https://rpc.tzkt.io/oxfordnet timeout: 20 requests_per_second: 20 + parisnet: + uri: https://rpc.tzkt.io/parisnet + timeout: 20 + requests_per_second: 20 log_level: ${LOG_LEVEL:-info} @@ -21,6 +25,8 @@ services: mempool: https://mempool.test.dipdup.net/v1/graphql oxfordnet: mempool: https://mempool.test.dipdup.net/v1/graphql + parisnet: + mempool: https://mempool.test.dipdup.net/v1/graphql storage: pg: @@ -57,11 +63,13 @@ api: rpc: mainnet: https://rpc.tzkt.io/mainnet ghostnet: https://rpc.tzkt.io/ghostnet - oxfordnet: https://rpc.tzkt.io/oxfordnet + oxfordnet: https://rpc.tzkt.io/oxfordnet + parisnet: https://rpc.tzkt.io/parisnet networks: - mainnet - ghostnet - oxfordnet + - parisnet indexer: project_name: indexer @@ -73,9 +81,12 @@ indexer: receiver_threads: 5 oxfordnet: receiver_threads: 10 + parisnet: + receiver_threads: 10 scripts: networks: - mainnet - ghostnet - oxfordnet + - parisnet diff --git a/configs/production.yml b/configs/production.yml index 73bdd302d..6586f06ee 100644 --- a/configs/production.yml +++ b/configs/production.yml @@ -11,6 +11,10 @@ rpc: uri: https://rpc.tzkt.io/oxfordnet timeout: 20 requests_per_second: 20 + parisnet: + uri: https://rpc.tzkt.io/parisnet + timeout: 20 + requests_per_second: 20 log_level: ${LOG_LEVEL:-info} @@ -21,6 +25,8 @@ services: mempool: https://mempool.test.dipdup.net/v1/graphql oxfordnet: mempool: https://mempool.test.dipdup.net/v1/graphql + parisnet: + mempool: https://mempool.test.dipdup.net/v1/graphql storage: pg: @@ -61,10 +67,12 @@ api: mainnet: https://rpc.tzkt.io/mainnet ghostnet: https://rpc.tzkt.io/ghostnet oxfordnet: https://rpc.tzkt.io/oxfordnet + parisnet: https://rpc.tzkt.io/parisnet networks: - mainnet - ghostnet - oxfordnet + - parisnet indexer: project_name: indexer @@ -76,6 +84,8 @@ indexer: receiver_threads: ${TESTNET_THREADS:-10} oxfordnet: receiver_threads: ${TESTNET_THREADS:-10} + parisnet: + receiver_threads: ${TESTNET_THREADS:-10} scripts: aws: @@ -87,3 +97,4 @@ scripts: - mainnet - ghostnet - oxfordnet + - parisnet diff --git a/internal/bcd/protocols.go b/internal/bcd/protocols.go index 1b3cbb3ee..aca3c6330 100644 --- a/internal/bcd/protocols.go +++ b/internal/bcd/protocols.go @@ -42,6 +42,8 @@ var symLinks = map[string]string{ "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf": SymLinkJakarta, // Nairobinet "ProxfordSW2S7fvchT1Zgj2avb5UES194neRyYVXoaDGvF9egt8": SymLinkJakarta, // Oxford "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH": SymLinkJakarta, // Oxford 2 + "PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5": SymLinkJakarta, // Paris A + "PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz": SymLinkJakarta, // Paris B } // GetProtoSymLink - @@ -79,4 +81,5 @@ var ChainID = map[string]string{ "NetXQw6nWSnrJ5t": "mumbainet", "NetXyuzvDo2Ugzb": "nairobinet", "NetXxWsskGahzQB": "oxfordnet", + "NetXo8SqH1c38SS": "parisnet", } diff --git a/internal/models/types/network.go b/internal/models/types/network.go index cf4666699..ee4330953 100644 --- a/internal/models/types/network.go +++ b/internal/models/types/network.go @@ -33,6 +33,7 @@ const ( Nairobinet Oxfordnet Weeklynet + Parisnet ) var networkNames = map[Network]string{ @@ -57,6 +58,7 @@ var networkNames = map[Network]string{ Rollupnet: "rollupnet", Nairobinet: "nairobinet", Oxfordnet: "oxfordnet", + Parisnet: "parisnet", } var namesToNetwork = map[string]Network{ @@ -81,6 +83,7 @@ var namesToNetwork = map[string]Network{ "nairobinet": Nairobinet, "oxfordnet": Oxfordnet, "weeklynet": Weeklynet, + "parisnet": Parisnet, } // String - convert enum to string for printing diff --git a/internal/parsers/operations/migration.go b/internal/parsers/operations/migration.go index 58c57b1c0..70420a4b3 100644 --- a/internal/parsers/operations/migration.go +++ b/internal/parsers/operations/migration.go @@ -63,7 +63,9 @@ func (m Migration) Parse(ctx context.Context, data noderpc.Operation, operation "PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1", "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf", "ProxfordSW2S7fvchT1Zgj2avb5UES194neRyYVXoaDGvF9egt8", - "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH": + "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH", + "PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5", + "PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz": return m.fromLazyStorageDiff(ctx, data, operation, store) default: return errors.Errorf("unknown protocol for migration parser: %s", protocol) diff --git a/internal/parsers/protocols/protocol.go b/internal/parsers/protocols/protocol.go index ce1da1fb5..7c40ab7f3 100644 --- a/internal/parsers/protocols/protocol.go +++ b/internal/parsers/protocols/protocol.go @@ -82,7 +82,9 @@ func Get(ctx *config.Context, protocol string) (*Specific, error) { "PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1", "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf", "ProxfordSW2S7fvchT1Zgj2avb5UES194neRyYVXoaDGvF9egt8", - "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH": + "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH", + "PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5", + "PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz": return &Specific{ StorageParser: storage.NewLazyBabylon(ctx.BigMapDiffs, ctx.Operations, ctx.Accounts), ContractParser: contract.NewJakarta(ctx), @@ -133,7 +135,9 @@ func NeedImplicitParsing(protocol string) bool { "PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1", "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf", "ProxfordSW2S7fvchT1Zgj2avb5UES194neRyYVXoaDGvF9egt8", - "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH": + "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH", + "PtParisA6ruu136piHaBC7cQLDP87JEqtczJWP2pLa5QCELGBH5", + "PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz": return true } return false