@midnight-ntwrk/wallet-sdk-unshielded-wallet 2.0.0-rc.3 → 2.0.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/dist/KeyStore.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
package/dist/v1/Keys.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
package/dist/v1/Sync.d.ts CHANGED
@@ -13,6 +13,7 @@ export interface SyncCapability<TState, TUpdate> {
13
13
  export type IndexerClientConnection = {
14
14
  indexerHttpUrl: string;
15
15
  indexerWsUrl?: string;
16
+ keepAlive?: number;
16
17
  };
17
18
  export type DefaultSyncConfiguration = {
18
19
  indexerClientConnection: IndexerClientConnection;
package/dist/v1/Sync.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -33,7 +33,7 @@ export const makeDefaultSyncService = (config) => {
33
33
  const indexerWsUrl = indexerWsUrlResult.right;
34
34
  const { appliedId } = state.progress;
35
35
  const { address } = state.publicKey;
36
- return pipe(UnshieldedTransactions.run({ address, transactionId: Number(appliedId) }), Stream.provideLayer(WsSubscriptionClient.layer({ url: indexerWsUrl })), Stream.mapError((error) => new SyncWalletError(error)), Stream.mapEffect((subscription) => {
36
+ return pipe(UnshieldedTransactions.run({ address, transactionId: Number(appliedId) }), Stream.provideLayer(WsSubscriptionClient.layer({ url: indexerWsUrl, keepAlive: indexerClientConnection.keepAlive })), Stream.mapError((error) => new SyncWalletError(error)), Stream.mapEffect((subscription) => {
37
37
  const { unshieldedTransactions } = subscription;
38
38
  return pipe(Schema.decodeUnknownEither(WalletSyncUpdateSchema)(unshieldedTransactions), Either.mapLeft((err) => new SyncWalletError(err)), EitherOps.toEffect);
39
39
  }));
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
package/dist/v1/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is part of MIDNIGHT-WALLET-SDK.
2
- // Copyright (C) 2025 Midnight Foundation
2
+ // Copyright (C) Midnight Foundation
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // You may not use this file except in compliance with the License.
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@midnight-ntwrk/wallet-sdk-unshielded-wallet",
3
- "version": "2.0.0-rc.3",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
6
7
  "types": "./dist/index.d.ts",
7
8
  "author": "Midnight Foundation",
8
9
  "license": "Apache-2.0",
@@ -20,17 +21,22 @@
20
21
  ".": {
21
22
  "types": "./dist/index.d.ts",
22
23
  "import": "./dist/index.js"
24
+ },
25
+ "./v1": {
26
+ "types": "./dist/v1/index.d.ts",
27
+ "import": "./dist/v1/index.js"
23
28
  }
24
29
  },
25
30
  "dependencies": {
26
- "@midnight-ntwrk/ledger-v7": "7.0.0",
27
- "@midnight-ntwrk/wallet-sdk-abstractions": "2.0.0-rc.1",
28
- "@midnight-ntwrk/wallet-sdk-address-format": "3.0.0",
29
- "@midnight-ntwrk/wallet-sdk-capabilities": "3.1.0-rc.2",
30
- "@midnight-ntwrk/wallet-sdk-indexer-client": "1.1.0-rc.3",
31
- "@midnight-ntwrk/wallet-sdk-utilities": "1.0.1-rc.1",
32
- "effect": "^3.19.14",
33
- "rxjs": "^7.5"
31
+ "@midnight-ntwrk/ledger-v7": "^7.0.2",
32
+ "@midnight-ntwrk/wallet-sdk-abstractions": "2.0.0",
33
+ "@midnight-ntwrk/wallet-sdk-address-format": "3.0.1",
34
+ "@midnight-ntwrk/wallet-sdk-capabilities": "3.1.0",
35
+ "@midnight-ntwrk/wallet-sdk-indexer-client": "1.1.0",
36
+ "@midnight-ntwrk/wallet-sdk-runtime": "1.0.1",
37
+ "@midnight-ntwrk/wallet-sdk-utilities": "1.0.1",
38
+ "effect": "^3.19.19",
39
+ "rxjs": "^7.8.2"
34
40
  },
35
41
  "scripts": {
36
42
  "typecheck": "tsc -b ./tsconfig.json --noEmit --force",
@@ -44,14 +50,6 @@
44
50
  "publint": "publint --strict"
45
51
  },
46
52
  "devDependencies": {
47
- "@midnight-ntwrk/wallet-sdk-hd": "3.0.0",
48
- "eslint": "^9.37.0",
49
- "fast-check": "^4.5.3",
50
- "prettier": "^3.7.0",
51
- "publint": "~0.3.14",
52
- "rimraf": "^6.0.1",
53
- "testcontainers": "^11.10.0",
54
- "typescript": "^5.9.3",
55
- "vitest": "^4.0.16"
53
+ "@midnight-ntwrk/wallet-sdk-hd": "3.0.1"
56
54
  }
57
55
  }