Skip to content

Commit

Permalink
Merge pull request #85 from input-output-hk/rvl/80/cardano-wallet-she…
Browse files Browse the repository at this point in the history
…lley

Update for cardano-wallet-shelley -> cardano-wallet renaming
  • Loading branch information
rhyslbw committed Aug 13, 2020
2 parents ec01e7b + 507a9e4 commit 17969c9
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
run: |
node scripts\download-hydra.js
Get-ChildItem
Expand-Archive -Force -Path "cardano-wallet-jormungandr-*-win64.zip" -DestinationPath .
Expand-Archive -Force -Path "cardano-wallet-shelley-*-win64.zip" -DestinationPath .
Expand-Archive -Force -Path "cardano-wallet-shelley-*-deployments.zip" -DestinationPath shelley_deployments
Expand-Archive -Force -Path "cardano-wallet-jormungandr-20*-win64.zip" -DestinationPath .
Expand-Archive -Force -Path "cardano-wallet-20*-win64.zip" -DestinationPath .
Expand-Archive -Force -Path "cardano-wallet-*-deployments.zip" -DestinationPath deployments
Get-ChildItem
echo "::set-env name=CARDANO_NODE_CONFIGS::$Env:GITHUB_WORKSPACE\shelley_deployments"
echo "::set-env name=CARDANO_NODE_CONFIGS::$Env:GITHUB_WORKSPACE\deployments"
- run: npm test unit
- run: npm test integration
- run: npm test cli
Expand Down
6 changes: 3 additions & 3 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"homepage": null,
"owner": "input-output-hk",
"repo": "cardano-wallet",
"rev": "c93a28de4e4385da0b72ee989060f3dae71ee354",
"sha256": "1lf132by2hbjr5a8iamw5m8xcyqszcjvqbnh1na1m52chvx7145n",
"rev": "5c1240cc668993fcb7135f244f2b1cc9c96a3238",
"sha256": "0fwgigcl11jwr34pbv92099z67j18wr2132a1zbr19llkg220mlr",
"type": "tarball",
"url": "https://github.com/input-output-hk/cardano-wallet/archive/c93a28de4e4385da0b72ee989060f3dae71ee354.tar.gz",
"url": "https://github.com/input-output-hk/cardano-wallet/archive/5c1240cc668993fcb7135f244f2b1cc9c96a3238.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"iohk-nix": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/download-hydra.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async function download(sourceName, downloads) {
}

download("cardano-wallet", [{
job: "cardano-wallet-shelley-win64",
job: "cardano-wallet-win64",
buildProducts: [1, 3]
}, {
job: "cardano-wallet-jormungandr-win64",
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mkShell {
cardanoWalletPackages.cardano-wallet-jormungandr
# cardano-node
cardano-node
cardanoWalletPackages.cardano-wallet-shelley
cardanoWalletPackages.cardano-wallet
];

# Test data from cardano-wallet repo used in their integration tests.
Expand Down
4 changes: 3 additions & 1 deletion src/cardanoWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ export async function startCardanoWallet(
config: LaunchConfig
): Promise<WalletStartService> {
const apiPort = config.apiPort || (await getPort());
const commandSuffix =
config.nodeConfig.kind === 'shelley' ? '' : '-' + config.nodeConfig.kind;
const base: WalletStartService = {
command: `cardano-wallet-${config.nodeConfig.kind}`,
command: 'cardano-wallet' + commandSuffix,
args: [
'serve',
'--shutdown-handler',
Expand Down
4 changes: 2 additions & 2 deletions test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe('Starting cardano-wallet (and its node)', () => {

// eslint-disable-next-line jest/expect-expect
it(
'cardano-wallet-shelley responds to requests',
'cardano-wallet responds to requests',
() =>
launcherTest(stateDir => {
return {
Expand Down Expand Up @@ -260,7 +260,7 @@ describe('Starting cardano-wallet (and its node)', () => {

// eslint-disable-next-line jest/expect-expect
it(
'can configure the cardano-wallet-shelley to serve the API with TLS',
'can configure the cardano-wallet to serve the API with TLS',
async () =>
launcherTest(stateDir => {
return {
Expand Down

0 comments on commit 17969c9

Please sign in to comment.