web3-wizzard-lib 1.6.10__py3-none-any.whl → 1.6.12__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.
- web3_wizzard_lib/resources/abi/aave.json +282 -0
- web3_wizzard_lib/resources/abi/abbysworld.json +1113 -0
- web3_wizzard_lib/resources/abi/arena_games.json +15 -0
- web3_wizzard_lib/resources/abi/asmatch.json +1113 -0
- web3_wizzard_lib/resources/abi/basiliks.json +1467 -0
- web3_wizzard_lib/resources/abi/bilinear.json +1375 -0
- web3_wizzard_lib/resources/abi/bungee.json +525 -0
- web3_wizzard_lib/resources/abi/coredao.json +1068 -0
- web3_wizzard_lib/resources/abi/coredao_bridge.json +1012 -0
- web3_wizzard_lib/resources/abi/dmail.json +964 -0
- web3_wizzard_lib/resources/abi/empty_nft.json +1131 -0
- web3_wizzard_lib/resources/abi/era_ns.json +878 -0
- web3_wizzard_lib/resources/abi/eralend.json +1221 -0
- web3_wizzard_lib/resources/abi/erc20.json +801 -0
- web3_wizzard_lib/resources/abi/erc20_test.json +337 -0
- web3_wizzard_lib/resources/abi/eth_scroll_bridge.json +675 -0
- web3_wizzard_lib/resources/abi/frog_war_contract.json +1943 -0
- web3_wizzard_lib/resources/abi/gmx_reward_router.json +749 -0
- web3_wizzard_lib/resources/abi/horizondex.json +413 -0
- web3_wizzard_lib/resources/abi/horizondex_quoter.json +273 -0
- web3_wizzard_lib/resources/abi/imagine.json +457 -0
- web3_wizzard_lib/resources/abi/izumi.json +532 -0
- web3_wizzard_lib/resources/abi/kreatorland.json +500 -0
- web3_wizzard_lib/resources/abi/layerbank.json +1240 -0
- web3_wizzard_lib/resources/abi/layerbank_price.json +354 -0
- web3_wizzard_lib/resources/abi/layerbank_token.json +1124 -0
- web3_wizzard_lib/resources/abi/linea_day_2.json +933 -0
- web3_wizzard_lib/resources/abi/linea_day_3.json +1804 -0
- web3_wizzard_lib/resources/abi/linea_ens_names.json +1000 -0
- web3_wizzard_lib/resources/abi/lineaswap_router.json +973 -0
- web3_wizzard_lib/resources/abi/maverick_ipool.json +942 -0
- web3_wizzard_lib/resources/abi/maverick_multicall.json +1082 -0
- web3_wizzard_lib/resources/abi/mendi_token.json +1690 -0
- web3_wizzard_lib/resources/abi/merkly.json +787 -0
- web3_wizzard_lib/resources/abi/micro3.json +1054 -0
- web3_wizzard_lib/resources/abi/mute_router.json +856 -0
- web3_wizzard_lib/resources/abi/new_rage_abi.json +1944 -0
- web3_wizzard_lib/resources/abi/nidus.json +1017 -0
- web3_wizzard_lib/resources/abi/nile_pool.json +1313 -0
- web3_wizzard_lib/resources/abi/nomis.json +1601 -0
- web3_wizzard_lib/resources/abi/nomis_attest.json +710 -0
- web3_wizzard_lib/resources/abi/octomos.json +408 -0
- web3_wizzard_lib/resources/abi/omnisea.json +175 -0
- web3_wizzard_lib/resources/abi/orbiter_starknet.json +48 -0
- web3_wizzard_lib/resources/abi/pancake/factory.json +450 -0
- web3_wizzard_lib/resources/abi/pancake/pool.json +713 -0
- web3_wizzard_lib/resources/abi/pancake/quoter.json +285 -0
- web3_wizzard_lib/resources/abi/pancake/router.json +1271 -0
- web3_wizzard_lib/resources/abi/rage_claim.json +218 -0
- web3_wizzard_lib/resources/abi/reactor_fusion.json +1479 -0
- web3_wizzard_lib/resources/abi/readon.json +71 -0
- web3_wizzard_lib/resources/abi/rubyscore.json +698 -0
- web3_wizzard_lib/resources/abi/satoshi_universe.json +301 -0
- web3_wizzard_lib/resources/abi/scroll_bridge.json +666 -0
- web3_wizzard_lib/resources/abi/scroll_canvas_mint.json +602 -0
- web3_wizzard_lib/resources/abi/scroll_oracle.json +714 -0
- web3_wizzard_lib/resources/abi/snap.json +622 -0
- web3_wizzard_lib/resources/abi/socialscan.json +884 -0
- web3_wizzard_lib/resources/abi/stargate_farming.json +494 -0
- web3_wizzard_lib/resources/abi/stargate_router.json +1341 -0
- web3_wizzard_lib/resources/abi/stargate_swapETH_abi.json +106 -0
- web3_wizzard_lib/resources/abi/stargate_token_pool.json +1940 -0
- web3_wizzard_lib/resources/abi/stargate_v2.json +1936 -0
- web3_wizzard_lib/resources/abi/syncswap_classic_pool.json +151 -0
- web3_wizzard_lib/resources/abi/syncswap_classic_pool_factory.json +151 -0
- web3_wizzard_lib/resources/abi/syncswap_pool.json +924 -0
- web3_wizzard_lib/resources/abi/syncswap_router.json +1178 -0
- web3_wizzard_lib/resources/abi/syncswap_stable_pool.json +950 -0
- web3_wizzard_lib/resources/abi/tavaera.json +586 -0
- web3_wizzard_lib/resources/abi/tavaera_id.json +724 -0
- web3_wizzard_lib/resources/abi/townstory.json +391 -0
- web3_wizzard_lib/resources/abi/townstory_bonus.json +279 -0
- web3_wizzard_lib/resources/abi/uniswap_abi.json +193 -0
- web3_wizzard_lib/resources/abi/velocore.json +1008 -0
- web3_wizzard_lib/resources/abi/velocore_lens.json +1030 -0
- web3_wizzard_lib/resources/abi/velocore_pool.json +490 -0
- web3_wizzard_lib/resources/abi/velocore_vault.json +1272 -0
- web3_wizzard_lib/resources/abi/weth.json +279 -0
- web3_wizzard_lib/resources/abi/woofi.json +400 -0
- web3_wizzard_lib/resources/abi/yoddlo.json +67 -0
- web3_wizzard_lib/resources/abi/zebra.json +1075 -0
- web3_wizzard_lib/resources/abi/zerolend.json +282 -0
- web3_wizzard_lib/resources/abi/zerolend_liquidity.json +1038 -0
- web3_wizzard_lib/resources/abi/zkdx_data.json +436 -0
- web3_wizzard_lib/resources/abi/zks.json +671 -0
- web3_wizzard_lib/resources/banner.txt +7 -0
- web3_wizzard_lib/resources/goerli/contracts.json +48 -0
- web3_wizzard_lib/resources/goerli/networks.json +139 -0
- web3_wizzard_lib/resources/goerli/pairs.json +113 -0
- web3_wizzard_lib/resources/goerli/tokens.json +40 -0
- web3_wizzard_lib/resources/local/contracts.json +150 -0
- web3_wizzard_lib/resources/local/networks.json +119 -0
- web3_wizzard_lib/resources/local/pairs.json +451 -0
- web3_wizzard_lib/resources/local/tokens.json +88 -0
- web3_wizzard_lib/resources/main/contracts.json +231 -0
- web3_wizzard_lib/resources/main/networks.json +272 -0
- web3_wizzard_lib/resources/main/pairs.json +516 -0
- web3_wizzard_lib/resources/main/tokens.json +119 -0
- web3_wizzard_lib/resources/verify_data.json +1243 -0
- web3_wizzard_lib-1.6.12.dist-info/METADATA +10 -0
- web3_wizzard_lib-1.6.12.dist-info/RECORD +107 -0
- web3_wizzard_lib-1.6.12.dist-info/top_level.txt +1 -0
- web3_wizzard_lib/core/__init__.py +0 -1
- web3_wizzard_lib/core/contract/__init__.py +0 -0
- web3_wizzard_lib/core/contract/aavecontract.py +0 -36
- web3_wizzard_lib/core/contract/alienswap_contract.py +0 -21
- web3_wizzard_lib/core/contract/arena_games_contract.py +0 -16
- web3_wizzard_lib/core/contract/basiliskcontract.py +0 -58
- web3_wizzard_lib/core/contract/bilinear_contract.py +0 -22
- web3_wizzard_lib/core/contract/bungee.py +0 -33
- web3_wizzard_lib/core/contract/coredao_contract.py +0 -34
- web3_wizzard_lib/core/contract/coredao_from_contract.py +0 -40
- web3_wizzard_lib/core/contract/dmail_send_mail.py +0 -18
- web3_wizzard_lib/core/contract/empty_nft.py +0 -18
- web3_wizzard_lib/core/contract/era_name.py +0 -23
- web3_wizzard_lib/core/contract/eralendcontract.py +0 -34
- web3_wizzard_lib/core/contract/eth_scroll_bridge_contract.py +0 -25
- web3_wizzard_lib/core/contract/frog_war_contract.py +0 -48
- web3_wizzard_lib/core/contract/gmx_reward_router.py +0 -22
- web3_wizzard_lib/core/contract/horizondex_quoter.py +0 -14
- web3_wizzard_lib/core/contract/horizondex_router.py +0 -91
- web3_wizzard_lib/core/contract/imagine_contract.py +0 -18
- web3_wizzard_lib/core/contract/izumi.py +0 -63
- web3_wizzard_lib/core/contract/kreatorland_contract.py +0 -21
- web3_wizzard_lib/core/contract/l0_claim.py +0 -254
- web3_wizzard_lib/core/contract/l2_telegraph.py +0 -21
- web3_wizzard_lib/core/contract/layerbank_price.py +0 -18
- web3_wizzard_lib/core/contract/layerbank_token.py +0 -29
- web3_wizzard_lib/core/contract/layerbankcontract.py +0 -59
- web3_wizzard_lib/core/contract/linea_day_2_contract.py +0 -19
- web3_wizzard_lib/core/contract/linea_day_3_contract.py +0 -55
- web3_wizzard_lib/core/contract/linea_ens_names_contract.py +0 -55
- web3_wizzard_lib/core/contract/lineaswaprouter.py +0 -52
- web3_wizzard_lib/core/contract/maverick_multicall.py +0 -52
- web3_wizzard_lib/core/contract/mendi_finance_contract.py +0 -11
- web3_wizzard_lib/core/contract/mendi_token.py +0 -25
- web3_wizzard_lib/core/contract/merkly_minter.py +0 -47
- web3_wizzard_lib/core/contract/micro3_contract.py +0 -18
- web3_wizzard_lib/core/contract/mute_router.py +0 -93
- web3_wizzard_lib/core/contract/new_rage_contract.py +0 -31
- web3_wizzard_lib/core/contract/nidum_contract.py +0 -44
- web3_wizzard_lib/core/contract/nile_contract.py +0 -60
- web3_wizzard_lib/core/contract/nomis_attest_contract.py +0 -40
- web3_wizzard_lib/core/contract/nomis_contract.py +0 -40
- web3_wizzard_lib/core/contract/octomos.py +0 -31
- web3_wizzard_lib/core/contract/odos.py +0 -104
- web3_wizzard_lib/core/contract/omnisea.py +0 -29
- web3_wizzard_lib/core/contract/orbiter_starknet.py +0 -30
- web3_wizzard_lib/core/contract/pancake_pool.py +0 -19
- web3_wizzard_lib/core/contract/pancake_quoter.py +0 -20
- web3_wizzard_lib/core/contract/pancake_router.py +0 -72
- web3_wizzard_lib/core/contract/rage_claim.py +0 -24
- web3_wizzard_lib/core/contract/reactor_fusion_contract.py +0 -78
- web3_wizzard_lib/core/contract/readon_contract.py +0 -19
- web3_wizzard_lib/core/contract/rubyscore_contract.py +0 -31
- web3_wizzard_lib/core/contract/satoshi_universe_contract.py +0 -29
- web3_wizzard_lib/core/contract/scroll_bridge_contract.py +0 -24
- web3_wizzard_lib/core/contract/scroll_canvas_mint_contract.py +0 -26
- web3_wizzard_lib/core/contract/scroll_oracle.py +0 -11
- web3_wizzard_lib/core/contract/snap_contract.py +0 -16
- web3_wizzard_lib/core/contract/social_scan_contract.py +0 -20
- web3_wizzard_lib/core/contract/stargate_farming.py +0 -37
- web3_wizzard_lib/core/contract/stargate_router.py +0 -84
- web3_wizzard_lib/core/contract/stargate_router_eth.py +0 -41
- web3_wizzard_lib/core/contract/stargate_token_pool.py +0 -45
- web3_wizzard_lib/core/contract/stargate_v2_contract.py +0 -36
- web3_wizzard_lib/core/contract/syncswap_classic_pool.py +0 -15
- web3_wizzard_lib/core/contract/syncswap_classic_pool_factory.py +0 -15
- web3_wizzard_lib/core/contract/syncswap_pool.py +0 -25
- web3_wizzard_lib/core/contract/syncswap_router.py +0 -123
- web3_wizzard_lib/core/contract/tavaera_id.py +0 -18
- web3_wizzard_lib/core/contract/tavaera_mint.py +0 -17
- web3_wizzard_lib/core/contract/townstory_bonus_contract.py +0 -19
- web3_wizzard_lib/core/contract/townstory_contract.py +0 -21
- web3_wizzard_lib/core/contract/velocore_lens.py +0 -44
- web3_wizzard_lib/core/contract/velocore_pool.py +0 -198
- web3_wizzard_lib/core/contract/velocore_router.py +0 -80
- web3_wizzard_lib/core/contract/woofi_swap.py +0 -29
- web3_wizzard_lib/core/contract/xy_finance_contract.py +0 -87
- web3_wizzard_lib/core/contract/yoddlo_contract.py +0 -19
- web3_wizzard_lib/core/contract/yuliverse_contract.py +0 -36
- web3_wizzard_lib/core/contract/zebra_contract.py +0 -68
- web3_wizzard_lib/core/contract/zerolend_contract.py +0 -34
- web3_wizzard_lib/core/contract/zerolend_liq_contract.py +0 -20
- web3_wizzard_lib/core/contract/zkdx_contract.py +0 -40
- web3_wizzard_lib/core/contract/zkdx_data.py +0 -14
- web3_wizzard_lib/core/contract/zks.py +0 -24
- web3_wizzard_lib/core/modules/__init__.py +0 -0
- web3_wizzard_lib/core/modules/ads_import_proxy.py +0 -52
- web3_wizzard_lib/core/modules/airdrop_printer.py +0 -81
- web3_wizzard_lib/core/modules/bank/__init__.py +0 -0
- web3_wizzard_lib/core/modules/bank/aave.py +0 -25
- web3_wizzard_lib/core/modules/bank/bank.py +0 -15
- web3_wizzard_lib/core/modules/bank/basilisk.py +0 -25
- web3_wizzard_lib/core/modules/bank/eralend.py +0 -25
- web3_wizzard_lib/core/modules/bank/layerbank.py +0 -116
- web3_wizzard_lib/core/modules/bank/mendi_finance.py +0 -57
- web3_wizzard_lib/core/modules/bank/reactorfusion.py +0 -25
- web3_wizzard_lib/core/modules/bank/zerolend.py +0 -36
- web3_wizzard_lib/core/modules/bank_module.py +0 -99
- web3_wizzard_lib/core/modules/bridge/__init__.py +0 -0
- web3_wizzard_lib/core/modules/bridge/bridge.py +0 -8
- web3_wizzard_lib/core/modules/bridge/coredao_bridge_sub.py +0 -47
- web3_wizzard_lib/core/modules/bridge/orbiter_sub.py +0 -112
- web3_wizzard_lib/core/modules/bridge/scroll_bridge_sub.py +0 -42
- web3_wizzard_lib/core/modules/bridge/stargate_v2_sub.py +0 -74
- web3_wizzard_lib/core/modules/bridge_module.py +0 -47
- web3_wizzard_lib/core/modules/bungee.py +0 -109
- web3_wizzard_lib/core/modules/cex_sender.py +0 -60
- web3_wizzard_lib/core/modules/cex_subaccount_transfer.py +0 -34
- web3_wizzard_lib/core/modules/cex_withdraw.py +0 -91
- web3_wizzard_lib/core/modules/claimer.py +0 -45
- web3_wizzard_lib/core/modules/claims/__init__.py +0 -0
- web3_wizzard_lib/core/modules/claims/layerzero_claimer.py +0 -64
- web3_wizzard_lib/core/modules/claims/rabby_claimer.py +0 -81
- web3_wizzard_lib/core/modules/concrete_swap.py +0 -108
- web3_wizzard_lib/core/modules/coredao_bridge.py +0 -32
- web3_wizzard_lib/core/modules/coredao_bridge_auto.py +0 -39
- web3_wizzard_lib/core/modules/debank_checker.py +0 -78
- web3_wizzard_lib/core/modules/dmail.py +0 -54
- web3_wizzard_lib/core/modules/erc20_balance.py +0 -42
- web3_wizzard_lib/core/modules/gmx_reward.py +0 -25
- web3_wizzard_lib/core/modules/intract/__init__.py +0 -0
- web3_wizzard_lib/core/modules/intract/intract_api.py +0 -212
- web3_wizzard_lib/core/modules/intract/utils.py +0 -81
- web3_wizzard_lib/core/modules/intract_claim.py +0 -101
- web3_wizzard_lib/core/modules/layer_2_20.py +0 -65
- web3_wizzard_lib/core/modules/lending_module.py +0 -134
- web3_wizzard_lib/core/modules/linea_appeal.py +0 -98
- web3_wizzard_lib/core/modules/linea_poh_lxp.py +0 -65
- web3_wizzard_lib/core/modules/liquidity/__init__.py +0 -0
- web3_wizzard_lib/core/modules/liquidity/nile_pool.py +0 -64
- web3_wizzard_lib/core/modules/liquidity/pool.py +0 -16
- web3_wizzard_lib/core/modules/liquidity/syncswap_pool.py +0 -61
- web3_wizzard_lib/core/modules/liquidity/velocore_pool.py +0 -55
- web3_wizzard_lib/core/modules/liquidity/zerolend_liquidity.py +0 -26
- web3_wizzard_lib/core/modules/liquidity_pool.py +0 -60
- web3_wizzard_lib/core/modules/merkly_refuel.py +0 -87
- web3_wizzard_lib/core/modules/new_rage_withdraw.py +0 -41
- web3_wizzard_lib/core/modules/nft/__init__.py +0 -0
- web3_wizzard_lib/core/modules/nft/abbys_world.py +0 -22
- web3_wizzard_lib/core/modules/nft/acg_worlds.py +0 -25
- web3_wizzard_lib/core/modules/nft/alienswap_linea.py +0 -22
- web3_wizzard_lib/core/modules/nft/arena_games.py +0 -22
- web3_wizzard_lib/core/modules/nft/asmatch.py +0 -22
- web3_wizzard_lib/core/modules/nft/battlemon.py +0 -25
- web3_wizzard_lib/core/modules/nft/bilinear.py +0 -22
- web3_wizzard_lib/core/modules/nft/bitavatar.py +0 -25
- web3_wizzard_lib/core/modules/nft/culture_satoshi_universe.py +0 -24
- web3_wizzard_lib/core/modules/nft/efrogs.py +0 -26
- web3_wizzard_lib/core/modules/nft/empty_nft.py +0 -22
- web3_wizzard_lib/core/modules/nft/era_domain.py +0 -42
- web3_wizzard_lib/core/modules/nft/frog_war.py +0 -22
- web3_wizzard_lib/core/modules/nft/frog_war_bonus.py +0 -22
- web3_wizzard_lib/core/modules/nft/gamerboom.py +0 -25
- web3_wizzard_lib/core/modules/nft/gamerboom_bonus.py +0 -26
- web3_wizzard_lib/core/modules/nft/imagine.py +0 -32
- web3_wizzard_lib/core/modules/nft/kreatorland_module.py +0 -35
- web3_wizzard_lib/core/modules/nft/l2_telegraph_module.py +0 -22
- web3_wizzard_lib/core/modules/nft/layer3_meta.py +0 -25
- web3_wizzard_lib/core/modules/nft/linea_culture_2_2_linus.py +0 -24
- web3_wizzard_lib/core/modules/nft/linea_culture_2_3_yooldo.py +0 -24
- web3_wizzard_lib/core/modules/nft/linea_culture_2_4_frogwar.py +0 -24
- web3_wizzard_lib/core/modules/nft/linea_culture_2_5_acg.py +0 -25
- web3_wizzard_lib/core/modules/nft/linea_culture_2_6_ascend_the_end.py +0 -25
- web3_wizzard_lib/core/modules/nft/linea_culture_3_1_ascend_the_end.py +0 -25
- web3_wizzard_lib/core/modules/nft/linea_culture_3_2_sending_me.py +0 -25
- web3_wizzard_lib/core/modules/nft/linea_culture_3_3_townstory.py +0 -25
- web3_wizzard_lib/core/modules/nft/linea_culture_3_4_daniele.py +0 -25
- web3_wizzard_lib/core/modules/nft/linea_culture_3_5_demmortal.py +0 -25
- web3_wizzard_lib/core/modules/nft/linea_culture_3_6_foxy.py +0 -25
- web3_wizzard_lib/core/modules/nft/linea_culture_4_1_coop_records.py +0 -60
- web3_wizzard_lib/core/modules/nft/linea_culture_4_2_borja_moskv.py +0 -65
- web3_wizzard_lib/core/modules/nft/linea_culture_4_2_borja_moskv_approve.py +0 -27
- web3_wizzard_lib/core/modules/nft/linea_culture_4_3_fruit.py +0 -66
- web3_wizzard_lib/core/modules/nft/linea_culture_4_4_fruit_crux.py +0 -67
- web3_wizzard_lib/core/modules/nft/linea_culture_4_5_forbidden_fruit.py +0 -67
- web3_wizzard_lib/core/modules/nft/linea_culture_4_6_laurent.py +0 -67
- web3_wizzard_lib/core/modules/nft/linea_culture_day2.py +0 -20
- web3_wizzard_lib/core/modules/nft/linea_culture_day3.py +0 -20
- web3_wizzard_lib/core/modules/nft/linea_ens_names.py +0 -107
- web3_wizzard_lib/core/modules/nft/lucky_cat.py +0 -25
- web3_wizzard_lib/core/modules/nft/merkly_minter_module.py +0 -22
- web3_wizzard_lib/core/modules/nft/micro3.py +0 -23
- web3_wizzard_lib/core/modules/nft/mint_2048.py +0 -28
- web3_wizzard_lib/core/modules/nft/nft_submodule.py +0 -16
- web3_wizzard_lib/core/modules/nft/nidum.py +0 -87
- web3_wizzard_lib/core/modules/nft/nidum_bonus.py +0 -23
- web3_wizzard_lib/core/modules/nft/nomis.py +0 -64
- web3_wizzard_lib/core/modules/nft/nomis_attest.py +0 -66
- web3_wizzard_lib/core/modules/nft/nouns.py +0 -27
- web3_wizzard_lib/core/modules/nft/octomos.py +0 -32
- web3_wizzard_lib/core/modules/nft/omnisea.py +0 -33
- web3_wizzard_lib/core/modules/nft/omnizone.py +0 -25
- web3_wizzard_lib/core/modules/nft/orbiter_claim.py +0 -87
- web3_wizzard_lib/core/modules/nft/readon.py +0 -30
- web3_wizzard_lib/core/modules/nft/rubyscore.py +0 -45
- web3_wizzard_lib/core/modules/nft/sarubol.py +0 -22
- web3_wizzard_lib/core/modules/nft/satoshi_universe.py +0 -22
- web3_wizzard_lib/core/modules/nft/scroll_canvas_attest_year_badge.py +0 -35
- web3_wizzard_lib/core/modules/nft/scroll_canvas_mint.py +0 -51
- web3_wizzard_lib/core/modules/nft/sign.py +0 -32
- web3_wizzard_lib/core/modules/nft/snap.py +0 -25
- web3_wizzard_lib/core/modules/nft/snap_bonus.py +0 -31
- web3_wizzard_lib/core/modules/nft/social_scan.py +0 -22
- web3_wizzard_lib/core/modules/nft/tavaera.py +0 -30
- web3_wizzard_lib/core/modules/nft/townstory.py +0 -75
- web3_wizzard_lib/core/modules/nft/townstory_bonus.py +0 -45
- web3_wizzard_lib/core/modules/nft/trusta_reputation.py +0 -48
- web3_wizzard_lib/core/modules/nft/trustaa_poh.py +0 -49
- web3_wizzard_lib/core/modules/nft/uber_poh.py +0 -24
- web3_wizzard_lib/core/modules/nft/wizards_of_linea.py +0 -26
- web3_wizzard_lib/core/modules/nft/yoddlo.py +0 -22
- web3_wizzard_lib/core/modules/nft/yuliverse.py +0 -22
- web3_wizzard_lib/core/modules/nft/zace.py +0 -25
- web3_wizzard_lib/core/modules/nft/zks_domain.py +0 -41
- web3_wizzard_lib/core/modules/nft_minter.py +0 -107
- web3_wizzard_lib/core/modules/orbiter.py +0 -39
- web3_wizzard_lib/core/modules/orbiter_checker.py +0 -26
- web3_wizzard_lib/core/modules/rage.py +0 -54
- web3_wizzard_lib/core/modules/scroll_bridge.py +0 -45
- web3_wizzard_lib/core/modules/sell_all.py +0 -51
- web3_wizzard_lib/core/modules/sleep_module.py +0 -25
- web3_wizzard_lib/core/modules/smart_contract_deployment.py +0 -37
- web3_wizzard_lib/core/modules/stargate/__init__.py +0 -0
- web3_wizzard_lib/core/modules/stargate/auto_bridge.py +0 -91
- web3_wizzard_lib/core/modules/stargate/bridge.py +0 -38
- web3_wizzard_lib/core/modules/stargate/bridge_eth.py +0 -59
- web3_wizzard_lib/core/modules/stargate/bridge_tokens.py +0 -48
- web3_wizzard_lib/core/modules/stargate/classic_bridge.py +0 -34
- web3_wizzard_lib/core/modules/stargate/farming.py +0 -163
- web3_wizzard_lib/core/modules/stargate/l0_data.py +0 -10
- web3_wizzard_lib/core/modules/stargate/pool.py +0 -74
- web3_wizzard_lib/core/modules/stargate/stargate_balance_utils.py +0 -25
- web3_wizzard_lib/core/modules/stargate/stargate_gas_checker.py +0 -68
- web3_wizzard_lib/core/modules/swap/__init__.py +0 -1
- web3_wizzard_lib/core/modules/swap/horizondex.py +0 -38
- web3_wizzard_lib/core/modules/swap/izumi.py +0 -41
- web3_wizzard_lib/core/modules/swap/lineaswap.py +0 -34
- web3_wizzard_lib/core/modules/swap/maverick.py +0 -66
- web3_wizzard_lib/core/modules/swap/mute.py +0 -39
- web3_wizzard_lib/core/modules/swap/odos.py +0 -58
- web3_wizzard_lib/core/modules/swap/one_inch.py +0 -58
- web3_wizzard_lib/core/modules/swap/pancake.py +0 -41
- web3_wizzard_lib/core/modules/swap/swap_list.py +0 -11
- web3_wizzard_lib/core/modules/swap/syncswap.py +0 -62
- web3_wizzard_lib/core/modules/swap/velocore.py +0 -40
- web3_wizzard_lib/core/modules/swap/woofi.py +0 -38
- web3_wizzard_lib/core/modules/swap/xy_finance.py +0 -43
- web3_wizzard_lib/core/modules/swap/zebra.py +0 -32
- web3_wizzard_lib/core/modules/warm_up.py +0 -98
- web3_wizzard_lib/core/modules/wrapping.py +0 -74
- web3_wizzard_lib/core/modules/zkdx.py +0 -63
- web3_wizzard_lib/core/utils/__init__.py +0 -0
- web3_wizzard_lib/core/utils/ai_utils.py +0 -45
- web3_wizzard_lib/core/utils/benchmark_utils.py +0 -12
- web3_wizzard_lib/core/utils/module_memory.py +0 -28
- web3_wizzard_lib/core/utils/statistic_utils.py +0 -150
- web3_wizzard_lib/core/utils/sub_module.py +0 -8
- web3_wizzard_lib/data/__init__.py +0 -0
- web3_wizzard_lib/data/config_default.py +0 -52
- web3_wizzard_lib/data/module_config_default.py +0 -209
- web3_wizzard_lib/utils/__init__.py +0 -0
- web3_wizzard_lib/utils/debank_utils.py +0 -19
- web3_wizzard_lib-1.6.10.data/data/requirements.txt +0 -1
- web3_wizzard_lib-1.6.10.dist-info/METADATA +0 -15
- web3_wizzard_lib-1.6.10.dist-info/RECORD +0 -271
- web3_wizzard_lib-1.6.10.dist-info/top_level.txt +0 -3
- /tests/__init__.py → /web3_wizzard_lib/resources/linea_appeal.txt +0 -0
- {web3_wizzard_lib-1.6.10.dist-info → web3_wizzard_lib-1.6.12.dist-info}/WHEEL +0 -0
@@ -1,198 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
3
|
-
from sybil_engine.data.tokens import get_tokens_for_chain
|
4
|
-
|
5
|
-
from sybil_engine.utils.file_loader import load_abi
|
6
|
-
from web3 import Web3
|
7
|
-
|
8
|
-
abi = load_abi("resources/abi/velocore_pool.json")
|
9
|
-
|
10
|
-
|
11
|
-
def to_bytes32(address):
|
12
|
-
return Web3.to_bytes(hexstr=address).rjust(32, b'\0')
|
13
|
-
|
14
|
-
|
15
|
-
class VelocorePoolContract(Contract):
|
16
|
-
ZERO = '0x0000000000000000000000000000000000000000000000000000000000000000'
|
17
|
-
|
18
|
-
def __init__(self, contract_address, web3):
|
19
|
-
self.LVC = get_tokens_for_chain('LINEA')['LVC']
|
20
|
-
self.VLP = get_tokens_for_chain('LINEA')['VLP']
|
21
|
-
super().__init__(contract_address, web3, abi)
|
22
|
-
|
23
|
-
@evm_transaction
|
24
|
-
def deposit(self, account, amount, deposit_token, pool):
|
25
|
-
sender = account.address
|
26
|
-
|
27
|
-
txn_params = self.build_generic_data(sender, set_contract_address=False)
|
28
|
-
|
29
|
-
amount_hex = '0x' + format(amount, '064x')
|
30
|
-
min_uint_256_hex = '00000000000000000000000000000000'
|
31
|
-
inverted_amount = self.invert_int(amount)
|
32
|
-
inverted_amount_hex = '0x' + min_uint_256_hex + inverted_amount
|
33
|
-
|
34
|
-
if deposit_token == 'ETH':
|
35
|
-
tokenRef = [
|
36
|
-
to_bytes32(self.VLP),
|
37
|
-
to_bytes32(self.LVC),
|
38
|
-
to_bytes32('0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee')
|
39
|
-
]
|
40
|
-
deposit = [0, 0, 0]
|
41
|
-
|
42
|
-
txn_params['value'] = amount
|
43
|
-
|
44
|
-
ops = [
|
45
|
-
(
|
46
|
-
to_bytes32(f'0x040000000000000000000000{sender[2:]}'),
|
47
|
-
[to_bytes32('0x02000000000000000000000000000000' + format(amount, '032x'))],
|
48
|
-
to_bytes32(self.ZERO)
|
49
|
-
),
|
50
|
-
(
|
51
|
-
to_bytes32(f'0x040000000000000000000000{sender[2:]}'),
|
52
|
-
[to_bytes32('0x02000000000000000000000000000000' + inverted_amount)],
|
53
|
-
to_bytes32(self.ZERO)
|
54
|
-
),
|
55
|
-
(
|
56
|
-
to_bytes32(f'000000000000000000000000{pool[2:]}'),
|
57
|
-
[
|
58
|
-
to_bytes32('000100000000000000000000000000007fffffffffffffffffffffffffffffff'),
|
59
|
-
to_bytes32('020200000000000000000000000000007fffffffffffffffffffffffffffffff')
|
60
|
-
],
|
61
|
-
to_bytes32(self.ZERO)
|
62
|
-
),
|
63
|
-
(
|
64
|
-
to_bytes32('0500000000000000000000000000000000000000000000000000000000000000'),
|
65
|
-
[to_bytes32('00010000000000000000000000000000ffffffffffffffffffffffffff785a9c')],
|
66
|
-
to_bytes32(self.ZERO)
|
67
|
-
),
|
68
|
-
(
|
69
|
-
to_bytes32(f'010000000000000000000000{pool[2:]}'),
|
70
|
-
[
|
71
|
-
to_bytes32('000200000000000000000000000000007fffffffffffffffffffffffffffffff'),
|
72
|
-
to_bytes32('0101000000000000000000000000000000000000000000000000000000000000')
|
73
|
-
],
|
74
|
-
to_bytes32(self.ZERO)
|
75
|
-
)
|
76
|
-
]
|
77
|
-
else:
|
78
|
-
wstETH = get_tokens_for_chain('LINEA')[deposit_token]
|
79
|
-
tokenRef = [
|
80
|
-
to_bytes32(wstETH),
|
81
|
-
to_bytes32(self.LVC),
|
82
|
-
to_bytes32(self.VLP),
|
83
|
-
to_bytes32('0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee')
|
84
|
-
]
|
85
|
-
deposit = [amount, 0, 0, 0]
|
86
|
-
|
87
|
-
wstETHLP = '0x1D12E25e5516e5aD32F97fE9Edc332Bf4683f487'
|
88
|
-
|
89
|
-
ops = [
|
90
|
-
(
|
91
|
-
to_bytes32(f'0x040000000000000000000000{sender[2:]}'),
|
92
|
-
[to_bytes32(amount_hex)],
|
93
|
-
to_bytes32(self.ZERO)
|
94
|
-
),
|
95
|
-
(
|
96
|
-
to_bytes32(f'0x040000000000000000000000{sender[2:]}'),
|
97
|
-
[to_bytes32(inverted_amount_hex)],
|
98
|
-
to_bytes32(self.ZERO)
|
99
|
-
),
|
100
|
-
(
|
101
|
-
to_bytes32(f'000000000000000000000000{wstETHLP[2:]}'),
|
102
|
-
[
|
103
|
-
to_bytes32('000200000000000000000000000000007fffffffffffffffffffffffffffffff'),
|
104
|
-
to_bytes32('030100000000000000000000000000007fffffffffffffffffffffffffffffff')
|
105
|
-
],
|
106
|
-
to_bytes32(self.ZERO)
|
107
|
-
),
|
108
|
-
(
|
109
|
-
to_bytes32(f'000000000000000000000000{pool[2:]}'),
|
110
|
-
[
|
111
|
-
to_bytes32('020100000000000000000000000000007fffffffffffffffffffffffffffffff'),
|
112
|
-
to_bytes32('030200000000000000000000000000007fffffffffffffffffffffffffffffff')
|
113
|
-
],
|
114
|
-
to_bytes32(self.ZERO)
|
115
|
-
),
|
116
|
-
(
|
117
|
-
to_bytes32('0500000000000000000000000000000000000000000000000000000000000000'),
|
118
|
-
[to_bytes32('02010000000000000000000000000000ffffffffffffffffffffffb4ad12f9cd')],
|
119
|
-
to_bytes32(self.ZERO)
|
120
|
-
),
|
121
|
-
(
|
122
|
-
to_bytes32(f'010000000000000000000000{pool[2:]}'),
|
123
|
-
[
|
124
|
-
to_bytes32('0101000000000000000000000000000000000000000000000000000000000000'),
|
125
|
-
to_bytes32('020200000000000000000000000000007fffffffffffffffffffffffffffffff')
|
126
|
-
],
|
127
|
-
to_bytes32(self.ZERO)
|
128
|
-
)
|
129
|
-
]
|
130
|
-
|
131
|
-
contract_txn = self.contract.functions.execute(tokenRef, deposit, ops).build_transaction(txn_params)
|
132
|
-
|
133
|
-
if self.web3.eth.chain_id == 59144:
|
134
|
-
contract_txn['gas'] = contract_txn['gas'] * 2
|
135
|
-
|
136
|
-
return contract_txn
|
137
|
-
|
138
|
-
@evm_transaction
|
139
|
-
def withdraw(self, account, eth_amount, eth_vlp, pool):
|
140
|
-
sender = account.address
|
141
|
-
|
142
|
-
txn_params = self.build_generic_data(sender, set_contract_address=False)
|
143
|
-
|
144
|
-
tokenRef = [
|
145
|
-
to_bytes32(self.LVC),
|
146
|
-
to_bytes32(self.VLP),
|
147
|
-
to_bytes32('0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee')
|
148
|
-
]
|
149
|
-
deposit = [0, 0, 0]
|
150
|
-
|
151
|
-
inverted_eth_amount = self.invert_int(eth_amount)
|
152
|
-
inverted_eth_vlp = self.invert_int(eth_vlp[0])
|
153
|
-
|
154
|
-
ops = [
|
155
|
-
(
|
156
|
-
to_bytes32(f'010000000000000000000000{pool[2:]}'),
|
157
|
-
[
|
158
|
-
to_bytes32('0001000000000000000000000000000000000000000000000000000000000000'),
|
159
|
-
to_bytes32(f'01000000000000000000000000000000{inverted_eth_vlp}')
|
160
|
-
],
|
161
|
-
to_bytes32('0x0000000000000000000000000000000000000000000000000000000000000000')
|
162
|
-
),
|
163
|
-
(
|
164
|
-
to_bytes32(f'000000000000000000000000{pool[2:]}'),
|
165
|
-
[
|
166
|
-
to_bytes32('010200000000000000000000000000007fffffffffffffffffffffffffffffff'),
|
167
|
-
to_bytes32('020100000000000000000000000000007fffffffffffffffffffffffffffffff')
|
168
|
-
],
|
169
|
-
to_bytes32('0x0000000000000000000000000000000000000000000000000000000000000000')
|
170
|
-
),
|
171
|
-
(
|
172
|
-
to_bytes32('0500000000000000000000000000000000000000000000000000000000000000'),
|
173
|
-
[to_bytes32(f'02010000000000000000000000000000{inverted_eth_amount}')],
|
174
|
-
to_bytes32('0x0000000000000000000000000000000000000000000000000000000000000000')
|
175
|
-
)
|
176
|
-
]
|
177
|
-
|
178
|
-
contract_txn = self.contract.functions.execute(tokenRef, deposit, ops).build_transaction(txn_params)
|
179
|
-
|
180
|
-
if self.web3.eth.chain_id == 59144:
|
181
|
-
contract_txn['gas'] = contract_txn['gas'] * 2
|
182
|
-
|
183
|
-
return contract_txn
|
184
|
-
|
185
|
-
def allPairs(self):
|
186
|
-
return self.contract.functions.allPairs(1).call()
|
187
|
-
|
188
|
-
def facets(self):
|
189
|
-
return self.contract.functions.facets().call()
|
190
|
-
|
191
|
-
def invert_int(self, amount):
|
192
|
-
max_uint_256_hex = 'ffffffffffffffffffffffffffffffff'
|
193
|
-
hex_2 = int(max_uint_256_hex, 16) - amount + 1
|
194
|
-
hex_string = hex(hex_2)[2:].rjust(32, '0')
|
195
|
-
|
196
|
-
return hex_string
|
197
|
-
# 5411000000000000
|
198
|
-
# 5410999999999999
|
@@ -1,80 +0,0 @@
|
|
1
|
-
from datetime import datetime
|
2
|
-
|
3
|
-
from sybil_engine.contract.contract import Contract
|
4
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
5
|
-
from sybil_engine.data.networks import get_ids_chain
|
6
|
-
from sybil_engine.data.tokens import get_tokens_for_chain
|
7
|
-
from sybil_engine.utils.file_loader import load_abi
|
8
|
-
|
9
|
-
abi = load_abi("resources/abi/velocore.json")
|
10
|
-
|
11
|
-
|
12
|
-
class VelocoreRouter(Contract):
|
13
|
-
def __init__(self, contract_address, web3):
|
14
|
-
super().__init__(contract_address, web3, abi)
|
15
|
-
|
16
|
-
@evm_transaction
|
17
|
-
def swap_exact_eth_for_tokens(self, account, amount_to_swap, token_in_address, token_out_address, amount_out_min):
|
18
|
-
sender = account.address
|
19
|
-
|
20
|
-
deadline = int(datetime.now().timestamp() + 60 * 60 * 3)
|
21
|
-
stable = False
|
22
|
-
|
23
|
-
txn_params = self.build_generic_data(sender)
|
24
|
-
|
25
|
-
txn_params['value'] = amount_to_swap.wei
|
26
|
-
txn_params['data'] = self.contract.encode_abi('swapExactETHForTokens', args=(
|
27
|
-
amount_out_min,
|
28
|
-
[[token_in_address, token_out_address, stable]],
|
29
|
-
sender,
|
30
|
-
deadline
|
31
|
-
)
|
32
|
-
)
|
33
|
-
|
34
|
-
return txn_params
|
35
|
-
|
36
|
-
@evm_transaction
|
37
|
-
def swap_exact_tokens_for_eth(self, account, amount_to_swap, token_in_address, token_out_address, amount_out_min):
|
38
|
-
sender = account.address
|
39
|
-
txn_params = self.build_generic_data(account.address, False)
|
40
|
-
|
41
|
-
deadline = int(datetime.now().timestamp() + 60 * 60 * 3)
|
42
|
-
stable = False
|
43
|
-
|
44
|
-
return self.contract.functions.swapExactTokensForETH(
|
45
|
-
amount_to_swap.wei,
|
46
|
-
amount_out_min,
|
47
|
-
[[token_in_address, token_out_address, stable]],
|
48
|
-
sender,
|
49
|
-
deadline
|
50
|
-
).build_transaction(txn_params)
|
51
|
-
|
52
|
-
@evm_transaction
|
53
|
-
def swap_exact_tokens_for_tokens(self, account, amount_to_swap, token_in_address, token_out_address,
|
54
|
-
amount_out_min):
|
55
|
-
sender = account.address
|
56
|
-
txn_params = self.build_generic_data(sender)
|
57
|
-
|
58
|
-
deadline = int(datetime.now().timestamp() + 60 * 60 * 3)
|
59
|
-
|
60
|
-
usdc_address = get_tokens_for_chain(get_ids_chain()[self.web3.eth.chain_id])['USDC']
|
61
|
-
|
62
|
-
if token_out_address != usdc_address:
|
63
|
-
stable = False
|
64
|
-
else:
|
65
|
-
stable = True
|
66
|
-
|
67
|
-
return self.contract.functions.swapExactTokensForTokens(
|
68
|
-
amount_to_swap.wei,
|
69
|
-
amount_out_min,
|
70
|
-
[[token_in_address, token_out_address, stable]],
|
71
|
-
sender,
|
72
|
-
deadline
|
73
|
-
).build_transaction(txn_params)
|
74
|
-
|
75
|
-
def get_amount_out(self, amount_to_swap, token_in_address, token_out_address):
|
76
|
-
return self.contract.functions.getAmountOut(
|
77
|
-
amount_to_swap.wei,
|
78
|
-
token_in_address,
|
79
|
-
token_out_address
|
80
|
-
).call()[0]
|
@@ -1,29 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
3
|
-
from sybil_engine.utils.file_loader import load_abi
|
4
|
-
|
5
|
-
abi = load_abi("resources/abi/woofi.json")
|
6
|
-
|
7
|
-
|
8
|
-
class WoofiSwap(Contract):
|
9
|
-
def __init__(self, contract_address, web3):
|
10
|
-
super().__init__(contract_address, web3, abi)
|
11
|
-
|
12
|
-
@evm_transaction
|
13
|
-
def swap(self, account, amount_to_swap, token_in_address, token_out_address, amount_out_min):
|
14
|
-
sender = account.address
|
15
|
-
txn_params = self.build_generic_data(sender, False)
|
16
|
-
|
17
|
-
txn_params['value'] = amount_to_swap.wei if amount_to_swap.token == 'ETH' else 0
|
18
|
-
|
19
|
-
return self.contract.functions.swap(
|
20
|
-
token_in_address,
|
21
|
-
token_out_address,
|
22
|
-
amount_to_swap.wei,
|
23
|
-
amount_out_min,
|
24
|
-
sender,
|
25
|
-
sender
|
26
|
-
).build_transaction(txn_params)
|
27
|
-
|
28
|
-
def query_swap(self, from_token, to_token, from_amount):
|
29
|
-
return self.contract.functions.querySwap(from_token, to_token, from_amount.wei).call()
|
@@ -1,87 +0,0 @@
|
|
1
|
-
import requests
|
2
|
-
from sybil_engine.contract.contract import Contract
|
3
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
4
|
-
from web3 import Web3
|
5
|
-
|
6
|
-
|
7
|
-
class XYSwapContract(Contract):
|
8
|
-
def __init__(self, contract_address, web3):
|
9
|
-
super().__init__(contract_address, web3, None)
|
10
|
-
|
11
|
-
def get_quote(self, from_token: str, to_token: str, amount: int, slippage: float):
|
12
|
-
url = "https://aggregator-api.xy.finance/v1/quote"
|
13
|
-
|
14
|
-
params = {
|
15
|
-
"srcChainId": self.web3.eth.chain_id,
|
16
|
-
"srcQuoteTokenAddress": Web3.to_checksum_address(from_token),
|
17
|
-
"srcQuoteTokenAmount": amount.wei,
|
18
|
-
"dstChainId": self.web3.eth.chain_id,
|
19
|
-
"dstQuoteTokenAddress": Web3.to_checksum_address(to_token),
|
20
|
-
"slippage": slippage
|
21
|
-
}
|
22
|
-
|
23
|
-
response = requests.get(url=url, params=params)
|
24
|
-
transaction_data = response.json()
|
25
|
-
|
26
|
-
return transaction_data
|
27
|
-
|
28
|
-
@evm_transaction
|
29
|
-
def swap(
|
30
|
-
self,
|
31
|
-
account,
|
32
|
-
amount_to_swap,
|
33
|
-
from_token: str,
|
34
|
-
to_token: str,
|
35
|
-
quote: int,
|
36
|
-
slippage: int
|
37
|
-
):
|
38
|
-
amount_wei = amount_to_swap.wei
|
39
|
-
|
40
|
-
swap_provider = quote["routes"][0]["srcSwapDescription"]["provider"]
|
41
|
-
|
42
|
-
transaction_data = self.build_transaction(
|
43
|
-
account,
|
44
|
-
from_token,
|
45
|
-
to_token,
|
46
|
-
amount_wei,
|
47
|
-
slippage,
|
48
|
-
swap_provider
|
49
|
-
)
|
50
|
-
|
51
|
-
tx_data = self.build_generic_data(account.address, True)
|
52
|
-
|
53
|
-
tx_data.update(
|
54
|
-
{
|
55
|
-
"to": self.web3.to_checksum_address(transaction_data["tx"]["to"]),
|
56
|
-
"data": transaction_data["tx"]["data"],
|
57
|
-
"value": transaction_data["tx"]["value"],
|
58
|
-
"nonce": self.web3.eth.get_transaction_count(account.address)
|
59
|
-
}
|
60
|
-
)
|
61
|
-
|
62
|
-
return tx_data
|
63
|
-
|
64
|
-
def build_transaction(self, account, from_token: str, to_token: str, amount: int, slippage: float,
|
65
|
-
swap_provider: str):
|
66
|
-
url = "https://aggregator-api.xy.finance/v1/buildTx"
|
67
|
-
|
68
|
-
params = {
|
69
|
-
"srcChainId": self.web3.eth.chain_id,
|
70
|
-
"srcQuoteTokenAddress": Web3.to_checksum_address(from_token),
|
71
|
-
"srcQuoteTokenAmount": amount,
|
72
|
-
"dstChainId": self.web3.eth.chain_id,
|
73
|
-
"dstQuoteTokenAddress": Web3.to_checksum_address(to_token),
|
74
|
-
"slippage": slippage,
|
75
|
-
"receiver": account.address,
|
76
|
-
"srcSwapProvider": swap_provider,
|
77
|
-
}
|
78
|
-
|
79
|
-
# if XYSWAP_CONTRACT["use_ref"]:
|
80
|
-
# params.update({
|
81
|
-
# "affiliate": Web3.to_checksum_address("0xb98308D11E2B578858Fbe65b793e71C7a0CAa43e"),
|
82
|
-
# "commissionRate": 10000
|
83
|
-
# })
|
84
|
-
|
85
|
-
response = requests.get(url=url, params=params)
|
86
|
-
|
87
|
-
return response.json()
|
@@ -1,19 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
3
|
-
from sybil_engine.utils.file_loader import load_abi
|
4
|
-
|
5
|
-
abi = load_abi("resources/abi/yoddlo.json")
|
6
|
-
|
7
|
-
|
8
|
-
class YoddloContract(Contract):
|
9
|
-
def __init__(self, contract_address, web3):
|
10
|
-
super().__init__(contract_address, web3, abi)
|
11
|
-
|
12
|
-
@evm_transaction
|
13
|
-
def purchase(self, account):
|
14
|
-
txn_params = self.build_generic_data(account.address, True)
|
15
|
-
|
16
|
-
txn_params['value'] = 100000000000000
|
17
|
-
txn_params['data'] = '0xfb89f3b1'
|
18
|
-
|
19
|
-
return txn_params
|
@@ -1,36 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
3
|
-
from sybil_engine.utils.file_loader import load_abi
|
4
|
-
|
5
|
-
abi = load_abi("resources/abi/yoddlo.json")
|
6
|
-
|
7
|
-
|
8
|
-
class YuliverseContract(Contract):
|
9
|
-
def __init__(self, contract_address, web3):
|
10
|
-
super().__init__(contract_address, web3, abi)
|
11
|
-
|
12
|
-
@evm_transaction
|
13
|
-
def purchase(self, account):
|
14
|
-
txn_params = self.build_generic_data(account.address, True)
|
15
|
-
|
16
|
-
function_selector = "0x064a181e"
|
17
|
-
|
18
|
-
# Example uint256 paramet er
|
19
|
-
varg0 = 123456789 # Make sure this is the value you intend to use
|
20
|
-
|
21
|
-
# Example bytes parameter (signature) - Ensure this is exactly 65 bytes
|
22
|
-
varg1 = b'Your65ByteSignatureHere' # This should be the actual signature bytes
|
23
|
-
|
24
|
-
# Encoding the transaction data
|
25
|
-
data = function_selector
|
26
|
-
data += varg0.to_bytes(32, byteorder='big').hex()
|
27
|
-
data += (32).to_bytes(32, byteorder='big').hex() # Offset for dynamic data
|
28
|
-
data += (65).to_bytes(32, byteorder='big').hex() # Length of the signature
|
29
|
-
data += varg1.hex()
|
30
|
-
|
31
|
-
print(data)
|
32
|
-
|
33
|
-
# Concatenate the selector and the encoded parameters
|
34
|
-
txn_params['data'] = data
|
35
|
-
|
36
|
-
return txn_params
|
@@ -1,68 +0,0 @@
|
|
1
|
-
import time
|
2
|
-
|
3
|
-
from sybil_engine.contract.contract import Contract
|
4
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
5
|
-
from sybil_engine.utils.file_loader import load_abi
|
6
|
-
from web3 import Web3
|
7
|
-
|
8
|
-
abi = load_abi("resources/abi/zebra.json")
|
9
|
-
|
10
|
-
|
11
|
-
class ZebraContract(Contract):
|
12
|
-
def __init__(self, contract_address, web3):
|
13
|
-
super().__init__(contract_address, web3, abi)
|
14
|
-
|
15
|
-
def get_min_amount_out(self, amount, from_token: str, to_token: str):
|
16
|
-
min_amount_out = self.contract.functions.getAmountsOut(
|
17
|
-
amount.wei,
|
18
|
-
[
|
19
|
-
Web3.to_checksum_address(from_token),
|
20
|
-
Web3.to_checksum_address(to_token)
|
21
|
-
]
|
22
|
-
).call()
|
23
|
-
return min_amount_out[1]
|
24
|
-
|
25
|
-
@evm_transaction
|
26
|
-
def swap_to_token(self, account, amount, from_token: str, to_token: str, min_amount_out: int):
|
27
|
-
tx_data = self.build_generic_data(
|
28
|
-
account.address,
|
29
|
-
False
|
30
|
-
)
|
31
|
-
|
32
|
-
tx_data['value'] = amount.wei
|
33
|
-
|
34
|
-
deadline = int(time.time()) + 1000000
|
35
|
-
|
36
|
-
contract_txn = self.contract.functions.swapExactETHForTokens(
|
37
|
-
min_amount_out,
|
38
|
-
[
|
39
|
-
from_token,
|
40
|
-
to_token,
|
41
|
-
],
|
42
|
-
account.address,
|
43
|
-
deadline
|
44
|
-
).build_transaction(tx_data)
|
45
|
-
|
46
|
-
return contract_txn
|
47
|
-
|
48
|
-
@evm_transaction
|
49
|
-
def swap_to_eth(self, account, amount, from_token: str, to_token: str, min_amount_out: int):
|
50
|
-
tx_data = self.build_generic_data(
|
51
|
-
account.address,
|
52
|
-
False
|
53
|
-
)
|
54
|
-
|
55
|
-
deadline = int(time.time()) + 1000000
|
56
|
-
|
57
|
-
contract_txn = self.contract.functions.swapExactTokensForETH(
|
58
|
-
amount.wei,
|
59
|
-
min_amount_out,
|
60
|
-
[
|
61
|
-
from_token,
|
62
|
-
to_token,
|
63
|
-
],
|
64
|
-
account.address,
|
65
|
-
deadline
|
66
|
-
).build_transaction(tx_data)
|
67
|
-
|
68
|
-
return contract_txn
|
@@ -1,34 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
3
|
-
from sybil_engine.utils.file_loader import load_abi
|
4
|
-
|
5
|
-
abi = load_abi("resources/abi/zerolend.json")
|
6
|
-
|
7
|
-
|
8
|
-
class ZeroLendContract(Contract):
|
9
|
-
def __init__(self, contract_address, web3):
|
10
|
-
super().__init__(contract_address, web3, abi)
|
11
|
-
|
12
|
-
@evm_transaction
|
13
|
-
def deposit_eth(self, account, amount):
|
14
|
-
sender = account.address
|
15
|
-
txn_params = self.build_generic_data(sender, False)
|
16
|
-
|
17
|
-
txn_params['value'] = amount
|
18
|
-
|
19
|
-
return self.contract.functions.depositETH(
|
20
|
-
'0x2f9bB73a8e98793e26Cb2F6C4ad037BDf1C6B269',
|
21
|
-
account.address,
|
22
|
-
0
|
23
|
-
).build_transaction(txn_params)
|
24
|
-
|
25
|
-
@evm_transaction
|
26
|
-
def withdraw_eth(self, account, amount):
|
27
|
-
sender = account.address
|
28
|
-
txn_params = self.build_generic_data(sender, False)
|
29
|
-
|
30
|
-
return self.contract.functions.withdrawETH(
|
31
|
-
'0x2f9bB73a8e98793e26Cb2F6C4ad037BDf1C6B269',
|
32
|
-
int(amount * 0.98),
|
33
|
-
account.address
|
34
|
-
).build_transaction(txn_params)
|
@@ -1,20 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
3
|
-
from sybil_engine.utils.file_loader import load_abi
|
4
|
-
|
5
|
-
abi = load_abi("resources/abi/zerolend_liquidity.json")
|
6
|
-
|
7
|
-
class ZeroLendLiqContract(Contract):
|
8
|
-
def __init__(self, contract_address, web3):
|
9
|
-
super().__init__(contract_address, web3, abi)
|
10
|
-
|
11
|
-
@evm_transaction
|
12
|
-
def create_lock(self, account, amount):
|
13
|
-
sender = account.address
|
14
|
-
txn_params = self.build_generic_data(sender, False)
|
15
|
-
|
16
|
-
return self.contract.functions.createLock(
|
17
|
-
int(amount.wei * 0.99),
|
18
|
-
31536000,
|
19
|
-
True
|
20
|
-
).build_transaction(txn_params)
|
@@ -1,40 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
3
|
-
from sybil_engine.utils.file_loader import load_abi
|
4
|
-
|
5
|
-
abi = load_abi("resources/abi/woofi.json")
|
6
|
-
|
7
|
-
|
8
|
-
class ZKDXContract(Contract):
|
9
|
-
def __init__(self, contract_address, web3):
|
10
|
-
super().__init__(contract_address, web3, abi)
|
11
|
-
self.zkdx_token = '176211869ca2b568f2a7d4ee941e073a821ee1ff'
|
12
|
-
|
13
|
-
@evm_transaction
|
14
|
-
def swap_to_zkdx(self, account, amount):
|
15
|
-
sender = account.address
|
16
|
-
txn_params = self.build_generic_data(sender, True)
|
17
|
-
|
18
|
-
amount_hex = self.decimal_to_hex_padded(amount.wei)
|
19
|
-
txn_params[
|
20
|
-
'data'] = f'0x045d0389000000000000000000000000{self.zkdx_token}00000000000000000000000000000000{amount_hex}'
|
21
|
-
|
22
|
-
return txn_params
|
23
|
-
|
24
|
-
@evm_transaction
|
25
|
-
def swap_from_zkdx(self, account, amount):
|
26
|
-
sender = account.address
|
27
|
-
txn_params = self.build_generic_data(sender, True)
|
28
|
-
|
29
|
-
amount_hex = self.decimal_to_hex_padded(amount)
|
30
|
-
|
31
|
-
# txn_params['gas'] = 60000
|
32
|
-
|
33
|
-
txn_params[
|
34
|
-
'data'] = f'0x1e9a6950000000000000000000000000{self.zkdx_token}00000000000000000000000000000000{amount_hex}'
|
35
|
-
|
36
|
-
return txn_params
|
37
|
-
|
38
|
-
def decimal_to_hex_padded(self, decimal_number):
|
39
|
-
hex_number = hex(decimal_number)[2:] # Remove the '0x' prefix
|
40
|
-
return hex_number.zfill(32) # Pad with zeros to make the length 32
|
@@ -1,14 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.utils.file_loader import load_abi
|
3
|
-
|
4
|
-
abi = load_abi("resources/abi/zkdx_data.json")
|
5
|
-
|
6
|
-
|
7
|
-
class ZKDXDataContract(Contract):
|
8
|
-
def __init__(self, contract_address, web3):
|
9
|
-
super().__init__(contract_address, web3, abi)
|
10
|
-
# self.zkdx_token = '0x176211869cA2b568f2A7D4EE941E073a821EE1ff'
|
11
|
-
self.zkdx_token = '0x2167C4D5FE05A1250588F0B8AA83A599e7732eae'
|
12
|
-
|
13
|
-
def get_balance(self, account):
|
14
|
-
return self.contract.functions.getTokenBalances(account.address, [self.zkdx_token]).call()
|
@@ -1,24 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
3
|
-
from sybil_engine.utils.file_loader import load_abi
|
4
|
-
|
5
|
-
abi = load_abi("resources/abi/zks.json")
|
6
|
-
|
7
|
-
|
8
|
-
class ZKS(Contract):
|
9
|
-
def __init__(self, contract_address, web3):
|
10
|
-
super().__init__(contract_address, web3, abi)
|
11
|
-
|
12
|
-
@evm_transaction
|
13
|
-
def register(self, account, domain_name):
|
14
|
-
sender = account.address
|
15
|
-
|
16
|
-
txn_params = self.build_generic_data(sender, False)
|
17
|
-
|
18
|
-
contract_txn = self.contract.functions.register(domain_name, sender, 1).build_transaction(txn_params)
|
19
|
-
contract_txn['gas'] = self.web3.eth.estimate_gas(contract_txn)
|
20
|
-
|
21
|
-
return contract_txn
|
22
|
-
|
23
|
-
def available(self, domain_name):
|
24
|
-
return self.contract.functions.available(domain_name).call()
|
File without changes
|