@cardano-sdk/e2e 0.47.1 → 0.49.0
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
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.49.0](https://github.com/input-output-hk/cardano-js-sdk/compare/@cardano-sdk/e2e@0.48.0...@cardano-sdk/e2e@0.49.0) (2024-12-06)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* **web-extension:** support async WalletRepository store initialization
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **web-extension:** support async WalletRepository store initialization ([b64641a](https://github.com/input-output-hk/cardano-js-sdk/commit/b64641a6f72f478b2a7164f3e3907815eb429c88))
|
|
15
|
+
|
|
16
|
+
## [0.48.0](https://github.com/input-output-hk/cardano-js-sdk/compare/@cardano-sdk/e2e@0.47.1...@cardano-sdk/e2e@0.48.0) (2024-12-06)
|
|
17
|
+
|
|
18
|
+
### ⚠ BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* **web-extension:** make StoresFactory async
|
|
21
|
+
|
|
22
|
+
### Code Refactoring
|
|
23
|
+
|
|
24
|
+
* **web-extension:** make StoresFactory async ([77e12de](https://github.com/input-output-hk/cardano-js-sdk/commit/77e12de951a7d72657f76ff3b81b1a1184de569c))
|
|
25
|
+
|
|
6
26
|
## [0.47.1](https://github.com/input-output-hk/cardano-js-sdk/compare/@cardano-sdk/e2e@0.47.0...@cardano-sdk/e2e@0.47.1) (2024-12-05)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @cardano-sdk/e2e
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cardano-sdk/e2e",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "End to end tests for the cardano-js-sdk packages.",
|
|
5
5
|
"repository": "https://github.com/input-output-hk/cardano-js-sdk",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@cardano-sdk/util": "~0.15.5",
|
|
89
89
|
"@cardano-sdk/util-dev": "~0.24.1",
|
|
90
90
|
"@cardano-sdk/util-rxjs": "~0.8.0",
|
|
91
|
-
"@cardano-sdk/wallet": "~0.46.
|
|
91
|
+
"@cardano-sdk/wallet": "~0.46.1",
|
|
92
92
|
"@dcspark/cardano-multiplatform-lib-nodejs": "^3.1.1",
|
|
93
93
|
"@shiroyasha9/axios-fetch-adapter": "1.0.3",
|
|
94
94
|
"axios": "^1.7.4",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"@cardano-sdk/dapp-connector": "~0.12.47",
|
|
122
122
|
"@cardano-sdk/projection": "~0.12.16",
|
|
123
123
|
"@cardano-sdk/projection-typeorm": "~0.9.16",
|
|
124
|
-
"@cardano-sdk/web-extension": "~0.
|
|
124
|
+
"@cardano-sdk/web-extension": "~0.36.0",
|
|
125
125
|
"@dcspark/cardano-multiplatform-lib-browser": "^3.1.1",
|
|
126
126
|
"@emurgo/cardano-message-signing-asmjs": "^1.0.1",
|
|
127
127
|
"@types/bunyan": "^1.8.8",
|
|
@@ -181,5 +181,5 @@
|
|
|
181
181
|
"publishConfig": {
|
|
182
182
|
"access": "public"
|
|
183
183
|
},
|
|
184
|
-
"gitHead": "
|
|
184
|
+
"gitHead": "6f6e0032cb036f8d3d6463b1794ff67500b4fe06"
|
|
185
185
|
}
|
|
@@ -106,13 +106,11 @@ describe('PersonalWallet.assets/nft', () => {
|
|
|
106
106
|
[policyId]: {
|
|
107
107
|
'NFT-001': {
|
|
108
108
|
image: ['ipfs://some_hash1'],
|
|
109
|
-
name: 'One'
|
|
110
|
-
version: '1.0'
|
|
109
|
+
name: 'One'
|
|
111
110
|
},
|
|
112
111
|
'NFT-002': {
|
|
113
112
|
image: ['ipfs://some_hash2'],
|
|
114
|
-
name: 'Two'
|
|
115
|
-
version: '1.0'
|
|
113
|
+
name: 'Two'
|
|
116
114
|
},
|
|
117
115
|
'NFT-files': {
|
|
118
116
|
description: ['NFT with different types of files'],
|
|
@@ -131,8 +129,7 @@ describe('PersonalWallet.assets/nft', () => {
|
|
|
131
129
|
id: '1',
|
|
132
130
|
image: ['ipfs://somehash'],
|
|
133
131
|
mediaType: 'image/png',
|
|
134
|
-
name: 'NFT with files'
|
|
135
|
-
version: '1.0'
|
|
132
|
+
name: 'NFT with files'
|
|
136
133
|
}
|
|
137
134
|
}
|
|
138
135
|
});
|
|
@@ -195,8 +192,7 @@ describe('PersonalWallet.assets/nft', () => {
|
|
|
195
192
|
const secondTokenMetadata = nfts.find((nft) => nft.assetId === assetIds[TOKEN_METADATA_2_INDEX])?.nftMetadata;
|
|
196
193
|
expect(secondTokenMetadata).toMatchObject({
|
|
197
194
|
image: 'ipfs://some_hash1',
|
|
198
|
-
name: 'One'
|
|
199
|
-
version: '1.0'
|
|
195
|
+
name: 'One'
|
|
200
196
|
});
|
|
201
197
|
|
|
202
198
|
expect(nfts.find((nft) => nft.assetId === assetIds[TOKEN_METADATA_1_INDEX])).toBeDefined();
|
|
@@ -281,7 +277,7 @@ describe('PersonalWallet.assets/nft', () => {
|
|
|
281
277
|
const assetId = Cardano.AssetId(`${policyId}${assetNameHex}`);
|
|
282
278
|
const tokens = new Map([[assetId, 1n]]);
|
|
283
279
|
|
|
284
|
-
const txDataMetadatum = new Map([
|
|
280
|
+
const txDataMetadatum = new Map<Cardano.Metadatum, Cardano.Metadatum>([
|
|
285
281
|
[
|
|
286
282
|
version === 1 ? policyId : Buffer.from(policyId, 'hex'),
|
|
287
283
|
new Map([
|
|
@@ -289,12 +285,12 @@ describe('PersonalWallet.assets/nft', () => {
|
|
|
289
285
|
version === 1 ? (encoding === 'hex' ? assetNameHex : assetName) : Buffer.from(assetName),
|
|
290
286
|
metadatum.jsonToMetadatum({
|
|
291
287
|
image: ['ipfs://some_hash1'],
|
|
292
|
-
name: assetName
|
|
293
|
-
version
|
|
288
|
+
name: assetName
|
|
294
289
|
})
|
|
295
290
|
]
|
|
296
291
|
])
|
|
297
|
-
]
|
|
292
|
+
],
|
|
293
|
+
['version', BigInt(version)]
|
|
298
294
|
]);
|
|
299
295
|
|
|
300
296
|
const auxiliaryData = { blob: new Map([[721n, txDataMetadatum]]) };
|
|
@@ -342,10 +338,6 @@ describe('PersonalWallet.assets/nft', () => {
|
|
|
342
338
|
|
|
343
339
|
CIP0025Test('supports CIP-25 v1, assetName hex encoded', 'CIP-0025-v1-hex', 1, 'hex');
|
|
344
340
|
CIP0025Test('supports CIP-25 v1, assetName utf8 encoded', 'CIP-0025-v1-utf8', 1, 'utf8');
|
|
345
|
-
|
|
346
|
-
// https://input-output-rnd.slack.com/archives/C06J663L2A2/p1731505470694659
|
|
347
|
-
env.TEST_CLIENT_ASSET_PROVIDER !== 'blockfrost'
|
|
348
|
-
? CIP0025Test('supports CIP-25 v2', 'CIP-0025-v2', 2)
|
|
349
|
-
: test.todo('"supports CIP-25 v2" test is disabled when running with Blockfrost asset provider');
|
|
341
|
+
CIP0025Test('supports CIP-25 v2', 'CIP-0025-v2', 2);
|
|
350
342
|
});
|
|
351
343
|
});
|
|
@@ -86,12 +86,12 @@ const walletFactory: WalletFactory<Metadata, Metadata> = {
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const storesFactory: StoresFactory = {
|
|
89
|
-
create: ({ name }) => storage.createPouchDbWalletStores(name, { logger })
|
|
89
|
+
create: async ({ name }) => storage.createPouchDbWalletStores(name, { logger })
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
const walletRepository = new WalletRepository<Metadata, Metadata>({
|
|
93
93
|
logger,
|
|
94
|
-
store
|
|
94
|
+
store$: of(new storage.InMemoryCollectionStore<AnyWallet<Metadata, Metadata>>())
|
|
95
95
|
});
|
|
96
96
|
|
|
97
97
|
const signingCoordinatorApi = consumeSigningCoordinatorApi({ logger, runtime });
|