Skip to content

Commit

Permalink
Merge pull request #14 from gateway-fm/API-102
Browse files Browse the repository at this point in the history
API-102: fix perps library listeners
  • Loading branch information
asolovov authored Sep 13, 2023
2 parents 28d806c + 861fd61 commit dabf93c
Show file tree
Hide file tree
Showing 39 changed files with 8,892 additions and 224 deletions.
2 changes: 1 addition & 1 deletion Synthetix-Gitbook-v3/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

* [Creating and Configuring Pools](for-liquidity-pool-managers/creating-and-configuring-pools.md)
* [Collateral Vaults](for-liquidity-pool-managers/collateral-vaults/README.md)
* [Rewards Distributors](for-liquidity-pool-managers/collateral-vaults/rewards-distributors.md)
* [Vault Liquidations](for-liquidity-pool-managers/collateral-vaults/vault-liquidations.md)
* [Rewards Distributors](for-liquidity-pool-managers/rewards-distributors.md)
* [Credit and Debt Distribution](for-liquidity-pool-managers/credit-and-debt-distribution.md)
* [Cross-chain Pools](for-liquidity-pool-managers/cross-chain-pools.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ Synthetix v3 solves the cold-start and scaling liquidity problems for derivate p

## Playbook for building on v3

1. Create a new derivatives Market, or adapt your existing product, following [market-development-guide.md](../for-developers/market-development-guide.md "mention"):
1. focus on the mechanics of your product instead of inefficient liquidity incentives
2. conform to the IMarket interface in [integrating-synthetix.md](integrating-synthetix.md "mention")
2. Propose to Synthetix governance for your Market to be enabled _(this step goes away once permissionless Markets are enabled by Spartan Council governance)_
1. propose a SIP, following the [governance guide ](https://docs.synthetix.io/dao/how-to-write-sip-sccps)
3. Request some of the existing $500m+ LP collateral in the Synthetix system for your market
1. **Create your Market:** Create a new derivatives Market, or adapt your existing product, following [market-development-guide.md](../for-developers/market-development-guide.md "mention"), and conforming to the `IMarket` interface in [integrating-synthetix.md](integrating-synthetix.md "mention")
2. **Register your Market:** Propose an [SCCP](https://docs.synthetix.io/dao/how-to-write-sip-sccps) to Synthetix governance for your Market to be registered _(this governance requirement goes away once permissionless Markets are enabled by Spartan Council)_
3. **Get collateral:** Request some of the existing $500m+ LP collateral in the Synthetix system for your Market
1. request collateral from an existing Pool OR
2. create a new Pool ([creating-and-configuring-pools.md](../for-liquidity-pool-managers/creating-and-configuring-pools.md "mention")) and attract Synthetix LPs to allocate to your pool, by proposing a SIP as per the [governance guide](https://docs.synthetix.io/dao/how-to-write-sip-sccps)
4. Your high performing Market will be attractive to Pools and LPs
2. propose a new Pool of your own via [SCCP](https://docs.synthetix.io/dao/how-to-write-sip-sccps), and attract Synthetix LPs[creating-and-configuring-pools.md](../for-liquidity-pool-managers/creating-and-configuring-pools.md "mention") _(this governance requirement goes away once permissionless Pools are enabled by Spartan Council)_

Your high performing Market will be attractive to other Pools and Synthetix LPs.

<figure><img src="../.gitbook/assets/v3 flywheel (1).jpg" alt=""><figcaption><p>The lifecycle of adding a Market and attracting collateral</p></figcaption></figure>

Expand All @@ -52,4 +50,4 @@ Synthetix v3 solves the cold-start and scaling liquidity problems for derivate p

## Notes

* Currently snx is the only collateral enabled on Synthetix v3, and changes require governance
* See [development-progress.md](../development-progress.md "mention") for more details on enabled collateral and other milestones.
67 changes: 67 additions & 0 deletions Synthetix-Gitbook-v3/for-developers/abis/1-OracleManager.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,22 @@
"name": "InvalidNodeDefinition",
"type": "error"
},
{
"inputs": [
{
"internalType": "string",
"name": "parameter",
"type": "string"
},
{
"internalType": "string",
"name": "reason",
"type": "string"
}
],
"name": "InvalidParameter",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -458,6 +474,57 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "nodeId",
"type": "bytes32"
},
{
"internalType": "bytes32[]",
"name": "runtimeKeys",
"type": "bytes32[]"
},
{
"internalType": "bytes32[]",
"name": "runtimeValues",
"type": "bytes32[]"
}
],
"name": "processWithRuntime",
"outputs": [
{
"components": [
{
"internalType": "int256",
"name": "price",
"type": "int256"
},
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "__slotAvailableForFutureUse1",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "__slotAvailableForFutureUse2",
"type": "uint256"
}
],
"internalType": "struct NodeOutput.Data",
"name": "node",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down
Loading

0 comments on commit dabf93c

Please sign in to comment.