Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaoy committed Oct 4, 2024
1 parent 55fe392 commit bf78184
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 31 deletions.
44 changes: 22 additions & 22 deletions public/configs/otherMarketData.json
Original file line number Diff line number Diff line change
Expand Up @@ -2491,7 +2491,7 @@
},
{
"exchangeName": "uniswapv3_api-base",
"ticker": "BRETT,UNISWAP-V3-BASE,0X532F27101965DD16442E59D40670FAF5EBB142E4/WETH,UNISWAP-V3-BASE,0X4200000000000000000000000000000000000006",
"ticker": "BRETT,UNISWAP_V3_BASE,0X532F27101965DD16442E59D40670FAF5EBB142E4/WETH,UNISWAP_V3_BASE,0X4200000000000000000000000000000000000006",
"adjustByMarket": "ETH-USD"
}
],
Expand Down Expand Up @@ -7610,7 +7610,7 @@
},
{
"exchangeName": "uniswapv3_api-base",
"ticker": "WETH,UNISWAP-V3-BASE,0X4200000000000000000000000000000000000006/NPC,UNISWAP-V3-BASE,0XB166E8B140D35D9D8226E40C09F757BAC5A4D87D",
"ticker": "WETH,UNISWAP_V3_BASE,0X4200000000000000000000000000000000000006/NPC,UNISWAP_V3_BASE,0XB166E8B140D35D9D8226E40C09F757BAC5A4D87D",
"adjustByMarket": "ETH-USD",
"invert": true
}
Expand Down Expand Up @@ -9595,7 +9595,7 @@
},
{
"exchangeName": "uniswapv3_api-base",
"ticker": "TRUMP,UNISWAP-V3-BASE,0X57F5FBD3DE65DFC0BD3630F732969E5FB97E6D37/WETH,UNISWAP-V3-BASE,0X4200000000000000000000000000000000000006",
"ticker": "TRUMP,UNISWAP_V3_BASE,0X57F5FBD3DE65DFC0BD3630F732969E5FB97E6D37/WETH,UNISWAP_V3_BASE,0X4200000000000000000000000000000000000006",
"adjustByMarket": "ETH-USD"
}
],
Expand Down Expand Up @@ -9814,7 +9814,7 @@
"exchangeConfigJson": [
{
"exchangeName": "uniswapv3_api-base",
"ticker": "ANDY,UNISWAP-V3-BASE,0X18A8BD1FE17A1BB9FFB39ECD83E9489CFD17A022/WETH,UNISWAP-V3-BASE,0X4200000000000000000000000000000000000006",
"ticker": "ANDY,UNISWAP_V3_BASE,0X18A8BD1FE17A1BB9FFB39ECD83E9489CFD17A022/WETH,UNISWAP_V3_BASE,0X4200000000000000000000000000000000000006",
"adjustByMarket": "ETH-USD"
},
{
Expand Down Expand Up @@ -13335,7 +13335,7 @@
},
{
"exchangeName": "uniswapv3_api-base",
"ticker": "TOSHI,UNISWAP-V3-BASE,0XAC1BD2486AAF3B5C0FC3FD868558B082A531B2B4/WETH,UNISWAP-V3-BASE,0X4200000000000000000000000000000000000006",
"ticker": "TOSHI,UNISWAP_V3_BASE,0XAC1BD2486AAF3B5C0FC3FD868558B082A531B2B4/WETH,UNISWAP_V3_BASE,0X4200000000000000000000000000000000000006",
"adjustByMarket": "ETH-USD"
}
],
Expand Down Expand Up @@ -14743,7 +14743,7 @@
},
{
"exchangeName": "uniswapv3_api-base",
"ticker": "BWB,UNISWAP-V3-BASE,0X619C4BBBD65F836B78B36CBE781513861D57F39D/WETH,UNISWAP-V3-BASE,0X4200000000000000000000000000000000000006",
"ticker": "BWB,UNISWAP_V3_BASE,0X619C4BBBD65F836B78B36CBE781513861D57F39D/WETH,UNISWAP_V3_BASE,0X4200000000000000000000000000000000000006",
"adjustByMarket": "ETH-USD"
}
],
Expand Down Expand Up @@ -18075,20 +18075,20 @@
"cmcId": 31163.0
}
},
"MOCHI,UNISWAP-V3-BASE,0XF6E932CA12AFA26665DC4DDE7E27BE02A7C02E50": {
"title": "Add MOCHI,UNISWAP-V3-BASE,0XF6E932CA12AFA26665DC4DDE7E27BE02A7C02E50-USD perpetual market",
"summary": "Add the x/prices, x/perpetuals and x/clob parameters needed for a MOCHI,UNISWAP-V3-BASE,0XF6E932CA12AFA26665DC4DDE7E27BE02A7C02E50-USD perpetual market. Create the market in INITIALIZING status and transition it to ACTIVE status after 3600 blocks. Added via the new market widget.",
"MOCHI,UNISWAP_V3_BASE,0XF6E932CA12AFA26665DC4DDE7E27BE02A7C02E50": {
"title": "Add MOCHI,UNISWAP_V3_BASE,0XF6E932CA12AFA26665DC4DDE7E27BE02A7C02E50-USD perpetual market",
"summary": "Add the x/prices, x/perpetuals and x/clob parameters needed for a MOCHI,UNISWAP_V3_BASE,0XF6E932CA12AFA26665DC4DDE7E27BE02A7C02E50-USD perpetual market. Create the market in INITIALIZING status and transition it to ACTIVE status after 3600 blocks. Added via the new market widget.",
"params": {
"id": 399,
"ticker": "MOCHI,UNISWAP-V3-BASE,0XF6E932CA12AFA26665DC4DDE7E27BE02A7C02E50-USD",
"ticker": "MOCHI,UNISWAP_V3_BASE,0XF6E932CA12AFA26665DC4DDE7E27BE02A7C02E50-USD",
"marketType": "PERPETUAL_MARKET_TYPE_ISOLATED",
"priceExponent": -15,
"minPriceChange": 800,
"minExchanges": 1.0,
"exchangeConfigJson": [
{
"exchangeName": "uniswapv3_api-base",
"ticker": "MOCHI,UNISWAP-V3-BASE,0XF6E932CA12AFA26665DC4DDE7E27BE02A7C02E50/WETH,UNISWAP-V3-BASE,0X4200000000000000000000000000000000000006",
"ticker": "MOCHI,UNISWAP_V3_BASE,0XF6E932CA12AFA26665DC4DDE7E27BE02A7C02E50/WETH,UNISWAP_V3_BASE,0X4200000000000000000000000000000000000006",
"adjustByMarket": "ETH-USD"
}
],
Expand Down Expand Up @@ -21748,7 +21748,7 @@
},
{
"exchangeName": "uniswapv3_api-base",
"ticker": "SPEC,UNISWAP-V3-BASE,0X96419929D7949D6A801A6909C145C8EEF6A40431/WETH,UNISWAP-V3-BASE,0X4200000000000000000000000000000000000006",
"ticker": "SPEC,UNISWAP_V3_BASE,0X96419929D7949D6A801A6909C145C8EEF6A40431/WETH,UNISWAP_V3_BASE,0X4200000000000000000000000000000000000006",
"adjustByMarket": "ETH-USD"
}
],
Expand Down Expand Up @@ -25101,20 +25101,20 @@
"cmcId": 22125.0
}
},
"WEWE,UNISWAP-V3-BASE,0X6B9BB36519538E0C073894E964E90172E1C0B41F": {
"title": "Add WEWE,UNISWAP-V3-BASE,0X6B9BB36519538E0C073894E964E90172E1C0B41F-USD perpetual market",
"summary": "Add the x/prices, x/perpetuals and x/clob parameters needed for a WEWE,UNISWAP-V3-BASE,0X6B9BB36519538E0C073894E964E90172E1C0B41F-USD perpetual market. Create the market in INITIALIZING status and transition it to ACTIVE status after 3600 blocks. Added via the new market widget.",
"WEWE,UNISWAP_V3_BASE,0X6B9BB36519538E0C073894E964E90172E1C0B41F": {
"title": "Add WEWE,UNISWAP_V3_BASE,0X6B9BB36519538E0C073894E964E90172E1C0B41F-USD perpetual market",
"summary": "Add the x/prices, x/perpetuals and x/clob parameters needed for a WEWE,UNISWAP_V3_BASE,0X6B9BB36519538E0C073894E964E90172E1C0B41F-USD perpetual market. Create the market in INITIALIZING status and transition it to ACTIVE status after 3600 blocks. Added via the new market widget.",
"params": {
"id": 588,
"ticker": "WEWE,UNISWAP-V3-BASE,0X6B9BB36519538E0C073894E964E90172E1C0B41F-USD",
"ticker": "WEWE,UNISWAP_V3_BASE,0X6B9BB36519538E0C073894E964E90172E1C0B41F-USD",
"marketType": "PERPETUAL_MARKET_TYPE_ISOLATED",
"priceExponent": -13,
"minPriceChange": 800,
"minExchanges": 1.0,
"exchangeConfigJson": [
{
"exchangeName": "uniswapv3_api-base",
"ticker": "WEWE,UNISWAP-V3-BASE,0X6B9BB36519538E0C073894E964E90172E1C0B41F/WETH,UNISWAP-V3-BASE,0X4200000000000000000000000000000000000006",
"ticker": "WEWE,UNISWAP_V3_BASE,0X6B9BB36519538E0C073894E964E90172E1C0B41F/WETH,UNISWAP_V3_BASE,0X4200000000000000000000000000000000000006",
"adjustByMarket": "ETH-USD"
}
],
Expand All @@ -25136,20 +25136,20 @@
"cmcId": 32343.0
}
},
"OWO,UNISWAP-V3-BASE,0X5D559EA7BB2DAE4B694A079CB8328A2145FD32F6": {
"title": "Add OWO,UNISWAP-V3-BASE,0X5D559EA7BB2DAE4B694A079CB8328A2145FD32F6-USD perpetual market",
"summary": "Add the x/prices, x/perpetuals and x/clob parameters needed for a OWO,UNISWAP-V3-BASE,0X5D559EA7BB2DAE4B694A079CB8328A2145FD32F6-USD perpetual market. Create the market in INITIALIZING status and transition it to ACTIVE status after 3600 blocks. Added via the new market widget.",
"OWO,UNISWAP_V3_BASE,0X5D559EA7BB2DAE4B694A079CB8328A2145FD32F6": {
"title": "Add OWO,UNISWAP_V3_BASE,0X5D559EA7BB2DAE4B694A079CB8328A2145FD32F6-USD perpetual market",
"summary": "Add the x/prices, x/perpetuals and x/clob parameters needed for a OWO,UNISWAP_V3_BASE,0X5D559EA7BB2DAE4B694A079CB8328A2145FD32F6-USD perpetual market. Create the market in INITIALIZING status and transition it to ACTIVE status after 3600 blocks. Added via the new market widget.",
"params": {
"id": 589,
"ticker": "OWO,UNISWAP-V3-BASE,0X5D559EA7BB2DAE4B694A079CB8328A2145FD32F6-USD",
"ticker": "OWO,UNISWAP_V3_BASE,0X5D559EA7BB2DAE4B694A079CB8328A2145FD32F6-USD",
"marketType": "PERPETUAL_MARKET_TYPE_ISOLATED",
"priceExponent": -11,
"minPriceChange": 800,
"minExchanges": 1.0,
"exchangeConfigJson": [
{
"exchangeName": "uniswapv3_api-base",
"ticker": "OWO,UNISWAP-V3-BASE,0X5D559EA7BB2DAE4B694A079CB8328A2145FD32F6/WETH,UNISWAP-V3-BASE,0X4200000000000000000000000000000000000006",
"ticker": "OWO,UNISWAP_V3_BASE,0X5D559EA7BB2DAE4B694A079CB8328A2145FD32F6/WETH,UNISWAP_V3_BASE,0X4200000000000000000000000000000000000006",
"adjustByMarket": "ETH-USD"
}
],
Expand Down
13 changes: 5 additions & 8 deletions scripts/markets/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export async function createAndSendMarketMapProposal(
Quote: modifiedTicker.split('/')[1],
},
decimals: Math.abs(priceExponent).toString(),
enabled: true,
enabled: false,
min_provider_count: minExchanges.toString(),
metadata_JSON: '',
},
Expand All @@ -224,9 +224,9 @@ export async function createAndSendMarketMapProposal(
"summary":"Add markets to market map",
"messages": [
{
"@type": "/slinky.marketmap.v1.MsgCreateMarkets",
"@type": "/slinky.marketmap.v1.MsgUpsertMarkets",
"authority": "dydx10d07y265gmmuvt4z0w9aw880jnsr700jnmapky",
"create_markets": markets,
"markets": markets,
},
],
"deposit":"5000000000000000000adv4tnt",
Expand All @@ -237,15 +237,12 @@ export async function createAndSendMarketMapProposal(
fs.writeFileSync(proposalFile, JSON.stringify(proposal, null, 2), 'utf-8');

try {
await execCLI(
binary,
['keys', 'show', 'alice'],
)
await execCLI(binary, ['keys', 'show', 'alice']);
} catch (error) {
await execCLI(
binary,
['keys', 'add', 'alice', '--recover'],
'merge panther lobster crazy road hollow amused security before critic about cliff exhibit cause coyote talent happy where lion river tobacco option coconut small',
'merge panther lobster crazy road hollow amused security before critic about cliff exhibit cause coyote talent happy where lion river tobacco option coconut small'
)
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/markets/validate-other-market-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ async function validateAgainstLocalnet(proposals: Proposal[]): Promise<void> {
filteredProposals,
network.validatorConfig.restEndpoint,
network.validatorConfig.chainId,
'v4-chain/protocol/build/dydxprotocold',
'v4-chain/protocol/build/dydxprotocold'
);
console.log("Submitted market map proposal");
await sleep(5000);
Expand Down

0 comments on commit bf78184

Please sign in to comment.