@parity/truapi 0.3.0 → 0.3.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.
@@ -5,5 +5,5 @@ export type { VersionEntry } from "./data-types.js";
5
5
  * time. Mirrors the `truapi` crate version. Used by the explorer to render
6
6
  * the `main` selector label as `main (x.y.z)`.
7
7
  */
8
- export declare const packageVersion = "0.3.0";
8
+ export declare const packageVersion = "0.3.1";
9
9
  export declare const versions: VersionEntry[];
@@ -1,18 +1,21 @@
1
1
  // Auto-generated by scripts/regen-explorer-versions.mjs. Do not edit by hand.
2
2
  import { services as mainServices } from "../playground/codegen/services.js";
3
3
  import { types as mainTypes } from "./codegen/types.js";
4
- import { services as v0Services } from "./codegen/versions/0.3.0/services.js";
5
- import { types as v0Types } from "./codegen/versions/0.3.0/types.js";
6
- import { services as v1Services } from "./codegen/versions/0.2.0/services.js";
7
- import { types as v1Types } from "./codegen/versions/0.2.0/types.js";
4
+ import { services as v0Services } from "./codegen/versions/0.3.1/services.js";
5
+ import { types as v0Types } from "./codegen/versions/0.3.1/types.js";
6
+ import { services as v1Services } from "./codegen/versions/0.3.0/services.js";
7
+ import { types as v1Types } from "./codegen/versions/0.3.0/types.js";
8
+ import { services as v2Services } from "./codegen/versions/0.2.0/services.js";
9
+ import { types as v2Types } from "./codegen/versions/0.2.0/types.js";
8
10
  /**
9
11
  * Version string declared in `js/packages/truapi/package.json` at codegen
10
12
  * time. Mirrors the `truapi` crate version. Used by the explorer to render
11
13
  * the `main` selector label as `main (x.y.z)`.
12
14
  */
13
- export const packageVersion = "0.3.0";
15
+ export const packageVersion = "0.3.1";
14
16
  export const versions = [
15
17
  { id: "main", services: mainServices, types: mainTypes },
16
- { id: "0.3.0", services: v0Services, types: v0Types },
17
- { id: "0.2.0", services: v1Services, types: v1Types },
18
+ { id: "0.3.1", services: v0Services, types: v0Types },
19
+ { id: "0.3.0", services: v1Services, types: v1Types },
20
+ { id: "0.2.0", services: v2Services, types: v2Types },
18
21
  ];
@@ -2372,18 +2372,18 @@ export type HostPaymentTopUpError =
2372
2372
  tag: "InvalidSource";
2373
2373
  value?: undefined;
2374
2374
  }
2375
- /** Catch-all. */
2375
+ /** Some coins were claimed but the total fell short of the requested amount. */
2376
2376
  | {
2377
- tag: "Unknown";
2377
+ tag: "PartialPayment";
2378
2378
  value: {
2379
- reason: string;
2379
+ credited: Balance;
2380
2380
  };
2381
2381
  }
2382
- /** Some coins were claimed but the total fell short of the requested amount. */
2382
+ /** Catch-all. */
2383
2383
  | {
2384
- tag: "PartialPayment";
2384
+ tag: "Unknown";
2385
2385
  value: {
2386
- credited: Balance;
2386
+ reason: string;
2387
2387
  };
2388
2388
  };
2389
2389
  export declare const HostPaymentTopUpError: S.Codec<HostPaymentTopUpError>;
@@ -674,8 +674,8 @@ export const HostPaymentStatusSubscribeRequest = S.lazy(() => S.Struct({
674
674
  export const HostPaymentTopUpError = S.lazy(() => S.TaggedUnion({
675
675
  InsufficientFunds: S._void,
676
676
  InvalidSource: S._void,
677
- Unknown: S.Struct({ reason: S.str }),
678
677
  PartialPayment: S.Struct({ credited: Balance }),
678
+ Unknown: S.Struct({ reason: S.str }),
679
679
  }));
680
680
  export const HostPaymentTopUpRequest = S.lazy(() => S.Struct({
681
681
  into: S.Option(PaymentPurseId),