diff --git a/public/configs/env.json b/public/configs/env.json index 51b7a85..5387d27 100644 --- a/public/configs/env.json +++ b/public/configs/env.json @@ -1,19 +1,19 @@ { - "deployments":{ - "MAINNET":{ - "environments":[ + "deployments": { + "MAINNET": { + "environments": [ "dydxprotocol-mainnet" ], - "default":"dydxprotocol-mainnet" + "default": "dydxprotocol-mainnet" }, - "TESTNET":{ - "environments":[ + "TESTNET": { + "environments": [ "dydxprotocol-testnet" ], - "default":"dydxprotocol-testnet" + "default": "dydxprotocol-testnet" }, - "DEV":{ - "environments":[ + "DEV": { + "environments": [ "dydxprotocol-dev", "dydxprotocol-dev-2", "dydxprotocol-dev-4", @@ -27,768 +27,794 @@ "dydxprotocol-testnet-kingnodes", "dydxprotocol-testnet-liquify" ], - "default":"dydxprotocol-testnet" + "default": "dydxprotocol-testnet" } }, - "environments":{ - "dydxprotocol-dev":{ - "name":"v4 Dev", - "ethereumChainId":"5", - "dydxChainId":"dydxprotocol-testnet", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "environments": { + "dydxprotocol-dev": { + "name": "v4 Dev", + "ethereumChainId": "5", + "dydxChainId": "dydxprotocol-testnet", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"http://indexer.v4dev.dydx.exchange", - "socket":"wss://indexer.v4dev.dydx.exchange" + "api": "http://indexer.v4dev.dydx.exchange", + "socket": "wss://indexer.v4dev.dydx.exchange" } ], - "validators":[ + "validators": [ "http://validator.v4dev.dydx.exchange" ], - "0xsquid":"https://testnet.api.0xsquid.com", - "faucet":"http://faucet.v4dev.dydx.exchange" + "0xsquid": "https://testnet.api.0xsquid.com", + "faucet": "http://faucet.v4dev.dydx.exchange" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX Chain Onboarding", + "signTypedDataDomainName": "dYdX Chain" } }, - "dydxprotocol-dev-2":{ - "name":"v4 Dev 2", - "ethereumChainId":"5", - "dydxChainId":"dydxprotocol-testnet", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-dev-2": { + "name": "v4 Dev 2", + "ethereumChainId": "5", + "dydxChainId": "dydxprotocol-testnet", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"http://dev2-indexer-apne1-lb-public-2076363889.ap-northeast-1.elb.amazonaws.com", - "socket":"ws://dev2-indexer-apne1-lb-public-2076363889.ap-northeast-1.elb.amazonaws.com" + "api": "http://dev2-indexer-apne1-lb-public-2076363889.ap-northeast-1.elb.amazonaws.com", + "socket": "ws://dev2-indexer-apne1-lb-public-2076363889.ap-northeast-1.elb.amazonaws.com" } ], - "validators":[ + "validators": [ "http://35.75.227.118" ], - "0xsquid":"https://testnet.api.0xsquid.com" + "0xsquid": "https://testnet.api.0xsquid.com" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX Chain Onboarding", + "signTypedDataDomainName": "dYdX Chain" } }, - "dydxprotocol-dev-4":{ - "name":"v4 Dev 4", - "ethereumChainId":"5", - "dydxChainId":"dydxprotocol-testnet", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-dev-4": { + "name": "v4 Dev 4", + "ethereumChainId": "5", + "dydxChainId": "dydxprotocol-testnet", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"http://indexer.v4dev4.dydx.exchange", - "socket":"ws://indexer.v4dev4.dydx.exchange" + "api": "http://indexer.v4dev4.dydx.exchange", + "socket": "ws://indexer.v4dev4.dydx.exchange" } ], - "validators":[ + "validators": [ "http://validator.v4dev4.dydx.exchange" ], - "0xsquid":"https://testnet.api.0xsquid.com" + "0xsquid": "https://testnet.api.0xsquid.com" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX Chain Onboarding", + "signTypedDataDomainName": "dYdX Chain" } }, - "dydxprotocol-dev-5":{ - "name":"v4 Dev 5", - "ethereumChainId":"5", - "dydxChainId":"dydxprotocol-testnet", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-dev-5": { + "name": "v4 Dev 5", + "ethereumChainId": "5", + "dydxChainId": "dydxprotocol-testnet", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"http://dev5-indexer-apne1-lb-public-1721328151.ap-northeast-1.elb.amazonaws.com", - "socket":"ws://dev5-indexer-apne1-lb-public-1721328151.ap-northeast-1.elb.amazonaws.com" + "api": "http://dev5-indexer-apne1-lb-public-1721328151.ap-northeast-1.elb.amazonaws.com", + "socket": "ws://dev5-indexer-apne1-lb-public-1721328151.ap-northeast-1.elb.amazonaws.com" } ], - "validators":[ + "validators": [ "http://18.223.78.50" ], - "0xsquid":"https://testnet.api.0xsquid.com" + "0xsquid": "https://testnet.api.0xsquid.com" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX Chain Onboarding", + "signTypedDataDomainName": "dYdX Chain" } }, - "dydxprotocol-staging":{ - "name":"v4 Staging", - "ethereumChainId":"5", - "dydxChainId":"dydxprotocol-testnet", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-staging": { + "name": "v4 Staging", + "ethereumChainId": "5", + "dydxChainId": "dydxprotocol-testnet", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"https://indexer.v4staging.dydx.exchange", - "socket":"wss://indexer.v4staging.dydx.exchange" + "api": "https://indexer.v4staging.dydx.exchange", + "socket": "wss://indexer.v4staging.dydx.exchange" } ], - "faucet":"https://faucet.v4staging.dydx.exchange", - "validators":[ + "faucet": "https://faucet.v4staging.dydx.exchange", + "validators": [ "https://validator.v4staging.dydx.exchange" ], - "0xsquid":"https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app" + "0xsquid": "https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "documentation":"https://v4-teacher.vercel.app/", - "community":"https://discord.com/invite/dydx", - "feedback":"https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "documentation": "https://v4-teacher.vercel.app/", + "community": "https://discord.com/invite/dydx", + "feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX Chain Onboarding", + "signTypedDataDomainName": "dYdX Chain" } }, - "dydxprotocol-staging-west":{ - "name":"v4 Staging", - "ethereumChainId":"5", - "dydxChainId":"dydxprotocol-testnet", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-staging-west": { + "name": "v4 Staging", + "ethereumChainId": "5", + "dydxChainId": "dydxprotocol-testnet", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"https://indexer.v4staging.dydx.exchange", - "socket":"wss://indexer.v4staging.dydx.exchange" + "api": "https://indexer.v4staging.dydx.exchange", + "socket": "wss://indexer.v4staging.dydx.exchange" } ], - "faucet":"https://faucet.v4staging.dydx.exchange", - "validators":[ + "faucet": "https://faucet.v4staging.dydx.exchange", + "validators": [ "https://validator-uswest1.v4staging.dydx.exchange" ], - "0xsquid":"https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app" + "0xsquid": "https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "documentation":"https://v4-teacher.vercel.app/", - "community":"https://discord.com/invite/dydx", - "feedback":"https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "documentation": "https://v4-teacher.vercel.app/", + "community": "https://discord.com/invite/dydx", + "feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX Chain Onboarding", + "signTypedDataDomainName": "dYdX Chain" } }, - "dydxprotocol-testnet":{ - "name":"v4 Public Testnet", - "ethereumChainId":"5", - "dydxChainId":"dydx-testnet-3", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-testnet": { + "name": "v4 Public Testnet", + "ethereumChainId": "5", + "dydxChainId": "dydx-testnet-3", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"https://dydx-testnet.imperator.co", - "socket":"wss://dydx-testnet.imperator.co" + "api": "https://dydx-testnet.imperator.co", + "socket": "wss://dydx-testnet.imperator.co" } ], - "validators":[ + "validators": [ "https://dydx-testnet.nodefleet.org", "https://test-dydx.kingnodes.com", "https://dydx-rpc.liquify.com/api=8878132/dydx" ], - "0xsquid":"https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", - "faucet":"https://faucet.v4testnet.dydx.exchange" + "0xsquid": "https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", + "faucet": "https://faucet.v4testnet.dydx.exchange" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "documentation":"https://v4-teacher.vercel.app/", - "community":"https://discord.com/invite/dydx", - "feedback":"https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "documentation": "https://v4-teacher.vercel.app/", + "community": "https://discord.com/invite/dydx", + "feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX V4 Onboarding", + "signTypedDataDomainName": "dYdX V4" } }, - "dydxprotocol-testnet-dydx":{ - "name":"v4 Public Testnet/dYdX", - "ethereumChainId":"5", - "dydxChainId":"dydx-testnet-3", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-testnet-dydx": { + "name": "v4 Public Testnet/dYdX", + "ethereumChainId": "5", + "dydxChainId": "dydx-testnet-3", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"https://indexer.v4testnet.dydx.exchange", - "socket":"wss://indexer.v4testnet.dydx.exchange" + "api": "https://indexer.v4testnet.dydx.exchange", + "socket": "wss://indexer.v4testnet.dydx.exchange" } ], - "validators":[ + "validators": [ "https://validator.v4testnet.dydx.exchange" ], - "0xsquid":"https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", - "faucet":"https://faucet.v4testnet.dydx.exchange" + "0xsquid": "https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", + "faucet": "https://faucet.v4testnet.dydx.exchange" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "statusPage":"https://status.v4testnet.dydx.exchange/", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "documentation":"https://v4-teacher.vercel.app/", - "community":"https://discord.com/invite/dydx", - "feedback":"https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "statusPage": "https://status.v4testnet.dydx.exchange/", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "documentation": "https://v4-teacher.vercel.app/", + "community": "https://discord.com/invite/dydx", + "feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX V4 Onboarding", + "signTypedDataDomainName": "dYdX V4" } }, - "dydxprotocol-testnet-dsrv":{ - "name":"v4 Public Testnet/DSRV", - "ethereumChainId":"5", - "dydxChainId":"dydx-testnet-3", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-testnet-dsrv": { + "name": "v4 Public Testnet/DSRV", + "ethereumChainId": "5", + "dydxChainId": "dydx-testnet-3", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"https://dydx-testnet.imperator.co", - "socket":"wss://dydx-testnet.imperator.co" + "api": "https://dydx-testnet.imperator.co", + "socket": "wss://dydx-testnet.imperator.co" } ], - "validators":[ + "validators": [ "https://dydx-testnet-archive.allthatnode.com:26657/XZvMM41hESf8PJrEQiTzbCOMVyFca79R" ], - "0xsquid":"https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", - "faucet":"https://faucet.v4testnet.dydx.exchange" + "0xsquid": "https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", + "faucet": "https://faucet.v4testnet.dydx.exchange" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "statusPage":"https://status.v4testnet.dydx.exchange/", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "documentation":"https://v4-teacher.vercel.app/", - "community":"https://discord.com/invite/dydx", - "feedback":"https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "statusPage": "https://status.v4testnet.dydx.exchange/", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "documentation": "https://v4-teacher.vercel.app/", + "community": "https://discord.com/invite/dydx", + "feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX V4 Onboarding", + "signTypedDataDomainName": "dYdX V4" } }, - "dydxprotocol-testnet-nodefleet":{ - "name":"v4 Public Testnet/nodefleet", - "ethereumChainId":"5", - "dydxChainId":"dydx-testnet-3", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-testnet-nodefleet": { + "name": "v4 Public Testnet/nodefleet", + "ethereumChainId": "5", + "dydxChainId": "dydx-testnet-3", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"https://dydx-testnet.imperator.co", - "socket":"wss://dydx-testnet.imperator.co" + "api": "https://dydx-testnet.imperator.co", + "socket": "wss://dydx-testnet.imperator.co" } ], - "validators":[ + "validators": [ "https://dydx-testnet.nodefleet.org" ], - "0xsquid":"https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", - "faucet":"https://faucet.v4testnet.dydx.exchange" + "0xsquid": "https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", + "faucet": "https://faucet.v4testnet.dydx.exchange" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "statusPage":"https://status.v4testnet.dydx.exchange/", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "documentation":"https://v4-teacher.vercel.app/", - "community":"https://discord.com/invite/dydx", - "feedback":"https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "statusPage": "https://status.v4testnet.dydx.exchange/", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "documentation": "https://v4-teacher.vercel.app/", + "community": "https://discord.com/invite/dydx", + "feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX V4 Onboarding", + "signTypedDataDomainName": "dYdX V4" } }, - "dydxprotocol-testnet-kingnodes":{ - "name":"v4 Public Testnet/KingNodes", - "ethereumChainId":"5", - "dydxChainId":"dydx-testnet-3", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-testnet-kingnodes": { + "name": "v4 Public Testnet/KingNodes", + "ethereumChainId": "5", + "dydxChainId": "dydx-testnet-3", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"https://dydx-testnet.imperator.co", - "socket":"wss://dydx-testnet.imperator.co" + "api": "https://dydx-testnet.imperator.co", + "socket": "wss://dydx-testnet.imperator.co" } ], - "validators":[ + "validators": [ "https://test-dydx.kingnodes.com" ], - "0xsquid":"https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", - "faucet":"https://faucet.v4testnet.dydx.exchange" + "0xsquid": "https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", + "faucet": "https://faucet.v4testnet.dydx.exchange" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "statusPage":"https://status.v4testnet.dydx.exchange/", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "documentation":"https://v4-teacher.vercel.app/", - "community":"https://discord.com/invite/dydx", - "feedback":"https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "statusPage": "https://status.v4testnet.dydx.exchange/", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "documentation": "https://v4-teacher.vercel.app/", + "community": "https://discord.com/invite/dydx", + "feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX V4 Onboarding", + "signTypedDataDomainName": "dYdX V4" } }, - "dydxprotocol-testnet-liquify":{ - "name":"v4 Public Testnet/Liquify", - "ethereumChainId":"5", - "dydxChainId":"dydx-testnet-3", - "isMainNet":false, - "tokens":{ - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-testnet-liquify": { + "name": "v4 Public Testnet/Liquify", + "ethereumChainId": "5", + "dydxChainId": "dydx-testnet-3", + "isMainNet": false, + "tokens": { + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"https://dydx-testnet.imperator.co", - "socket":"wss://dydx-testnet.imperator.co" + "api": "https://dydx-testnet.imperator.co", + "socket": "wss://dydx-testnet.imperator.co" } ], - "validators":[ + "validators": [ "https://dydx-rpc.liquify.com/api=8878132/dydx" ], - "0xsquid":"https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", - "faucet":"https://faucet.v4testnet.dydx.exchange" + "0xsquid": "https://squid-api-git-main-cosmos-testnet-0xsquid.vercel.app", + "faucet": "https://faucet.v4testnet.dydx.exchange" }, - "links":{ - "tos":"https://dydx.exchange/v4-terms", - "privacy":"https://dydx.exchange/privacy", - "statusPage":"https://status.v4testnet.dydx.exchange/", - "mintscan":"https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", - "documentation":"https://v4-teacher.vercel.app/", - "community":"https://discord.com/invite/dydx", - "feedback":"https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", - "blogs":"https://www.dydx.foundation/blog" + "links": { + "tos": "https://dydx.exchange/v4-terms", + "privacy": "https://dydx.exchange/privacy", + "statusPage": "https://status.v4testnet.dydx.exchange/", + "mintscan": "https://testnet.mintscan.io/dydx-testnet/txs/{tx_hash}", + "documentation": "https://v4-teacher.vercel.app/", + "community": "https://discord.com/invite/dydx", + "feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", + "blogs": "https://www.dydx.foundation/blog" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"dYdX v4", - "description":"dYdX v4 App", - "iconUrl":"/logos/dydx-x.png" + "wallets": { + "walletconnect": { + "client": { + "name": "dYdX v4", + "description": "dYdX v4 App", + "iconUrl": "/logos/dydx-x.png" }, - "v1":{ - "bridgeUrl":"wss://api.stage.dydx.exchange/wc/" + "v1": { + "bridgeUrl": "wss://api.stage.dydx.exchange/wc/" }, - "v2":{ - "projectId":"47559b2ec96c09aed9ff2cb54a31ab0e" + "v2": { + "projectId": "47559b2ec96c09aed9ff2cb54a31ab0e" } }, - "walletSegue":{ - "callbackUrl":"/walletsegue" + "walletSegue": { + "callbackUrl": "/walletsegue" }, - "images":"/wallets/" + "images": "/wallets/", + "signTypedDataAction": "dYdX V4 Onboarding", + "signTypedDataDomainName": "dYdX V4" } }, - "dydxprotocol-mainet":{ - "name":"v4", - "ethereumChainId":"1", - "dydxChainId":"[mainnet chain id]", - "isMainNet":true, - "tokens":{ - "comment":"Change according to mainnet release", - "chain":{ - "name":"DYDX", - "denom":"dv4tnt", - "image":"/currencies/dydx.png" + "dydxprotocol-mainet": { + "name": "v4", + "ethereumChainId": "1", + "dydxChainId": "[mainnet chain id]", + "isMainNet": true, + "tokens": { + "comment": "Change according to mainnet release", + "chain": { + "name": "DYDX", + "denom": "dv4tnt", + "image": "/currencies/dydx.png" }, - "usdc":{ - "name":"USDC", - "denom":"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", - "image":"/currencies/usdc.png" + "usdc": { + "name": "USDC", + "denom": "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + "image": "/currencies/usdc.png" } }, - "endpoints":{ - "indexers":[ + "endpoints": { + "indexers": [ { - "api":"[REST endpoint]", - "socket":"[Websocket endpoint]" + "api": "[REST endpoint]", + "socket": "[Websocket endpoint]" } ], - "validators":[ + "validators": [ "[Validator endpoint 1", "[Validator endpoint n]" ], - "0xsquid":"[0xSquid endpoint for mainnet]" + "0xsquid": "[0xSquid endpoint for mainnet]" }, - "links":{ - "tos":"[HTTP link to TOS]", - "privacy":"[HTTP link to Privacy Policy]", - "mintscan":"[HTTP link to Mintscan, with {tx_hash} placeholder]", - "documentation":"[HTTP link to documentation, can be null]", - "community":"[HTTP link to community, can be null]", - "feedback":"[HTTP link to feedback form, can be null]", - "blogs":"[HTTP link to blogs, can be null]" + "links": { + "tos": "[HTTP link to TOS]", + "privacy": "[HTTP link to Privacy Policy]", + "mintscan": "[HTTP link to Mintscan, with {tx_hash} placeholder]", + "documentation": "[HTTP link to documentation, can be null]", + "community": "[HTTP link to community, can be null]", + "feedback": "[HTTP link to feedback form, can be null]", + "blogs": "[HTTP link to blogs, can be null]" }, - "wallets":{ - "walletconnect":{ - "client":{ - "name":"[Name of the app]", - "description":"[Description of the app]", - "iconUrl":"[Relative URL of the icon URL]" + "wallets": { + "walletconnect": { + "client": { + "name": "[Name of the app]", + "description": "[Description of the app]", + "iconUrl": "[Relative URL of the icon URL]" }, - "v1":{ - "bridgeUrl":"[Bridge URL]" + "v1": { + "bridgeUrl": "[Bridge URL]" }, - "v2":{ - "projectId":"[Project ID]" + "v2": { + "projectId": "[Project ID]" } }, - "walletSegue":{ - "callbackUrl":"[Relative callback URL for WalletSegue, should match apple-app-site-association]" + "walletSegue": { + "callbackUrl": "[Relative callback URL for WalletSegue, should match apple-app-site-association]" }, - "images":"[Relative URL for wallet images]" + "images": "[Relative URL for wallet images]", + "signTypedDataAction": "dYdX Chain Onboarding", + "signTypedDataDomainName": "dYdX Chain" } } } diff --git a/src/constants/wallets.ts b/src/constants/wallets.ts index ebc7825..4eaccac 100644 --- a/src/constants/wallets.ts +++ b/src/constants/wallets.ts @@ -24,6 +24,8 @@ import { import { isMetaMask } from '@/lib/wallet/providers'; +import { DydxNetwork, ENVIRONMENT_CONFIG_MAP } from './networks'; + // Wallet connection types export enum WalletConnectionType { @@ -318,20 +320,21 @@ export type WalletConnection = { export const COSMOS_DERIVATION_PATH = "m/44'/118'/0'/0/0"; /** - * @description typed data to sign for v4 onboarding + * @description typed data to sign for dYdX Chain onboarding */ -export const SIGN_TYPED_DATA = { - primaryType: 'dYdX', - domain: { - name: 'dYdX V4', - }, - types: { - dYdX: [{ name: 'action', type: 'string' }], - }, - message: { - action: 'dYdX V4 Onboarding', - }, -} as const; +export const getSignTypedData = (selectedNetwork: DydxNetwork) => + ({ + primaryType: 'dYdX', + domain: { + name: ENVIRONMENT_CONFIG_MAP[selectedNetwork].wallets.signTypedDataDomainName, + }, + types: { + dYdX: [{ name: 'action', type: 'string' }], + }, + message: { + action: ENVIRONMENT_CONFIG_MAP[selectedNetwork].wallets.signTypedDataAction, + }, + } as const); export type PrivateInformation = ReturnType; diff --git a/src/views/dialogs/OnboardingDialog/GenerateKeys.tsx b/src/views/dialogs/OnboardingDialog/GenerateKeys.tsx index 6669a4a..78b6854 100644 --- a/src/views/dialogs/OnboardingDialog/GenerateKeys.tsx +++ b/src/views/dialogs/OnboardingDialog/GenerateKeys.tsx @@ -10,7 +10,7 @@ import { AnalyticsEvent } from '@/constants/analytics'; import { ButtonAction } from '@/constants/buttons'; import { STRING_KEYS } from '@/constants/localization'; import { ENVIRONMENT_CONFIG_MAP } from '@/constants/networks'; -import { DydxAddress, SIGN_TYPED_DATA } from '@/constants/wallets'; +import { DydxAddress, getSignTypedData } from '@/constants/wallets'; import { useAccounts, useBreakpoints, useDydxClient, useStringGetter } from '@/hooks'; import { useMatchingEvmNetwork } from '@/hooks/useMatchingEvmNetwork'; @@ -85,10 +85,11 @@ export const GenerateKeys = ({ EvmDerivedAccountStatus.Derived, ].includes(status); + const signTypedData = getSignTypedData(selectedNetwork); const { signTypedDataAsync } = useSignTypedData({ - ...SIGN_TYPED_DATA, + ...signTypedData, domain: { - ...SIGN_TYPED_DATA.domain, + ...signTypedData.domain, chainId, }, });