@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
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,9 @@ export type { HexString } from '@novasamatech/scale';
|
|
|
13
13
|
export { assertEnumVariant, enumValue, fromHex, isEnumVariant, resultErr, resultOk, toHex, unwrapResultOrThrow, } from '@novasamatech/scale';
|
|
14
14
|
export { GenericError } from './protocol/commonCodecs.js';
|
|
15
15
|
export { CreateTransactionErr, LegacyTransaction, ProductAccountTransaction } from './protocol/v1/createTransaction.js';
|
|
16
|
-
export {
|
|
16
|
+
export type { AccountSelector } from './protocol/v1/accounts.js';
|
|
17
|
+
export { derivationIndexOf } from './protocol/v1/accounts.js';
|
|
18
|
+
export { AccountConnectionStatus, AccountId, ContextualAlias, CreateProofErr, DerivationIndex, DotNsIdentifier, GetAliasErr, GetUserIdErr, LegacyAccount, LoginErr, LoginResult, ProductAccount, ProductAccountId, ProductId, ProductProofContext, ProductProofContextSuffix, RawDerivationIndex, RequestCredentialsErr, RingLocation, RingLocationJunction, RingVrfProof, SignVrfErr, UserIdentity, VrfSignature, VrfTranscriptItem, } from './protocol/v1/accounts.js';
|
|
17
19
|
export { ChatActionPayload, ChatBotRegistrationErr, ChatBotRegistrationStatus, ChatMessageContent, ChatMessagePostingErr, ChatRoom, ChatRoomRegistrationErr, ChatRoomRegistrationResult, ChatRoomRegistrationStatus, ReceivedChatAction, } from './protocol/v1/chat.js';
|
|
18
20
|
export { DeriveEntropyErr } from './protocol/v1/deriveEntropy.js';
|
|
19
21
|
export { HandshakeErr } from './protocol/v1/handshake.js';
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,8 @@ export { assertEnumVariant, enumValue, fromHex, isEnumVariant, resultErr, result
|
|
|
7
7
|
// Codecs
|
|
8
8
|
export { GenericError } from './protocol/commonCodecs.js';
|
|
9
9
|
export { CreateTransactionErr, LegacyTransaction, ProductAccountTransaction } from './protocol/v1/createTransaction.js';
|
|
10
|
-
export {
|
|
10
|
+
export { derivationIndexOf } from './protocol/v1/accounts.js';
|
|
11
|
+
export { AccountConnectionStatus, AccountId, ContextualAlias, CreateProofErr, DerivationIndex, DotNsIdentifier, GetAliasErr, GetUserIdErr, LegacyAccount, LoginErr, LoginResult, ProductAccount, ProductAccountId, ProductId, ProductProofContext, ProductProofContextSuffix, RawDerivationIndex, RequestCredentialsErr, RingLocation, RingLocationJunction, RingVrfProof, SignVrfErr, UserIdentity, VrfSignature, VrfTranscriptItem, } from './protocol/v1/accounts.js';
|
|
11
12
|
export { ChatActionPayload, ChatBotRegistrationErr, ChatBotRegistrationStatus, ChatMessageContent, ChatMessagePostingErr, ChatRoom, ChatRoomRegistrationErr, ChatRoomRegistrationResult, ChatRoomRegistrationStatus, ReceivedChatAction, } from './protocol/v1/chat.js';
|
|
12
13
|
export { DeriveEntropyErr } from './protocol/v1/deriveEntropy.js';
|
|
13
14
|
export { HandshakeErr } from './protocol/v1/handshake.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** A 32-byte chain genesis hash used to identify the target chain. */
|
|
2
|
+
export declare const GenesisHash: import("@novasamatech/scale").HexCodec<number>;
|
|
2
3
|
export declare const GenericErr: import("scale-ts").Codec<{
|
|
3
4
|
reason: string;
|
|
4
5
|
}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Err, Hex } from '@novasamatech/scale';
|
|
2
2
|
import { Struct, str } from 'scale-ts';
|
|
3
|
-
|
|
3
|
+
/** A 32-byte chain genesis hash used to identify the target chain. */
|
|
4
|
+
export const GenesisHash = Hex(32);
|
|
4
5
|
export const GenericErr = Struct({
|
|
5
6
|
reason: str,
|
|
6
7
|
});
|
package/dist/protocol/impl.d.ts
CHANGED
|
@@ -94,14 +94,26 @@ export declare const hostApiProtocol: {
|
|
|
94
94
|
readonly v1: [Codec<undefined>, Codec<"disconnected" | "connected">, Codec<undefined>];
|
|
95
95
|
}>;
|
|
96
96
|
readonly host_account_get: VersionedProtocolRequest<{
|
|
97
|
-
readonly v1: [Codec<[string,
|
|
97
|
+
readonly v1: [Codec<[string, {
|
|
98
|
+
tag: "Index";
|
|
99
|
+
value: number;
|
|
100
|
+
} | {
|
|
101
|
+
tag: "Raw";
|
|
102
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
103
|
+
}]>, Codec<import("scale-ts").ResultPayload<{
|
|
98
104
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
99
105
|
}, import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::NotConnected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::Rejected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::DomainNotValid"> | import("@novasamatech/scale").CodecError<{
|
|
100
106
|
reason: string;
|
|
101
107
|
}, "RequestCredentialsErr::Unknown">>>];
|
|
102
108
|
}>;
|
|
103
109
|
readonly host_account_get_alias: VersionedProtocolRequest<{
|
|
104
|
-
readonly v1: [Codec<[[string,
|
|
110
|
+
readonly v1: [Codec<[[string, {
|
|
111
|
+
tag: "Index";
|
|
112
|
+
value: number;
|
|
113
|
+
} | {
|
|
114
|
+
tag: "Raw";
|
|
115
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
116
|
+
}], {
|
|
105
117
|
chainId: `0x${string}`;
|
|
106
118
|
junctions: ({
|
|
107
119
|
tag: "PalletInstance";
|
|
@@ -118,7 +130,13 @@ export declare const hostApiProtocol: {
|
|
|
118
130
|
}, "GetAliasErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "GetAliasErr::RingNotFound"> | import("@novasamatech/scale").CodecError<undefined, "GetAliasErr::NotMember">>>];
|
|
119
131
|
}>;
|
|
120
132
|
readonly host_account_create_proof: VersionedProtocolRequest<{
|
|
121
|
-
readonly v1: [Codec<[[string,
|
|
133
|
+
readonly v1: [Codec<[[string, {
|
|
134
|
+
tag: "Index";
|
|
135
|
+
value: number;
|
|
136
|
+
} | {
|
|
137
|
+
tag: "Raw";
|
|
138
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
139
|
+
}], {
|
|
122
140
|
chainId: `0x${string}`;
|
|
123
141
|
junctions: ({
|
|
124
142
|
tag: "PalletInstance";
|
|
@@ -149,8 +167,14 @@ export declare const hostApiProtocol: {
|
|
|
149
167
|
}>;
|
|
150
168
|
readonly host_create_transaction: VersionedProtocolRequest<{
|
|
151
169
|
readonly v1: [Codec<{
|
|
152
|
-
signer: [string,
|
|
153
|
-
|
|
170
|
+
signer: [string, {
|
|
171
|
+
tag: "Index";
|
|
172
|
+
value: number;
|
|
173
|
+
} | {
|
|
174
|
+
tag: "Raw";
|
|
175
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
176
|
+
}];
|
|
177
|
+
genesisHash: `0x${string}`;
|
|
154
178
|
callData: Uint8Array<ArrayBufferLike>;
|
|
155
179
|
extensions: {
|
|
156
180
|
id: string;
|
|
@@ -165,7 +189,7 @@ export declare const hostApiProtocol: {
|
|
|
165
189
|
readonly host_create_transaction_with_legacy_account: VersionedProtocolRequest<{
|
|
166
190
|
readonly v1: [Codec<{
|
|
167
191
|
signer: Uint8Array<ArrayBufferLike>;
|
|
168
|
-
genesisHash:
|
|
192
|
+
genesisHash: `0x${string}`;
|
|
169
193
|
callData: Uint8Array<ArrayBufferLike>;
|
|
170
194
|
extensions: {
|
|
171
195
|
id: string;
|
|
@@ -430,7 +454,13 @@ export declare const hostApiProtocol: {
|
|
|
430
454
|
}>, Codec<undefined>];
|
|
431
455
|
}>;
|
|
432
456
|
readonly remote_statement_store_create_proof: VersionedProtocolRequest<{
|
|
433
|
-
readonly v1: [Codec<[[string,
|
|
457
|
+
readonly v1: [Codec<[[string, {
|
|
458
|
+
tag: "Index";
|
|
459
|
+
value: number;
|
|
460
|
+
} | {
|
|
461
|
+
tag: "Raw";
|
|
462
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
463
|
+
}], {
|
|
434
464
|
proof: {
|
|
435
465
|
tag: "Sr25519";
|
|
436
466
|
value: {
|
|
@@ -529,10 +559,10 @@ export declare const hostApiProtocol: {
|
|
|
529
559
|
}, "GenericError">>>];
|
|
530
560
|
}>;
|
|
531
561
|
readonly remote_preimage_lookup_subscribe: VersionedProtocolSubscription<{
|
|
532
|
-
readonly v1: [
|
|
562
|
+
readonly v1: [import("@novasamatech/scale").HexCodec<undefined>, Codec<Uint8Array<ArrayBufferLike> | null>, Codec<undefined>];
|
|
533
563
|
}>;
|
|
534
564
|
readonly remote_preimage_submit: VersionedProtocolRequest<{
|
|
535
|
-
readonly v1: [
|
|
565
|
+
readonly v1: [import("@novasamatech/scale").BytesCodec<undefined>, Codec<import("scale-ts").ResultPayload<`0x${string}`, import("@novasamatech/scale").CodecError<{
|
|
536
566
|
reason: string;
|
|
537
567
|
}, "PreimageSubmitErr::Unknown">>>];
|
|
538
568
|
}>;
|
|
@@ -738,17 +768,17 @@ export declare const hostApiProtocol: {
|
|
|
738
768
|
}, "GenericError">>>];
|
|
739
769
|
}>;
|
|
740
770
|
readonly remote_chain_spec_genesis_hash: VersionedProtocolRequest<{
|
|
741
|
-
readonly v1: [
|
|
771
|
+
readonly v1: [import("@novasamatech/scale").HexCodec<undefined>, Codec<import("scale-ts").ResultPayload<`0x${string}`, import("@novasamatech/scale").CodecError<{
|
|
742
772
|
reason: string;
|
|
743
773
|
}, "GenericError">>>];
|
|
744
774
|
}>;
|
|
745
775
|
readonly remote_chain_spec_chain_name: VersionedProtocolRequest<{
|
|
746
|
-
readonly v1: [
|
|
776
|
+
readonly v1: [import("@novasamatech/scale").HexCodec<undefined>, Codec<import("scale-ts").ResultPayload<string, import("@novasamatech/scale").CodecError<{
|
|
747
777
|
reason: string;
|
|
748
778
|
}, "GenericError">>>];
|
|
749
779
|
}>;
|
|
750
780
|
readonly remote_chain_spec_properties: VersionedProtocolRequest<{
|
|
751
|
-
readonly v1: [
|
|
781
|
+
readonly v1: [import("@novasamatech/scale").HexCodec<undefined>, Codec<import("scale-ts").ResultPayload<string, import("@novasamatech/scale").CodecError<{
|
|
752
782
|
reason: string;
|
|
753
783
|
}, "GenericError">>>];
|
|
754
784
|
}>;
|
|
@@ -781,7 +811,7 @@ export declare const hostApiProtocol: {
|
|
|
781
811
|
}>, Codec<undefined>];
|
|
782
812
|
}>;
|
|
783
813
|
readonly host_derive_entropy: VersionedProtocolRequest<{
|
|
784
|
-
readonly v1: [
|
|
814
|
+
readonly v1: [import("@novasamatech/scale").BytesCodec<undefined>, Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<{
|
|
785
815
|
reason: string;
|
|
786
816
|
}, "DeriveEntropyErr::Unknown">>>];
|
|
787
817
|
}>;
|
|
@@ -799,7 +829,13 @@ export declare const hostApiProtocol: {
|
|
|
799
829
|
}>;
|
|
800
830
|
readonly host_sign_raw: VersionedProtocolRequest<{
|
|
801
831
|
readonly v1: [Codec<{
|
|
802
|
-
account: [string,
|
|
832
|
+
account: [string, {
|
|
833
|
+
tag: "Index";
|
|
834
|
+
value: number;
|
|
835
|
+
} | {
|
|
836
|
+
tag: "Raw";
|
|
837
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
838
|
+
}];
|
|
803
839
|
payload: {
|
|
804
840
|
tag: "Bytes";
|
|
805
841
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -816,7 +852,13 @@ export declare const hostApiProtocol: {
|
|
|
816
852
|
}>;
|
|
817
853
|
readonly host_sign_payload: VersionedProtocolRequest<{
|
|
818
854
|
readonly v1: [Codec<{
|
|
819
|
-
account: [string,
|
|
855
|
+
account: [string, {
|
|
856
|
+
tag: "Index";
|
|
857
|
+
value: number;
|
|
858
|
+
} | {
|
|
859
|
+
tag: "Raw";
|
|
860
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
861
|
+
}];
|
|
820
862
|
payload: {
|
|
821
863
|
blockHash: `0x${string}`;
|
|
822
864
|
blockNumber: `0x${string}`;
|
|
@@ -874,7 +916,13 @@ export declare const hostApiProtocol: {
|
|
|
874
916
|
amount: bigint;
|
|
875
917
|
source: {
|
|
876
918
|
tag: "ProductAccount";
|
|
877
|
-
value:
|
|
919
|
+
value: {
|
|
920
|
+
tag: "Index";
|
|
921
|
+
value: number;
|
|
922
|
+
} | {
|
|
923
|
+
tag: "Raw";
|
|
924
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
925
|
+
};
|
|
878
926
|
} | {
|
|
879
927
|
tag: "PrivateKey";
|
|
880
928
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -940,7 +988,13 @@ export declare const hostApiProtocol: {
|
|
|
940
988
|
value: undefined;
|
|
941
989
|
} | {
|
|
942
990
|
tag: "SmartContractAllowance";
|
|
943
|
-
value:
|
|
991
|
+
value: {
|
|
992
|
+
tag: "Index";
|
|
993
|
+
value: number;
|
|
994
|
+
} | {
|
|
995
|
+
tag: "Raw";
|
|
996
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
997
|
+
};
|
|
944
998
|
} | {
|
|
945
999
|
tag: "AutoSigning";
|
|
946
1000
|
value: undefined;
|
|
@@ -1026,7 +1080,13 @@ export declare const hostApiProtocol: {
|
|
|
1026
1080
|
}>;
|
|
1027
1081
|
readonly host_account_sign_vrf: VersionedProtocolRequest<{
|
|
1028
1082
|
readonly v1: [Codec<{
|
|
1029
|
-
account: [string,
|
|
1083
|
+
account: [string, {
|
|
1084
|
+
tag: "Index";
|
|
1085
|
+
value: number;
|
|
1086
|
+
} | {
|
|
1087
|
+
tag: "Raw";
|
|
1088
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
1089
|
+
}];
|
|
1030
1090
|
transcriptLabel: Uint8Array<ArrayBufferLike>;
|
|
1031
1091
|
items: {
|
|
1032
1092
|
label: Uint8Array<ArrayBufferLike>;
|
|
@@ -92,7 +92,13 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
92
92
|
}>> & Record<"host_account_connection_status_subscribe_interrupt", EnumCodec<{
|
|
93
93
|
readonly v1: Codec<undefined>;
|
|
94
94
|
}>> & Record<"host_account_connection_status_subscribe_stop", Codec<undefined>> & Record<"host_account_get_request", EnumCodec<{
|
|
95
|
-
readonly v1: Codec<[string,
|
|
95
|
+
readonly v1: Codec<[string, {
|
|
96
|
+
tag: "Index";
|
|
97
|
+
value: number;
|
|
98
|
+
} | {
|
|
99
|
+
tag: "Raw";
|
|
100
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
101
|
+
}]>;
|
|
96
102
|
}>> & Record<"host_account_get_response", EnumCodec<{
|
|
97
103
|
readonly v1: Codec<import("scale-ts").ResultPayload<{
|
|
98
104
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
@@ -100,7 +106,13 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
100
106
|
reason: string;
|
|
101
107
|
}, "RequestCredentialsErr::Unknown">>>;
|
|
102
108
|
}>> & Record<"host_account_get_alias_request", EnumCodec<{
|
|
103
|
-
readonly v1: Codec<[[string,
|
|
109
|
+
readonly v1: Codec<[[string, {
|
|
110
|
+
tag: "Index";
|
|
111
|
+
value: number;
|
|
112
|
+
} | {
|
|
113
|
+
tag: "Raw";
|
|
114
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
115
|
+
}], {
|
|
104
116
|
chainId: `0x${string}`;
|
|
105
117
|
junctions: ({
|
|
106
118
|
tag: "PalletInstance";
|
|
@@ -118,7 +130,13 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
118
130
|
reason: string;
|
|
119
131
|
}, "GetAliasErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "GetAliasErr::RingNotFound"> | import("@novasamatech/scale").CodecError<undefined, "GetAliasErr::NotMember">>>;
|
|
120
132
|
}>> & Record<"host_account_create_proof_request", EnumCodec<{
|
|
121
|
-
readonly v1: Codec<[[string,
|
|
133
|
+
readonly v1: Codec<[[string, {
|
|
134
|
+
tag: "Index";
|
|
135
|
+
value: number;
|
|
136
|
+
} | {
|
|
137
|
+
tag: "Raw";
|
|
138
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
139
|
+
}], {
|
|
122
140
|
chainId: `0x${string}`;
|
|
123
141
|
junctions: ({
|
|
124
142
|
tag: "PalletInstance";
|
|
@@ -151,8 +169,14 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
151
169
|
}, "RequestCredentialsErr::Unknown">>>;
|
|
152
170
|
}>> & Record<"host_create_transaction_request", EnumCodec<{
|
|
153
171
|
readonly v1: Codec<{
|
|
154
|
-
signer: [string,
|
|
155
|
-
|
|
172
|
+
signer: [string, {
|
|
173
|
+
tag: "Index";
|
|
174
|
+
value: number;
|
|
175
|
+
} | {
|
|
176
|
+
tag: "Raw";
|
|
177
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
178
|
+
}];
|
|
179
|
+
genesisHash: `0x${string}`;
|
|
156
180
|
callData: Uint8Array<ArrayBufferLike>;
|
|
157
181
|
extensions: {
|
|
158
182
|
id: string;
|
|
@@ -168,7 +192,7 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
168
192
|
}>> & Record<"host_create_transaction_with_legacy_account_request", EnumCodec<{
|
|
169
193
|
readonly v1: Codec<{
|
|
170
194
|
signer: Uint8Array<ArrayBufferLike>;
|
|
171
|
-
genesisHash:
|
|
195
|
+
genesisHash: `0x${string}`;
|
|
172
196
|
callData: Uint8Array<ArrayBufferLike>;
|
|
173
197
|
extensions: {
|
|
174
198
|
id: string;
|
|
@@ -451,7 +475,13 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
451
475
|
}>> & Record<"remote_statement_store_subscribe_interrupt", EnumCodec<{
|
|
452
476
|
readonly v1: Codec<undefined>;
|
|
453
477
|
}>> & Record<"remote_statement_store_subscribe_stop", Codec<undefined>> & Record<"remote_statement_store_create_proof_request", EnumCodec<{
|
|
454
|
-
readonly v1: Codec<[[string,
|
|
478
|
+
readonly v1: Codec<[[string, {
|
|
479
|
+
tag: "Index";
|
|
480
|
+
value: number;
|
|
481
|
+
} | {
|
|
482
|
+
tag: "Raw";
|
|
483
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
484
|
+
}], {
|
|
455
485
|
proof: {
|
|
456
486
|
tag: "Sr25519";
|
|
457
487
|
value: {
|
|
@@ -552,13 +582,13 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
552
582
|
reason: string;
|
|
553
583
|
}, "GenericError">>>;
|
|
554
584
|
}>> & Record<"remote_preimage_lookup_subscribe_start", EnumCodec<{
|
|
555
|
-
readonly v1:
|
|
585
|
+
readonly v1: import("@novasamatech/scale").HexCodec<undefined>;
|
|
556
586
|
}>> & Record<"remote_preimage_lookup_subscribe_receive", EnumCodec<{
|
|
557
587
|
readonly v1: Codec<Uint8Array<ArrayBufferLike> | null>;
|
|
558
588
|
}>> & Record<"remote_preimage_lookup_subscribe_interrupt", EnumCodec<{
|
|
559
589
|
readonly v1: Codec<undefined>;
|
|
560
590
|
}>> & Record<"remote_preimage_lookup_subscribe_stop", Codec<undefined>> & Record<"remote_preimage_submit_request", EnumCodec<{
|
|
561
|
-
readonly v1:
|
|
591
|
+
readonly v1: import("@novasamatech/scale").BytesCodec<undefined>;
|
|
562
592
|
}>> & Record<"remote_preimage_submit_response", EnumCodec<{
|
|
563
593
|
readonly v1: Codec<import("scale-ts").ResultPayload<`0x${string}`, import("@novasamatech/scale").CodecError<{
|
|
564
594
|
reason: string;
|
|
@@ -775,19 +805,19 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
775
805
|
reason: string;
|
|
776
806
|
}, "GenericError">>>;
|
|
777
807
|
}>> & Record<"remote_chain_spec_genesis_hash_request", EnumCodec<{
|
|
778
|
-
readonly v1:
|
|
808
|
+
readonly v1: import("@novasamatech/scale").HexCodec<undefined>;
|
|
779
809
|
}>> & Record<"remote_chain_spec_genesis_hash_response", EnumCodec<{
|
|
780
810
|
readonly v1: Codec<import("scale-ts").ResultPayload<`0x${string}`, import("@novasamatech/scale").CodecError<{
|
|
781
811
|
reason: string;
|
|
782
812
|
}, "GenericError">>>;
|
|
783
813
|
}>> & Record<"remote_chain_spec_chain_name_request", EnumCodec<{
|
|
784
|
-
readonly v1:
|
|
814
|
+
readonly v1: import("@novasamatech/scale").HexCodec<undefined>;
|
|
785
815
|
}>> & Record<"remote_chain_spec_chain_name_response", EnumCodec<{
|
|
786
816
|
readonly v1: Codec<import("scale-ts").ResultPayload<string, import("@novasamatech/scale").CodecError<{
|
|
787
817
|
reason: string;
|
|
788
818
|
}, "GenericError">>>;
|
|
789
819
|
}>> & Record<"remote_chain_spec_properties_request", EnumCodec<{
|
|
790
|
-
readonly v1:
|
|
820
|
+
readonly v1: import("@novasamatech/scale").HexCodec<undefined>;
|
|
791
821
|
}>> & Record<"remote_chain_spec_properties_response", EnumCodec<{
|
|
792
822
|
readonly v1: Codec<import("scale-ts").ResultPayload<string, import("@novasamatech/scale").CodecError<{
|
|
793
823
|
reason: string;
|
|
@@ -826,7 +856,7 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
826
856
|
}>> & Record<"host_theme_subscribe_interrupt", EnumCodec<{
|
|
827
857
|
readonly v1: Codec<undefined>;
|
|
828
858
|
}>> & Record<"host_theme_subscribe_stop", Codec<undefined>> & Record<"host_derive_entropy_request", EnumCodec<{
|
|
829
|
-
readonly v1:
|
|
859
|
+
readonly v1: import("@novasamatech/scale").BytesCodec<undefined>;
|
|
830
860
|
}>> & Record<"host_derive_entropy_response", EnumCodec<{
|
|
831
861
|
readonly v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<{
|
|
832
862
|
reason: string;
|
|
@@ -847,7 +877,13 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
847
877
|
}, "LoginErr::Unknown">>>;
|
|
848
878
|
}>> & Record<"host_sign_raw_request", EnumCodec<{
|
|
849
879
|
readonly v1: Codec<{
|
|
850
|
-
account: [string,
|
|
880
|
+
account: [string, {
|
|
881
|
+
tag: "Index";
|
|
882
|
+
value: number;
|
|
883
|
+
} | {
|
|
884
|
+
tag: "Raw";
|
|
885
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
886
|
+
}];
|
|
851
887
|
payload: {
|
|
852
888
|
tag: "Bytes";
|
|
853
889
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -865,7 +901,13 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
865
901
|
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::PermissionDenied"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
|
|
866
902
|
}>> & Record<"host_sign_payload_request", EnumCodec<{
|
|
867
903
|
readonly v1: Codec<{
|
|
868
|
-
account: [string,
|
|
904
|
+
account: [string, {
|
|
905
|
+
tag: "Index";
|
|
906
|
+
value: number;
|
|
907
|
+
} | {
|
|
908
|
+
tag: "Raw";
|
|
909
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
910
|
+
}];
|
|
869
911
|
payload: {
|
|
870
912
|
blockHash: `0x${string}`;
|
|
871
913
|
blockNumber: `0x${string}`;
|
|
@@ -927,7 +969,13 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
927
969
|
amount: bigint;
|
|
928
970
|
source: {
|
|
929
971
|
tag: "ProductAccount";
|
|
930
|
-
value:
|
|
972
|
+
value: {
|
|
973
|
+
tag: "Index";
|
|
974
|
+
value: number;
|
|
975
|
+
} | {
|
|
976
|
+
tag: "Raw";
|
|
977
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
978
|
+
};
|
|
931
979
|
} | {
|
|
932
980
|
tag: "PrivateKey";
|
|
933
981
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -998,7 +1046,13 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
998
1046
|
value: undefined;
|
|
999
1047
|
} | {
|
|
1000
1048
|
tag: "SmartContractAllowance";
|
|
1001
|
-
value:
|
|
1049
|
+
value: {
|
|
1050
|
+
tag: "Index";
|
|
1051
|
+
value: number;
|
|
1052
|
+
} | {
|
|
1053
|
+
tag: "Raw";
|
|
1054
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
1055
|
+
};
|
|
1002
1056
|
} | {
|
|
1003
1057
|
tag: "AutoSigning";
|
|
1004
1058
|
value: undefined;
|
|
@@ -1087,7 +1141,13 @@ export declare const MessagePayload: EnumCodec<Record<"host_handshake_request",
|
|
|
1087
1141
|
}, "GenericError">>>;
|
|
1088
1142
|
}>> & Record<"host_account_sign_vrf_request", EnumCodec<{
|
|
1089
1143
|
readonly v1: Codec<{
|
|
1090
|
-
account: [string,
|
|
1144
|
+
account: [string, {
|
|
1145
|
+
tag: "Index";
|
|
1146
|
+
value: number;
|
|
1147
|
+
} | {
|
|
1148
|
+
tag: "Raw";
|
|
1149
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
1150
|
+
}];
|
|
1091
1151
|
transcriptLabel: Uint8Array<ArrayBufferLike>;
|
|
1092
1152
|
items: {
|
|
1093
1153
|
label: Uint8Array<ArrayBufferLike>;
|
|
@@ -1277,7 +1337,13 @@ export declare const Message: Codec<{
|
|
|
1277
1337
|
tag: "host_account_get_request";
|
|
1278
1338
|
value: {
|
|
1279
1339
|
tag: "v1";
|
|
1280
|
-
value: [string,
|
|
1340
|
+
value: [string, {
|
|
1341
|
+
tag: "Index";
|
|
1342
|
+
value: number;
|
|
1343
|
+
} | {
|
|
1344
|
+
tag: "Raw";
|
|
1345
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
1346
|
+
}];
|
|
1281
1347
|
};
|
|
1282
1348
|
} | {
|
|
1283
1349
|
tag: "host_account_get_response";
|
|
@@ -1293,7 +1359,13 @@ export declare const Message: Codec<{
|
|
|
1293
1359
|
tag: "host_account_get_alias_request";
|
|
1294
1360
|
value: {
|
|
1295
1361
|
tag: "v1";
|
|
1296
|
-
value: [[string,
|
|
1362
|
+
value: [[string, {
|
|
1363
|
+
tag: "Index";
|
|
1364
|
+
value: number;
|
|
1365
|
+
} | {
|
|
1366
|
+
tag: "Raw";
|
|
1367
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
1368
|
+
}], {
|
|
1297
1369
|
chainId: `0x${string}`;
|
|
1298
1370
|
junctions: ({
|
|
1299
1371
|
tag: "PalletInstance";
|
|
@@ -1319,7 +1391,13 @@ export declare const Message: Codec<{
|
|
|
1319
1391
|
tag: "host_account_create_proof_request";
|
|
1320
1392
|
value: {
|
|
1321
1393
|
tag: "v1";
|
|
1322
|
-
value: [[string,
|
|
1394
|
+
value: [[string, {
|
|
1395
|
+
tag: "Index";
|
|
1396
|
+
value: number;
|
|
1397
|
+
} | {
|
|
1398
|
+
tag: "Raw";
|
|
1399
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
1400
|
+
}], {
|
|
1323
1401
|
chainId: `0x${string}`;
|
|
1324
1402
|
junctions: ({
|
|
1325
1403
|
tag: "PalletInstance";
|
|
@@ -1368,8 +1446,14 @@ export declare const Message: Codec<{
|
|
|
1368
1446
|
value: {
|
|
1369
1447
|
tag: "v1";
|
|
1370
1448
|
value: {
|
|
1371
|
-
signer: [string,
|
|
1372
|
-
|
|
1449
|
+
signer: [string, {
|
|
1450
|
+
tag: "Index";
|
|
1451
|
+
value: number;
|
|
1452
|
+
} | {
|
|
1453
|
+
tag: "Raw";
|
|
1454
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
1455
|
+
}];
|
|
1456
|
+
genesisHash: `0x${string}`;
|
|
1373
1457
|
callData: Uint8Array<ArrayBufferLike>;
|
|
1374
1458
|
extensions: {
|
|
1375
1459
|
id: string;
|
|
@@ -1393,7 +1477,7 @@ export declare const Message: Codec<{
|
|
|
1393
1477
|
tag: "v1";
|
|
1394
1478
|
value: {
|
|
1395
1479
|
signer: Uint8Array<ArrayBufferLike>;
|
|
1396
|
-
genesisHash:
|
|
1480
|
+
genesisHash: `0x${string}`;
|
|
1397
1481
|
callData: Uint8Array<ArrayBufferLike>;
|
|
1398
1482
|
extensions: {
|
|
1399
1483
|
id: string;
|
|
@@ -1784,7 +1868,13 @@ export declare const Message: Codec<{
|
|
|
1784
1868
|
tag: "remote_statement_store_create_proof_request";
|
|
1785
1869
|
value: {
|
|
1786
1870
|
tag: "v1";
|
|
1787
|
-
value: [[string,
|
|
1871
|
+
value: [[string, {
|
|
1872
|
+
tag: "Index";
|
|
1873
|
+
value: number;
|
|
1874
|
+
} | {
|
|
1875
|
+
tag: "Raw";
|
|
1876
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
1877
|
+
}], {
|
|
1788
1878
|
proof: {
|
|
1789
1879
|
tag: "Sr25519";
|
|
1790
1880
|
value: {
|
|
@@ -2369,7 +2459,13 @@ export declare const Message: Codec<{
|
|
|
2369
2459
|
value: {
|
|
2370
2460
|
tag: "v1";
|
|
2371
2461
|
value: {
|
|
2372
|
-
account: [string,
|
|
2462
|
+
account: [string, {
|
|
2463
|
+
tag: "Index";
|
|
2464
|
+
value: number;
|
|
2465
|
+
} | {
|
|
2466
|
+
tag: "Raw";
|
|
2467
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
2468
|
+
}];
|
|
2373
2469
|
payload: {
|
|
2374
2470
|
tag: "Bytes";
|
|
2375
2471
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -2395,7 +2491,13 @@ export declare const Message: Codec<{
|
|
|
2395
2491
|
value: {
|
|
2396
2492
|
tag: "v1";
|
|
2397
2493
|
value: {
|
|
2398
|
-
account: [string,
|
|
2494
|
+
account: [string, {
|
|
2495
|
+
tag: "Index";
|
|
2496
|
+
value: number;
|
|
2497
|
+
} | {
|
|
2498
|
+
tag: "Raw";
|
|
2499
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
2500
|
+
}];
|
|
2399
2501
|
payload: {
|
|
2400
2502
|
blockHash: `0x${string}`;
|
|
2401
2503
|
blockNumber: `0x${string}`;
|
|
@@ -2462,7 +2564,13 @@ export declare const Message: Codec<{
|
|
|
2462
2564
|
amount: bigint;
|
|
2463
2565
|
source: {
|
|
2464
2566
|
tag: "ProductAccount";
|
|
2465
|
-
value:
|
|
2567
|
+
value: {
|
|
2568
|
+
tag: "Index";
|
|
2569
|
+
value: number;
|
|
2570
|
+
} | {
|
|
2571
|
+
tag: "Raw";
|
|
2572
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
2573
|
+
};
|
|
2466
2574
|
} | {
|
|
2467
2575
|
tag: "PrivateKey";
|
|
2468
2576
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -2546,7 +2654,13 @@ export declare const Message: Codec<{
|
|
|
2546
2654
|
value: undefined;
|
|
2547
2655
|
} | {
|
|
2548
2656
|
tag: "SmartContractAllowance";
|
|
2549
|
-
value:
|
|
2657
|
+
value: {
|
|
2658
|
+
tag: "Index";
|
|
2659
|
+
value: number;
|
|
2660
|
+
} | {
|
|
2661
|
+
tag: "Raw";
|
|
2662
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
2663
|
+
};
|
|
2550
2664
|
} | {
|
|
2551
2665
|
tag: "AutoSigning";
|
|
2552
2666
|
value: undefined;
|
|
@@ -2659,7 +2773,13 @@ export declare const Message: Codec<{
|
|
|
2659
2773
|
value: {
|
|
2660
2774
|
tag: "v1";
|
|
2661
2775
|
value: {
|
|
2662
|
-
account: [string,
|
|
2776
|
+
account: [string, {
|
|
2777
|
+
tag: "Index";
|
|
2778
|
+
value: number;
|
|
2779
|
+
} | {
|
|
2780
|
+
tag: "Raw";
|
|
2781
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
2782
|
+
}];
|
|
2663
2783
|
transcriptLabel: Uint8Array<ArrayBufferLike>;
|
|
2664
2784
|
items: {
|
|
2665
2785
|
label: Uint8Array<ArrayBufferLike>;
|