Skip to content

Commit

Permalink
feat: cctp withdrawals: withdraw form [OTE-855][5/n]
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed Oct 16, 2024
1 parent ed6d288 commit 4ee597b
Show file tree
Hide file tree
Showing 2 changed files with 651 additions and 77 deletions.
192 changes: 115 additions & 77 deletions public/configs/v1/env.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"apps": {
"ios": {
"scheme": "dydx-t-v4"
"scheme": "dydxv4"
}
},
"tokens": {
Expand Down Expand Up @@ -35,11 +35,11 @@
"image": "/currencies/usdc.png"
}
},
"[mainnet chain id]": {
"comment": "Change according to mainnet release",
"dydx-mainnet-1": {
"comment": "Mainnet",
"chain": {
"name": "TokenName",
"denom": "tokenDenom",
"name": "DYDX",
"denom": "adydx",
"decimals": 18,
"image": "/currencies/dydx.png"
},
Expand Down Expand Up @@ -74,7 +74,7 @@
"accountExportLearnMore": "https://help.dydx.exchange/en/articles/8565867-secret-phrase-on-dydx-chain",
"walletLearnMore": "https://www.dydx.academy/video/defi-wallet",
"withdrawalGateLearnMore": "https://help.dydx.exchange/en/articles/8981384-withdrawals-on-dydx-chain#h_23e97bc665",
"adjustTargetLeverageLearnMore": "",
"adjustTargetLeverageLearnMore": "https://help.dydx.trade/en/articles/172975-isolated-margin",
"launchIncentive": "https://cloud.chaoslabs.co",
"tradingRewardsLearnMore": "https://docs.dydx.exchange/concepts-trading/rewards_fees_and_parameters",
"exchangeStats": "https://app.mode.com/dydx_eng/reports/58822121650d?secret_key=391d9214fe6aefec35b7d35c",
Expand Down Expand Up @@ -112,7 +112,7 @@
"keplrDashboard": "https://testnet.keplr.app/",
"strideZoneApp": "https://testnet.stride.zone",
"accountExportLearnMore": "https://help.dydx.exchange/en/articles/8565867-secret-phrase-on-dydx-chain",
"adjustTargetLeverageLearnMore": "",
"adjustTargetLeverageLearnMore": "https://help.dydx.trade/en/articles/172975-isolated-margin",
"walletLearnMore": "https://www.dydx.academy/video/defi-wallet",
"withdrawalGateLearnMore": "https://help.dydx.exchange/en/articles/8981384-withdrawals-on-dydx-chain#h_23e97bc665",
"launchIncentive": "https://cloud.chaoslabs.co",
Expand All @@ -132,45 +132,46 @@
"dydxLearnMore": "https://www.mintscan.io/dydx",
"affiliateProgram": ""
},
"[mainnet chain id]": {
"tos": "[HTTP link to TOS]",
"privacy": "[HTTP link to Privacy Policy]",
"statusPage": "[HTTP link to status page]",
"mintscan": "[HTTP link to Mintscan, with {tx_hash} placeholder]",
"mintscanBase": "[HTTP link to TOS mintscan base url]",
"feedback": "[HTTP link to feedback form, can be null]",
"blogs": "[HTTP link to blogs, can be null]",
"foundation": "[HTTP link to foundation, can be null]",
"reduceOnlyLearnMore": "[HTTP link to reduce-only learn more, can be null]",
"documentation": "[HTTP link to documentation, can be null]",
"community": "[HTTP link to community, can be null]",
"help": "[HTTP link to help page, can be null]",
"vaultLearnMore": "[HTTP link to help page, can be null]",
"governanceLearnMore": "[HTTP link to governance learn more, can be null]",
"newMarketProposalLearnMore": "[HTTP link to new market proposal learn more, can be null]",
"stakingLearnMore": "[HTTP link to staking learn more, can be null]",
"keplrDashboard": "[HTTP link to keplr dashboard, can be null]",
"strideZoneApp": "[HTTP link to stride zone app, can be null]",
"accountExportLearnMore": "[HTTP link to account export learn more, can be null]",
"adjustTargetLeverageLearnMore": "[HTTP link to adjust target leverage learn more, can be null]",
"walletLearnMore": "[HTTP link to wallet learn more, can be null]",
"withdrawalGateLearnMore": "[HTTP link to withdrawal gate learn more, can be null]",
"launchIncentive": "[HTTP link to launch incentive host, can be null]",
"tradingRewardsLearnMore": "[HTTP link to trading rewards learn more, can be null]",
"exchangeStats": "[HTTP link to exchange stats, can be null]",
"initialMarginFractionLearnMore": "[HTTP link to governance functionalities liquidity tiers, can be null]",
"equityTiersLearnMore": "[HTTP link to equity tiers learn more, can be null]",
"contractLossMechanismLearnMore": "[HTTP link to documentation on contract loss mechanisms]",
"isolatedMarginLearnMore": "[HTTP link to documentation on isolated margin]",
"mintscanValidatorsLearnMore": "[HTTP link to mintscan info on validators]",
"protocolStaking": "[HTTP link to protocol staking info]",
"stakingAndClaimingRewardsLearnMore": "[HTTP link to staking and claiming rewards learn more]",
"predictionMarketLearnMore": "[HTTP link to prediction market learn more]",
"discoveryProgram": "[HTTP link to discovery program learn more]",
"getInTouch": "[HTTP link to get in touch with traders]",
"deployerTermsAndConditions": "[HTTP link to terms and conditions, can be null]",
"dydxLearnMore": "[HTTP link to information about the dYdX blockchain]",
"affiliateProgram": "[HTTP link to information about the affiliate program]"
"dydx-mainnet-1": {
"tos": "https://dydx.trade/terms",
"privacy": "https://dydx.trade/privacy",
"statusPage": "https://status.dydx.trade/",
"mintscan": "https://www.mintscan.io/dydx/tx/{tx_hash}",
"mintscanBase": "https://www.mintscan.io/dydx",
"feedback": "https://www.dydxopsdao.com/feedback",
"blogs": "https://www.dydx.foundation/blog",
"foundation": "https://www.dydx.foundation",
"reduceOnlyLearnMore": "https://help.dydx.trade/en/articles/8607918-reduce-only-order",
"documentation": "https://docs.dydx.exchange/",
"community": "https://discord.com/invite/dydx",
"help": "https://help.dydx.trade/",
"governanceLearnMore": "https://help.dydx.trade/en/collections/6936883-governance-staking",
"newMarketProposalLearnMore": "https://dydx.exchange/blog/new-market-proposals",
"stakingLearnMore": "https://help.dydx.trade/en/articles/8581388-accessing-governance-and-staking-on-dydx-chain",
"keplrDashboard": "https://wallet.keplr.app/chains/dydx?tab=staking",
"strideZoneApp": "https://app.stride.zone/?chain=DYDX",
"accountExportLearnMore": "https://help.dydx.trade/en/articles/8581269-secret-phrase-on-dydx-chain",
"adjustTargetLeverageLearnMore": "https://help.dydx.trade/en/articles/172975-isolated-margin",
"walletLearnMore": "https://help.dydx.trade/en/articles/166997-supported-default-wallets-on-dydx-chain",
"withdrawalGateLearnMore": "https://help.dydx.trade/en/articles/9004706-withdrawals-on-dydx-chain#h_e61f043370",
"launchIncentive": "https://cloud.chaoslabs.co",
"tradingRewardsLearnMore": "https://docs.dydx.exchange/concepts-trading/rewards_fees_and_parameters",
"exchangeStats": "https://app.mode.com/dydx_eng/reports/58822121650d?secret_key=391d9214fe6aefec35b7d35c",
"initialMarginFractionLearnMore": "https://docs.dydx.exchange/governance/functionalities#liquidity-tiers",
"equityTiersLearnMore": "https://help.dydx.trade/en/articles/171918-equity-tiers-and-rate-limits",
"fetAgixMarketWindDownProposal": "https://www.mintscan.io/dydx/proposals/61",
"contractLossMechanismLearnMore": "https://help.dydx.trade/en/articles/166973-contract-loss-mechanisms-on-dydx-chain",
"isolatedMarginLearnMore": "https://help.dydx.trade/en/articles/172975-isolated-margin",
"mintscanValidatorsLearnMore": "https://www.mintscan.io/dydx/validators",
"protocolStaking": "https://protocolstaking.info/",
"stakingAndClaimingRewardsLearnMore": "https://help.dydx.trade/en/articles/178571-staking-and-unstaking-dydx-and-claiming-staking-rewards",
"rndrParamProposal": "https://www.mintscan.io/dydx/proposals/126",
"predictionMarketLearnMore": "https://help.dydx.trade/en/articles/221756-prediction-markets-faq",
"discoveryProgram": "https://www.dydx.foundation/blog/dydx-discovery-user-interviews?utm_source=dYdXTelegram&utm_medium=GlobalSocial&utm_campaign=GlobalSocial",
"getInTouch": "https://t.me/+amt-yoIUwDplN2I5",
"deployerTermsAndConditions": "https://www.dydx.trade/terms",
"dydxLearnMore": "https://www.mintscan.io/dydx",
"affiliateProgram": ""
}
},
"wallets": {
Expand Down Expand Up @@ -210,21 +211,21 @@
"signTypedDataAction": "dYdX Chain Onboarding",
"signTypedDataDomainName": "dYdX Chain"
},
"[mainnet chain id]": {
"dydx-mainnet-1": {
"walletconnect": {
"client": {
"name": "[Name of the app]",
"description": "[Description of the app]",
"iconUrl": "[Relative URL of the icon URL]"
"name": "dYdX v4",
"description": "dYdX v4 App",
"iconUrl": "/logos/dydx-x.png"
},
"v2": {
"projectId": "[Project ID]"
"projectId": "fd67e5fbec90c07b6012699738d4a487"
}
},
"walletSegue": {
"callbackUrl": "[Relative callback URL for WalletSegue, should match apple-app-site-association]"
"callbackUrl": "/walletsegue"
},
"images": "[Relative URL for wallet images]",
"images": "/wallets/",
"signTypedDataAction": "dYdX Chain Onboarding",
"signTypedDataDomainName": "dYdX Chain"
}
Expand All @@ -244,11 +245,11 @@
"newMarketsMethodology": "https://docs.google.com/spreadsheets/d/1zjkV9R7R_7KMItuzqzvKGwefSBRfE-ZNAx1LH55OcqY/edit?usp=sharing"
}
},
"[mainnet chain id]": {
"dydx-mainnet-1": {
"newMarketProposal": {
"initialDepositAmount": 0,
"delayBlocks": 0,
"newMarketsMethodology": "[URL to spreadsheet or document that explains methodology]"
"initialDepositAmount": 2000000000000000000000,
"delayBlocks": 3600,
"newMarketsMethodology": "https://docs.google.com/spreadsheets/d/1046uSR2sltA6siZGnvBlgUp4xlPNM7dPFvUgdACgTy4/edit?usp=sharing"
}
}
},
Expand Down Expand Up @@ -555,7 +556,7 @@
"ios": {
"minimalVersion": "1.0",
"build": 40000,
"url": "https://apps.apple.com/app/dydx/id1564787350"
"url": "https://apps.apple.com/app/dydx/id6475599596"
},
"android": {
"minimalVersion": "1.1",
Expand Down Expand Up @@ -612,7 +613,7 @@
}
},
"dydxprotocol-testnet": {
"name": "v4 Public Testnet",
"name": "Testnet",
"ethereumChainId": "11155111",
"dydxChainId": "dydx-testnet-4",
"chainName": "dYdX Chain",
Expand Down Expand Up @@ -892,40 +893,77 @@
}
},
"dydxprotocol-mainnet": {
"name": "v4",
"name": "Mainnet",
"ethereumChainId": "1",
"dydxChainId": "[mainnet chain id]",
"dydxChainId": "dydx-mainnet-1",
"chainName": "dYdX Chain",
"chainLogo": "/dydx-chain.png",
"deployerName": "[deployer name]",
"deployerName": "dYdX Ops subDAO",
"rewardsHistoryStartDateMs": "1706486400000",
"megavaultHistoryStartDateMs": "1704844800000",
"isMainNet": true,
"endpoints": {
"indexers": [
{
"api": "[REST endpoint]",
"socket": "[Websocket endpoint]"
"api": "https://indexer.dydx.trade",
"socket": "wss://indexer.dydx.trade"
}
],
"validators": [
"[Validator endpoint 1",
"[Validator endpoint n]"
],
"skip": "[Skip endpoint for mainnet]",
"solanaRpcUrl": "[Solana rpc url for mainnet]",
"nobleValidator": "[noble validator endpoint for mainnet]",
"osmosisValidator": "[osmosis validator endpoint for mainnet]",
"neutronValidator": "[neutron validator endpoint for mainnet]",
"geo": "[geo endpoint for mainnet]",
"stakingAPR": "[staking APR endpoint for mainnet]"
"https://dydx-dao-rpc.polkachu.com",
"https://dydx-mainnet-full-rpc.public.blastapi.io",
"https://dydx-ops-rpc.kingnodes.com"
],
"0xsquid": "https://api.squidrouter.com",
"skip": "https://skip-proxy-web-mainnet.infrastructure-34d.workers.dev",
"nobleValidator": "https://noble-yx-rpc.polkachu.com/",
"geo": "https://api.dydx.exchange/v4/geo",
"stakingAPR": "https://apybara-proxy-web-mainnet.infrastructure-34d.workers.dev/v0/protocols/dydx",
"solanaRpcUrl": "https://alchemy-solana-proxy-web-mainnet.infrastructure-34d.workers.dev",
"osmosisValidator": "https://rpc.osmosis.zone",
"neutronValidator": "https://neutron-rpc.publicnode.com"
},
"stakingValidators": [],
"ios": {
"minimalVersion": "1.8.0",
"build": 31072,
"url": "https://apps.apple.com/app/id6475599596"
},
"android": {
"minimalVersion": "1.9.0",
"build": 54,
"url": "https://play.google.com/store/apps/details?id=trade.opsdao.dydxchain&pli=1"
},
"apps": {
"ios": {
"minimalVersion": "1.7.0",
"build": 31072,
"url": "https://apps.apple.com/app/id6475599596"
},
"android": {
"minimalVersion": "1.9.0",
"build": 54,
"url": "https://play.google.com/store/apps/details?id=trade.opsdao.dydxchain&pli=1"
}
},
"stakingValidators": [
"dydxvaloper15xgxv2j45uc4er8z9tfz5m0f0e74ymv6xj9l9d",
"dydxvaloper1cpz0jtj6rkezzs7z8k5gy6py05sxdkmyvggvvh",
"dydxvaloper199fjq4rnfvz24cktl8cervx8h8e90ruk3yrrdn",
"dydxvaloper1mwhwf9rqh64ktr8t8xnz37nhg7vvy42ec56jwe",
"dydxvaloper140l6y2gp3gxvay6qtn70re7z2s0gn57zq7tkd8",
"dydxvaloper1y6ncfxx8x9sqec97pehjw0k32slw63850ltjrn",
"dydxvaloper15wphegl8esn7r2rgj9j3xf870v78lxg8yfjn95",
"dydxvaloper1t8hjjca8kecjtuhs2qy83maurj78fq2z5c44z5",
"dydxvaloper1j4ljutnh66r55a29jydgca7pfmhd40e3nlcfa4"
],
"featureFlags": {
"checkForGeo": false,
"checkForGeo": true,
"reduceOnlySupported": true,
"usePessimisticCollateralCheck": false,
"useOptimisticCollateralCheck": true,
"withdrawalSafetyEnabled": true,
"CCTPWithdrawalOnly": true,
"CCTPDepositOnly": true,
"CCTPDepositOnly": false,
"isSlTpEnabled": true,
"isSlTpLimitOrdersEnabled": false
}
Expand Down
Loading

0 comments on commit 4ee597b

Please sign in to comment.