web3-wizzard-lib 1.9.0__py3-none-any.whl → 1.9.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,5 @@
1
+ from loguru import logger
2
+
1
3
  from sybil_engine.contract.contract import Contract
2
4
  from sybil_engine.contract.transaction_executor import evm_transaction
3
5
  from sybil_engine.utils.file_loader import load_abi
@@ -15,11 +17,14 @@ class CompoundV3BulkerContract(Contract):
15
17
  hex_amount = decimal_to_padded_hexadecimal(amount, 32)
16
18
  data = f'0x000000000000000000000000b2f97c1bd3bf02f5e74d13f02e3e26f93d77ce44000000000000000000000000ef0f48dadd0abe4f99b4c14862df303ba956bd1300000000000000000000000000000000{hex_amount}'
17
19
 
18
- return self.contract.functions.invoke(
20
+ txn = self.contract.functions.invoke(
19
21
  [hex_to_bytes(actions)],
20
22
  [hex_to_bytes(data)]
21
- ).build_transaction(self.build_generic_data(account.address, False))
23
+ )
24
+
25
+ contract_txn = txn.build_transaction(self.build_generic_data(account.address, False))
22
26
 
27
+ return contract_txn
23
28
 
24
29
  def hex_to_bytes(hex_string):
25
30
  """
@@ -34,7 +34,7 @@ class CompoundV3(Bank):
34
34
  return self.contract.supply(account, amount, erc20_token.erc20_contract.contract_address)
35
35
 
36
36
  def redeem(self, account, amount, token):
37
- actions = '0x414354494f4e5f57495448445241575f41535345540000000000000000000000'
37
+ actions = '0x414354494f4e5f57495448445241575f4e41544956455f544f4b454e00000000'
38
38
  self.contract_bulker.invoke(account, amount, actions)
39
39
 
40
40
  def get_deposit_amount(self, account, token):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: web3-wizzard-lib
3
- Version: 1.9.0
3
+ Version: 1.9.1
4
4
  Summary: Engine for web3 smart contracts automatization.
5
5
  Author-email: Indeoo <indeooars@gmail.com>
6
6
  License: MIT
@@ -11,7 +11,7 @@ web3_wizzard_lib/core/contract/bilinear_contract.py,sha256=pCTkNQa4I1TqIAn_J6WgB
11
11
  web3_wizzard_lib/core/contract/bungee.py,sha256=vkuZmLhtdqvGOTkVe7MnIHsDGHUtm8zdqD-YYxVfkQ8,891
12
12
  web3_wizzard_lib/core/contract/cog_erc20.py,sha256=wkfKC7bqBHpgZGL5xZ4737pMaD5m8oEw0huw36ssX1M,1674
13
13
  web3_wizzard_lib/core/contract/compound_v3.py,sha256=ehsO6o53Av5s1dUknxj_6X4FBP4eNtZ_ZVMtvBzfTus,973
14
- web3_wizzard_lib/core/contract/compund_v3_bulker.py,sha256=HLfBLIgJ3zCDW64XGyq18uVCcVACMQenB6BAl2cR020,1408
14
+ web3_wizzard_lib/core/contract/compund_v3_bulker.py,sha256=88yUywma_Njzjm3B9U0p59UZYZtRRMP3Fii9Evb62M0,1490
15
15
  web3_wizzard_lib/core/contract/coredao_contract.py,sha256=-M7gBYtVCxHLtoPfhNOwUaC9gHWuZMbd_xAbt7N66Tc,1035
16
16
  web3_wizzard_lib/core/contract/coredao_from_contract.py,sha256=cvQlLGjuri-1lhNKtnKJ79MDFcp_wXRFWlJRORt4ZEA,1221
17
17
  web3_wizzard_lib/core/contract/dmail_send_mail.py,sha256=_MVsSvrG17uMQTXNogrfxxKBeBsO8gq6zhaVc5w2AjQ,627
@@ -130,7 +130,7 @@ web3_wizzard_lib/core/modules/bank/aave.py,sha256=q8dR64TviR5o8NzJJXIgbWkLqPxin9
130
130
  web3_wizzard_lib/core/modules/bank/bank.py,sha256=LNz1C720_dG2gih2w4nG5dtRL-q43_yep5mv1Okc2qw,362
131
131
  web3_wizzard_lib/core/modules/bank/basilisk.py,sha256=IsfylmROKyqssosF-ouCA_vkm5kVIRIM3L9Uam461gM,909
132
132
  web3_wizzard_lib/core/modules/bank/cog_bank.py,sha256=v12iY78EESqJmZX3dJghU9HulkrK9G6T2H7tDOm3q0o,828
133
- web3_wizzard_lib/core/modules/bank/compound_v3.py,sha256=lpxAQztFfM_WdB4WRfIh5Nno3h3VO2UIFs66AtSgvbQ,2205
133
+ web3_wizzard_lib/core/modules/bank/compound_v3.py,sha256=57-1JNfg76TyKOIjaF7X65e15mOBsfnI5JzYTlz0oVc,2205
134
134
  web3_wizzard_lib/core/modules/bank/eralend.py,sha256=2aVH4KMYCBwTYSslaULF0t_pQQwq9YBNOVV1_ailXS4,887
135
135
  web3_wizzard_lib/core/modules/bank/layerbank.py,sha256=btJr2GA8MY7R9jLoppTLddbtgHATKIck6sbhCeKUl_I,4547
136
136
  web3_wizzard_lib/core/modules/bank/mendi_finance.py,sha256=GAaTMop6tyxBe3HvsFxChNM4mNFk9vLzec5BpN0RcK0,1958
@@ -371,7 +371,7 @@ web3_wizzard_lib/resources/main/pairs.json,sha256=uvIFvY46Ctiw8hjGd9e-1WE0qLf_du
371
371
  web3_wizzard_lib/resources/main/tokens.json,sha256=AoZz_I6AVoZuecNdyX5L-SnGm6TREuPrsYd2i9PJr7U,5707
372
372
  web3_wizzard_lib/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
373
373
  web3_wizzard_lib/utils/debank_utils.py,sha256=CE2SUN9RpFK_j9KjJgxf7a__VRJ75tLIw9tLrVNrn3c,484
374
- web3_wizzard_lib-1.9.0.dist-info/METADATA,sha256=AQS4lL433HwPWy-qUMv8u34Z3u3pELEsUU2Vs_l-24Q,339
375
- web3_wizzard_lib-1.9.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
376
- web3_wizzard_lib-1.9.0.dist-info/top_level.txt,sha256=31sEPHxuJ1p5fpc75vHQJ8eJdSs80aCZeeT3L8YAHNg,17
377
- web3_wizzard_lib-1.9.0.dist-info/RECORD,,
374
+ web3_wizzard_lib-1.9.1.dist-info/METADATA,sha256=paWNbxRuIme-PEPrp6mzRsFIoRieGPCqyRRAOEUqedY,339
375
+ web3_wizzard_lib-1.9.1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
376
+ web3_wizzard_lib-1.9.1.dist-info/top_level.txt,sha256=31sEPHxuJ1p5fpc75vHQJ8eJdSs80aCZeeT3L8YAHNg,17
377
+ web3_wizzard_lib-1.9.1.dist-info/RECORD,,