Skip to content

Commit

Permalink
Add BFP integration (#58)
Browse files Browse the repository at this point in the history
* add L1 contract hard-codes

* update contracts

* initial implementation

* fix common functions

* update logging

* add sepolia contracts

* update perps class structure

* add debt payment

* adjust config and add liquidation functions

* pin web3 version

* update docs

* bump version
  • Loading branch information
Tburm authored Aug 22, 2024
1 parent d88ea43 commit edbb0d1
Show file tree
Hide file tree
Showing 23 changed files with 28,507 additions and 125 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
This is a Python SDK designed to help you interact with Synthetix smart contracts and subgraphs. Visit the [documentation](https://synthetixio.github.io/python-sdk/) for more information.

## Features
* Interfaces for all Synthetix V3 contracts
* Simple tools for trading Synthetix perps
* Interfaces for synth swapping and wrapping
* Inferfaces for managing LP positions
* Seamless integration with [Cannon](https://usecannon.com/) for fetching deployments from IPFS

- Interfaces for all Synthetix V3 contracts
- Simple tools for trading Synthetix perps
- Interfaces for synth swapping and wrapping
- Interfaces for managing LP positions
- Seamless integration with [Cannon](https://usecannon.com/) for fetching deployments from IPFS

## Installation

Expand All @@ -22,8 +23,9 @@ pip install synthetix
## Documentation

There are a few guides to help you get started:
* [Getting Started](https://synthetixio.github.io/python-sdk/guides/quickstart.html)
* [Trade Perps](https://synthetixio.github.io/python-sdk/guides/trade_perps.html)

- [Getting Started](https://synthetixio.github.io/python-sdk/guides/quickstart.html)
- [Trade Perps](https://synthetixio.github.io/python-sdk/guides/trade_perps.html)

For complete documentation, visit our [documentation site](https://synthetixio.github.io/python-sdk/).

Expand Down
4 changes: 2 additions & 2 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="synthetix",
version="0.1.15",
version="0.1.16",
description="Synthetix protocol SDK",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
Expand All @@ -13,7 +13,7 @@
"pandas",
"requests",
"requests_toolbelt",
"web3>=6.4.0",
"web3>=6.4.0,<7.0.0",
"gql",
],
classifiers=[
Expand Down
8 changes: 1 addition & 7 deletions src/synthetix/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
10: "https://api.thegraph.com/subgraphs/name/kwenta/optimism-latest-rates",
}

DEFAULT_PRICE_SERVICE_ENDPOINTS = {
10: "https://xc-mainnet.pyth.network",
84532: "https://hermes.pyth.network",
8453: "https://hermes.pyth.network",
42161: "https://hermes.pyth.network",
421614: "https://hermes.pyth.network",
}
DEFAULT_PRICE_SERVICE_ENDPOINT = "https://hermes.pyth.network"

ETH_DECIMAL = Decimal("1e18")
Loading

0 comments on commit edbb0d1

Please sign in to comment.