-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
988e1f9
commit 9497b9d
Showing
2 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
# Reusing typename for different contracts | ||
|
||
In some cases, you may want to make some manual changes in typeclasses and ensure they won't be lost on init. Let's say you want to reuse typename for multiple contracts providing the same interface (like FA1.2 and FA2 tokens) but having different storage structure. You can comment out differing fields which are not important for your index. | ||
|
||
`types/contract_typename/storage.py` | ||
|
||
```python | ||
# dipdup: ignore | ||
|
||
... | ||
|
||
class ContractStorage(BaseModel): | ||
some_common_big_map: Dict[str, str] | ||
# unique_big_map_a: Dict[str, str] | ||
# unique_big_map_b: Dict[str, str] | ||
``` | ||
|
||
Files starting with `# dipdup: ignore` won't be overwritten on init. |