arc-devkit 0.4.0__py3-none-any.whl → 0.4.2__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.
@@ -159,8 +159,16 @@ class TxAnalyzer:
159
159
  results = analyzer.analyze_batch(["0xHash1...", "0xHash2..."])
160
160
  """
161
161
 
162
- def __init__(self, w3: Web3 | None = None) -> None:
163
- self._w3 = w3 or get_web3()
162
+ def __init__(self, w3: Web3 | None = None, rpc_url: str | None = None) -> None:
163
+ if w3:
164
+ self._w3 = w3
165
+ elif rpc_url:
166
+ from web3.middleware import ExtraDataToPOAMiddleware
167
+ _w3 = Web3(Web3.HTTPProvider(rpc_url, request_kwargs={"timeout": 10}))
168
+ _w3.middleware_onion.inject(ExtraDataToPOAMiddleware, layer=0)
169
+ self._w3 = _w3
170
+ else:
171
+ self._w3 = get_web3()
164
172
 
165
173
  # ------------------------------------------------------------------
166
174
  # Public API
@@ -1,15 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arc-devkit
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Plataforma open source de ferramentas para desenvolvedores da Arc blockchain (Circle)
5
- Author-email: Jeielsantosdev <jeielsantos.ti@gmail.com>
6
- License-Expression: MIT
7
- Project-URL: Homepage, https://github.com/Jeielsantosdev/arc-devkit
8
- Project-URL: Repository, https://github.com/Jeielsantosdev/arc-devkit
9
- Project-URL: Bug Tracker, https://github.com/Jeielsantosdev/arc-devkit/issues
5
+ Author: Arc DevKit Contributors
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Jeielsantosdev/arc_dev_kit
8
+ Project-URL: Repository, https://github.com/Jeielsantosdev/arc_dev_kit
9
+ Project-URL: Issues, https://github.com/Jeielsantosdev/arc_dev_kit/issues
10
10
  Keywords: arc,blockchain,circle,usdc,web3,ai,anthropic
11
11
  Classifier: Development Status :: 3 - Alpha
12
12
  Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
13
14
  Classifier: Programming Language :: Python :: 3
14
15
  Classifier: Programming Language :: Python :: 3.11
15
16
  Classifier: Programming Language :: Python :: 3.12
@@ -30,15 +30,15 @@ arc_devkit/core/connection.py,sha256=aoIrlIUW7oZuy9q-rCS_GsCn6xTiMjSQFYAnWZwU3Pc
30
30
  arc_devkit/core/gas.py,sha256=sxdbAfYqTeCGOk_jvjOS-1j7jAFFEBzwwefRB1XBOsY,1956
31
31
  arc_devkit/core/wallet.py,sha256=xlG80GSApJBAvN_tOBH_vHTe-Nqos1nkZkQhKJAwWAI,2066
32
32
  arc_devkit/debugger/__init__.py,sha256=p9--cHKoWMjuemxzfb--PUJ7EIMyLXR8cIKb3w6rweQ,142
33
- arc_devkit/debugger/tx_analyzer.py,sha256=MVNp6PKyG7geU0f7w75HfOlxxniQz_DTu5HMFcUtHOQ,13143
33
+ arc_devkit/debugger/tx_analyzer.py,sha256=qq8DkttjytbBZ1obFhM3wQ3SHlf456Jesf1WNJwJVqw,13496
34
34
  arc_devkit/deploy/__init__.py,sha256=T93qaV7vv3dwKi3t-K4GzJykfSDw3qealZxCUsMp4xg,200
35
35
  arc_devkit/deploy/deployer.py,sha256=dcMwzp_Y3zEeqqKwpR9iH9WkzPNscMQWgXoAyOa2dvE,9507
36
36
  arc_devkit/events/__init__.py,sha256=t_t5v1Qfrno-YsE7xWC864RJ61Y4VU5aWhJ5BN0YdLE,155
37
37
  arc_devkit/events/listener.py,sha256=XjIKbh69KC0up3zlf9hgGnEu-X4qQZuoWbDxA3CJ-F0,7066
38
38
  arc_devkit/usdc/__init__.py,sha256=xpvdqiMPC3o7x3bHCBwTy3K-ogQWfVjS99jzG4fQQO0,145
39
39
  arc_devkit/usdc/token.py,sha256=U-eUh4as8It4R96YsxrSslxHO6ACBNWUqwvxc2GagGs,7609
40
- arc_devkit-0.4.0.dist-info/METADATA,sha256=7Crm1AEG0qESkdX7JkxCbkGcj3DWBUfW3Kgsoj5jvGA,23443
41
- arc_devkit-0.4.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
42
- arc_devkit-0.4.0.dist-info/entry_points.txt,sha256=iriL0KhiF80Y8dlMbHlc3RS2rzWCQctxnSm0Jp_JxjQ,84
43
- arc_devkit-0.4.0.dist-info/top_level.txt,sha256=_8As_e0w6FWAQptRM9vVTpBaTQmGKjajyiscnqRps-8,11
44
- arc_devkit-0.4.0.dist-info/RECORD,,
40
+ arc_devkit-0.4.2.dist-info/METADATA,sha256=0FNSWej50Drbq-o6zNPBgj71sW4LmWch1nlghWvTXqI,23457
41
+ arc_devkit-0.4.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
42
+ arc_devkit-0.4.2.dist-info/entry_points.txt,sha256=iriL0KhiF80Y8dlMbHlc3RS2rzWCQctxnSm0Jp_JxjQ,84
43
+ arc_devkit-0.4.2.dist-info/top_level.txt,sha256=_8As_e0w6FWAQptRM9vVTpBaTQmGKjajyiscnqRps-8,11
44
+ arc_devkit-0.4.2.dist-info/RECORD,,