@novasamatech/host-api 0.8.12 → 0.9.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.
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/protocol/commonCodecs.d.ts +2 -1
- package/dist/protocol/commonCodecs.js +2 -1
- package/dist/protocol/impl.d.ts +78 -18
- package/dist/protocol/messageCodec.d.ts +150 -30
- package/dist/protocol/v1/accounts.d.ts +88 -11
- package/dist/protocol/v1/accounts.js +41 -7
- package/dist/protocol/v1/chainInteraction.d.ts +3 -3
- package/dist/protocol/v1/chainInteraction.js +14 -14
- package/dist/protocol/v1/chat.js +2 -2
- package/dist/protocol/v1/createTransaction.d.ts +18 -6
- package/dist/protocol/v1/createTransaction.js +4 -4
- package/dist/protocol/v1/deriveEntropy.d.ts +2 -2
- package/dist/protocol/v1/deriveEntropy.js +2 -2
- package/dist/protocol/v1/feature.js +3 -3
- package/dist/protocol/v1/localStorage.d.ts +1 -1
- package/dist/protocol/v1/localStorage.js +2 -2
- package/dist/protocol/v1/payments.d.ts +15 -3
- package/dist/protocol/v1/payments.js +3 -2
- package/dist/protocol/v1/preimage.d.ts +4 -4
- package/dist/protocol/v1/preimage.js +2 -2
- package/dist/protocol/v1/resourceAllocation.d.ts +14 -2
- package/dist/protocol/v1/resourceAllocation.js +1 -0
- package/dist/protocol/v1/sign.d.ts +28 -4
- package/dist/protocol/v1/sign.js +4 -4
- package/dist/protocol/v1/statementStore.d.ts +10 -4
- package/dist/protocol/v1/statementStore.js +2 -2
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const Topic: import("scale
|
|
2
|
-
export declare const Channel: import("scale
|
|
3
|
-
export declare const DecryptionKey: import("scale
|
|
1
|
+
export declare const Topic: import("@novasamatech/scale").BytesCodec<number>;
|
|
2
|
+
export declare const Channel: import("@novasamatech/scale").BytesCodec<number>;
|
|
3
|
+
export declare const DecryptionKey: import("@novasamatech/scale").BytesCodec<number>;
|
|
4
4
|
export declare const Statement: import("scale-ts").Codec<{
|
|
5
5
|
proof: {
|
|
6
6
|
tag: "Sr25519";
|
|
@@ -176,7 +176,13 @@ export declare const StatementProofErr: [import("scale-ts").Encoder<import("@nov
|
|
|
176
176
|
reason: string;
|
|
177
177
|
}, "StatementProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnableToSign"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnknownAccount">;
|
|
178
178
|
};
|
|
179
|
-
export declare const StatementStoreCreateProofV1_request: import("scale-ts").Codec<[[string,
|
|
179
|
+
export declare const StatementStoreCreateProofV1_request: import("scale-ts").Codec<[[string, {
|
|
180
|
+
tag: "Index";
|
|
181
|
+
value: number;
|
|
182
|
+
} | {
|
|
183
|
+
tag: "Raw";
|
|
184
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
185
|
+
}], {
|
|
180
186
|
proof: {
|
|
181
187
|
tag: "Sr25519";
|
|
182
188
|
value: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Enum, ErrEnum } from '@novasamatech/scale';
|
|
2
|
-
import {
|
|
1
|
+
import { Bytes, Enum, ErrEnum } from '@novasamatech/scale';
|
|
2
|
+
import { Option, Result, Struct, Tuple, Vector, _void, bool, u64 } from 'scale-ts';
|
|
3
3
|
import { GenericErr, GenericError } from '../commonCodecs.js';
|
|
4
4
|
import { ProductAccountId } from './accounts.js';
|
|
5
5
|
// structs definition
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novasamatech/host-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.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.
|
|
25
|
+
"@novasamatech/scale": "0.9.1",
|
|
26
26
|
"nanoevents": "10.0.0",
|
|
27
27
|
"nanoid": "6.0.0",
|
|
28
28
|
"neverthrow": "^8.2.0",
|