@cardano-sdk/e2e 0.36.3 → 0.36.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -19
- package/src/scripts/generate-dotenv.sh +35 -0
- package/test/long-running/multisig-wallet/MultiSigWallet.ts +0 -4
- package/test/projection/single-tenant-utxo.test.ts +0 -1
- package/test/wallet_epoch_0/PersonalWallet/conwayTransactions.test.ts +3 -7
- package/test/wallet_epoch_0/PersonalWallet/plutusTest.test.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cardano-sdk/e2e",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.4",
|
|
4
4
|
"description": "End to end tests for the cardano-js-sdk packages.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.20.2"
|
|
@@ -81,20 +81,20 @@
|
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@cardano-foundation/ledgerjs-hw-app-cardano": "^7.1.2",
|
|
83
83
|
"@cardano-ogmios/client": "6.3.0",
|
|
84
|
-
"@cardano-sdk/cardano-services": "~0.28.
|
|
85
|
-
"@cardano-sdk/cardano-services-client": "~0.19.
|
|
86
|
-
"@cardano-sdk/core": "~0.
|
|
87
|
-
"@cardano-sdk/crypto": "~0.1.
|
|
88
|
-
"@cardano-sdk/hardware-ledger": "~0.9.
|
|
89
|
-
"@cardano-sdk/hardware-trezor": "~0.4.
|
|
90
|
-
"@cardano-sdk/input-selection": "~0.13.
|
|
91
|
-
"@cardano-sdk/key-management": "~0.20.
|
|
92
|
-
"@cardano-sdk/ogmios": "~0.15.
|
|
93
|
-
"@cardano-sdk/tx-construction": "~0.19.
|
|
84
|
+
"@cardano-sdk/cardano-services": "~0.28.9",
|
|
85
|
+
"@cardano-sdk/cardano-services-client": "~0.19.9",
|
|
86
|
+
"@cardano-sdk/core": "~0.34.0",
|
|
87
|
+
"@cardano-sdk/crypto": "~0.1.25",
|
|
88
|
+
"@cardano-sdk/hardware-ledger": "~0.9.10",
|
|
89
|
+
"@cardano-sdk/hardware-trezor": "~0.4.30",
|
|
90
|
+
"@cardano-sdk/input-selection": "~0.13.3",
|
|
91
|
+
"@cardano-sdk/key-management": "~0.20.8",
|
|
92
|
+
"@cardano-sdk/ogmios": "~0.15.30",
|
|
93
|
+
"@cardano-sdk/tx-construction": "~0.19.3",
|
|
94
94
|
"@cardano-sdk/util": "~0.15.2",
|
|
95
|
-
"@cardano-sdk/util-dev": "~0.21.
|
|
96
|
-
"@cardano-sdk/util-rxjs": "~0.7.
|
|
97
|
-
"@cardano-sdk/wallet": "~0.38.
|
|
95
|
+
"@cardano-sdk/util-dev": "~0.21.3",
|
|
96
|
+
"@cardano-sdk/util-rxjs": "~0.7.18",
|
|
97
|
+
"@cardano-sdk/wallet": "~0.38.4",
|
|
98
98
|
"@dcspark/cardano-multiplatform-lib-nodejs": "^3.1.1",
|
|
99
99
|
"@vespaiach/axios-fetch-adapter": "^0.3.0",
|
|
100
100
|
"axios": "^0.28.0",
|
|
@@ -124,10 +124,10 @@
|
|
|
124
124
|
"@babel/core": "^7.18.2",
|
|
125
125
|
"@babel/preset-env": "^7.18.2",
|
|
126
126
|
"@babel/preset-typescript": "^7.17.12",
|
|
127
|
-
"@cardano-sdk/dapp-connector": "~0.12.
|
|
128
|
-
"@cardano-sdk/projection": "~0.11.
|
|
129
|
-
"@cardano-sdk/projection-typeorm": "~0.8.
|
|
130
|
-
"@cardano-sdk/web-extension": "~0.29.
|
|
127
|
+
"@cardano-sdk/dapp-connector": "~0.12.21",
|
|
128
|
+
"@cardano-sdk/projection": "~0.11.20",
|
|
129
|
+
"@cardano-sdk/projection-typeorm": "~0.8.22",
|
|
130
|
+
"@cardano-sdk/web-extension": "~0.29.4",
|
|
131
131
|
"@dcspark/cardano-multiplatform-lib-browser": "^3.1.1",
|
|
132
132
|
"@emurgo/cardano-message-signing-asmjs": "^1.0.1",
|
|
133
133
|
"@types/bunyan": "^1.8.8",
|
|
@@ -181,5 +181,5 @@
|
|
|
181
181
|
"webpack-cli": "^4.9.2",
|
|
182
182
|
"webpack-merge": "^5.8.0"
|
|
183
183
|
},
|
|
184
|
-
"gitHead": "
|
|
184
|
+
"gitHead": "4933352369707f19efebecbccc63b03b00692fa5"
|
|
185
185
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -x
|
|
3
|
+
set -o
|
|
4
|
+
|
|
5
|
+
environment="$1"
|
|
6
|
+
|
|
7
|
+
url="https://${environment}.lw.iog.io"
|
|
8
|
+
|
|
9
|
+
# Construct the environment file content
|
|
10
|
+
envFileContent="
|
|
11
|
+
# Logger
|
|
12
|
+
LOGGER_MIN_SEVERITY=info
|
|
13
|
+
|
|
14
|
+
# Key management setup - required by getWallet
|
|
15
|
+
KEY_MANAGEMENT_PROVIDER=inMemory
|
|
16
|
+
|
|
17
|
+
# Providers setup - required by getWallet
|
|
18
|
+
ASSET_PROVIDER=http
|
|
19
|
+
ASSET_PROVIDER_PARAMS='{\"baseUrl\":\"$url:4000/\"}'
|
|
20
|
+
HANDLE_PROVIDER=http
|
|
21
|
+
HANDLE_PROVIDER_PARAMS='{\"baseUrl\":\"$url:4011/\"}'
|
|
22
|
+
NETWORK_INFO_PROVIDER=http
|
|
23
|
+
NETWORK_INFO_PROVIDER_PARAMS='{\"baseUrl\":\"$url:4000/\"}'
|
|
24
|
+
REWARDS_PROVIDER=http
|
|
25
|
+
REWARDS_PROVIDER_PARAMS='{\"baseUrl\":\"$url:4000/\"}'
|
|
26
|
+
TX_SUBMIT_PROVIDER=http
|
|
27
|
+
TX_SUBMIT_PROVIDER_PARAMS='{\"baseUrl\":\"$url:4000/\"}'
|
|
28
|
+
UTXO_PROVIDER=http
|
|
29
|
+
UTXO_PROVIDER_PARAMS='{\"baseUrl\":\"$url:4000/\"}'
|
|
30
|
+
STAKE_POOL_PROVIDER=http
|
|
31
|
+
STAKE_POOL_PROVIDER_PARAMS='{\"baseUrl\":\"$url:4000/\"}'
|
|
32
|
+
"
|
|
33
|
+
|
|
34
|
+
# Write the environment file content to the specified file
|
|
35
|
+
echo "$envFileContent" > .env
|
|
@@ -256,7 +256,6 @@ export class MultiSigWallet {
|
|
|
256
256
|
new Observable<Cardano.Utxo[]>((subscriber) => {
|
|
257
257
|
this.#utxoProvider
|
|
258
258
|
.utxoByAddresses({ addresses: [this.#address.address] })
|
|
259
|
-
// eslint-disable-next-line promise/always-return
|
|
260
259
|
.then((utxos) => {
|
|
261
260
|
subscriber.next(utxos);
|
|
262
261
|
})
|
|
@@ -293,7 +292,6 @@ export class MultiSigWallet {
|
|
|
293
292
|
startAt: 0
|
|
294
293
|
}
|
|
295
294
|
})
|
|
296
|
-
// eslint-disable-next-line promise/always-return
|
|
297
295
|
.then((paginatedTxs) => {
|
|
298
296
|
subscriber.next(paginatedTxs.pageResults);
|
|
299
297
|
subscriber.complete();
|
|
@@ -318,7 +316,6 @@ export class MultiSigWallet {
|
|
|
318
316
|
.rewardsHistory({
|
|
319
317
|
rewardAccounts: [this.#address.rewardAccount]
|
|
320
318
|
})
|
|
321
|
-
// eslint-disable-next-line promise/always-return
|
|
322
319
|
.then((rewardsHistory) => {
|
|
323
320
|
subscriber.next(rewardsHistory);
|
|
324
321
|
subscriber.complete();
|
|
@@ -343,7 +340,6 @@ export class MultiSigWallet {
|
|
|
343
340
|
.rewardAccountBalance({
|
|
344
341
|
rewardAccount: this.#address.rewardAccount
|
|
345
342
|
})
|
|
346
|
-
// eslint-disable-next-line promise/always-return
|
|
347
343
|
.then((rewardAccountBalance) => {
|
|
348
344
|
subscriber.next(rewardAccountBalance);
|
|
349
345
|
subscriber.complete();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Crypto from '@cardano-sdk/crypto';
|
|
2
2
|
import { BaseWallet } from '@cardano-sdk/wallet';
|
|
3
|
-
import { Cardano,
|
|
3
|
+
import { Cardano, setInConwayEra } from '@cardano-sdk/core';
|
|
4
4
|
import { logger } from '@cardano-sdk/util-dev';
|
|
5
5
|
|
|
6
6
|
import { firstValueFrom, map } from 'rxjs';
|
|
@@ -161,9 +161,7 @@ describe.skip('PersonalWallet/conwayTransactions', () => {
|
|
|
161
161
|
};
|
|
162
162
|
|
|
163
163
|
beforeAll(async () => {
|
|
164
|
-
|
|
165
|
-
Serialization.CborSet.useConwaySerialization = true;
|
|
166
|
-
Serialization.Redeemers.useConwaySerialization = true;
|
|
164
|
+
setInConwayEra(true);
|
|
167
165
|
|
|
168
166
|
// TODO LW-10555: Revert this so that wallet is at account 0 and drepWallet at account 1, once the dbsync bug is fixed
|
|
169
167
|
// https://github.com/IntersectMBO/cardano-db-sync/issues/1702
|
|
@@ -191,9 +189,7 @@ describe.skip('PersonalWallet/conwayTransactions', () => {
|
|
|
191
189
|
wallet.shutdown();
|
|
192
190
|
dRepWallet.shutdown();
|
|
193
191
|
|
|
194
|
-
|
|
195
|
-
Serialization.CborSet.useConwaySerialization = false;
|
|
196
|
-
Serialization.Redeemers.useConwaySerialization = false;
|
|
192
|
+
setInConwayEra(false);
|
|
197
193
|
});
|
|
198
194
|
|
|
199
195
|
it('can register a stake key and delegate stake using a combo certificate', async () => {
|
|
@@ -175,7 +175,6 @@ const getScriptUtxoSet = (
|
|
|
175
175
|
new Observable<Cardano.Utxo[]>((subscriber) => {
|
|
176
176
|
utxoProvider
|
|
177
177
|
.utxoByAddresses({ addresses: [scriptAddress] })
|
|
178
|
-
// eslint-disable-next-line promise/always-return
|
|
179
178
|
.then((utxos) => {
|
|
180
179
|
subscriber.next(utxos);
|
|
181
180
|
})
|