Enforce native protocol inventory rules
This commit is contained in:
110
config/validation-examples/native-protocol-only.valid.json
Normal file
110
config/validation-examples/native-protocol-only.valid.json
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"version": "1.2.0",
|
||||
"updated": "2026-04-14",
|
||||
"homeChainId": 138,
|
||||
"chains": {
|
||||
"1": {
|
||||
"name": "Example Chain",
|
||||
"cwTokens": {
|
||||
"cWUSDT": "0x1111111111111111111111111111111111111111",
|
||||
"cWUSDC": "0x2222222222222222222222222222222222222222"
|
||||
},
|
||||
"anchorAddresses": {
|
||||
"USDC": "0x3333333333333333333333333333333333333333",
|
||||
"USDT": "0x4444444444444444444444444444444444444444"
|
||||
},
|
||||
"pmmPools": [
|
||||
{
|
||||
"base": "cWUSDT",
|
||||
"quote": "USDC",
|
||||
"poolAddress": "0x1234567890123456789012345678901234567890",
|
||||
"feeBps": 3,
|
||||
"k": 1,
|
||||
"role": "public_routing",
|
||||
"publicRoutingEnabled": true
|
||||
}
|
||||
],
|
||||
"gasQuoteAddresses": {
|
||||
"WETH": "0x5555555555555555555555555555555555555555",
|
||||
"USDC": "0x3333333333333333333333333333333333333333"
|
||||
},
|
||||
"gasPmmPools": [
|
||||
{
|
||||
"familyKey": "example",
|
||||
"base": "cWUSDT",
|
||||
"quote": "WETH",
|
||||
"poolAddress": "0x6666666666666666666666666666666666666666",
|
||||
"feeBps": 30,
|
||||
"k": 1,
|
||||
"role": "public_routing",
|
||||
"poolType": "wrapped_native",
|
||||
"venue": "dodo_pmm",
|
||||
"publicRoutingEnabled": true
|
||||
},
|
||||
{
|
||||
"familyKey": "example",
|
||||
"base": "cWUSDT",
|
||||
"quote": "USDC",
|
||||
"poolAddress": "0x7777777777777777777777777777777777777777",
|
||||
"feeBps": 30,
|
||||
"k": 1,
|
||||
"role": "public_routing",
|
||||
"poolType": "stable_quote",
|
||||
"venue": "dodo_pmm",
|
||||
"publicRoutingEnabled": true
|
||||
}
|
||||
],
|
||||
"gasReferenceVenues": [
|
||||
{
|
||||
"familyKey": "example",
|
||||
"protocol": "uniswap_v3",
|
||||
"base": "cWUSDT",
|
||||
"quote": "WETH",
|
||||
"venueAddress": "0x8888888888888888888888888888888888888888",
|
||||
"supported": true,
|
||||
"live": false,
|
||||
"routingVisible": false,
|
||||
"reference": true
|
||||
},
|
||||
{
|
||||
"familyKey": "example",
|
||||
"protocol": "balancer",
|
||||
"base": "cWUSDT",
|
||||
"quote": "USDC",
|
||||
"venueAddress": null,
|
||||
"supported": true,
|
||||
"live": false,
|
||||
"routingVisible": false,
|
||||
"reference": false
|
||||
},
|
||||
{
|
||||
"familyKey": "example",
|
||||
"protocol": "curve",
|
||||
"base": "cWUSDT",
|
||||
"quote": "USDC",
|
||||
"venueAddress": null,
|
||||
"supported": true,
|
||||
"live": false,
|
||||
"routingVisible": false,
|
||||
"reference": false
|
||||
},
|
||||
{
|
||||
"familyKey": "example",
|
||||
"protocol": "1inch",
|
||||
"base": "cWUSDT",
|
||||
"quote": "USDC",
|
||||
"venueAddress": null,
|
||||
"supported": true,
|
||||
"live": false,
|
||||
"routingVisible": false,
|
||||
"aggregatorOnly": true,
|
||||
"dependsOn": [
|
||||
"dodo_pmm",
|
||||
"uniswap_v3"
|
||||
],
|
||||
"indexRequired": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user