Skip to content

Commit

Permalink
Merge pull request #3227 from input-output-hk/fix/LW-11497-metadata-url
Browse files Browse the repository at this point in the history
[LW-11497] Fix token metadata server URL on all networks
  • Loading branch information
michalrus authored Oct 4, 2024
2 parents 8148c3e + 26dc634 commit 5983643
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Fixes

- Fix token metadata server URL on all networks ([PR 3227](https://github.com/input-output-hk/daedalus/pull/3227))

- Un-brick auto-update on devices where it failed in the past ([PR 3223](https://github.com/input-output-hk/daedalus/pull/3223))

## 6.0.1
Expand Down
13 changes: 10 additions & 3 deletions nix/internal/launcher-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ let
preview = "https://preview-smash.world.dev.cardano.org";
};

tokenMetadataServers = {
mainnet = "https://tokens.cardano.org";
preprod = "https://metadata.world.dev.cardano.org";
preview = "https://metadata.world.dev.cardano.org";
};

fromCardanoPlayground = envName: let
originalFiles = builtins.path {
name = "cardano-playground-config-${envName}";
Expand All @@ -57,6 +63,7 @@ let
cardanoEnv = {
inherit nodeConfig;
topologyFile = originalFiles + "/topology.json";
metadataUrl = tokenMetadataServers.${envName};
};
};

Expand Down Expand Up @@ -301,13 +308,13 @@ let
topologyFile = mkConfigPath nodeConfigFiles "topology.yaml";
};
};
} // (lib.optionalAttrs (network == "selfnode") {
} // (lib.optionalAttrs (network != "selfnode") {
metadataUrl = envCfg.metadataUrl;
}) // (lib.optionalAttrs (network == "selfnode") {
selfnodeBin = mkBinPath "local-cluster";
mockTokenMetadataServerBin = mkBinPath "mock-token-metadata-server";
}) // (lib.optionalAttrs (__hasAttr network smashServers) {
smashUrl = smashServers.${network};
}) // (lib.optionalAttrs (__hasAttr "metadataUrl" envCfg) {
metadataUrl = envCfg.metadataUrl;
});

installerConfig = {
Expand Down
2 changes: 1 addition & 1 deletion source/main/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const DISK_SPACE_CHECK_TIMEOUT = 9 * 1000; // Timeout for checking disks

// Used if token metadata server URL is not defined in launcher config
export const FALLBACK_TOKEN_METADATA_SERVER_URL =
'https://metadata.cardano-testnet.iohkdev.io';
'https://metadata.world.dev.cardano.org';
export const MINIMUM_AMOUNT_OF_RAM_FOR_RTS_FLAGS = 16 * 1024 * 1024 * 1024; // 16gb RAM

// Used by mock-token-metadata-server
Expand Down

0 comments on commit 5983643

Please sign in to comment.