Skip to content

Commit

Permalink
Rename cardano-wallet-shelley to just cardano-wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Aug 10, 2020
1 parent a7670ed commit c0ba23f
Show file tree
Hide file tree
Showing 18 changed files with 78 additions and 78 deletions.
32 changes: 16 additions & 16 deletions .travis.yml
Expand Up @@ -54,26 +54,26 @@ jobs:
############################

# Fetch the linux archive
- travis_retry curl -L https://hydra.iohk.io/job/Cardano/cardano-wallet/cardano-wallet-shelley-linux64/latest/download/1 | tar xz
- find . -maxdepth 1 -type d -name "cardano-wallet-shelley-*" -exec mv \{} cardano-wallet-shelley-linux64 \;
- mv cardano-wallet-shelley-linux64/cardano-wallet-shelley cardano-wallet-shelley-linux64/cardano-wallet
- tar czf cardano-wallet-$TRAVIS_TAG-linux64.tar.gz cardano-wallet-shelley-linux64
- rm -rf cardano-wallet-shelley-linux64
- travis_retry curl -L https://hydra.iohk.io/job/Cardano/cardano-wallet/cardano-wallet-linux64/latest/download/1 | tar xz
- find . -maxdepth 1 -type d -name "cardano-wallet-*" -exec mv \{} cardano-wallet-linux64 \;
- mv cardano-wallet-linux64/cardano-wallet cardano-wallet-linux64/cardano-wallet
- tar czf cardano-wallet-$TRAVIS_TAG-linux64.tar.gz cardano-wallet-linux64
- rm -rf cardano-wallet-linux64

# Fetch the MacOS archive
- travis_retry curl -L https://hydra.iohk.io/job/Cardano/cardano-wallet/cardano-wallet-shelley-macos64/latest/download/1 | tar xz
- find . -maxdepth 1 -type d -name "cardano-wallet-shelley-*" -exec mv \{} cardano-wallet-shelley-macos64 \;
- mv cardano-wallet-shelley-macos64/cardano-wallet-shelley cardano-wallet-shelley-macos64/cardano-wallet
- tar czf cardano-wallet-$TRAVIS_TAG-macos64.tar.gz cardano-wallet-shelley-macos64
- rm -rf cardano-wallet-shelley-macos64
- travis_retry curl -L https://hydra.iohk.io/job/Cardano/cardano-wallet/cardano-wallet-macos64/latest/download/1 | tar xz
- find . -maxdepth 1 -type d -name "cardano-wallet-*" -exec mv \{} cardano-wallet-macos64 \;
- mv cardano-wallet-macos64/cardano-wallet cardano-wallet-macos64/cardano-wallet
- tar czf cardano-wallet-$TRAVIS_TAG-macos64.tar.gz cardano-wallet-macos64
- rm -rf cardano-wallet-macos64

# Fetch the Windows archive
- travis_retry curl -L https://hydra.iohk.io/job/Cardano/cardano-wallet/cardano-wallet-shelley-win64/latest/download/1 --output cardano-wallet-shelley-win64.zip
- unzip -d cardano-wallet-shelley-win64 cardano-wallet-shelley-win64.zip
- mv cardano-wallet-shelley-win64/cardano-wallet-shelley.exe cardano-wallet-shelley-win64/cardano-wallet.exe
- zip -r cardano-wallet-$TRAVIS_TAG-win64.zip cardano-wallet-shelley-win64
- rm -rf cardano-wallet-shelley-win64
- rm cardano-wallet-shelley-win64.zip
- travis_retry curl -L https://hydra.iohk.io/job/Cardano/cardano-wallet/cardano-wallet-win64/latest/download/1 --output cardano-wallet-win64.zip
- unzip -d cardano-wallet-win64 cardano-wallet-win64.zip
- mv cardano-wallet-win64/cardano-wallet.exe cardano-wallet-win64/cardano-wallet.exe
- zip -r cardano-wallet-$TRAVIS_TAG-win64.zip cardano-wallet-win64
- rm -rf cardano-wallet-win64
- rm cardano-wallet-win64.zip

############################
# jörmungandr
Expand Down
2 changes: 1 addition & 1 deletion .weeder.yaml
@@ -1,5 +1,5 @@
- package:
- name: cardano-wallet-shelley
- name: cardano-wallet
- section:
- name: bench:restore
- message:
Expand Down
8 changes: 4 additions & 4 deletions default.nix
Expand Up @@ -8,7 +8,7 @@
# Interesting top-level attributes:
#
# - cardano-wallet-jormungandr - cli executable
# - cardano-wallet-shelley - cli executable
# - cardano-wallet - cli executable
# - tests - attrset of test-suite executables
# - cardano-wallet-core.unit
# - cardano-wallet-jormungandr.jormungandr-integration
Expand Down Expand Up @@ -93,10 +93,10 @@ let
haskellBuildUtils = haskellBuildUtils.package;
};

cardano-wallet-shelley = import ./nix/package-cardano-node.nix {
cardano-wallet = import ./nix/package-cardano-node.nix {
inherit pkgs gitrev;
haskellBuildUtils = haskellBuildUtils.package;
exe = haskellPackages.cardano-wallet-shelley.components.exes.cardano-wallet-shelley;
exe = haskellPackages.cardano-wallet.components.exes.cardano-wallet;
inherit (self) cardano-node;
};

Expand All @@ -111,7 +111,7 @@ let
mkDockerImage = backend: exe: pkgs.callPackage ./nix/docker.nix { inherit backend exe; };
in recurseIntoAttrs (mapAttrs mkDockerImage {
jormungandr = self.cardano-wallet-jormungandr;
shelley = self.cardano-wallet-shelley;
shelley = self.cardano-wallet;
});

shell = haskellPackages.shellFor {
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Expand Up @@ -32,7 +32,7 @@ services:
($$CMD --testnet /config/*-$$NETWORK-byron-genesis.json)
"
environment:
CMD: "cardano-wallet-shelley serve --node-socket /ipc/node.socket --database /wallet-db --listen-address 0.0.0.0"
CMD: "cardano-wallet serve --node-socket /ipc/node.socket --database /wallet-db --listen-address 0.0.0.0"
NETWORK:
restart: on-failure
logging:
Expand Down
2 changes: 1 addition & 1 deletion lib/shelley/bench/Restore.hs
Expand Up @@ -15,7 +15,7 @@
-- Easiest run using
-- @
-- $ export NODE_DB="node-db-testnet"
-- $ nix-build -A benchmarks.cardano-wallet-shelley.restore -o restore && ./restore/bin/restore testnet
-- $ nix-build -A benchmarks.cardano-wallet.restore -o restore && ./restore/bin/restore testnet
-- @
--
-- or
Expand Down
@@ -1,4 +1,4 @@
name: cardano-wallet-shelley
name: cardano-wallet
version: 2020.8.3
synopsis: Wallet backend protocol-specific bits implemented using Shelley nodes
description: Please see README.md
Expand Down Expand Up @@ -98,7 +98,7 @@ library
Cardano.Wallet.Shelley.Launch
Cardano.Wallet.Shelley.Pools

executable cardano-wallet-shelley
executable cardano-wallet
default-language:
Haskell2010
default-extensions:
Expand All @@ -114,7 +114,7 @@ executable cardano-wallet-shelley
, cardano-wallet-cli
, cardano-wallet-core
, cardano-wallet-launcher
, cardano-wallet-shelley
, cardano-wallet
, contra-tracer
, iohk-monitoring
, network
Expand All @@ -126,7 +126,7 @@ executable cardano-wallet-shelley
hs-source-dirs:
exe
main-is:
cardano-wallet-shelley.hs
cardano-wallet.hs

test-suite unit
default-language:
Expand All @@ -150,7 +150,7 @@ test-suite unit
, cardano-api
, cardano-crypto-class
, cardano-wallet-core
, cardano-wallet-shelley
, cardano-wallet
, containers
, contra-tracer
, iohk-monitoring
Expand Down Expand Up @@ -196,7 +196,7 @@ test-suite integration
, cardano-wallet-core
, cardano-wallet-core-integration
, cardano-wallet-launcher
, cardano-wallet-shelley
, cardano-wallet
, cardano-wallet-test-utils
, contra-tracer
, hspec
Expand All @@ -205,7 +205,7 @@ test-suite integration
, text
, text-class
build-tools:
cardano-wallet-shelley
cardano-wallet
type:
exitcode-stdio-1.0
hs-source-dirs:
Expand All @@ -232,7 +232,7 @@ benchmark restore
, cardano-addresses
, cardano-wallet-core
, cardano-wallet-core-integration
, cardano-wallet-shelley
, cardano-wallet
, contra-tracer
, containers
, cryptonite
Expand Down Expand Up @@ -276,7 +276,7 @@ benchmark latency
, cardano-wallet-cli
, cardano-wallet-core
, cardano-wallet-core-integration
, cardano-wallet-shelley
, cardano-wallet
, cardano-wallet-launcher
, directory
, filepath
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/shelley/src/Cardano/Wallet/Shelley.hs
Expand Up @@ -221,7 +221,7 @@ instance HasNetworkId ('Staging protocolMagic) where

deriving instance Show SomeNetworkDiscriminant

-- | The @cardano-wallet-shelley@ main function. It takes the configuration
-- | The @cardano-wallet@ main function. It takes the configuration
-- which was passed from the CLI and environment and starts all components of
-- the wallet.
serveWallet
Expand Down
2 changes: 1 addition & 1 deletion lib/shelley/test/integration/Main.hs
Expand Up @@ -133,7 +133,7 @@ import qualified Test.Integration.Scenario.CLI.Shelley.Wallets as WalletsCLI

-- | Define the actual executable name for the bridge CLI
instance KnownCommand Shelley where
commandName = "cardano-wallet-shelley"
commandName = "cardano-wallet"

main :: forall t n . (t ~ Shelley, n ~ 'Mainnet) => IO ()
main = withUtf8Encoding $ withTracers $ \tracers -> do
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nix/.stack.nix/default.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions nix/Dockerfile
@@ -1,6 +1,6 @@
############################################################################
#
# Super-minimal Docker image for cardano-wallet-shelley -- everything
# Super-minimal Docker image for cardano-wallet -- everything
# except the nixpkgs base is built from source.
#
# Make sure you have plenty of time and disk space for this.
Expand Down Expand Up @@ -42,7 +42,7 @@ RUN test -n "${USE_IOHK_CACHE}" && ( echo "Note: using IOHK nix cache" > /dev/st

# Make a docker layer with a warm cache (helps re-use compilers for
# subsequent builds).
RUN nix-build https://github.com/input-output-hk/cardano-wallet/archive/master.tar.gz -A cardano-wallet-shelley --no-out-link
RUN nix-build https://github.com/input-output-hk/cardano-wallet/archive/master.tar.gz -A cardano-wallet --no-out-link


############################################################################
Expand All @@ -61,7 +61,7 @@ WORKDIR cardano-wallet
# Build

# Build the wallet and node static binaries package, untar to "out" directory
RUN tar -xzvf $(nix-build release.nix -A cardano-wallet-shelley-linux64 --no-out-link)/*.tar.gz
RUN tar -xzvf $(nix-build release.nix -A cardano-wallet-linux64 --no-out-link)/*.tar.gz
RUN mv cardano-wallet-* ../out

# TODO: Alternatively, we could build the dockerImage.shelley
Expand All @@ -75,6 +75,6 @@ FROM scratch
CMD mkdir -p bin
# It is ok to COPY files from a build container (when using multi-stage builds)
COPY --from=builder out/cardano-node bin/cardano-node
COPY --from=builder out/cardano-wallet-shelley bin/cardano-wallet-shelley
ENTRYPOINT ["cardano-wallet-shelley"]
COPY --from=builder out/cardano-wallet bin/cardano-wallet
ENTRYPOINT ["cardano-wallet"]
CMD []
2 changes: 1 addition & 1 deletion nix/default.nix
Expand Up @@ -6,7 +6,7 @@
# Lets you override niv dependencies of the project without
# modifications to the source.
# eg. to test build against a local checkout of cardano-node:
# nix-build default.nix -A cardano-wallet-shelley --arg sourcesOverride '{ cardano-node = ../cardano-node; }'
# nix-build default.nix -A cardano-wallet --arg sourcesOverride '{ cardano-node = ../cardano-node; }'
, sourcesOverride ? {}
}:
let
Expand Down
2 changes: 1 addition & 1 deletion nix/docker.nix
Expand Up @@ -4,7 +4,7 @@
# To test it out, use:
#
# docker load -i $(nix-build -A dockerImage --no-out-link)
# docker run cardano-wallet-shelley
# docker run cardano-wallet
#
############################################################################

Expand Down

2 comments on commit c0ba23f

@mcsherrylabs
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI Joannes, I tried to run the docker compose as suggested on the front page of the repo but I get a lot of 'bash cardano-wallet not found' in the logs and I can't use the wallet url, I guess it's related to this change? Also 'Hello' my friend, long time! 😄

@Anviking
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, indeed! 😄 Thanks for pointing out!

Please sign in to comment.