afp-sdk 0.1.0__tar.gz → 0.1.0.post0__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 (50) hide show
  1. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/PKG-INFO +3 -3
  2. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/README.md +1 -1
  3. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/__init__.py +1 -1
  4. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/__init__.py +1 -1
  5. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/examples/create_product.py +7 -8
  6. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/pyproject.toml +2 -2
  7. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/.env.template +0 -0
  8. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/.envrc +0 -0
  9. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/CHANGELOG.md +0 -0
  10. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/LICENSE +0 -0
  11. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/api/__init__.py +0 -0
  12. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/api/admin.py +0 -0
  13. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/api/base.py +0 -0
  14. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/api/builder.py +0 -0
  15. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/api/clearing.py +0 -0
  16. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/api/liquidation.py +0 -0
  17. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/api/trading.py +0 -0
  18. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/auctioneer_facet.py +0 -0
  19. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/bankruptcy_facet.py +0 -0
  20. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/clearing_facet.py +0 -0
  21. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/erc20.py +0 -0
  22. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/facade.py +0 -0
  23. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/final_settlement_facet.py +0 -0
  24. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/margin_account.py +0 -0
  25. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/margin_account_registry.py +0 -0
  26. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/mark_price_tracker_facet.py +0 -0
  27. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/oracle_provider.py +0 -0
  28. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/product_registry.py +0 -0
  29. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/bindings/trading_protocol.py +0 -0
  30. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/config.py +0 -0
  31. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/decorators.py +0 -0
  32. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/enums.py +0 -0
  33. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/exceptions.py +0 -0
  34. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/exchange.py +0 -0
  35. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/py.typed +0 -0
  36. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/schemas.py +0 -0
  37. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/signing.py +0 -0
  38. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/afp/validators.py +0 -0
  39. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/devenv.lock +0 -0
  40. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/devenv.nix +0 -0
  41. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/devenv.yaml +0 -0
  42. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/examples/cancel_order.py +0 -0
  43. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/examples/execute_trade.py +0 -0
  44. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/tests/__init__.py +0 -0
  45. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/tests/test_decorators.py +0 -0
  46. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/tests/test_hashing.py +0 -0
  47. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/tests/test_login.py +0 -0
  48. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/tests/test_schemas.py +0 -0
  49. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/tests/test_validators.py +0 -0
  50. {afp_sdk-0.1.0 → afp_sdk-0.1.0.post0}/uv.lock +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: afp-sdk
3
- Version: 0.1.0
4
- Summary: Autonity Futures Protocol Python SDK
3
+ Version: 0.1.0.post0
4
+ Summary: Autonomous Futures Protocol Python SDK
5
5
  Keywords: autonity,web3,trading,crypto,prediction,forecast,markets
6
6
  License-Expression: MIT
7
7
  License-File: LICENSE
@@ -23,7 +23,7 @@ Project-URL: Issues, https://github.com/autonity/afp-sdk/issues
23
23
  Project-URL: Source, https://github.com/autonity/afp-sdk
24
24
  Description-Content-Type: text/markdown
25
25
 
26
- # Autonity Futures Protocol Python SDK
26
+ # Autonomous Futures Protocol Python SDK
27
27
 
28
28
  ## Installation
29
29
 
@@ -1,4 +1,4 @@
1
- # Autonity Futures Protocol Python SDK
1
+ # Autonomous Futures Protocol Python SDK
2
2
 
3
3
  ## Installation
4
4
 
@@ -1,4 +1,4 @@
1
- """Autonity Futures Protocol Python SDK."""
1
+ """Autonomous Futures Protocol Python SDK."""
2
2
 
3
3
  from afp import bindings
4
4
  from .api.admin import Admin
@@ -1,4 +1,4 @@
1
- """Typed bindings around the smart contracts of the Autonity Futures Protocol."""
1
+ """Typed bindings around the smart contracts of the Autonomous Futures Protocol."""
2
2
 
3
3
  from .auctioneer_facet import AuctionConfig, AuctionData, BidData
4
4
  from .bankruptcy_facet import LAAData, PositionLossData
@@ -9,26 +9,25 @@ BUILDER_ACCOUNT_PRIVATE_KEY = (
9
9
  "0x926b0e772d87247fb08832e7fd55e528ae5997680713367a4786c92e7d909154"
10
10
  )
11
11
 
12
- AUTONITY_RPC_URL = "https://autonity.rpc.web3cdn.network/testnet"
12
+ AUTONITY_RPC_URL = "https://bakerloo.autonity-apis.com"
13
13
 
14
14
 
15
15
  def main():
16
- # Builder creates a product
17
16
  builder = afp.Builder(BUILDER_ACCOUNT_PRIVATE_KEY, AUTONITY_RPC_URL)
18
17
 
19
18
  product = builder.create_product(
20
19
  symbol="SDK-TEST-1",
21
20
  description="Test Product 1",
22
21
  oracle_address="0xd8A8C5A492Fc2448cFcF980218c0F7D2De4d6FB3",
23
- precision=1,
24
- alpha=10**4,
25
- beta=0,
26
- fsp_calldata="0x",
22
+ fsv_decimals=1,
23
+ fsp_alpha=Decimal("10000"),
24
+ fsp_beta=0,
25
+ fsv_calldata="0x",
27
26
  start_time=datetime.now() + timedelta(minutes=1),
28
27
  earliest_fsp_submission_time=datetime.now() + timedelta(days=7),
29
28
  collateral_asset="0xB855D5e83363A4494e09f0Bb3152A70d3f161940",
30
- tick_size=18,
31
- unit_value=Decimal("0.5"),
29
+ tick_size=6,
30
+ unit_value=Decimal("1"),
32
31
  initial_margin_requirement=Decimal("0.2"),
33
32
  maintenance_margin_requirement=Decimal("0.1"),
34
33
  offer_price_buffer=Decimal("0.1"),
@@ -4,8 +4,8 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "afp-sdk"
7
- version = "0.1.0"
8
- description = "Autonity Futures Protocol Python SDK"
7
+ version = "0.1.0-post.0"
8
+ description = "Autonomous Futures Protocol Python SDK"
9
9
  readme = "README.md"
10
10
  license = "MIT"
11
11
  license-files = ["LICENSE"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes