1
1
from ..errors import NoSignerException
2
2
from ..types import Role
3
+ from ..types .pack import PackMetadata , PackNftMetadata , CreatePackArg , AssetAmountPair
4
+ from ..types .nft import NftMetadata
5
+ from ..types .currency import Currency , CurrencyValue
3
6
from ..abi .pack import Pack
4
7
from .base import BaseModule
5
- from .currency_types import Currency , CurrencyValue
6
8
from ..abi .erc20 import ERC20
7
9
from web3 import Web3
8
10
from typing import List , Dict
@@ -17,6 +19,57 @@ def __init__(self, address: str, client: Web3):
17
19
self .address = address
18
20
self .__abi_module = Pack (client , address )
19
21
22
+ def get (self , pack_id : int ) -> PackMetadata :
23
+ pass
24
+
25
+ def open (self , pack_id : int ) -> List [NftMetadata ]:
26
+ pass
27
+
28
+ def get_all (self ) -> List [PackMetadata ]:
29
+ pass
30
+
31
+ def get_nfts (self , pack_id : int ) -> List [PackNftMetadata ]:
32
+ pass
33
+
34
+ def balance_of (self , address : str , token_id : int ) -> int :
35
+ pass
36
+
37
+ def balance (self , token_id ) -> int :
38
+ pass
39
+
40
+ def is_approved (self , address : str , operator : str ) -> bool :
41
+ pass
42
+
43
+ def set_approval (self , operator : str , approved : bool ):
44
+ pass
45
+
46
+ def transfer (self , to_address : str , token_id : int , amount : int ):
47
+ pass
48
+
49
+ def create (self , arg : CreatePackArg ) -> PackMetadata :
50
+ pass
51
+
52
+ def transfer_from (self , from_address : str , to_address : str , args : AssetAmountPair ):
53
+ pass
54
+
55
+ def transfer_batch_from (self , from_address : str , to_address : str , args : List [AssetAmountPair ]):
56
+ pass
57
+
58
+ def get_link_balance (self ) -> CurrencyValue :
59
+ pass
60
+
61
+ def deposit_link (self , amount : int ):
62
+ pass
63
+
64
+ def withdraw_link (self , to_address : str , amount : int ):
65
+ pass
66
+
67
+ def set_royalty_bps (self , amount : int ):
68
+ pass
69
+
70
+ def set_restricted_transfer (self , restricted : bool = False ):
71
+ pass
72
+
20
73
def grant_role (self , role : Role , address : str ):
21
74
role_hash = role .get_hash ()
22
75
self .execute_tx (self .__abi_module .grant_role .build_transaction (
0 commit comments