Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ export const allCoinsAndTokens = [
'dYdX Cosmos',
Networks.main.dydx,
18,
UnderlyingAsset.DYDX,
UnderlyingAsset.DYDXCOSMOS,
BaseUnit.DYDX,
[...COSMOS_SIDECHAIN_FEATURES, CoinFeature.SHARED_COSMOS_SDK, CoinFeature.SHARED_COSMOS_WP]
),
Expand All @@ -1094,7 +1094,7 @@ export const allCoinsAndTokens = [
'Testnet dYdX Cosmos',
Networks.test.dydx,
18,
UnderlyingAsset.DYDX,
UnderlyingAsset.DYDXCOSMOS,
BaseUnit.DYDX,
[...COSMOS_SIDECHAIN_FEATURES, CoinFeature.SHARED_COSMOS_SDK, CoinFeature.SHARED_COSMOS_WP]
),
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export enum CoinFamily {
DOGEOS = 'dogeos',
DOT = 'dot',
DYDX = 'dydx',
DYDXCOSMOS = 'dydxcosmos',
EOS = 'eos',
ETC = 'etc',
ETH = 'eth',
Expand Down Expand Up @@ -1033,6 +1034,7 @@ export enum UnderlyingAsset {
DXPT = 'dxpt',
DXST = 'dxst',
DYDX = 'dydx',
DYDXCOSMOS = 'dydxcosmos',
DYN = 'dyn',
EASY = 'easy',
EBTCQ = 'ebtcq',
Expand Down
4 changes: 2 additions & 2 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ class KavaCosmosTestnet extends Testnet implements CosmosNetwork {

class Dydx extends Mainnet implements CosmosNetwork {
name = 'Dydx';
family = CoinFamily.DYDX;
family = CoinFamily.DYDXCOSMOS;
explorerUrl = 'https://www.mintscan.io/dydx/tx/';
addressPrefix = 'dydx';
validatorPrefix = 'dydxvaloper';
Expand All @@ -1075,7 +1075,7 @@ class Dydx extends Mainnet implements CosmosNetwork {

class DydxTestnet extends Testnet implements CosmosNetwork {
name = 'DydxTestnet';
family = CoinFamily.DYDX;
family = CoinFamily.DYDXCOSMOS;
explorerUrl = 'https://www.mintscan.io/dydx-testnet/tx/';
addressPrefix = 'dydx';
validatorPrefix = 'dydxvaloper';
Expand Down
2 changes: 1 addition & 1 deletion modules/statics/test/unit/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ coins.forEach((coin, coinName) => {
});

if (!coin.isToken && coin.family !== CoinFamily.FIAT) {
if (coin.family !== CoinFamily.THOR && coin.family !== CoinFamily.DYDX) {
if (coin.family !== CoinFamily.THOR) {
it(`has expected network type`, function () {
coin.network.type.should.eql(coin.name === coin.family ? NetworkType.MAINNET : NetworkType.TESTNET);
});
Expand Down
Loading