From 0762f5c6ca94ca8a705b267c700b4b7b271d2546 Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Fri, 22 Nov 2024 01:29:37 -0300 Subject: [PATCH] update TzipMetadataNetwork, launch.json generator --- .vscode/launch.json | 144 +++++++++++++++++++++-------- docs/7.references/4.models.md | 1 + schemas/dipdup-3.0.json | 5 +- scripts/docs.py | 2 + src/dipdup/models/tzip_metadata.py | 2 + 5 files changed, 116 insertions(+), 38 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 6f8a69480..a92be6516 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,8 +13,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_blank", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -29,8 +31,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_blank", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -45,8 +49,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_evm_events", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -61,8 +67,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_evm_events", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -77,8 +85,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_evm_transactions", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -93,8 +103,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_evm_transactions", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -109,8 +121,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_evm_uniswap", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -125,8 +139,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_evm_uniswap", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -141,8 +157,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_starknet_events", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -157,8 +175,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_starknet_events", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -173,8 +193,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_auction", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -189,8 +211,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_auction", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -205,8 +229,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_dao", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -221,8 +247,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_dao", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -237,8 +265,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_dex", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -253,8 +283,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_dex", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -269,8 +301,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_domains", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -285,8 +319,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_domains", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -301,8 +337,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_etherlink", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -317,8 +355,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_etherlink", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -333,8 +373,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_events", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -349,8 +391,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_events", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -365,8 +409,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_factories", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -381,8 +427,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_factories", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -397,8 +445,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_head", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -413,8 +463,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_head", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -429,8 +481,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_nft_marketplace", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -445,8 +499,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_nft_marketplace", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -461,8 +517,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_raw", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -477,8 +535,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_raw", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -493,8 +553,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_token", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -509,8 +571,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_token", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -525,8 +589,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_token_balances", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -541,8 +607,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_token_balances", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -557,8 +625,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_token_transfers", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } }, { @@ -573,8 +643,10 @@ ], "console": "integratedTerminal", "cwd": "${workspaceFolder}/src/demo_tezos_token_transfers", + "justMyCode": false, "env": { - "DIPDUP_DEBUG": "1" + "DIPDUP_DEBUG": "1", + "DIPDUP_NO_SYMLINK": "1" } } ] diff --git a/docs/7.references/4.models.md b/docs/7.references/4.models.md index 853172d53..8cdb719cf 100644 --- a/docs/7.references/4.models.md +++ b/docs/7.references/4.models.md @@ -853,6 +853,7 @@ description: "Models reference"
  • nairobinet – nairobinet

  • oxfordnet – oxfordnet

  • parisnet – parisnet

  • +
  • quebecnet – quebecnet

  • diff --git a/schemas/dipdup-3.0.json b/schemas/dipdup-3.0.json index 03b44de87..2abe91f8c 100644 --- a/schemas/dipdup-3.0.json +++ b/schemas/dipdup-3.0.json @@ -2682,13 +2682,14 @@ "type": "object" }, "TzipMetadataNetwork": { - "description": "Tezos network enum for TZIP-16 metadata.\n\n:param mainnet: mainnet\n:param ghostnet: ghostnet\n:param nairobinet: nairobinet\n:param oxfordnet: oxfordnet\n:param parisnet: parisnet", + "description": "Tezos network enum for TZIP-16 metadata.\n\n:param mainnet: mainnet\n:param ghostnet: ghostnet\n:param nairobinet: nairobinet\n:param oxfordnet: oxfordnet\n:param parisnet: parisnet\n:param quebecnet: quebecnet", "enum": [ "mainnet", "ghostnet", "nairobinet", "oxfordnet", - "parisnet" + "parisnet", + "quebecnet" ], "title": "TzipMetadataNetwork", "type": "string" diff --git a/scripts/docs.py b/scripts/docs.py index d8075965f..24e70d18a 100755 --- a/scripts/docs.py +++ b/scripts/docs.py @@ -764,8 +764,10 @@ def dump_demos() -> None: 'args': ('-e', '.env', *args), 'console': 'integratedTerminal', 'cwd': '${workspaceFolder}/src/' + name, + 'justMyCode': False, 'env': { 'DIPDUP_DEBUG': '1', + 'DIPDUP_NO_SYMLINK': '1', }, } ) diff --git a/src/dipdup/models/tzip_metadata.py b/src/dipdup/models/tzip_metadata.py index ed8bd4eed..83e89f3a1 100644 --- a/src/dipdup/models/tzip_metadata.py +++ b/src/dipdup/models/tzip_metadata.py @@ -9,6 +9,7 @@ class TzipMetadataNetwork(Enum): :param nairobinet: nairobinet :param oxfordnet: oxfordnet :param parisnet: parisnet + :param quebecnet: quebecnet """ mainnet = 'mainnet' @@ -16,3 +17,4 @@ class TzipMetadataNetwork(Enum): nairobinet = 'nairobinet' oxfordnet = 'oxfordnet' parisnet = 'parisnet' + quebecnet = 'quebecnet'