arc-devkit 0.4.1__tar.gz → 0.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/PKG-INFO +1 -1
  2. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/debugger/tx_analyzer.py +10 -2
  3. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit.egg-info/PKG-INFO +1 -1
  4. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/pyproject.toml +1 -1
  5. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/README.md +0 -0
  6. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/__init__.py +0 -0
  7. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/agents/__init__.py +0 -0
  8. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/agents/async_base.py +0 -0
  9. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/agents/async_monitor.py +0 -0
  10. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/agents/base_agent.py +0 -0
  11. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/agents/monitor_agent.py +0 -0
  12. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/agents/payment_agent.py +0 -0
  13. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/analytics/__init__.py +0 -0
  14. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/analytics/portfolio.py +0 -0
  15. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/api/__init__.py +0 -0
  16. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/api/main.py +0 -0
  17. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/api/routes/__init__.py +0 -0
  18. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/api/routes/agents.py +0 -0
  19. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/api/routes/copilot.py +0 -0
  20. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/api/routes/debugger.py +0 -0
  21. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/cli/__init__.py +0 -0
  22. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/cli/commands/__init__.py +0 -0
  23. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/cli/commands/agent.py +0 -0
  24. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/cli/commands/copilot.py +0 -0
  25. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/cli/commands/debug.py +0 -0
  26. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/cli/flat.py +0 -0
  27. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/cli/main.py +0 -0
  28. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/config.py +0 -0
  29. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/contracts/__init__.py +0 -0
  30. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/contracts/loader.py +0 -0
  31. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/copilot/__init__.py +0 -0
  32. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/copilot/agent.py +0 -0
  33. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/core/__init__.py +0 -0
  34. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/core/connection.py +0 -0
  35. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/core/gas.py +0 -0
  36. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/core/wallet.py +0 -0
  37. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/debugger/__init__.py +0 -0
  38. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/deploy/__init__.py +0 -0
  39. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/deploy/deployer.py +0 -0
  40. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/events/__init__.py +0 -0
  41. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/events/listener.py +0 -0
  42. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/usdc/__init__.py +0 -0
  43. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit/usdc/token.py +0 -0
  44. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit.egg-info/SOURCES.txt +0 -0
  45. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit.egg-info/dependency_links.txt +0 -0
  46. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit.egg-info/entry_points.txt +0 -0
  47. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit.egg-info/requires.txt +0 -0
  48. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/arc_devkit.egg-info/top_level.txt +0 -0
  49. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/setup.cfg +0 -0
  50. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_agents.py +0 -0
  51. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_analytics.py +0 -0
  52. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_api.py +0 -0
  53. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_async_agents.py +0 -0
  54. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_cli.py +0 -0
  55. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_connection.py +0 -0
  56. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_contracts.py +0 -0
  57. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_copilot.py +0 -0
  58. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_debugger.py +0 -0
  59. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_deploy.py +0 -0
  60. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_events.py +0 -0
  61. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_integration.py +0 -0
  62. {arc_devkit-0.4.1 → arc_devkit-0.4.2}/tests/test_usdc.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arc-devkit
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Plataforma open source de ferramentas para desenvolvedores da Arc blockchain (Circle)
5
5
  Author: Arc DevKit Contributors
6
6
  License: MIT
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arc-devkit
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Plataforma open source de ferramentas para desenvolvedores da Arc blockchain (Circle)
5
5
  Author: Arc DevKit Contributors
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "arc-devkit"
7
- version = "0.4.1"
7
+ version = "0.4.2"
8
8
  description = "Plataforma open source de ferramentas para desenvolvedores da Arc blockchain (Circle)"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
File without changes
File without changes
File without changes
File without changes