afp-sdk 0.1.0.post0__py3-none-any.whl → 0.1.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.
afp/api/builder.py CHANGED
@@ -41,7 +41,7 @@ class Builder(ClearingSystemAPI):
41
41
  oracle_address: str,
42
42
  fsv_decimals: int,
43
43
  fsp_alpha: Decimal,
44
- fsp_beta: int,
44
+ fsp_beta: Decimal,
45
45
  fsv_calldata: str,
46
46
  start_time: datetime,
47
47
  earliest_fsp_submission_time: datetime,
@@ -177,7 +177,7 @@ class Builder(ClearingSystemAPI):
177
177
  oracle_address=cast(ChecksumAddress, product.oracle_address),
178
178
  fsv_decimals=product.fsv_decimals,
179
179
  fsp_alpha=int(product.fsp_alpha * config.FULL_PRECISION_MULTIPLIER),
180
- fsp_beta=product.fsp_beta,
180
+ fsp_beta=int(product.fsp_beta * 10**product.fsv_decimals),
181
181
  fsv_calldata=HexBytes(product.fsv_calldata),
182
182
  ),
183
183
  price_quotation=product.price_quotation,
@@ -83,7 +83,7 @@ class BankruptcyFacet:
83
83
  bankrupt_account_id: eth_typing.ChecksumAddress,
84
84
  collateral_token: eth_typing.ChecksumAddress,
85
85
  product_ids: typing.List[hexbytes.HexBytes],
86
- laas: typing.List[eth_typing.ChecksumAddress],
86
+ laas: typing.List[typing.List[eth_typing.ChecksumAddress]],
87
87
  ) -> contract.ContractFunction:
88
88
  """Binding for `mutualizeLosses` on the BankruptcyFacet contract.
89
89
 
@@ -92,7 +92,7 @@ class BankruptcyFacet:
92
92
  bankrupt_account_id : eth_typing.ChecksumAddress
93
93
  collateral_token : eth_typing.ChecksumAddress
94
94
  product_ids : typing.List[hexbytes.HexBytes]
95
- laas : typing.List[eth_typing.ChecksumAddress]
95
+ laas : typing.List[typing.List[eth_typing.ChecksumAddress]]
96
96
 
97
97
  Returns
98
98
  -------
afp/schemas.py CHANGED
@@ -172,7 +172,7 @@ class ProductSpecification(Model):
172
172
  oracle_address: Annotated[str, AfterValidator(validators.validate_address)]
173
173
  fsv_decimals: Annotated[int, Field(ge=0, lt=256)] # uint8
174
174
  fsp_alpha: Decimal
175
- fsp_beta: int
175
+ fsp_beta: Decimal
176
176
  fsv_calldata: Annotated[str, AfterValidator(validators.validate_hexstr)]
177
177
  # Product
178
178
  start_time: Timestamp
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: afp-sdk
3
- Version: 0.1.0.post0
3
+ Version: 0.1.2
4
4
  Summary: Autonomous Futures Protocol Python SDK
5
5
  Keywords: autonity,web3,trading,crypto,prediction,forecast,markets
6
6
  License-Expression: MIT
@@ -2,13 +2,13 @@ afp/__init__.py,sha256=LTxZrvSFI5blSuBEsGlyZhFfmrNVV3LpPrdi7aYwiTs,325
2
2
  afp/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  afp/api/admin.py,sha256=7ymtCloff4UhyS-MAqA8_cndWlfZanjuGgPgkiV5Jhc,1526
4
4
  afp/api/base.py,sha256=iS-sjAc9mME2qOMEvnB6T6x9L_8oeJnHY6h79xrbAOE,2632
5
- afp/api/builder.py,sha256=4Kmulk2f4QAblLgmI0J6YYt-WuBoLSw3l2jY3Q6tNN8,7078
5
+ afp/api/builder.py,sha256=mde8XemEMKL76KgEd5rxg7RLBS6lyIfNOEGmE1_iK0M,7114
6
6
  afp/api/clearing.py,sha256=nMVjayFkf0XYYP3aKAdgR6NaFSG4Cl_QsEuADRuIO7M,12922
7
7
  afp/api/liquidation.py,sha256=CtME5524VVW9mXMMpORyUP205sTVqpLnHIPoTy2MGa8,5439
8
8
  afp/api/trading.py,sha256=0nD3JnnQwmmFeZYRws1V4rfWCuxgwnY7O5uF-NZ3Mtc,9917
9
9
  afp/bindings/__init__.py,sha256=5PDdlk0aClsTt2NgbVqP-R-z2QQp99IfXaSB13Pmf5c,1155
10
10
  afp/bindings/auctioneer_facet.py,sha256=99FmK35trfOIJGqJqyc1NnpG0KavhH0_jNufszZ9VhA,24013
11
- afp/bindings/bankruptcy_facet.py,sha256=BufV6eE592aCqtTduDD7mHcLp_yuQWNI9d5HFvSTTSc,11344
11
+ afp/bindings/bankruptcy_facet.py,sha256=Yg8sLhDU0crsL1ISSy4eoeQEP5jrAuiWBBlco5MtgPc,11370
12
12
  afp/bindings/clearing_facet.py,sha256=GLBtquybV1FRvDNlYXgpcvlpgw9pvZ5UJbLOYKayPMU,34168
13
13
  afp/bindings/erc20.py,sha256=-jw7ohcEbUL7g3PpK3-a5_7ClUDCDHt1bezm-w7exzo,10822
14
14
  afp/bindings/facade.py,sha256=FDKY6XLYsK6suDmWSsP5cek8y4ycY4soo9R4udvG1MM,2019
@@ -25,10 +25,10 @@ afp/enums.py,sha256=4dglBx4Amcu0GrlJn0cIj-rp9uDHZGfDEP_vMAO02xo,485
25
25
  afp/exceptions.py,sha256=RE8IE6akDgbar2PobdpOiBdGZZCYkb4jWf1ozJmdLaI,342
26
26
  afp/exchange.py,sha256=l8Cartp0R4PPe6O_Wu10YDw-5P_PbaAkd7w-W5QrlWY,5272
27
27
  afp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
- afp/schemas.py,sha256=RQ-NkDOgFnoJXHIngiqAJCX88gu5qlkMu6lxnvVyYfI,4899
28
+ afp/schemas.py,sha256=nCR8FLnq8msTFW9wsLxjTrxIzcKG85BKG-WmQ5Oazrc,4903
29
29
  afp/signing.py,sha256=7fohnAvoiDA4ems_3OcVnr16OmYLSg9NnnCSzDplg6s,2235
30
30
  afp/validators.py,sha256=zhOP0vYS2aXMKLsIVDwD6xwwCg0moIU5IhMlNHihWkM,1329
31
- afp_sdk-0.1.0.post0.dist-info/licenses/LICENSE,sha256=ZdaKItgc2ppfqta2OJV0oHpSJiK87PUxmUkUo-_0SB8,1065
32
- afp_sdk-0.1.0.post0.dist-info/WHEEL,sha256=4n27za1eEkOnA7dNjN6C5-O2rUiw6iapszm14Uj-Qmk,79
33
- afp_sdk-0.1.0.post0.dist-info/METADATA,sha256=eZejotct15ELDKf4CO-O6qyCm6CNSJuRluA1Uq7MjrQ,5624
34
- afp_sdk-0.1.0.post0.dist-info/RECORD,,
31
+ afp_sdk-0.1.2.dist-info/licenses/LICENSE,sha256=ZdaKItgc2ppfqta2OJV0oHpSJiK87PUxmUkUo-_0SB8,1065
32
+ afp_sdk-0.1.2.dist-info/WHEEL,sha256=4n27za1eEkOnA7dNjN6C5-O2rUiw6iapszm14Uj-Qmk,79
33
+ afp_sdk-0.1.2.dist-info/METADATA,sha256=Jo5TL2A09kjqW8Vq23zyQgBjCLOGoxLG-ta9oeVwq50,5618
34
+ afp_sdk-0.1.2.dist-info/RECORD,,