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,91 +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.utils.file_loader import load_abi
|
6
|
-
|
7
|
-
swap_method_id = 'a8c9ed67'
|
8
|
-
abi = load_abi("resources/abi/horizondex.json")
|
9
|
-
|
10
|
-
|
11
|
-
class HorizonDexRouter(Contract):
|
12
|
-
def __init__(self, contract_address, web3):
|
13
|
-
super().__init__(contract_address, web3, abi)
|
14
|
-
|
15
|
-
@evm_transaction
|
16
|
-
def multicall(self, account, amount_to_swap, amount_out_min, token_in_address, token_out_address):
|
17
|
-
txn_params = self.build_generic_data(account.address, set_contract_address=False)
|
18
|
-
|
19
|
-
if amount_to_swap.token == 'ETH':
|
20
|
-
txn_params['value'] = amount_to_swap.wei # amount in for ETH
|
21
|
-
|
22
|
-
deadline_hex = decimal_to_padded_hexadecimal(int(datetime.now().timestamp() + 60 * 60 * 3), 64)
|
23
|
-
amount_in = decimal_to_padded_hexadecimal(amount_to_swap.wei, 64)
|
24
|
-
amount_out_min_hex = decimal_to_padded_hexadecimal(amount_out_min, 64)
|
25
|
-
token_in_address_padded = pad_hex(token_in_address, 64).lower()
|
26
|
-
token_out_address_padded = pad_hex(token_out_address, 64).lower()
|
27
|
-
|
28
|
-
if amount_to_swap.chain == 'BASE':
|
29
|
-
some_value = '000000000000000000000000000000000000000000000000000000000000000a'
|
30
|
-
else:
|
31
|
-
if amount_to_swap.token == 'USDC':
|
32
|
-
some_value = '000000000000000000000000000000000000000000000000000000000000012c'
|
33
|
-
else:
|
34
|
-
some_value = '0000000000000000000000000000000000000000000000000000000000000028'
|
35
|
-
|
36
|
-
swap = '0x' + swap_method_id + token_in_address_padded + token_out_address_padded + some_value + '0000000000000000000000000000000000000000000000000000000000000000' + deadline_hex + amount_in + amount_out_min_hex + '0000000000000000000000000000000000000000000000000000000000000000'
|
37
|
-
unwrapETH = self.contract.encode_abi("unwrapWeth", args=(amount_out_min, account.address))
|
38
|
-
|
39
|
-
return self.contract.functions.multicall([swap, unwrapETH]).build_transaction(txn_params)
|
40
|
-
|
41
|
-
@evm_transaction
|
42
|
-
def swap_exact_input_single(self, account, amount_to_swap, min_amount_out, token_in_address, token_out_address):
|
43
|
-
sender = account.address
|
44
|
-
|
45
|
-
deadline = int(datetime.now().timestamp() + 60 * 60 * 3)
|
46
|
-
txn_params = self.build_generic_data(sender, set_contract_address=False)
|
47
|
-
txn_params['value'] = amount_to_swap.wei
|
48
|
-
|
49
|
-
return self.contract.functions.swapExactInputSingle(
|
50
|
-
(
|
51
|
-
token_in_address,
|
52
|
-
token_out_address,
|
53
|
-
40,
|
54
|
-
sender,
|
55
|
-
deadline,
|
56
|
-
amount_to_swap.wei,
|
57
|
-
min_amount_out,
|
58
|
-
0
|
59
|
-
),
|
60
|
-
).build_transaction(txn_params)
|
61
|
-
|
62
|
-
@evm_transaction
|
63
|
-
def swap_exact_input(self, account, min_amount_out, amount_to_swap, token_in_address, token_out_address):
|
64
|
-
sender = account.address
|
65
|
-
|
66
|
-
deadline = int(datetime.now().timestamp() + 60 * 60 * 3)
|
67
|
-
path = token_in_address + '00002842000000000000000000000000000000000000060003e8' + token_out_address
|
68
|
-
|
69
|
-
txn_params = self.build_generic_data(sender)
|
70
|
-
txn_params['value'] = amount_to_swap.wei
|
71
|
-
txn_params['data'] = self.contract.encode_abi('swapExactInput', args=(
|
72
|
-
(
|
73
|
-
path,
|
74
|
-
sender,
|
75
|
-
deadline,
|
76
|
-
amount_to_swap.wei,
|
77
|
-
min_amount_out
|
78
|
-
),
|
79
|
-
)
|
80
|
-
)
|
81
|
-
return txn_params
|
82
|
-
|
83
|
-
|
84
|
-
def decimal_to_padded_hexadecimal(decimal_number, desired_length):
|
85
|
-
hex_value = hex(decimal_number)[2:]
|
86
|
-
|
87
|
-
return hex_value.zfill(desired_length)
|
88
|
-
|
89
|
-
|
90
|
-
def pad_hex(un_padded_hex, desired_length):
|
91
|
-
return un_padded_hex[2:].zfill(desired_length)
|
@@ -1,18 +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/imagine.json")
|
6
|
-
|
7
|
-
|
8
|
-
class ImagineContract(Contract):
|
9
|
-
def __init__(self, contract_address, web3):
|
10
|
-
super().__init__(contract_address, web3, abi)
|
11
|
-
|
12
|
-
@evm_transaction
|
13
|
-
def mint(self, account, uri):
|
14
|
-
amount = self.web3.to_wei(0.0001, "ether")
|
15
|
-
txn_params = self.build_generic_data(account.address, set_contract_address=False)
|
16
|
-
txn_params['value'] = amount
|
17
|
-
|
18
|
-
return self.contract.functions.mint(uri).build_transaction(txn_params)
|
@@ -1,63 +0,0 @@
|
|
1
|
-
from datetime import datetime
|
2
|
-
|
3
|
-
import requests
|
4
|
-
from sybil_engine.contract.contract import Contract
|
5
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
6
|
-
from sybil_engine.utils.file_loader import load_abi
|
7
|
-
|
8
|
-
swap_method_id = 'ac9650d8'
|
9
|
-
abi = load_abi("resources/abi/izumi.json")
|
10
|
-
|
11
|
-
|
12
|
-
class IzumiRouter(Contract):
|
13
|
-
def __init__(self, contract_address, web3):
|
14
|
-
super().__init__(contract_address, web3, abi)
|
15
|
-
|
16
|
-
@evm_transaction
|
17
|
-
def multicall(self, account, amount_to_swap, amount_out_min, token_in_address, token_out_address):
|
18
|
-
txn_params = self.build_generic_data(account.address, set_contract_address=True)
|
19
|
-
|
20
|
-
if amount_to_swap.token == 'ETH':
|
21
|
-
txn_params['value'] = amount_to_swap.wei # amount in for ETH
|
22
|
-
|
23
|
-
amount_in = decimal_to_padded_hexadecimal(amount_to_swap.wei, 64)
|
24
|
-
deadline_hex = decimal_to_padded_hexadecimal(int(datetime.now().timestamp() + 60 * 60 * 3), 64)
|
25
|
-
amount_out_min_hex = decimal_to_padded_hexadecimal(amount_out_min, 64)
|
26
|
-
token_in_address = token_in_address[2:].lower()
|
27
|
-
token_out_address = token_out_address[2:].lower()
|
28
|
-
|
29
|
-
sender_padded = pad_hex(account.address, 64).lower()
|
30
|
-
|
31
|
-
if amount_to_swap.token == 'ETH':
|
32
|
-
swap_method = f'0x{swap_method_id}00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000012475ceafe6000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a0{sender_padded}{amount_in}{amount_out_min_hex}{deadline_hex}000000000000000000000000000000000000000000000000000000000000002b{token_in_address}000bb8{token_out_address}00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
|
33
|
-
refund_method = '412210e8a00000000000000000000000000000000000000000000000000000000'
|
34
|
-
txn_params['data'] = swap_method + refund_method
|
35
|
-
else:
|
36
|
-
swap_method = f'0x{swap_method_id}00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000012475ceafe6000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000{amount_in}{amount_out_min_hex}{deadline_hex}000000000000000000000000000000000000000000000000000000000000002b{token_in_address}000bb8{token_out_address}000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044'
|
37
|
-
unwrap_method = f'49404b7c0000000000000000000000000000000000000000000000000000000000000000{sender_padded}00000000000000000000000000000000000000000000000000000000'
|
38
|
-
txn_params['data'] = swap_method + unwrap_method
|
39
|
-
|
40
|
-
return txn_params
|
41
|
-
|
42
|
-
def quote_price(self, token):
|
43
|
-
BASE_URL = 'https://api.izumi.finance/api/v1/token_info/price_info/?t=USDC&t=ETH&t=WETH&t=wstETH&t=weETH'
|
44
|
-
response = requests.get(BASE_URL)
|
45
|
-
|
46
|
-
if response.status_code == 200:
|
47
|
-
data = response.json()
|
48
|
-
tokenPrice, ETH = float(data['data'][token]), float(data['data']['ETH'])
|
49
|
-
|
50
|
-
return ETH / tokenPrice
|
51
|
-
else:
|
52
|
-
print(f"Error {response.status_code}: {response.text}")
|
53
|
-
return None
|
54
|
-
|
55
|
-
|
56
|
-
def decimal_to_padded_hexadecimal(decimal_number, desired_length):
|
57
|
-
hex_value = hex(decimal_number)[2:]
|
58
|
-
|
59
|
-
return hex_value.zfill(desired_length)
|
60
|
-
|
61
|
-
|
62
|
-
def pad_hex(un_padded_hex, desired_length):
|
63
|
-
return un_padded_hex[2:].zfill(desired_length)
|
@@ -1,21 +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/kreatorland.json")
|
5
|
-
|
6
|
-
|
7
|
-
class KreatorLandContract(Contract):
|
8
|
-
def __init__(self, contract_address, web3):
|
9
|
-
super().__init__(contract_address, web3, abi)
|
10
|
-
|
11
|
-
def mint(self, account, uri):
|
12
|
-
txn_params = self.build_generic_data(account.address, False)
|
13
|
-
|
14
|
-
txn_params['value'] = 660000000000000
|
15
|
-
contract_txn = self.contract.functions.mint(
|
16
|
-
uri,
|
17
|
-
1,
|
18
|
-
660000000000000
|
19
|
-
).build_transaction(txn_params)
|
20
|
-
|
21
|
-
return contract_txn
|
@@ -1,254 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.contract.transaction_executor import evm_transaction
|
3
|
-
|
4
|
-
abi = [{'inputs': [{'internalType': 'address', 'name': '_zroToken', 'type': 'address'},
|
5
|
-
{'internalType': 'address', 'name': '_endpoint', 'type': 'address'},
|
6
|
-
{'internalType': 'bytes32', 'name': '_merkleRoot', 'type': 'bytes32'},
|
7
|
-
{'internalType': 'address', 'name': '_donateContract', 'type': 'address'},
|
8
|
-
{'internalType': 'address', 'name': '_stargateUsdc', 'type': 'address'},
|
9
|
-
{'internalType': 'address', 'name': '_stargateUsdt', 'type': 'address'},
|
10
|
-
{'internalType': 'address', 'name': '_stargateNative', 'type': 'address'},
|
11
|
-
{'internalType': 'uint256', 'name': '_nativePrice', 'type': 'uint256'},
|
12
|
-
{'internalType': 'address', 'name': '_owner', 'type': 'address'}], 'stateMutability': 'nonpayable',
|
13
|
-
'type': 'constructor'},
|
14
|
-
{'inputs': [{'internalType': 'address', 'name': 'target', 'type': 'address'}], 'name': 'AddressEmptyCode',
|
15
|
-
'type': 'error'}, {'inputs': [{'internalType': 'address', 'name': 'account', 'type': 'address'}],
|
16
|
-
'name': 'AddressInsufficientBalance', 'type': 'error'},
|
17
|
-
{'inputs': [{'internalType': 'address', 'name': 'user', 'type': 'address'}], 'name': 'AlreadyClaimed',
|
18
|
-
'type': 'error'}, {'inputs': [], 'name': 'DonateAndClaimAlreadySet', 'type': 'error'},
|
19
|
-
{'inputs': [], 'name': 'FailedInnerCall', 'type': 'error'}, {
|
20
|
-
'inputs': [{'internalType': 'enum Currency', 'name': 'currency', 'type': 'uint8'},
|
21
|
-
{'internalType': 'uint256', 'name': 'expectedAmount', 'type': 'uint256'},
|
22
|
-
{'internalType': 'uint256', 'name': 'actualAmount', 'type': 'uint256'}],
|
23
|
-
'name': 'InsufficientDonation', 'type': 'error'}, {'inputs': [], 'name': 'InvalidDelegate', 'type': 'error'},
|
24
|
-
{'inputs': [], 'name': 'InvalidEndpointCall', 'type': 'error'},
|
25
|
-
{'inputs': [], 'name': 'InvalidNativeStargate', 'type': 'error'},
|
26
|
-
{'inputs': [], 'name': 'InvalidProof', 'type': 'error'},
|
27
|
-
{'inputs': [{'internalType': 'uint32', 'name': 'eid', 'type': 'uint32'}], 'name': 'NoPeer', 'type': 'error'},
|
28
|
-
{'inputs': [], 'name': 'OnlyDonateAndClaim', 'type': 'error'},
|
29
|
-
{'inputs': [{'internalType': 'address', 'name': 'addr', 'type': 'address'}], 'name': 'OnlyEndpoint',
|
30
|
-
'type': 'error'}, {'inputs': [{'internalType': 'uint32', 'name': 'eid', 'type': 'uint32'},
|
31
|
-
{'internalType': 'bytes32', 'name': 'sender', 'type': 'bytes32'}],
|
32
|
-
'name': 'OnlyPeer', 'type': 'error'},
|
33
|
-
{'inputs': [{'internalType': 'address', 'name': 'owner', 'type': 'address'}], 'name': 'OwnableInvalidOwner',
|
34
|
-
'type': 'error'}, {'inputs': [{'internalType': 'address', 'name': 'account', 'type': 'address'}],
|
35
|
-
'name': 'OwnableUnauthorizedAccount', 'type': 'error'},
|
36
|
-
{'inputs': [{'internalType': 'address', 'name': 'token', 'type': 'address'}], 'name': 'SafeERC20FailedOperation',
|
37
|
-
'type': 'error'}, {'inputs': [{'internalType': 'enum Currency', 'name': 'currency', 'type': 'uint8'}],
|
38
|
-
'name': 'UnsupportedCurrency', 'type': 'error'},
|
39
|
-
{'inputs': [], 'name': 'DENOMINATOR', 'outputs': [{'internalType': 'uint256', 'name': '', 'type': 'uint256'}],
|
40
|
-
'stateMutability': 'view', 'type': 'function'}, {'inputs': [{'components': [
|
41
|
-
{'internalType': 'uint32', 'name': 'srcEid', 'type': 'uint32'},
|
42
|
-
{'internalType': 'bytes32', 'name': 'sender', 'type': 'bytes32'},
|
43
|
-
{'internalType': 'uint64', 'name': 'nonce', 'type': 'uint64'}], 'internalType': 'struct Origin',
|
44
|
-
'name': 'origin', 'type': 'tuple'}],
|
45
|
-
'name': 'allowInitializePath', 'outputs': [
|
46
|
-
{'internalType': 'bool', 'name': '', 'type': 'bool'}], 'stateMutability': 'view', 'type': 'function'}, {
|
47
|
-
'inputs': [{'internalType': 'enum Currency', 'name': '_currency', 'type': 'uint8'},
|
48
|
-
{'internalType': 'address', 'name': '_user', 'type': 'address'},
|
49
|
-
{'internalType': 'uint256', 'name': '_zroAmount', 'type': 'uint256'}], 'name': 'assertDonation',
|
50
|
-
'outputs': [], 'stateMutability': 'view', 'type': 'function'}, {
|
51
|
-
'inputs': [{'internalType': 'address', 'name': '_user', 'type': 'address'},
|
52
|
-
{'internalType': 'enum Currency', 'name': '_currency', 'type': 'uint8'},
|
53
|
-
{'internalType': 'uint256', 'name': '_zroAmount', 'type': 'uint256'},
|
54
|
-
{'internalType': 'bytes32[]', 'name': '_proof', 'type': 'bytes32[]'},
|
55
|
-
{'internalType': 'address', 'name': '_to', 'type': 'address'},
|
56
|
-
{'internalType': 'bytes', 'name': '', 'type': 'bytes'}], 'name': 'claim', 'outputs': [{
|
57
|
-
'components': [
|
58
|
-
{
|
59
|
-
'internalType': 'bytes32',
|
60
|
-
'name': 'guid',
|
61
|
-
'type': 'bytes32'},
|
62
|
-
{
|
63
|
-
'internalType': 'uint64',
|
64
|
-
'name': 'nonce',
|
65
|
-
'type': 'uint64'},
|
66
|
-
{
|
67
|
-
'components': [
|
68
|
-
{
|
69
|
-
'internalType': 'uint256',
|
70
|
-
'name': 'nativeFee',
|
71
|
-
'type': 'uint256'},
|
72
|
-
{
|
73
|
-
'internalType': 'uint256',
|
74
|
-
'name': 'lzTokenFee',
|
75
|
-
'type': 'uint256'}],
|
76
|
-
'internalType': 'struct MessagingFee',
|
77
|
-
'name': 'fee',
|
78
|
-
'type': 'tuple'}],
|
79
|
-
'internalType': 'struct MessagingReceipt',
|
80
|
-
'name': 'receipt',
|
81
|
-
'type': 'tuple'}],
|
82
|
-
'stateMutability': 'payable', 'type': 'function'}, {
|
83
|
-
'inputs': [{'internalType': 'enum Currency', 'name': '_currency', 'type': 'uint8'},
|
84
|
-
{'internalType': 'uint256', 'name': '_zroAmount', 'type': 'uint256'},
|
85
|
-
{'internalType': 'bytes32[]', 'name': '_proof', 'type': 'bytes32[]'},
|
86
|
-
{'internalType': 'address', 'name': '_to', 'type': 'address'},
|
87
|
-
{'internalType': 'bytes', 'name': '', 'type': 'bytes'}], 'name': 'claim', 'outputs': [{
|
88
|
-
'components': [
|
89
|
-
{
|
90
|
-
'internalType': 'bytes32',
|
91
|
-
'name': 'guid',
|
92
|
-
'type': 'bytes32'},
|
93
|
-
{
|
94
|
-
'internalType': 'uint64',
|
95
|
-
'name': 'nonce',
|
96
|
-
'type': 'uint64'},
|
97
|
-
{
|
98
|
-
'components': [
|
99
|
-
{
|
100
|
-
'internalType': 'uint256',
|
101
|
-
'name': 'nativeFee',
|
102
|
-
'type': 'uint256'},
|
103
|
-
{
|
104
|
-
'internalType': 'uint256',
|
105
|
-
'name': 'lzTokenFee',
|
106
|
-
'type': 'uint256'}],
|
107
|
-
'internalType': 'struct MessagingFee',
|
108
|
-
'name': 'fee',
|
109
|
-
'type': 'tuple'}],
|
110
|
-
'internalType': 'struct MessagingReceipt',
|
111
|
-
'name': 'receipt',
|
112
|
-
'type': 'tuple'}],
|
113
|
-
'stateMutability': 'payable', 'type': 'function'}, {
|
114
|
-
'inputs': [{'internalType': 'enum Currency', 'name': 'currency', 'type': 'uint8'},
|
115
|
-
{'internalType': 'uint256', 'name': 'amountToDonate', 'type': 'uint256'},
|
116
|
-
{'internalType': 'uint256', 'name': '_zroAmount', 'type': 'uint256'},
|
117
|
-
{'internalType': 'bytes32[]', 'name': '_proof', 'type': 'bytes32[]'},
|
118
|
-
{'internalType': 'address', 'name': '_to', 'type': 'address'},
|
119
|
-
{'internalType': 'bytes', 'name': '_extraBytes', 'type': 'bytes'}], 'name': 'donateAndClaim',
|
120
|
-
'outputs': [{'components': [{'internalType': 'bytes32', 'name': 'guid', 'type': 'bytes32'},
|
121
|
-
{'internalType': 'uint64', 'name': 'nonce', 'type': 'uint64'}, {'components': [
|
122
|
-
{'internalType': 'uint256', 'name': 'nativeFee', 'type': 'uint256'},
|
123
|
-
{'internalType': 'uint256', 'name': 'lzTokenFee', 'type': 'uint256'}],
|
124
|
-
'internalType': 'struct MessagingFee',
|
125
|
-
'name': 'fee',
|
126
|
-
'type': 'tuple'}],
|
127
|
-
'internalType': 'struct MessagingReceipt', 'name': 'receipt', 'type': 'tuple'}],
|
128
|
-
'stateMutability': 'payable', 'type': 'function'}, {'inputs': [], 'name': 'donateContract', 'outputs': [
|
129
|
-
{'internalType': 'contract IDonate', 'name': '', 'type': 'address'}], 'stateMutability': 'view',
|
130
|
-
'type': 'function'}, {'inputs': [], 'name': 'endpoint',
|
131
|
-
'outputs': [{
|
132
|
-
'internalType': 'contract ILayerZeroEndpointV2',
|
133
|
-
'name': '',
|
134
|
-
'type': 'address'}],
|
135
|
-
'stateMutability': 'view',
|
136
|
-
'type': 'function'}, {'inputs': [{
|
137
|
-
'components': [
|
138
|
-
{
|
139
|
-
'internalType': 'uint32',
|
140
|
-
'name': 'srcEid',
|
141
|
-
'type': 'uint32'},
|
142
|
-
{
|
143
|
-
'internalType': 'bytes32',
|
144
|
-
'name': 'sender',
|
145
|
-
'type': 'bytes32'},
|
146
|
-
{
|
147
|
-
'internalType': 'uint64',
|
148
|
-
'name': 'nonce',
|
149
|
-
'type': 'uint64'}],
|
150
|
-
'internalType': 'struct Origin',
|
151
|
-
'name': '',
|
152
|
-
'type': 'tuple'},
|
153
|
-
{
|
154
|
-
'internalType': 'bytes',
|
155
|
-
'name': '',
|
156
|
-
'type': 'bytes'},
|
157
|
-
{
|
158
|
-
'internalType': 'address',
|
159
|
-
'name': '_sender',
|
160
|
-
'type': 'address'}],
|
161
|
-
'name': 'isComposeMsgSender',
|
162
|
-
'outputs': [{
|
163
|
-
'internalType': 'bool',
|
164
|
-
'name': '',
|
165
|
-
'type': 'bool'}],
|
166
|
-
'stateMutability': 'view',
|
167
|
-
'type': 'function'},
|
168
|
-
{'inputs': [{'components': [{'internalType': 'uint32', 'name': 'srcEid', 'type': 'uint32'},
|
169
|
-
{'internalType': 'bytes32', 'name': 'sender', 'type': 'bytes32'},
|
170
|
-
{'internalType': 'uint64', 'name': 'nonce', 'type': 'uint64'}],
|
171
|
-
'internalType': 'struct Origin', 'name': '_origin', 'type': 'tuple'},
|
172
|
-
{'internalType': 'bytes32', 'name': '_guid', 'type': 'bytes32'},
|
173
|
-
{'internalType': 'bytes', 'name': '_message', 'type': 'bytes'},
|
174
|
-
{'internalType': 'address', 'name': '_executor', 'type': 'address'},
|
175
|
-
{'internalType': 'bytes', 'name': '_extraData', 'type': 'bytes'}], 'name': 'lzReceive',
|
176
|
-
'outputs': [], 'stateMutability': 'payable', 'type': 'function'},
|
177
|
-
{'inputs': [], 'name': 'merkleRoot', 'outputs': [{'internalType': 'bytes32', 'name': '', 'type': 'bytes32'}],
|
178
|
-
'stateMutability': 'view', 'type': 'function'}, {
|
179
|
-
'inputs': [{'internalType': 'uint32', 'name': '', 'type': 'uint32'},
|
180
|
-
{'internalType': 'bytes32', 'name': '', 'type': 'bytes32'}], 'name': 'nextNonce',
|
181
|
-
'outputs': [{'internalType': 'uint64', 'name': 'nonce', 'type': 'uint64'}], 'stateMutability': 'view',
|
182
|
-
'type': 'function'}, {'inputs': [], 'name': 'numeratorNative',
|
183
|
-
'outputs': [{'internalType': 'uint256', 'name': '', 'type': 'uint256'}],
|
184
|
-
'stateMutability': 'view', 'type': 'function'},
|
185
|
-
{'inputs': [], 'name': 'numeratorUsdc', 'outputs': [{'internalType': 'uint256', 'name': '', 'type': 'uint256'}],
|
186
|
-
'stateMutability': 'view', 'type': 'function'},
|
187
|
-
{'inputs': [], 'name': 'numeratorUsdt', 'outputs': [{'internalType': 'uint256', 'name': '', 'type': 'uint256'}],
|
188
|
-
'stateMutability': 'view', 'type': 'function'}, {'inputs': [], 'name': 'oAppVersion', 'outputs': [
|
189
|
-
{'internalType': 'uint64', 'name': 'senderVersion', 'type': 'uint64'},
|
190
|
-
{'internalType': 'uint64', 'name': 'receiverVersion', 'type': 'uint64'}], 'stateMutability': 'view',
|
191
|
-
'type': 'function'},
|
192
|
-
{'inputs': [], 'name': 'owner', 'outputs': [{'internalType': 'address', 'name': '', 'type': 'address'}],
|
193
|
-
'stateMutability': 'view', 'type': 'function'},
|
194
|
-
{'inputs': [{'internalType': 'uint32', 'name': 'eid', 'type': 'uint32'}], 'name': 'peers',
|
195
|
-
'outputs': [{'internalType': 'bytes32', 'name': 'peer', 'type': 'bytes32'}], 'stateMutability': 'view',
|
196
|
-
'type': 'function'}, {'inputs': [{'internalType': 'uint32', 'name': '_dstEid', 'type': 'uint32'},
|
197
|
-
{'internalType': 'uint256', 'name': '_zroAmount', 'type': 'uint256'}],
|
198
|
-
'name': 'quoteClaimCallback', 'outputs': [{'components': [
|
199
|
-
{'internalType': 'uint256', 'name': 'nativeFee', 'type': 'uint256'},
|
200
|
-
{'internalType': 'uint256', 'name': 'lzTokenFee', 'type': 'uint256'}],
|
201
|
-
'internalType': 'struct MessagingFee',
|
202
|
-
'name': 'msgFee', 'type': 'tuple'}],
|
203
|
-
'stateMutability': 'view', 'type': 'function'},
|
204
|
-
{'inputs': [], 'name': 'renounceOwnership', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function'},
|
205
|
-
{'inputs': [{'internalType': 'uint256', 'name': '_zroAmount', 'type': 'uint256'}], 'name': 'requiredDonation',
|
206
|
-
'outputs': [{'components': [{'internalType': 'uint256', 'name': 'usdc', 'type': 'uint256'},
|
207
|
-
{'internalType': 'uint256', 'name': 'usdt', 'type': 'uint256'},
|
208
|
-
{'internalType': 'uint256', 'name': 'native', 'type': 'uint256'}],
|
209
|
-
'internalType': 'struct Donation', 'name': '', 'type': 'tuple'}], 'stateMutability': 'view',
|
210
|
-
'type': 'function'},
|
211
|
-
{'inputs': [{'internalType': 'address', 'name': '_delegate', 'type': 'address'}], 'name': 'setDelegate',
|
212
|
-
'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function'},
|
213
|
-
{'inputs': [{'internalType': 'address', 'name': '_donateAndClaim', 'type': 'address'}],
|
214
|
-
'name': 'setDonateAndClaim', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function'},
|
215
|
-
{'inputs': [{'internalType': 'bytes32', 'name': '_merkleRoot', 'type': 'bytes32'}], 'name': 'setMerkleRoot',
|
216
|
-
'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function'}, {
|
217
|
-
'inputs': [{'internalType': 'uint32', 'name': '_eid', 'type': 'uint32'},
|
218
|
-
{'internalType': 'bytes32', 'name': '_peer', 'type': 'bytes32'}], 'name': 'setPeer',
|
219
|
-
'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function'},
|
220
|
-
{'inputs': [{'internalType': 'address', 'name': 'newOwner', 'type': 'address'}], 'name': 'transferOwnership',
|
221
|
-
'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function'}, {
|
222
|
-
'inputs': [{'internalType': 'address', 'name': '_to', 'type': 'address'},
|
223
|
-
{'internalType': 'uint256', 'name': '_amount', 'type': 'uint256'}], 'name': 'withdrawZro',
|
224
|
-
'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function'},
|
225
|
-
{'inputs': [{'internalType': 'address', 'name': 'user', 'type': 'address'}], 'name': 'zroClaimed',
|
226
|
-
'outputs': [{'internalType': 'uint256', 'name': 'amount', 'type': 'uint256'}], 'stateMutability': 'view',
|
227
|
-
'type': 'function'},
|
228
|
-
{'inputs': [], 'name': 'zroToken', 'outputs': [{'internalType': 'address', 'name': '', 'type': 'address'}],
|
229
|
-
'stateMutability': 'view', 'type': 'function'}]
|
230
|
-
|
231
|
-
|
232
|
-
class L0Claim(Contract):
|
233
|
-
def __init__(self, contract_address, web3):
|
234
|
-
super().__init__(contract_address, web3, abi)
|
235
|
-
|
236
|
-
@evm_transaction
|
237
|
-
def donateAndClaim(self, account, donate_amount, amount_to_claim, merkle_proof):
|
238
|
-
txn_params = self.build_generic_data(account.address, False)
|
239
|
-
txn_params['value'] = donate_amount
|
240
|
-
|
241
|
-
return self.contract.functions.donateAndClaim(
|
242
|
-
2,
|
243
|
-
donate_amount,
|
244
|
-
#5520000000000000
|
245
|
-
#5520000000000000
|
246
|
-
amount_to_claim,
|
247
|
-
#183461138113000003000
|
248
|
-
#183461138113000003000
|
249
|
-
merkle_proof,
|
250
|
-
#['0x1fce26056b7cc81752ae974a8baa89d78123fd539f5fb47f0e5cb1f2c603b3c8', '0x63e5fe91dbafe187829bc84f8e6ddb6c6f4d62e5ef1ff4796913101fc0ea916e', '0x9a734b2f26f5334741ee26eda57cef6c4f84430e1d91be1b65cb4e7be577d0e9', '0xcc8bc1df42652bfd0aa8032a1cf50a31e31ecbe78d52411491076bfc59b70e7d', '0x8edc7e63ae09f38a3e00b6ee33fb102eee1771ce73b8a6b089cfcc3c2b4b7b8f', '0x8870668769d7dfa64e8695bf51741c73358923b7ad7e07dd6055c088760063cc', '0x75321dbf87f550059a302d401fd3aae9b13204316e202b3d0bd459447d611739', '0x5d48d0538089ccbfade4265ff10efae09691a0204dcef8db5b20064d3c6103bb', '0xa6d7408758dc62d68fc1d768714f4f9422bb1ad8f222a687c0e1c4d88e7ddfcf', '0xfa0a2c7465fccd5838f147abad0b3f928b716eabfbbae622de7cfdb0c0fcbce1', '0x30369b62a912a4555e898133ad536bbc8b58af456cdb1001e38a8e0e4d01c034', '0xea79cef9445e78b7c5695d0bb5e5d676bfa5b7ced66df915ec13fb6fd6b3e131', '0xc4abfec16adca47f0c0d5d22dcb87586b66cba0048a684e440be04175dbc5c58', '0xecffcc8af84ed13272ad00aeee065c02e4778b6cfd0d124222f23264b0679076', '0x767c848c0da4bee189851e644bb437e9ef426d6e418f14fd3e9337e5ffe3596f', '0x55ab35e3f06e43b8af688169490819fdcb4180258210acb11db1976379754b1c', '0x950b026464be9f6fd40516d45236a70f07ff78b3dc1b9d258c9ddbf7fd0a003f', '0x6b71fb967b62b9e1f399a856517a1da9c22a0993fdb84b1b998b14849c2d7e9e', '0x9ae69f117d127a35e00c470d6bff380bfabbca78d86668984e867861853ee8fc', '0xa042d488b6a933c88ec4b41ba407ff13521c2e67e842697017bc19ed9f9a8e5d', '0x65b28f8ec7c9c9fc471c6a5000a1906b04e8da896a739ffddf6d3b71e47fd60d']
|
251
|
-
#['0x1fce26056b7cc81752ae974a8baa89d78123fd539f5fb47f0e5cb1f2c603b3c8', '0x63e5fe91dbafe187829bc84f8e6ddb6c6f4d62e5ef1ff4796913101fc0ea916e', '0x9a734b2f26f5334741ee26eda57cef6c4f84430e1d91be1b65cb4e7be577d0e9', '0xcc8bc1df42652bfd0aa8032a1cf50a31e31ecbe78d52411491076bfc59b70e7d', '0x8edc7e63ae09f38a3e00b6ee33fb102eee1771ce73b8a6b089cfcc3c2b4b7b8f', '0x8870668769d7dfa64e8695bf51741c73358923b7ad7e07dd6055c088760063cc', '0x75321dbf87f550059a302d401fd3aae9b13204316e202b3d0bd459447d611739', '0x5d48d0538089ccbfade4265ff10efae09691a0204dcef8db5b20064d3c6103bb', '0xa6d7408758dc62d68fc1d768714f4f9422bb1ad8f222a687c0e1c4d88e7ddfcf', '0xfa0a2c7465fccd5838f147abad0b3f928b716eabfbbae622de7cfdb0c0fcbce1', '0x30369b62a912a4555e898133ad536bbc8b58af456cdb1001e38a8e0e4d01c034', '0xea79cef9445e78b7c5695d0bb5e5d676bfa5b7ced66df915ec13fb6fd6b3e131', '0xc4abfec16adca47f0c0d5d22dcb87586b66cba0048a684e440be04175dbc5c58', '0xecffcc8af84ed13272ad00aeee065c02e4778b6cfd0d124222f23264b0679076', '0x767c848c0da4bee189851e644bb437e9ef426d6e418f14fd3e9337e5ffe3596f', '0x55ab35e3f06e43b8af688169490819fdcb4180258210acb11db1976379754b1c', '0x950b026464be9f6fd40516d45236a70f07ff78b3dc1b9d258c9ddbf7fd0a003f', '0x6b71fb967b62b9e1f399a856517a1da9c22a0993fdb84b1b998b14849c2d7e9e', '0x9ae69f117d127a35e00c470d6bff380bfabbca78d86668984e867861853ee8fc', '0xa042d488b6a933c88ec4b41ba407ff13521c2e67e842697017bc19ed9f9a8e5d', '0x65b28f8ec7c9c9fc471c6a5000a1906b04e8da896a739ffddf6d3b71e47fd60d']
|
252
|
-
account.address,
|
253
|
-
'0x'
|
254
|
-
).build_transaction(txn_params)
|
@@ -1,21 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.data.networks import get_ids_chain
|
3
|
-
from sybil_engine.data.tokens import get_tokens_for_chain
|
4
|
-
from sybil_engine.utils.file_loader import load_abi
|
5
|
-
from web3 import Web3
|
6
|
-
|
7
|
-
abi = load_abi("resources/abi/merkly.json")
|
8
|
-
|
9
|
-
|
10
|
-
class L2TelegraphMinter(Contract):
|
11
|
-
def __init__(self, contract_address, web3):
|
12
|
-
self.weth_token = get_tokens_for_chain(get_ids_chain()[web3.eth.chain_id])['WETH']
|
13
|
-
super().__init__(contract_address, web3, abi)
|
14
|
-
|
15
|
-
def mint(self, account):
|
16
|
-
txn_params = self.build_generic_data(account.address, False)
|
17
|
-
|
18
|
-
txn_params['value'] = Web3.to_wei(0.0005, "ether")
|
19
|
-
contract_txn = self.contract.functions.mint().build_transaction(txn_params)
|
20
|
-
|
21
|
-
return contract_txn
|
@@ -1,18 +0,0 @@
|
|
1
|
-
from sybil_engine.contract.contract import Contract
|
2
|
-
from sybil_engine.data.networks import get_ids_chain
|
3
|
-
from sybil_engine.data.tokens import get_tokens_for_chain
|
4
|
-
from sybil_engine.utils.file_loader import load_abi
|
5
|
-
|
6
|
-
abi = load_abi("resources/abi/layerbank_price.json")
|
7
|
-
|
8
|
-
|
9
|
-
class LayerBankPrice(Contract):
|
10
|
-
def __init__(self, contract_address, web3):
|
11
|
-
self.weth_token = get_tokens_for_chain(get_ids_chain()[web3.eth.chain_id])['WETH']
|
12
|
-
super().__init__(contract_address, web3, abi)
|
13
|
-
|
14
|
-
def get_underlying_price(self, token):
|
15
|
-
return self.contract.functions.getUnderlyingPrice(token).call()
|
16
|
-
|
17
|
-
def price_of_eth(self):
|
18
|
-
return self.contract.functions.priceOfETH().call()
|
@@ -1,29 +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/layerbank_token.json")
|
5
|
-
|
6
|
-
MAX_ALLOWANCE = 115792089237316195423570985008687907853269984665640564039457584007913129639935
|
7
|
-
|
8
|
-
|
9
|
-
class LayerBankToken(Contract):
|
10
|
-
def __init__(self, contract_address, web3):
|
11
|
-
super().__init__(contract_address, web3, abi)
|
12
|
-
|
13
|
-
def balance_of(self, account):
|
14
|
-
return self.contract.functions.balanceOf(account.address).call()
|
15
|
-
|
16
|
-
def underlying_balance_of(self, account):
|
17
|
-
return self.contract.functions.balanceOf(account.address).call()
|
18
|
-
|
19
|
-
def exchange_rate(self):
|
20
|
-
return self.contract.functions.exchangeRate().call()
|
21
|
-
|
22
|
-
def decimals(self):
|
23
|
-
return self.contract.functions.decimals().call()
|
24
|
-
|
25
|
-
def one_decimal(self):
|
26
|
-
return 10 ** self.contract.functions.decimals().call()
|
27
|
-
|
28
|
-
def symbol(self):
|
29
|
-
return self.contract.functions.symbol().call()
|
@@ -1,59 +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.networks import get_ids_chain
|
4
|
-
from sybil_engine.data.tokens import get_tokens_for_chain
|
5
|
-
from sybil_engine.utils.file_loader import load_abi
|
6
|
-
|
7
|
-
abi = load_abi("resources/abi/layerbank.json")
|
8
|
-
|
9
|
-
|
10
|
-
class LayerBankContract(Contract):
|
11
|
-
def __init__(self, contract_address, web3):
|
12
|
-
self.weth_token = get_tokens_for_chain(get_ids_chain()[web3.eth.chain_id])['WETH']
|
13
|
-
super().__init__(contract_address, web3, abi)
|
14
|
-
|
15
|
-
@evm_transaction
|
16
|
-
def supply(self, account, token, amount):
|
17
|
-
txn_params = self.build_generic_data(account.address, False)
|
18
|
-
|
19
|
-
contract_txn = self.contract.functions.supply(token, amount).build_transaction(txn_params)
|
20
|
-
|
21
|
-
return contract_txn
|
22
|
-
|
23
|
-
@evm_transaction
|
24
|
-
def enter_markets(self, account, token):
|
25
|
-
txn_params = self.build_generic_data(account.address, False)
|
26
|
-
|
27
|
-
return self.contract.functions.enterMarkets([token]).build_transaction(txn_params)
|
28
|
-
|
29
|
-
@evm_transaction
|
30
|
-
def borrow(self, account, token, amount):
|
31
|
-
txn_params = self.build_generic_data(account.address, False)
|
32
|
-
|
33
|
-
contract_txn = self.contract.functions.borrow(token, amount).build_transaction(txn_params)
|
34
|
-
|
35
|
-
return contract_txn
|
36
|
-
|
37
|
-
@evm_transaction
|
38
|
-
def repay_borrow(self, account, token, amount):
|
39
|
-
txn_params = self.build_generic_data(account.address, False)
|
40
|
-
|
41
|
-
txn_params['value'] = amount
|
42
|
-
|
43
|
-
contract_txn = self.contract.functions.repayBorrow(token, amount).build_transaction(txn_params)
|
44
|
-
|
45
|
-
return contract_txn
|
46
|
-
|
47
|
-
@evm_transaction
|
48
|
-
def redeem_token(self, account, token, amount):
|
49
|
-
txn_params = self.build_generic_data(account.address, False)
|
50
|
-
|
51
|
-
contract_txn = self.contract.functions.redeemUnderlying(token, amount).build_transaction(txn_params)
|
52
|
-
|
53
|
-
return contract_txn
|
54
|
-
|
55
|
-
def market_list_of(self, account):
|
56
|
-
return self.contract.functions.marketListOf(account.address).call()
|
57
|
-
|
58
|
-
def account_liquidity_of(self, account):
|
59
|
-
return self.contract.functions.accountLiquidityOf(account.address).call()
|
@@ -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/linea_day_2.json")
|
6
|
-
|
7
|
-
|
8
|
-
class LineaDay2(Contract):
|
9
|
-
def __init__(self, contract_address, web3):
|
10
|
-
super().__init__(contract_address, web3, abi)
|
11
|
-
|
12
|
-
@evm_transaction
|
13
|
-
def approve(self, account):
|
14
|
-
txn_params = self.build_generic_data(account.address, False)
|
15
|
-
|
16
|
-
contract_txn = self.contract.functions.setApprovalForAll(account.address, False).build_transaction(txn_params)
|
17
|
-
|
18
|
-
return contract_txn
|
19
|
-
|