web3-wizzard-lib 0.2.0__py3-none-any.whl → 1.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. web3_wizzard_lib/core/contract/coredao_contract.py +2 -3
  2. web3_wizzard_lib/core/contract/coredao_from_contract.py +2 -2
  3. web3_wizzard_lib/core/contract/stargate_token_pool.py +2 -3
  4. web3_wizzard_lib/core/contract/stargate_v2_contract.py +2 -2
  5. web3_wizzard_lib/core/modules/intract_claim.py +2 -5
  6. web3_wizzard_lib/resources/abi/aave.json +282 -0
  7. web3_wizzard_lib/resources/abi/abbysworld.json +1113 -0
  8. web3_wizzard_lib/resources/abi/arena_games.json +15 -0
  9. web3_wizzard_lib/resources/abi/asmatch.json +1113 -0
  10. web3_wizzard_lib/resources/abi/basiliks.json +1467 -0
  11. web3_wizzard_lib/resources/abi/bilinear.json +1375 -0
  12. web3_wizzard_lib/resources/abi/bungee.json +525 -0
  13. web3_wizzard_lib/resources/abi/coredao.json +1068 -0
  14. web3_wizzard_lib/resources/abi/coredao_bridge.json +1012 -0
  15. web3_wizzard_lib/resources/abi/dmail.json +964 -0
  16. web3_wizzard_lib/resources/abi/empty_nft.json +1131 -0
  17. web3_wizzard_lib/resources/abi/era_ns.json +878 -0
  18. web3_wizzard_lib/resources/abi/eralend.json +1221 -0
  19. web3_wizzard_lib/resources/abi/erc20.json +801 -0
  20. web3_wizzard_lib/resources/abi/erc20_test.json +337 -0
  21. web3_wizzard_lib/resources/abi/eth_scroll_bridge.json +675 -0
  22. web3_wizzard_lib/resources/abi/frog_war_contract.json +1943 -0
  23. web3_wizzard_lib/resources/abi/horizondex.json +413 -0
  24. web3_wizzard_lib/resources/abi/horizondex_quoter.json +273 -0
  25. web3_wizzard_lib/resources/abi/imagine.json +457 -0
  26. web3_wizzard_lib/resources/abi/izumi.json +532 -0
  27. web3_wizzard_lib/resources/abi/kreatorland.json +500 -0
  28. web3_wizzard_lib/resources/abi/layerbank.json +1240 -0
  29. web3_wizzard_lib/resources/abi/layerbank_price.json +354 -0
  30. web3_wizzard_lib/resources/abi/layerbank_token.json +1124 -0
  31. web3_wizzard_lib/resources/abi/linea_day_2.json +933 -0
  32. web3_wizzard_lib/resources/abi/linea_day_3.json +1804 -0
  33. web3_wizzard_lib/resources/abi/linea_ens_names.json +1000 -0
  34. web3_wizzard_lib/resources/abi/lineaswap_router.json +973 -0
  35. web3_wizzard_lib/resources/abi/maverick_ipool.json +942 -0
  36. web3_wizzard_lib/resources/abi/maverick_multicall.json +1082 -0
  37. web3_wizzard_lib/resources/abi/mendi_token.json +1690 -0
  38. web3_wizzard_lib/resources/abi/merkly.json +787 -0
  39. web3_wizzard_lib/resources/abi/micro3.json +1054 -0
  40. web3_wizzard_lib/resources/abi/mute_router.json +856 -0
  41. web3_wizzard_lib/resources/abi/nidus.json +1017 -0
  42. web3_wizzard_lib/resources/abi/nile_pool.json +1313 -0
  43. web3_wizzard_lib/resources/abi/nomis.json +1601 -0
  44. web3_wizzard_lib/resources/abi/nomis_attest.json +710 -0
  45. web3_wizzard_lib/resources/abi/octomos.json +408 -0
  46. web3_wizzard_lib/resources/abi/omnisea.json +175 -0
  47. web3_wizzard_lib/resources/abi/orbiter_starknet.json +48 -0
  48. web3_wizzard_lib/resources/abi/pancake/factory.json +450 -0
  49. web3_wizzard_lib/resources/abi/pancake/pool.json +713 -0
  50. web3_wizzard_lib/resources/abi/pancake/quoter.json +285 -0
  51. web3_wizzard_lib/resources/abi/pancake/router.json +1271 -0
  52. web3_wizzard_lib/resources/abi/rage_claim.json +218 -0
  53. web3_wizzard_lib/resources/abi/reactor_fusion.json +1479 -0
  54. web3_wizzard_lib/resources/abi/readon.json +71 -0
  55. web3_wizzard_lib/resources/abi/rubyscore.json +698 -0
  56. web3_wizzard_lib/resources/abi/satoshi_universe.json +301 -0
  57. web3_wizzard_lib/resources/abi/scroll_bridge.json +666 -0
  58. web3_wizzard_lib/resources/abi/scroll_canvas_mint.json +602 -0
  59. web3_wizzard_lib/resources/abi/scroll_oracle.json +714 -0
  60. web3_wizzard_lib/resources/abi/snap.json +622 -0
  61. web3_wizzard_lib/resources/abi/socialscan.json +884 -0
  62. web3_wizzard_lib/resources/abi/stargate_farming.json +494 -0
  63. web3_wizzard_lib/resources/abi/stargate_router.json +1341 -0
  64. web3_wizzard_lib/resources/abi/stargate_swapETH_abi.json +106 -0
  65. web3_wizzard_lib/resources/abi/stargate_token_pool.json +1940 -0
  66. web3_wizzard_lib/resources/abi/stargate_v2.json +1936 -0
  67. web3_wizzard_lib/resources/abi/syncswap_classic_pool.json +151 -0
  68. web3_wizzard_lib/resources/abi/syncswap_classic_pool_factory.json +151 -0
  69. web3_wizzard_lib/resources/abi/syncswap_pool.json +924 -0
  70. web3_wizzard_lib/resources/abi/syncswap_router.json +1178 -0
  71. web3_wizzard_lib/resources/abi/syncswap_stable_pool.json +950 -0
  72. web3_wizzard_lib/resources/abi/tavaera.json +586 -0
  73. web3_wizzard_lib/resources/abi/tavaera_id.json +724 -0
  74. web3_wizzard_lib/resources/abi/townstory.json +391 -0
  75. web3_wizzard_lib/resources/abi/townstory_bonus.json +279 -0
  76. web3_wizzard_lib/resources/abi/uniswap_abi.json +193 -0
  77. web3_wizzard_lib/resources/abi/velocore.json +1008 -0
  78. web3_wizzard_lib/resources/abi/velocore_lens.json +1030 -0
  79. web3_wizzard_lib/resources/abi/velocore_pool.json +490 -0
  80. web3_wizzard_lib/resources/abi/velocore_vault.json +1272 -0
  81. web3_wizzard_lib/resources/abi/weth.json +279 -0
  82. web3_wizzard_lib/resources/abi/woofi.json +400 -0
  83. web3_wizzard_lib/resources/abi/yoddlo.json +67 -0
  84. web3_wizzard_lib/resources/abi/zebra.json +1075 -0
  85. web3_wizzard_lib/resources/abi/zerolend.json +282 -0
  86. web3_wizzard_lib/resources/abi/zerolend_liquidity.json +1038 -0
  87. web3_wizzard_lib/resources/abi/zkdx_data.json +436 -0
  88. web3_wizzard_lib/resources/abi/zks.json +671 -0
  89. web3_wizzard_lib/resources/banner.txt +7 -0
  90. web3_wizzard_lib/resources/goerli/contracts.json +48 -0
  91. web3_wizzard_lib/resources/goerli/networks.json +139 -0
  92. web3_wizzard_lib/resources/goerli/pairs.json +113 -0
  93. web3_wizzard_lib/resources/goerli/tokens.json +40 -0
  94. web3_wizzard_lib/resources/linea_appeal.txt +0 -0
  95. web3_wizzard_lib/resources/local/contracts.json +150 -0
  96. web3_wizzard_lib/resources/local/networks.json +119 -0
  97. web3_wizzard_lib/resources/local/pairs.json +451 -0
  98. web3_wizzard_lib/resources/local/tokens.json +88 -0
  99. web3_wizzard_lib/resources/main/contracts.json +229 -0
  100. web3_wizzard_lib/resources/main/networks.json +272 -0
  101. web3_wizzard_lib/resources/main/pairs.json +516 -0
  102. web3_wizzard_lib/resources/main/tokens.json +119 -0
  103. web3_wizzard_lib/resources/verify_data.json +1243 -0
  104. web3_wizzard_lib-1.0.1.data/data/requirements.txt +1 -0
  105. {web3_wizzard_lib-0.2.0.dist-info → web3_wizzard_lib-1.0.1.dist-info}/METADATA +2 -2
  106. {web3_wizzard_lib-0.2.0.dist-info → web3_wizzard_lib-1.0.1.dist-info}/RECORD +108 -10
  107. web3_wizzard_lib-0.2.0.data/data/requirements.txt +0 -1
  108. {web3_wizzard_lib-0.2.0.dist-info → web3_wizzard_lib-1.0.1.dist-info}/WHEEL +0 -0
  109. {web3_wizzard_lib-0.2.0.dist-info → web3_wizzard_lib-1.0.1.dist-info}/top_level.txt +0 -0
@@ -1,9 +1,8 @@
1
1
  from sybil_engine.contract.contract import Contract
2
2
  from sybil_engine.contract.transaction_executor import l0_evm_transaction
3
+ from sybil_engine.utils.file_loader import load_abi
3
4
 
4
- with open("resources/abi/coredao.json") as f:
5
- abi = f.read()
6
-
5
+ abi = load_abi("resources/abi/coredao.json")
7
6
 
8
7
  class CoreDaoContract(Contract):
9
8
  def __init__(self, contract_address, web3):
@@ -1,10 +1,10 @@
1
1
  from sybil_engine.contract.contract import Contract
2
2
  from sybil_engine.contract.transaction_executor import l0_evm_transaction
3
+ from sybil_engine.utils.file_loader import load_abi
3
4
 
4
5
  from web3_wizzard_lib.core.modules.stargate.l0_data import l0_chain_ids
5
6
 
6
- with open("resources/abi/coredao_bridge.json") as f:
7
- abi = f.read()
7
+ abi = load_abi("resources/abi/coredao_bridge.json")
8
8
 
9
9
 
10
10
  class CoreDaoFromContract(Contract):
@@ -1,10 +1,9 @@
1
1
  from loguru import logger
2
2
  from sybil_engine.contract.contract import Contract
3
+ from sybil_engine.utils.file_loader import load_abi
3
4
  from web3 import Web3
4
5
 
5
- with open("resources/abi/stargate_token_pool.json") as f:
6
- abi = f.read()
7
-
6
+ abi = load_abi("resources/abi/stargate_token_pool.json")
8
7
 
9
8
  MAX_ALLOWANCE = 115792089237316195423570985008687907853269984665640564039457584007913129639935
10
9
 
@@ -1,8 +1,8 @@
1
1
  from sybil_engine.contract.contract import Contract
2
2
  from sybil_engine.contract.transaction_executor import evm_transaction
3
+ from sybil_engine.utils.file_loader import load_abi
3
4
 
4
- with open("resources/abi/stargate_v2.json") as f:
5
- abi = f.read()
5
+ abi = load_abi("resources/abi/stargate_v2.json")
6
6
 
7
7
 
8
8
  class StargateV2Contract(Contract):
@@ -1,18 +1,15 @@
1
- from json import load
2
-
3
1
  from eth_account.messages import encode_defunct
4
2
  from loguru import logger
5
3
  from sybil_engine.data.networks import get_chain_instance
6
4
  from sybil_engine.module.module import Module
5
+ from sybil_engine.utils.file_loader import load_abi
7
6
  from sybil_engine.utils.utils import AccountException
8
7
  from sybil_engine.utils.web3_utils import init_web3
9
8
 
10
9
  from web3_wizzard_lib.core.modules.intract.intract_api import IntractAPI
11
10
  from web3_wizzard_lib.core.modules.intract.utils import TgReport, WindowName, make_text_border
12
11
 
13
- with open('resources/verify_data.json') as f:
14
- VERIFY_DATA = load(f)
15
-
12
+ VERIFY_DATA = load_abi("resources/verify_data.json")
16
13
 
17
14
  class IntractClaim(Module):
18
15
  module_name = 'INTRACT_CLAIM'
@@ -0,0 +1,282 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "weth",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "owner",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "contract IPool",
16
+ "name": "pool",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "anonymous": false,
25
+ "inputs": [
26
+ {
27
+ "indexed": true,
28
+ "internalType": "address",
29
+ "name": "previousOwner",
30
+ "type": "address"
31
+ },
32
+ {
33
+ "indexed": true,
34
+ "internalType": "address",
35
+ "name": "newOwner",
36
+ "type": "address"
37
+ }
38
+ ],
39
+ "name": "OwnershipTransferred",
40
+ "type": "event"
41
+ },
42
+ {
43
+ "stateMutability": "payable",
44
+ "type": "fallback"
45
+ },
46
+ {
47
+ "inputs": [
48
+ {
49
+ "internalType": "address",
50
+ "name": "",
51
+ "type": "address"
52
+ },
53
+ {
54
+ "internalType": "uint256",
55
+ "name": "amount",
56
+ "type": "uint256"
57
+ },
58
+ {
59
+ "internalType": "uint256",
60
+ "name": "interestRateMode",
61
+ "type": "uint256"
62
+ },
63
+ {
64
+ "internalType": "uint16",
65
+ "name": "referralCode",
66
+ "type": "uint16"
67
+ }
68
+ ],
69
+ "name": "borrowETH",
70
+ "outputs": [],
71
+ "stateMutability": "nonpayable",
72
+ "type": "function"
73
+ },
74
+ {
75
+ "inputs": [
76
+ {
77
+ "internalType": "address",
78
+ "name": "",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "internalType": "address",
83
+ "name": "onBehalfOf",
84
+ "type": "address"
85
+ },
86
+ {
87
+ "internalType": "uint16",
88
+ "name": "referralCode",
89
+ "type": "uint16"
90
+ }
91
+ ],
92
+ "name": "depositETH",
93
+ "outputs": [],
94
+ "stateMutability": "payable",
95
+ "type": "function"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "address",
101
+ "name": "to",
102
+ "type": "address"
103
+ },
104
+ {
105
+ "internalType": "uint256",
106
+ "name": "amount",
107
+ "type": "uint256"
108
+ }
109
+ ],
110
+ "name": "emergencyEtherTransfer",
111
+ "outputs": [],
112
+ "stateMutability": "nonpayable",
113
+ "type": "function"
114
+ },
115
+ {
116
+ "inputs": [
117
+ {
118
+ "internalType": "address",
119
+ "name": "token",
120
+ "type": "address"
121
+ },
122
+ {
123
+ "internalType": "address",
124
+ "name": "to",
125
+ "type": "address"
126
+ },
127
+ {
128
+ "internalType": "uint256",
129
+ "name": "amount",
130
+ "type": "uint256"
131
+ }
132
+ ],
133
+ "name": "emergencyTokenTransfer",
134
+ "outputs": [],
135
+ "stateMutability": "nonpayable",
136
+ "type": "function"
137
+ },
138
+ {
139
+ "inputs": [],
140
+ "name": "getWETHAddress",
141
+ "outputs": [
142
+ {
143
+ "internalType": "address",
144
+ "name": "",
145
+ "type": "address"
146
+ }
147
+ ],
148
+ "stateMutability": "view",
149
+ "type": "function"
150
+ },
151
+ {
152
+ "inputs": [],
153
+ "name": "owner",
154
+ "outputs": [
155
+ {
156
+ "internalType": "address",
157
+ "name": "",
158
+ "type": "address"
159
+ }
160
+ ],
161
+ "stateMutability": "view",
162
+ "type": "function"
163
+ },
164
+ {
165
+ "inputs": [],
166
+ "name": "renounceOwnership",
167
+ "outputs": [],
168
+ "stateMutability": "nonpayable",
169
+ "type": "function"
170
+ },
171
+ {
172
+ "inputs": [
173
+ {
174
+ "internalType": "address",
175
+ "name": "",
176
+ "type": "address"
177
+ },
178
+ {
179
+ "internalType": "uint256",
180
+ "name": "amount",
181
+ "type": "uint256"
182
+ },
183
+ {
184
+ "internalType": "uint256",
185
+ "name": "rateMode",
186
+ "type": "uint256"
187
+ },
188
+ {
189
+ "internalType": "address",
190
+ "name": "onBehalfOf",
191
+ "type": "address"
192
+ }
193
+ ],
194
+ "name": "repayETH",
195
+ "outputs": [],
196
+ "stateMutability": "payable",
197
+ "type": "function"
198
+ },
199
+ {
200
+ "inputs": [
201
+ {
202
+ "internalType": "address",
203
+ "name": "newOwner",
204
+ "type": "address"
205
+ }
206
+ ],
207
+ "name": "transferOwnership",
208
+ "outputs": [],
209
+ "stateMutability": "nonpayable",
210
+ "type": "function"
211
+ },
212
+ {
213
+ "inputs": [
214
+ {
215
+ "internalType": "address",
216
+ "name": "",
217
+ "type": "address"
218
+ },
219
+ {
220
+ "internalType": "uint256",
221
+ "name": "amount",
222
+ "type": "uint256"
223
+ },
224
+ {
225
+ "internalType": "address",
226
+ "name": "to",
227
+ "type": "address"
228
+ }
229
+ ],
230
+ "name": "withdrawETH",
231
+ "outputs": [],
232
+ "stateMutability": "nonpayable",
233
+ "type": "function"
234
+ },
235
+ {
236
+ "inputs": [
237
+ {
238
+ "internalType": "address",
239
+ "name": "",
240
+ "type": "address"
241
+ },
242
+ {
243
+ "internalType": "uint256",
244
+ "name": "amount",
245
+ "type": "uint256"
246
+ },
247
+ {
248
+ "internalType": "address",
249
+ "name": "to",
250
+ "type": "address"
251
+ },
252
+ {
253
+ "internalType": "uint256",
254
+ "name": "deadline",
255
+ "type": "uint256"
256
+ },
257
+ {
258
+ "internalType": "uint8",
259
+ "name": "permitV",
260
+ "type": "uint8"
261
+ },
262
+ {
263
+ "internalType": "bytes32",
264
+ "name": "permitR",
265
+ "type": "bytes32"
266
+ },
267
+ {
268
+ "internalType": "bytes32",
269
+ "name": "permitS",
270
+ "type": "bytes32"
271
+ }
272
+ ],
273
+ "name": "withdrawETHWithPermit",
274
+ "outputs": [],
275
+ "stateMutability": "nonpayable",
276
+ "type": "function"
277
+ },
278
+ {
279
+ "stateMutability": "payable",
280
+ "type": "receive"
281
+ }
282
+ ]