web3-wizzard-lib 0.0.2__py3-none-any.whl → 0.1.0__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 (298) hide show
  1. web3_wizzard_lib/core/modules/linea_appeal.py +69 -52
  2. web3_wizzard_lib/core/modules/stargate/farming.py +1 -1
  3. web3_wizzard_lib/core/utils/ai_utils.py +45 -0
  4. web3_wizzard_lib/core/utils/benchmark_utils.py +12 -0
  5. web3_wizzard_lib/core/utils/module_memory.py +26 -0
  6. web3_wizzard_lib-0.1.0.data/data/requirements.txt +1 -0
  7. {web3_wizzard_lib-0.0.2.dist-info → web3_wizzard_lib-0.1.0.dist-info}/METADATA +9 -4
  8. {web3_wizzard_lib-0.0.2.dist-info → web3_wizzard_lib-0.1.0.dist-info}/RECORD +10 -294
  9. {web3_wizzard_lib-0.0.2.dist-info → web3_wizzard_lib-0.1.0.dist-info}/WHEEL +1 -1
  10. core/__init__.py +0 -1
  11. core/contract/__init__.py +0 -0
  12. core/contract/aavecontract.py +0 -36
  13. core/contract/alienswap_contract.py +0 -21
  14. core/contract/arena_games_contract.py +0 -16
  15. core/contract/basiliskcontract.py +0 -58
  16. core/contract/bilinear_contract.py +0 -22
  17. core/contract/bungee.py +0 -33
  18. core/contract/coredao_contract.py +0 -35
  19. core/contract/coredao_from_contract.py +0 -40
  20. core/contract/dmail_send_mail.py +0 -18
  21. core/contract/empty_nft.py +0 -18
  22. core/contract/era_name.py +0 -23
  23. core/contract/eralendcontract.py +0 -34
  24. core/contract/eth_scroll_bridge_contract.py +0 -25
  25. core/contract/frog_war_contract.py +0 -48
  26. core/contract/horizondex_quoter.py +0 -14
  27. core/contract/horizondex_router.py +0 -91
  28. core/contract/imagine_contract.py +0 -18
  29. core/contract/izumi.py +0 -63
  30. core/contract/kreatorland_contract.py +0 -21
  31. core/contract/l0_claim.py +0 -254
  32. core/contract/l2_telegraph.py +0 -21
  33. core/contract/layerbank_price.py +0 -18
  34. core/contract/layerbank_token.py +0 -29
  35. core/contract/layerbankcontract.py +0 -59
  36. core/contract/linea_day_2_contract.py +0 -19
  37. core/contract/linea_day_3_contract.py +0 -55
  38. core/contract/linea_ens_names_contract.py +0 -55
  39. core/contract/lineaswaprouter.py +0 -52
  40. core/contract/maverick_multicall.py +0 -52
  41. core/contract/mendi_finance_contract.py +0 -11
  42. core/contract/mendi_token.py +0 -25
  43. core/contract/merkly_minter.py +0 -47
  44. core/contract/micro3_contract.py +0 -18
  45. core/contract/mute_router.py +0 -93
  46. core/contract/nidum_contract.py +0 -44
  47. core/contract/nile_contract.py +0 -60
  48. core/contract/nomis_attest_contract.py +0 -40
  49. core/contract/nomis_contract.py +0 -40
  50. core/contract/octomos.py +0 -31
  51. core/contract/odos.py +0 -104
  52. core/contract/omnisea.py +0 -29
  53. core/contract/orbiter_starknet.py +0 -30
  54. core/contract/pancake_pool.py +0 -19
  55. core/contract/pancake_quoter.py +0 -20
  56. core/contract/pancake_router.py +0 -72
  57. core/contract/rage_claim.py +0 -24
  58. core/contract/reactor_fusion_contract.py +0 -78
  59. core/contract/readon_contract.py +0 -19
  60. core/contract/rubyscore_contract.py +0 -31
  61. core/contract/satoshi_universe_contract.py +0 -29
  62. core/contract/scroll_bridge_contract.py +0 -24
  63. core/contract/scroll_canvas_mint_contract.py +0 -26
  64. core/contract/scroll_oracle.py +0 -11
  65. core/contract/snap_contract.py +0 -16
  66. core/contract/social_scan_contract.py +0 -20
  67. core/contract/stargate_farming.py +0 -37
  68. core/contract/stargate_router.py +0 -84
  69. core/contract/stargate_router_eth.py +0 -41
  70. core/contract/stargate_token_pool.py +0 -46
  71. core/contract/stargate_v2_contract.py +0 -36
  72. core/contract/syncswap_classic_pool.py +0 -15
  73. core/contract/syncswap_classic_pool_factory.py +0 -15
  74. core/contract/syncswap_pool.py +0 -25
  75. core/contract/syncswap_router.py +0 -123
  76. core/contract/tavaera_id.py +0 -18
  77. core/contract/tavaera_mint.py +0 -17
  78. core/contract/townstory_bonus_contract.py +0 -19
  79. core/contract/townstory_contract.py +0 -21
  80. core/contract/velocore_lens.py +0 -44
  81. core/contract/velocore_pool.py +0 -198
  82. core/contract/velocore_router.py +0 -80
  83. core/contract/woofi_swap.py +0 -29
  84. core/contract/xy_finance_contract.py +0 -87
  85. core/contract/yoddlo_contract.py +0 -19
  86. core/contract/yuliverse_contract.py +0 -36
  87. core/contract/zebra_contract.py +0 -68
  88. core/contract/zerolend_contract.py +0 -34
  89. core/contract/zerolend_liq_contract.py +0 -20
  90. core/contract/zkdx_contract.py +0 -40
  91. core/contract/zkdx_data.py +0 -14
  92. core/contract/zks.py +0 -24
  93. core/modules/__init__.py +0 -0
  94. core/modules/ads_import_proxy.py +0 -52
  95. core/modules/airdrop_printer.py +0 -80
  96. core/modules/bank/__init__.py +0 -0
  97. core/modules/bank/aave.py +0 -25
  98. core/modules/bank/bank.py +0 -15
  99. core/modules/bank/bank_module.py +0 -99
  100. core/modules/bank/basilisk.py +0 -25
  101. core/modules/bank/eralend.py +0 -25
  102. core/modules/bank/layerbank.py +0 -116
  103. core/modules/bank/mendi_finance.py +0 -57
  104. core/modules/bank/reactorfusion.py +0 -25
  105. core/modules/bank/zerolend.py +0 -36
  106. core/modules/bridge/__init__.py +0 -0
  107. core/modules/bridge/bridge.py +0 -8
  108. core/modules/bridge/coredao_bridge_sub.py +0 -47
  109. core/modules/bridge/orbiter_sub.py +0 -112
  110. core/modules/bridge/scroll_bridge_sub.py +0 -42
  111. core/modules/bridge/stargate_v2_sub.py +0 -74
  112. core/modules/bridge_module.py +0 -47
  113. core/modules/bungee.py +0 -109
  114. core/modules/cex_sender.py +0 -60
  115. core/modules/cex_subaccount_transfer.py +0 -34
  116. core/modules/cex_withdraw.py +0 -91
  117. core/modules/claimer.py +0 -45
  118. core/modules/claims/__init__.py +0 -0
  119. core/modules/claims/layerzero_claimer.py +0 -64
  120. core/modules/claims/rabby_claimer.py +0 -81
  121. core/modules/concrete_swap.py +0 -97
  122. core/modules/coredao_bridge.py +0 -32
  123. core/modules/coredao_bridge_auto.py +0 -39
  124. core/modules/debank_checker.py +0 -90
  125. core/modules/dmail.py +0 -54
  126. core/modules/erc20_balance.py +0 -42
  127. core/modules/intract/__init__.py +0 -0
  128. core/modules/intract/intract_api.py +0 -212
  129. core/modules/intract/utils.py +0 -81
  130. core/modules/intract_claim.py +0 -104
  131. core/modules/layer_2_20.py +0 -65
  132. core/modules/lending_module.py +0 -134
  133. core/modules/linea_appeal.py +0 -70
  134. core/modules/linea_poh_lxp.py +0 -64
  135. core/modules/liquidity/__init__.py +0 -0
  136. core/modules/liquidity/nile_pool.py +0 -64
  137. core/modules/liquidity/pool.py +0 -16
  138. core/modules/liquidity/syncswap_pool.py +0 -61
  139. core/modules/liquidity/velocore_pool.py +0 -55
  140. core/modules/liquidity/zerolend_liquidity.py +0 -26
  141. core/modules/liquidity_pool.py +0 -60
  142. core/modules/merkly_refuel.py +0 -87
  143. core/modules/modules.py +0 -4
  144. core/modules/nft/__init__.py +0 -0
  145. core/modules/nft/abbys_world.py +0 -22
  146. core/modules/nft/acg_worlds.py +0 -25
  147. core/modules/nft/alienswap_linea.py +0 -22
  148. core/modules/nft/arena_games.py +0 -22
  149. core/modules/nft/asmatch.py +0 -22
  150. core/modules/nft/battlemon.py +0 -25
  151. core/modules/nft/bilinear.py +0 -22
  152. core/modules/nft/bitavatar.py +0 -25
  153. core/modules/nft/culture_satoshi_universe.py +0 -24
  154. core/modules/nft/efrogs.py +0 -26
  155. core/modules/nft/empty_nft.py +0 -22
  156. core/modules/nft/era_domain.py +0 -42
  157. core/modules/nft/frog_war.py +0 -22
  158. core/modules/nft/frog_war_bonus.py +0 -22
  159. core/modules/nft/gamerboom.py +0 -25
  160. core/modules/nft/gamerboom_bonus.py +0 -26
  161. core/modules/nft/imagine.py +0 -32
  162. core/modules/nft/kreatorland_module.py +0 -35
  163. core/modules/nft/l2_telegraph_module.py +0 -22
  164. core/modules/nft/layer3_meta.py +0 -25
  165. core/modules/nft/linea_culture_2_2_linus.py +0 -24
  166. core/modules/nft/linea_culture_2_3_yooldo.py +0 -24
  167. core/modules/nft/linea_culture_2_4_frogwar.py +0 -24
  168. core/modules/nft/linea_culture_2_5_acg.py +0 -25
  169. core/modules/nft/linea_culture_2_6_ascend_the_end.py +0 -25
  170. core/modules/nft/linea_culture_3_1_ascend_the_end.py +0 -25
  171. core/modules/nft/linea_culture_3_2_sending_me.py +0 -25
  172. core/modules/nft/linea_culture_3_3_townstory.py +0 -25
  173. core/modules/nft/linea_culture_3_4_daniele.py +0 -25
  174. core/modules/nft/linea_culture_3_5_demmortal.py +0 -25
  175. core/modules/nft/linea_culture_3_6_foxy.py +0 -25
  176. core/modules/nft/linea_culture_4_1_coop_records.py +0 -60
  177. core/modules/nft/linea_culture_4_2_borja_moskv.py +0 -65
  178. core/modules/nft/linea_culture_4_2_borja_moskv_approve.py +0 -27
  179. core/modules/nft/linea_culture_4_3_fruit.py +0 -66
  180. core/modules/nft/linea_culture_4_4_fruit_crux.py +0 -67
  181. core/modules/nft/linea_culture_4_5_forbidden_fruit.py +0 -67
  182. core/modules/nft/linea_culture_4_6_laurent.py +0 -67
  183. core/modules/nft/linea_culture_day2.py +0 -20
  184. core/modules/nft/linea_culture_day3.py +0 -20
  185. core/modules/nft/linea_ens_names.py +0 -107
  186. core/modules/nft/lucky_cat.py +0 -25
  187. core/modules/nft/merkly_minter_module.py +0 -22
  188. core/modules/nft/micro3.py +0 -23
  189. core/modules/nft/mint_2048.py +0 -28
  190. core/modules/nft/nft_submodule.py +0 -16
  191. core/modules/nft/nidum.py +0 -87
  192. core/modules/nft/nidum_bonus.py +0 -23
  193. core/modules/nft/nomis.py +0 -64
  194. core/modules/nft/nomis_attest.py +0 -66
  195. core/modules/nft/nouns.py +0 -27
  196. core/modules/nft/octomos.py +0 -32
  197. core/modules/nft/omnisea.py +0 -33
  198. core/modules/nft/omnizone.py +0 -25
  199. core/modules/nft/orbiter_claim.py +0 -87
  200. core/modules/nft/readon.py +0 -30
  201. core/modules/nft/rubyscore.py +0 -45
  202. core/modules/nft/sarubol.py +0 -22
  203. core/modules/nft/satoshi_universe.py +0 -22
  204. core/modules/nft/scroll_canvas_attest_year_badge.py +0 -35
  205. core/modules/nft/scroll_canvas_mint.py +0 -51
  206. core/modules/nft/sign.py +0 -32
  207. core/modules/nft/snap.py +0 -25
  208. core/modules/nft/snap_bonus.py +0 -31
  209. core/modules/nft/social_scan.py +0 -22
  210. core/modules/nft/sub_module.py +0 -8
  211. core/modules/nft/tavaera.py +0 -30
  212. core/modules/nft/townstory.py +0 -75
  213. core/modules/nft/townstory_bonus.py +0 -45
  214. core/modules/nft/trusta_reputation.py +0 -48
  215. core/modules/nft/trustaa_poh.py +0 -49
  216. core/modules/nft/uber_poh.py +0 -24
  217. core/modules/nft/wizards_of_linea.py +0 -26
  218. core/modules/nft/yoddlo.py +0 -22
  219. core/modules/nft/yuliverse.py +0 -22
  220. core/modules/nft/zace.py +0 -25
  221. core/modules/nft/zks_domain.py +0 -41
  222. core/modules/nft_minter.py +0 -107
  223. core/modules/orbiter.py +0 -39
  224. core/modules/orbiter_checker.py +0 -26
  225. core/modules/rage.py +0 -54
  226. core/modules/scroll_bridge.py +0 -45
  227. core/modules/sell_all.py +0 -51
  228. core/modules/sleep_module.py +0 -25
  229. core/modules/smart_contract_deployment.py +0 -37
  230. core/modules/stargate/__init__.py +0 -0
  231. core/modules/stargate/auto_bridge.py +0 -91
  232. core/modules/stargate/bridge.py +0 -38
  233. core/modules/stargate/bridge_eth.py +0 -59
  234. core/modules/stargate/bridge_tokens.py +0 -48
  235. core/modules/stargate/classic_bridge.py +0 -34
  236. core/modules/stargate/farming.py +0 -163
  237. core/modules/stargate/l0_data.py +0 -10
  238. core/modules/stargate/pool.py +0 -74
  239. core/modules/stargate/stargate_balance_utils.py +0 -25
  240. core/modules/stargate/stargate_gas_checker.py +0 -68
  241. core/modules/swap/__init__.py +0 -1
  242. core/modules/swap/horizondex.py +0 -38
  243. core/modules/swap/izumi.py +0 -41
  244. core/modules/swap/lineaswap.py +0 -34
  245. core/modules/swap/maverick.py +0 -66
  246. core/modules/swap/mute.py +0 -39
  247. core/modules/swap/odos.py +0 -58
  248. core/modules/swap/one_inch.py +0 -58
  249. core/modules/swap/pancake.py +0 -41
  250. core/modules/swap/swap_facade.py +0 -10
  251. core/modules/swap/syncswap.py +0 -62
  252. core/modules/swap/velocore.py +0 -40
  253. core/modules/swap/woofi.py +0 -38
  254. core/modules/swap/xy_finance.py +0 -43
  255. core/modules/swap/zebra.py +0 -32
  256. core/modules/warm_up.py +0 -98
  257. core/modules/wrapping.py +0 -74
  258. core/modules/zkdx.py +0 -63
  259. tests/core/__init__.py +0 -0
  260. tests/core/contracts/__init__.py +0 -0
  261. tests/core/contracts/test_horizondex_quoter.py +0 -37
  262. tests/core/contracts/test_uniswap_quoter.py +0 -35
  263. tests/core/contracts/test_velocore_lens.py +0 -67
  264. tests/core/contracts/test_velocore_pool.py +0 -57
  265. tests/core/modules/__init__.py +0 -67
  266. tests/core/modules/swap/__init__.py +0 -0
  267. tests/core/modules/swap/test_horizondex.py +0 -37
  268. tests/core/modules/swap/test_lineaswap.py +0 -28
  269. tests/core/modules/swap/test_maverick.py +0 -31
  270. tests/core/modules/swap/test_mute.py +0 -29
  271. tests/core/modules/swap/test_odos.py +0 -36
  272. tests/core/modules/swap/test_pancake.py +0 -54
  273. tests/core/modules/swap/test_syncswap.py +0 -59
  274. tests/core/modules/swap/test_velocore.py +0 -33
  275. tests/core/modules/swap/test_woofi.py +0 -22
  276. tests/core/modules/test_bungee.py +0 -27
  277. tests/core/modules/test_concrete_swap.py +0 -62
  278. tests/core/modules/test_dmail.py +0 -41
  279. tests/core/modules/test_lending.py +0 -122
  280. tests/core/modules/test_nft.py +0 -32
  281. tests/core/modules/test_nft_minter.py +0 -30
  282. tests/core/modules/test_orbiter.py +0 -28
  283. tests/core/modules/test_sellall.py +0 -27
  284. tests/core/modules/test_send_to_cex.py +0 -27
  285. tests/core/modules/test_stargate_auto_bridge.py +0 -32
  286. tests/core/modules/test_stargate_bridge.py +0 -25
  287. tests/core/modules/test_stargate_farming.py +0 -108
  288. tests/core/modules/test_warmup.py +0 -78
  289. tests/core/modules/test_wrapping.py +0 -68
  290. tests/core/scenario/__init__.py +0 -0
  291. tests/core/scenario/module_0_test_config.py +0 -91
  292. tests/core/test_app.py +0 -19
  293. tests/core/test_config.py +0 -34
  294. web3_wizzard_lib/core/modules/modules.py +0 -27
  295. web3_wizzard_lib/core/modules/nft/sub_module.py +0 -8
  296. web3_wizzard_lib/core/modules/swap/swap_facade.py +0 -10
  297. web3_wizzard_lib-0.0.2.data/data/requirements.txt +0 -1
  298. {web3_wizzard_lib-0.0.2.dist-info → web3_wizzard_lib-0.1.0.dist-info}/top_level.txt +0 -0
@@ -1,25 +0,0 @@
1
- from sybil_engine.contract.send import Send
2
- from sybil_engine.domain.balance.balance import NativeBalance
3
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
4
- from sybil_engine.utils.app_account_utils import AppAccount
5
-
6
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
7
-
8
-
9
- class LineaCultureWeek3Day2(NftSubmodule):
10
- module_name = 'LINEA_CULTURE_3_2'
11
- nft_address = '0xEaea2Fa0dea2D1191a584CFBB227220822E29086'
12
-
13
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
14
- Send(
15
- None,
16
- self.create_web3(account, chain)
17
- ).send_to_wallet(
18
- account,
19
- self.nft_address,
20
- NativeBalance(wei_cost, chain, "ETH"),
21
- "0x1249c58b"
22
- )
23
-
24
- def log(self):
25
- return "LINEA CULTURE 3 WEEK DAY 2 (Sending Me)"
@@ -1,25 +0,0 @@
1
- from sybil_engine.contract.send import Send
2
- from sybil_engine.domain.balance.balance import NativeBalance
3
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
4
- from sybil_engine.utils.app_account_utils import AppAccount
5
-
6
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
7
-
8
-
9
- class LineaCultureWeek3Day2(NftSubmodule):
10
- module_name = 'LINEA_CULTURE_3_3'
11
- nft_address = '0x8Ad15e54D37d7d35fCbD62c0f9dE4420e54Df403'
12
-
13
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
14
- Send(
15
- None,
16
- self.create_web3(account, chain)
17
- ).send_to_wallet(
18
- account,
19
- self.nft_address,
20
- NativeBalance(wei_cost, chain, "ETH"),
21
- "0x00000000"
22
- )
23
-
24
- def log(self):
25
- return "LINEA CULTURE 3 WEEK DAY 3 (Townstory)"
@@ -1,25 +0,0 @@
1
- from sybil_engine.contract.send import Send
2
- from sybil_engine.domain.balance.balance import NativeBalance
3
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
4
- from sybil_engine.utils.app_account_utils import AppAccount
5
-
6
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
7
-
8
-
9
- class LineaCultureWeek3Day4(NftSubmodule):
10
- module_name = 'LINEA_CULTURE_3_4'
11
- nft_address = '0x3A21e152aC78f3055aA6b23693FB842dEFdE0213'
12
-
13
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
14
- Send(
15
- None,
16
- self.create_web3(account, chain)
17
- ).send_to_wallet(
18
- account,
19
- self.nft_address,
20
- NativeBalance(wei_cost, chain, "ETH"),
21
- "0x00000000"
22
- )
23
-
24
- def log(self):
25
- return "LINEA CULTURE 3 WEEK DAY 3 (Daniele)"
@@ -1,25 +0,0 @@
1
- from sybil_engine.contract.send import Send
2
- from sybil_engine.domain.balance.balance import NativeBalance
3
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
4
- from sybil_engine.utils.app_account_utils import AppAccount
5
-
6
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
7
-
8
-
9
- class LineaCultureWeek3Day4(NftSubmodule):
10
- module_name = 'LINEA_CULTURE_3_5'
11
- nft_address = '0x5A77B45B6f5309b07110fe98E25A178eEe7516c1'
12
-
13
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
14
- Send(
15
- None,
16
- self.create_web3(account, chain)
17
- ).send_to_wallet(
18
- account,
19
- self.nft_address,
20
- NativeBalance(wei_cost, chain, "ETH"),
21
- f"0x731133e9000000000000000000000000{account.address[2:]}0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000"
22
- )
23
-
24
- def log(self):
25
- return "LINEA CULTURE 3 WEEK DAY 5 (Demortal)"
@@ -1,25 +0,0 @@
1
- from sybil_engine.contract.send import Send
2
- from sybil_engine.domain.balance.balance import NativeBalance
3
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
4
- from sybil_engine.utils.app_account_utils import AppAccount
5
-
6
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
7
-
8
-
9
- class LineaCultureWeek3Day4(NftSubmodule):
10
- module_name = 'LINEA_CULTURE_3_6'
11
- nft_address = '0xBcFa22a36E555c507092FF16c1af4cB74B8514C8'
12
-
13
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
14
- Send(
15
- None,
16
- self.create_web3(account, chain)
17
- ).send_to_wallet(
18
- account,
19
- self.nft_address,
20
- NativeBalance(wei_cost, chain, "ETH"),
21
- f"0x1b7af8fc0c21cfbb000000000000000000000000000000000000000000000000000000002968bd75000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
22
- )
23
-
24
- def log(self):
25
- return "LINEA CULTURE 3 WEEK DAY 6 (Foxy)"
@@ -1,60 +0,0 @@
1
- import requests
2
- from sybil_engine.contract.send import Send
3
- from sybil_engine.domain.balance.balance import NativeBalance
4
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
5
- from sybil_engine.utils.app_account_utils import AppAccount
6
-
7
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
8
-
9
-
10
- class LineaCultureWeek4Day1(NftSubmodule):
11
- module_name = 'LINEA_CULTURE_4_1'
12
- nft_address = '0xAd626D0F8BE64076C4c27a583e3df3878874467E'
13
-
14
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
15
- url = 'https://public-api.phosphor.xyz/v1/purchase-intents'
16
-
17
- data = {
18
- "buyer": {
19
- "eth_address": account.address
20
- },
21
- "listing_id": "fceb2be9-f9fd-458a-8952-9a0a6f873aff",
22
- "provider": "MINT_VOUCHER",
23
- "quantity": 1
24
- }
25
-
26
- proxy = {
27
- 'http': account.proxy,
28
- 'https': account.proxy
29
- }
30
-
31
- response = requests.post(url, json=data, proxies=proxy)
32
-
33
- signature = response.json()['data']['signature'][2:]
34
- expiry = response.json()['data']['voucher']['expiry']
35
-
36
- data = f"0xd4dfd6bc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000{decimal_to_hex(expiry)}00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000041{signature}00000000000000000000000000000000000000000000000000000000000000"
37
-
38
- Send(
39
- None,
40
- self.create_web3(account, chain)
41
- ).send_to_wallet(
42
- account,
43
- self.nft_address,
44
- NativeBalance(wei_cost, chain, "ETH"),
45
- data
46
- )
47
-
48
- def log(self):
49
- return "LINEA CULTURE 4 WEEK DAY 1 (Coop Records)"
50
-
51
- def decimal_to_hex(decimal):
52
- if decimal == 0:
53
- return "0x0"
54
- hex_digits = "0123456789ABCDEF"
55
- hex_result = ""
56
- while decimal > 0:
57
- remainder = decimal % 16
58
- hex_result = hex_digits[remainder] + hex_result
59
- decimal = decimal // 16
60
- return hex_result.lower()
@@ -1,65 +0,0 @@
1
- import requests
2
- from sybil_engine.contract.send import Send
3
- from sybil_engine.domain.balance.balance import NativeBalance
4
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
5
- from sybil_engine.utils.app_account_utils import AppAccount
6
- from sybil_engine.utils.utils import AppException
7
-
8
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
9
-
10
-
11
- class LineaCultureWeek4Day2(NftSubmodule):
12
- module_name = 'LINEA_CULTURE_4_2'
13
- nft_address = '0x3f0A935c8f3Eb7F9112b54bD3b7fd19237E441Ee'
14
-
15
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
16
- url = 'https://public-api.phosphor.xyz/v1/purchase-intents'
17
-
18
- data = {
19
- "buyer": {
20
- "eth_address": account.address
21
- },
22
- "listing_id": "849e42a7-45dd-4a5b-a895-f5496e46ade2",
23
- "provider": "MINT_VOUCHER",
24
- "quantity": 1
25
- }
26
-
27
- proxy = {
28
- 'http': account.proxy,
29
- 'https': account.proxy
30
- }
31
-
32
- response = requests.post(url, json=data, proxies=proxy)
33
-
34
- if 'error' in response.json():
35
- raise AppException(response.json())
36
-
37
- signature = response.json()['data']['signature'][2:]
38
- expiry = response.json()['data']['voucher']['expiry']
39
- nonce = response.json()['data']['voucher']['nonce']
40
-
41
- data = f"0xd4dfd6bc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000{nonce}00000000000000000000000000000000000000000000000000000000{decimal_to_hex(expiry)}00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000041{signature}00000000000000000000000000000000000000000000000000000000000000"
42
-
43
- Send(
44
- None,
45
- self.create_web3(account, chain)
46
- ).send_to_wallet(
47
- account,
48
- self.nft_address,
49
- NativeBalance(wei_cost, chain, "ETH"),
50
- data
51
- )
52
-
53
- def log(self):
54
- return "LINEA CULTURE 4 WEEK DAY 2 (Borja Moskv)"
55
-
56
- def decimal_to_hex(decimal):
57
- if decimal == 0:
58
- return "0x0"
59
- hex_digits = "0123456789ABCDEF"
60
- hex_result = ""
61
- while decimal > 0:
62
- remainder = decimal % 16
63
- hex_result = hex_digits[remainder] + hex_result
64
- decimal = decimal // 16
65
- return hex_result.lower()
@@ -1,27 +0,0 @@
1
- from sybil_engine.contract.send import Send
2
- from sybil_engine.domain.balance.balance import NativeBalance
3
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
4
- from sybil_engine.utils.app_account_utils import AppAccount
5
-
6
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
7
-
8
-
9
- class LineaCultureWeek4Day2Approve(NftSubmodule):
10
- module_name = 'LINEA_CULTURE_4_2_APPROVE'
11
- nft_address = '0x3f0A935c8f3Eb7F9112b54bD3b7fd19237E441Ee'
12
-
13
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
14
- data = f"0xa22cb4650000000000000000000000000cab6977a9c70e04458b740476b498b2140196410000000000000000000000000000000000000000000000000000000000000001"
15
-
16
- Send(
17
- None,
18
- self.create_web3(account, chain)
19
- ).send_to_wallet(
20
- account,
21
- self.nft_address,
22
- NativeBalance(wei_cost, chain, "ETH"),
23
- data
24
- )
25
-
26
- def log(self):
27
- return "LINEA CULTURE 4 WEEK DAY 2 (Borja Moskv APPROVE)"
@@ -1,66 +0,0 @@
1
- import requests
2
- from sybil_engine.contract.send import Send
3
- from sybil_engine.domain.balance.balance import NativeBalance
4
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
5
- from sybil_engine.utils.app_account_utils import AppAccount
6
- from sybil_engine.utils.utils import AppException
7
-
8
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
9
-
10
-
11
- class LineaCultureWeek4Day2(NftSubmodule):
12
- module_name = 'LINEA_CULTURE_4_3'
13
- nft_address = '0x3EB78e881b28B71329344dF622Ea3A682538EC6a'
14
-
15
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
16
- url = 'https://public-api.phosphor.xyz/v1/purchase-intents'
17
-
18
- data = {
19
- "buyer": {
20
- "eth_address": account.address
21
- },
22
- "listing_id": "3d595f3e-6609-405f-ba3c-d1e28381f11a",
23
- "provider": "MINT_VOUCHER",
24
- "quantity": 1
25
- }
26
-
27
- proxy = {
28
- 'http': account.proxy,
29
- 'https': account.proxy
30
- }
31
-
32
- response = requests.post(url, json=data, proxies=proxy)
33
-
34
- if 'error' in response.json():
35
- raise AppException(response.json())
36
-
37
- signature = response.json()['data']['signature'][2:]
38
- expiry = response.json()['data']['voucher']['expiry']
39
- nonce = response.json()['data']['voucher']['nonce']
40
-
41
- data = f"0xd4dfd6bc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000{nonce}00000000000000000000000000000000000000000000000000000000{decimal_to_hex(expiry)}00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000041{signature}00000000000000000000000000000000000000000000000000000000000000"
42
-
43
- Send(
44
- None,
45
- self.create_web3(account, chain)
46
- ).send_to_wallet(
47
- account,
48
- self.nft_address,
49
- NativeBalance(wei_cost, chain, "ETH"),
50
- data
51
- )
52
-
53
- def log(self):
54
- return "LINEA CULTURE 4 WEEK DAY 3 (Forbidden Fruit)"
55
-
56
-
57
- def decimal_to_hex(decimal):
58
- if decimal == 0:
59
- return "0x0"
60
- hex_digits = "0123456789ABCDEF"
61
- hex_result = ""
62
- while decimal > 0:
63
- remainder = decimal % 16
64
- hex_result = hex_digits[remainder] + hex_result
65
- decimal = decimal // 16
66
- return hex_result.lower()
@@ -1,67 +0,0 @@
1
- import requests
2
- from sybil_engine.contract.send import Send
3
- from sybil_engine.domain.balance.balance import NativeBalance
4
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
5
- from sybil_engine.utils.app_account_utils import AppAccount
6
- from sybil_engine.utils.utils import AppException
7
-
8
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
9
-
10
-
11
- class LineaCultureWeek4Day2(NftSubmodule):
12
- module_name = 'LINEA_CULTURE_4_4'
13
- nft_address = '0x3EB78e881b28B71329344dF622Ea3A682538EC6a'
14
-
15
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
16
- url = 'https://public-api.phosphor.xyz/v1/purchase-intents'
17
-
18
- data = {
19
- "buyer": {
20
- "eth_address": account.address
21
- },
22
- "listing_id": "d3542d49-273c-4f2d-9d33-8904c773ed14",
23
- "provider": "MINT_VOUCHER",
24
- "quantity": 1
25
- }
26
-
27
- proxy = {
28
- 'http': account.proxy,
29
- 'https': account.proxy
30
- }
31
-
32
- response = requests.post(url, json=data, proxies=proxy)
33
-
34
- if 'error' in response.json():
35
- raise AppException(response.json())
36
-
37
- signature = response.json()['data']['signature'][2:]
38
- expiry = response.json()['data']['voucher']['expiry']
39
- nonce = response.json()['data']['voucher']['nonce']
40
- tokenID = response.json()['data']['voucher']['token_id']
41
-
42
- data = f"0xd4dfd6bc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000{nonce}00000000000000000000000000000000000000000000000000000000{decimal_to_hex(expiry)}0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000{tokenID}000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000041{signature}00000000000000000000000000000000000000000000000000000000000000"
43
-
44
- Send(
45
- None,
46
- self.create_web3(account, chain)
47
- ).send_to_wallet(
48
- account,
49
- self.nft_address,
50
- NativeBalance(wei_cost, chain, "ETH"),
51
- data
52
- )
53
-
54
- def log(self):
55
- return "LINEA CULTURE 4 WEEK DAY 4 (Fruit Crux)"
56
-
57
-
58
- def decimal_to_hex(decimal):
59
- if decimal == 0:
60
- return "0x0"
61
- hex_digits = "0123456789ABCDEF"
62
- hex_result = ""
63
- while decimal > 0:
64
- remainder = decimal % 16
65
- hex_result = hex_digits[remainder] + hex_result
66
- decimal = decimal // 16
67
- return hex_result.lower()
@@ -1,67 +0,0 @@
1
- import requests
2
- from sybil_engine.contract.send import Send
3
- from sybil_engine.domain.balance.balance import NativeBalance
4
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
5
- from sybil_engine.utils.app_account_utils import AppAccount
6
- from sybil_engine.utils.utils import AppException
7
-
8
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
9
-
10
-
11
- class LineaCultureWeek4Day2(NftSubmodule):
12
- module_name = 'LINEA_CULTURE_4_5'
13
- nft_address = '0x3EB78e881b28B71329344dF622Ea3A682538EC6a'
14
-
15
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
16
- url = 'https://public-api.phosphor.xyz/v1/purchase-intents'
17
-
18
- data = {
19
- "buyer": {
20
- "eth_address": account.address
21
- },
22
- "listing_id": "3c23e064-486d-46c5-8675-eabbc2e7d15e",
23
- "provider": "MINT_VOUCHER",
24
- "quantity": 1
25
- }
26
-
27
- proxy = {
28
- 'http': account.proxy,
29
- 'https': account.proxy
30
- }
31
-
32
- response = requests.post(url, json=data, proxies=proxy)
33
-
34
- if 'error' in response.json():
35
- raise AppException(response.json())
36
-
37
- signature = response.json()['data']['signature'][2:]
38
- expiry = response.json()['data']['voucher']['expiry']
39
- nonce = response.json()['data']['voucher']['nonce']
40
- tokenID = response.json()['data']['voucher']['token_id']
41
-
42
- data = f"0xd4dfd6bc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000{nonce}00000000000000000000000000000000000000000000000000000000{decimal_to_hex(expiry)}0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000{tokenID}000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000041{signature}00000000000000000000000000000000000000000000000000000000000000"
43
-
44
- Send(
45
- None,
46
- self.create_web3(account, chain)
47
- ).send_to_wallet(
48
- account,
49
- self.nft_address,
50
- NativeBalance(wei_cost, chain, "ETH"),
51
- data
52
- )
53
-
54
- def log(self):
55
- return "LINEA CULTURE 4 WEEK DAY 5 (Forbidden Fruit)"
56
-
57
-
58
- def decimal_to_hex(decimal):
59
- if decimal == 0:
60
- return "0x0"
61
- hex_digits = "0123456789ABCDEF"
62
- hex_result = ""
63
- while decimal > 0:
64
- remainder = decimal % 16
65
- hex_result = hex_digits[remainder] + hex_result
66
- decimal = decimal // 16
67
- return hex_result.lower()
@@ -1,67 +0,0 @@
1
- import requests
2
- from sybil_engine.contract.send import Send
3
- from sybil_engine.domain.balance.balance import NativeBalance
4
- from sybil_engine.domain.balance.balance_utils import from_eth_to_wei
5
- from sybil_engine.utils.app_account_utils import AppAccount
6
- from sybil_engine.utils.utils import AppException
7
-
8
- from web3_wizzard_lib.core.modules.nft.nft_submodule import NftSubmodule
9
-
10
-
11
- class LineaCultureWeek4Day6(NftSubmodule):
12
- module_name = 'LINEA_CULTURE_4_6'
13
- nft_address = '0x8975e0635586C6754C8D549Db0e3C7Ee807D9C8C'
14
-
15
- def execute(self, account: AppAccount, chain='LINEA', wei_cost=from_eth_to_wei(0)):
16
- url = 'https://public-api.phosphor.xyz/v1/purchase-intents'
17
-
18
- data = {
19
- "buyer": {
20
- "eth_address": account.address
21
- },
22
- "listing_id": "86a8741b-28dd-42ca-9f2f-dfb173a62099",
23
- "provider": "MINT_VOUCHER",
24
- "quantity": 1
25
- }
26
-
27
- proxy = {
28
- 'http': account.proxy,
29
- 'https': account.proxy
30
- }
31
-
32
- response = requests.post(url, json=data, proxies=proxy)
33
-
34
- if 'error' in response.json():
35
- raise AppException(response.json())
36
-
37
- signature = response.json()['data']['signature'][2:]
38
- expiry = response.json()['data']['voucher']['expiry']
39
- nonce = response.json()['data']['voucher']['nonce']
40
- tokenID = response.json()['data']['voucher']['token_id']
41
-
42
- data = f"0xd4dfd6bc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000{nonce}00000000000000000000000000000000000000000000000000000000{decimal_to_hex(expiry)}0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000{tokenID}000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000041{signature}00000000000000000000000000000000000000000000000000000000000000"
43
-
44
- Send(
45
- None,
46
- self.create_web3(account, chain)
47
- ).send_to_wallet(
48
- account,
49
- self.nft_address,
50
- NativeBalance(wei_cost, chain, "ETH"),
51
- data
52
- )
53
-
54
- def log(self):
55
- return "LINEA CULTURE 4 WEEK DAY 6 (Laurent)"
56
-
57
-
58
- def decimal_to_hex(decimal):
59
- if decimal == 0:
60
- return "0x0"
61
- hex_digits = "0123456789ABCDEF"
62
- hex_result = ""
63
- while decimal > 0:
64
- remainder = decimal % 16
65
- hex_result = hex_digits[remainder] + hex_result
66
- decimal = decimal // 16
67
- return hex_result.lower()
@@ -1,20 +0,0 @@
1
- from sybil_engine.data.networks import get_chain_instance
2
- from sybil_engine.utils.app_account_utils import AppAccount
3
- from sybil_engine.utils.web3_utils import init_web3
4
-
5
- from web3_wizzard_lib.core.contract.linea_day_2_contract import LineaDay2
6
- from web3_wizzard_lib.core.modules import SubModule
7
-
8
-
9
- class LineaCultureDay2(SubModule):
10
- module_name = 'LINEA_CULTURE_2'
11
-
12
- def execute(self, account: AppAccount, chain='LINEA'):
13
- chain_instance = get_chain_instance(chain)
14
- web3 = init_web3(chain_instance, account.proxy)
15
-
16
- linea = LineaDay2('0xB8DD4f5Aa8AD3fEADc50F9d670644c02a07c9374', web3)
17
- linea.approve(account)
18
-
19
- def log(self):
20
- return "LINEA CULTURE 2"
@@ -1,20 +0,0 @@
1
- from sybil_engine.data.networks import get_chain_instance
2
- from sybil_engine.utils.app_account_utils import AppAccount
3
- from sybil_engine.utils.web3_utils import init_web3
4
-
5
- from web3_wizzard_lib.core.contract.linea_day_3_contract import LineaDay3
6
- from web3_wizzard_lib.core.modules import SubModule
7
-
8
-
9
- class LineaCultureDay3(SubModule):
10
- module_name = 'LINEA_CULTURE_3'
11
-
12
- def execute(self, account: AppAccount, chain='LINEA'):
13
- chain_instance = get_chain_instance(chain)
14
- web3 = init_web3(chain_instance, account.proxy)
15
-
16
- linea = LineaDay3('0x3685102bc3D0dd23A88eF8fc084a8235bE929f1c', web3)
17
- linea.claim(account)
18
-
19
- def log(self):
20
- return "LINEA CULTURE 3"