feat: Initial setup and price() function implementation

This commit is contained in:
domenicodev
2024-01-22 12:08:59 +01:00
parent b37ecaeeb0
commit 94644ac735
2 changed files with 318 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# information about the author helps us reach out in case of issues.
author:
name: YourCompany
email: developer@yourcompany.xyz
# Protocol Constants
constants:
protocol_gas: 30000
# minimum capabilities we can expect, individual pools may extend these
capabilities:
- SellSide
- BuySide
- PriceFunction
# The file containing the adapter contract
contract: TemplateSwapAdapter.sol
# Deployment instances used to generate chain specific bytecode.
instances:
- chain:
name: mainnet
id: 0
arguments:
- "0x00253582b2a3FE112feEC532221d9708c64cEFAb"
# Specify some automatic test cases in case getPoolIds and
# getTokens are not implemented.
tests:
instances:
- pool_id: "0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc"
sell_token: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
buy_token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
block: 17000000
chain:
id: 0
name: mainnet