@novasamatech/host-api 0.7.1 → 0.7.2-1

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.
@@ -2,7 +2,7 @@ export declare const Ed25519PrivateKey: import("scale-ts").Codec<Uint8Array<Arra
2
2
  export declare const PaymentId: import("scale-ts").Codec<string>;
3
3
  export declare const PaymentTopUpSource: import("scale-ts").Codec<{
4
4
  tag: "ProductAccount";
5
- value: [string, number];
5
+ value: number;
6
6
  } | {
7
7
  tag: "PrivateKey";
8
8
  value: Uint8Array<ArrayBufferLike>;
@@ -118,7 +118,7 @@ export declare const PaymentTopUpV1_request: import("scale-ts").Codec<{
118
118
  amount: bigint;
119
119
  source: {
120
120
  tag: "ProductAccount";
121
- value: [string, number];
121
+ value: number;
122
122
  } | {
123
123
  tag: "PrivateKey";
124
124
  value: Uint8Array<ArrayBufferLike>;
@@ -1,12 +1,12 @@
1
1
  import { Enum, ErrEnum } from '@novasamatech/scale';
2
2
  import { Bytes, Result, Struct, _void, str, u128 } from 'scale-ts';
3
3
  import { GenericErr } from '../commonCodecs.js';
4
- import { ProductAccountId } from './accounts.js';
4
+ import { DerivationIndex } from './accounts.js';
5
5
  // common types
6
6
  export const Ed25519PrivateKey = Bytes(32);
7
7
  export const PaymentId = str;
8
8
  export const PaymentTopUpSource = Enum({
9
- ProductAccount: ProductAccountId,
9
+ ProductAccount: DerivationIndex,
10
10
  PrivateKey: Ed25519PrivateKey,
11
11
  });
12
12
  export const PaymentBalance = Struct({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@novasamatech/host-api",
3
3
  "type": "module",
4
- "version": "0.7.1",
4
+ "version": "0.7.2-1",
5
5
  "description": "Host API: transport implementation for host - product integration.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -22,7 +22,7 @@
22
22
  "README.md"
23
23
  ],
24
24
  "dependencies": {
25
- "@novasamatech/scale": "0.7.1",
25
+ "@novasamatech/scale": "0.7.2-1",
26
26
  "nanoevents": "9.1.0",
27
27
  "nanoid": "5.1.9",
28
28
  "neverthrow": "^8.2.0",