Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit c1ad584

Browse files
committed
Mirror types instead of replacements
1 parent 9e60a7e commit c1ad584

File tree

4 files changed

+5
-303
lines changed

4 files changed

+5
-303
lines changed

thirdweb/modules/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
from .currency import *
66
from .market import *
77
from .pack import *
8-
from .collection import *
8+
from .collection import CollectionModule
99
from .bundle import *

thirdweb/modules/collection.py

Lines changed: 0 additions & 262 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from ..bundle import BundleModule
2+
3+
CollectionModule = BundleModule
Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1 @@
1-
from dataclasses import dataclass
2-
from typing import Optional
3-
4-
from dataclasses_json import dataclass_json
5-
6-
from ..nft import NftMetadata
7-
from ..metadata import Metadata
8-
9-
10-
@dataclass_json
11-
@dataclass
12-
class CollectionMetadata:
13-
"""
14-
COLLECTION MODULE AND ALL ITS CLASSES WILL BE DEPRECATED SOON. USE BUNDLE MODULE INSTEAD.
15-
"""
16-
id: Optional[int] = None
17-
creator: Optional[str] = None
18-
supply: Optional[int] = None
19-
metadata: Optional[NftMetadata] = None
20-
21-
22-
@dataclass_json
23-
@dataclass
24-
class CreateCollectionArg:
25-
"""
26-
COLLECTION MODULE AND ALL ITS CLASSES WILL BE DEPRECATED SOON. USE BUNDLE MODULE INSTEAD.
27-
"""
28-
metadata: Optional[Metadata] = None
29-
supply: Optional[int] = None
30-
31-
32-
@dataclass_json
33-
@dataclass
34-
class MintCollectionArg:
35-
"""
36-
COLLECTION MODULE AND ALL ITS CLASSES WILL BE DEPRECATED SOON. USE BUNDLE MODULE INSTEAD.
37-
"""
38-
token_id: Optional[int] = None
39-
amount: Optional[int] = None
40-
1+
from .types import CreateCollectionArg, CollectionMetadata, MintCollectionArg

0 commit comments

Comments
 (0)