@novasamatech/host-api 0.8.3 → 0.8.5
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,3 @@
|
|
|
1
|
-
export declare const Ed25519PrivateKey: import("scale-ts").Codec<Uint8Array<ArrayBufferLike>>;
|
|
2
1
|
export declare const Sr25519SecretKey: import("scale-ts").Codec<Uint8Array<ArrayBufferLike>>;
|
|
3
2
|
export declare const PaymentId: import("scale-ts").Codec<string>;
|
|
4
3
|
export declare const CoinPaymentPurseId: import("scale-ts").Codec<number>;
|
|
@@ -3,14 +3,13 @@ import { Bytes, Option, Result, Struct, Vector, _void, str, u128, u32 } from 'sc
|
|
|
3
3
|
import { GenericErr } from '../commonCodecs.js';
|
|
4
4
|
import { DerivationIndex } from './accounts.js';
|
|
5
5
|
// common types
|
|
6
|
-
export const
|
|
7
|
-
export const Sr25519SecretKey = Bytes(32);
|
|
6
|
+
export const Sr25519SecretKey = Bytes(64);
|
|
8
7
|
export const PaymentId = str;
|
|
9
8
|
// Optional purse selector (RFC 0017). `undefined` (None) targets MAIN_PURSE.
|
|
10
9
|
export const CoinPaymentPurseId = u32;
|
|
11
10
|
export const PaymentTopUpSource = Enum({
|
|
12
11
|
ProductAccount: DerivationIndex,
|
|
13
|
-
PrivateKey:
|
|
12
|
+
PrivateKey: Sr25519SecretKey,
|
|
14
13
|
Coins: Vector(Sr25519SecretKey),
|
|
15
14
|
});
|
|
16
15
|
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.8.
|
|
4
|
+
"version": "0.8.5",
|
|
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.8.
|
|
25
|
+
"@novasamatech/scale": "0.8.5",
|
|
26
26
|
"nanoevents": "9.1.0",
|
|
27
27
|
"nanoid": "5.1.11",
|
|
28
28
|
"neverthrow": "^8.2.0",
|