@midnight-ntwrk/wallet-sdk-unshielded-wallet 2.0.0 → 2.1.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.
@@ -1,5 +1,5 @@
1
1
  import { MidnightBech32m } from '@midnight-ntwrk/wallet-sdk-address-format';
2
- import { Signature, SignatureVerifyingKey, UserAddress } from '@midnight-ntwrk/ledger-v7';
2
+ import { Signature, SignatureVerifyingKey, UserAddress } from '@midnight-ntwrk/ledger-v8';
3
3
  import { NetworkId } from '@midnight-ntwrk/wallet-sdk-abstractions';
4
4
  export type PublicKey = {
5
5
  publicKey: SignatureVerifyingKey;
package/dist/KeyStore.js CHANGED
@@ -11,7 +11,7 @@
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
13
  import { UnshieldedAddress } from '@midnight-ntwrk/wallet-sdk-address-format';
14
- import { addressFromKey, signData, signatureVerifyingKey, } from '@midnight-ntwrk/ledger-v7';
14
+ import { addressFromKey, signData, signatureVerifyingKey, } from '@midnight-ntwrk/ledger-v8';
15
15
  export const PublicKey = {
16
16
  fromKeyStore: (keystore) => {
17
17
  return {
@@ -1,6 +1,6 @@
1
1
  import { type ProtocolState, ProtocolVersion } from '@midnight-ntwrk/wallet-sdk-abstractions';
2
2
  import { type BaseV1Configuration, type DefaultV1Configuration, type V1Variant, CoreWallet, type UnboundTransaction } from './v1/index.js';
3
- import type * as ledger from '@midnight-ntwrk/ledger-v7';
3
+ import type * as ledger from '@midnight-ntwrk/ledger-v8';
4
4
  import * as rx from 'rxjs';
5
5
  import { type SerializationCapability } from './v1/Serialization.js';
6
6
  import { type TransactionHistoryService } from './v1/TransactionHistory.js';
@@ -1,5 +1,5 @@
1
1
  import { CoreWallet } from './CoreWallet.js';
2
- import * as ledger from '@midnight-ntwrk/ledger-v7';
2
+ import * as ledger from '@midnight-ntwrk/ledger-v8';
3
3
  import { UtxoWithMeta } from './UnshieldedState.js';
4
4
  export type Balances = Record<ledger.RawTokenType, bigint>;
5
5
  export type CoinsAndBalancesCapability<TState> = {
@@ -2,7 +2,7 @@ import { ProtocolVersion } from '@midnight-ntwrk/wallet-sdk-abstractions';
2
2
  import { SyncProgress, SyncProgressData } from './SyncProgress.js';
3
3
  import { PublicKey } from '../KeyStore.js';
4
4
  import { UnshieldedState, UnshieldedUpdate } from './UnshieldedState.js';
5
- import * as ledger from '@midnight-ntwrk/ledger-v7';
5
+ import * as ledger from '@midnight-ntwrk/ledger-v8';
6
6
  import { Either } from 'effect';
7
7
  import { WalletError } from './WalletError.js';
8
8
  export type CoreWallet = Readonly<{
package/dist/v1/Keys.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { UnshieldedAddress } from '@midnight-ntwrk/wallet-sdk-address-format';
2
2
  import type { CoreWallet } from './CoreWallet.js';
3
- import { SignatureVerifyingKey } from '@midnight-ntwrk/ledger-v7';
3
+ import { SignatureVerifyingKey } from '@midnight-ntwrk/ledger-v8';
4
4
  export type KeysCapability<TState> = {
5
5
  getPublicKey(state: TState): SignatureVerifyingKey;
6
6
  getAddress(state: TState): UnshieldedAddress;
@@ -11,7 +11,7 @@ import { type KeysCapability } from './Keys.js';
11
11
  import { type CoinSelection } from '@midnight-ntwrk/wallet-sdk-capabilities';
12
12
  import { type CoreWallet } from './CoreWallet.js';
13
13
  import { type TransactionHistoryService } from './TransactionHistory.js';
14
- import type * as ledger from '@midnight-ntwrk/ledger-v7';
14
+ import type * as ledger from '@midnight-ntwrk/ledger-v8';
15
15
  export declare namespace RunningV1Variant {
16
16
  type Context<TSerialized, TSyncUpdate> = {
17
17
  serializationCapability: SerializationCapability<CoreWallet, TSerialized>;
@@ -1,4 +1,4 @@
1
- import * as ledger from '@midnight-ntwrk/ledger-v7';
1
+ import * as ledger from '@midnight-ntwrk/ledger-v8';
2
2
  import { Array as Arr, Effect, Scope, Stream, SubscriptionRef } from 'effect';
3
3
  export type SimulatorState = Readonly<{
4
4
  ledger: ledger.LedgerState;
@@ -10,7 +10,7 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- import * as ledger from '@midnight-ntwrk/ledger-v7';
13
+ import * as ledger from '@midnight-ntwrk/ledger-v8';
14
14
  import { Array as Arr, Effect, Encoding, pipe, Stream, SubscriptionRef, Clock } from 'effect';
15
15
  import { ArrayOps, EitherOps } from '@midnight-ntwrk/wallet-sdk-utilities';
16
16
  import * as crypto from 'crypto';
@@ -33,6 +33,7 @@ export class Simulator {
33
33
  parentBlockHash: hash,
34
34
  secondsSinceEpoch: number,
35
35
  secondsSinceEpochErr: 1,
36
+ lastBlockTime: 1n,
36
37
  })));
37
38
  static init(genesisMints) {
38
39
  const emptyState = ledger.LedgerState.blank(NetworkId.NetworkId.Undeployed);
@@ -1,4 +1,4 @@
1
- import * as ledger from '@midnight-ntwrk/ledger-v7';
1
+ import * as ledger from '@midnight-ntwrk/ledger-v8';
2
2
  import { NetworkId } from '@midnight-ntwrk/wallet-sdk-abstractions';
3
3
  import { Either } from 'effect';
4
4
  import { CoreWallet } from './CoreWallet.js';
@@ -10,7 +10,7 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- import * as ledger from '@midnight-ntwrk/ledger-v7';
13
+ import * as ledger from '@midnight-ntwrk/ledger-v8';
14
14
  import { Either, Option, pipe, Array as Arr } from 'effect';
15
15
  import { CoreWallet } from './CoreWallet.js';
16
16
  import { InsufficientFundsError, OtherWalletError, SignError, TransactingError } from './WalletError.js';
@@ -1,6 +1,6 @@
1
1
  import { Either } from 'effect';
2
2
  import { Imbalances } from '@midnight-ntwrk/wallet-sdk-capabilities';
3
- import * as ledger from '@midnight-ntwrk/ledger-v7';
3
+ import * as ledger from '@midnight-ntwrk/ledger-v8';
4
4
  import { WalletError } from './WalletError.js';
5
5
  /**
6
6
  * Unbound transaction type. This is a transaction that has no signatures and is not bound yet.
@@ -1,4 +1,4 @@
1
- import * as ledger from '@midnight-ntwrk/ledger-v7';
1
+ import * as ledger from '@midnight-ntwrk/ledger-v8';
2
2
  import { Data, Either, HashMap } from 'effect';
3
3
  import { ApplyTransactionError, UtxoNotFoundError } from './WalletError.js';
4
4
  export interface UtxoMeta {
@@ -1,4 +1,4 @@
1
- import * as ledger from '@midnight-ntwrk/ledger-v7';
1
+ import * as ledger from '@midnight-ntwrk/ledger-v8';
2
2
  import { Either, Types } from 'effect';
3
3
  import { NetworkId } from '@midnight-ntwrk/wallet-sdk-abstractions';
4
4
  import { Variant, VariantBuilder } from '@midnight-ntwrk/wallet-sdk-runtime/abstractions';
@@ -1,4 +1,4 @@
1
- import * as ledger from '@midnight-ntwrk/ledger-v7';
1
+ import * as ledger from '@midnight-ntwrk/ledger-v8';
2
2
  export type WalletError = OtherWalletError | InsufficientFundsError | AddressError | SyncWalletError | TransactingError | SignError | ApplyTransactionError | RollbackUtxoError | SpendUtxoError;
3
3
  declare const OtherWalletError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
4
4
  readonly _tag: "Wallet.Other";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midnight-ntwrk/wallet-sdk-unshielded-wallet",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -28,13 +28,13 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "@midnight-ntwrk/ledger-v7": "^7.0.2",
31
+ "@midnight-ntwrk/ledger-v8": "^8.0.2",
32
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",
33
+ "@midnight-ntwrk/wallet-sdk-address-format": "3.1.0",
34
+ "@midnight-ntwrk/wallet-sdk-capabilities": "3.2.0",
35
+ "@midnight-ntwrk/wallet-sdk-indexer-client": "1.2.0",
36
+ "@midnight-ntwrk/wallet-sdk-runtime": "1.0.2",
37
+ "@midnight-ntwrk/wallet-sdk-utilities": "1.1.0",
38
38
  "effect": "^3.19.19",
39
39
  "rxjs": "^7.8.2"
40
40
  },