@midnight-ntwrk/midnight-js-types 1.0.0 → 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.
@@ -1,4 +1,4 @@
1
- import type { CoinInfo, CoinPublicKey } from '@midnight-ntwrk/ledger';
1
+ import type { CoinInfo, CoinPublicKey, EncPublicKey } from '@midnight-ntwrk/ledger';
2
2
  import type { BalancedTransaction, UnbalancedTransaction } from './midnight-types';
3
3
  /**
4
4
  * Interface for a wallet
@@ -8,6 +8,10 @@ export interface WalletProvider {
8
8
  * Wallet public coin key
9
9
  */
10
10
  readonly coinPublicKey: CoinPublicKey;
11
+ /**
12
+ * Wallet EncryptionPublicKey
13
+ */
14
+ readonly encryptionPublicKey: EncPublicKey;
11
15
  /**
12
16
  * Balances selects coins, creates spend proofs, and pays fees for a transaction with call proofs.
13
17
  * @param tx The transaction to balance.
@@ -1 +1 @@
1
- {"version":3,"file":"wallet-provider.d.ts","sourceRoot":"","sources":["../src/wallet-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEnF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEtC;;;;OAIG;IACH,SAAS,CAAC,EAAE,EAAE,qBAAqB,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC1F"}
1
+ {"version":3,"file":"wallet-provider.d.ts","sourceRoot":"","sources":["../src/wallet-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEnF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,mBAAmB,EAAE,YAAY,CAAC;IAE3C;;;;OAIG;IACH,SAAS,CAAC,EAAE,EAAE,qBAAqB,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC1F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midnight-ntwrk/midnight-js-types",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "Shared data types and interfaces for MidnightJS modules",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -13,7 +13,7 @@
13
13
  }
14
14
  },
15
15
  "repository": "git@github.com:midnight-ntwrk/artifacts",
16
- "packageManager": "yarn@4.8.1",
16
+ "packageManager": "yarn@4.9.1",
17
17
  "author": "IOHK",
18
18
  "license": "Apache-2.0",
19
19
  "scripts": {