@novasamatech/host-api 0.5.1 → 0.5.3-0
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/README.md +3 -3
- package/dist/helpers.d.ts +0 -29
- package/dist/helpers.js +0 -30
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/protocol/commonCodecs.d.ts +3 -38
- package/dist/protocol/commonCodecs.js +2 -59
- package/dist/protocol/impl.d.ts +3 -3
- package/dist/protocol/impl.js +3 -3
- package/dist/protocol/messageCodec.d.ts +109 -493
- package/dist/protocol/messageCodec.js +3 -3
- package/dist/protocol/v1/accounts.d.ts +37 -209
- package/dist/protocol/v1/accounts.js +2 -1
- package/dist/protocol/v1/chat.d.ts +27 -87
- package/dist/protocol/v1/chat.js +2 -1
- package/dist/protocol/v1/createTransaction.d.ts +20 -116
- package/dist/protocol/v1/createTransaction.js +2 -1
- package/dist/protocol/v1/feature.d.ts +3 -7
- package/dist/protocol/v1/feature.js +2 -1
- package/dist/protocol/v1/handshake.d.ts +15 -75
- package/dist/protocol/v1/handshake.js +2 -1
- package/dist/protocol/v1/jsonRpc.d.ts +3 -7
- package/dist/protocol/v1/permission.d.ts +14 -54
- package/dist/protocol/v1/permission.js +2 -1
- package/dist/protocol/v1/sign.d.ts +18 -90
- package/dist/protocol/v1/sign.js +2 -1
- package/dist/protocol/v1/statementStore.d.ts +15 -75
- package/dist/protocol/v1/statementStore.js +2 -1
- package/dist/protocol/v1/storage.d.ts +20 -76
- package/dist/protocol/v1/storage.js +3 -2
- package/dist/transport.js +5 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { EnumCodec } from '@novasamatech/scale';
|
|
1
2
|
import type { Codec, CodecType } from 'scale-ts';
|
|
2
|
-
import type { EnumCodec } from './commonCodecs.js';
|
|
3
3
|
import type { HostApiProtocol, VersionedProtocolRequest, VersionedProtocolSubscription } from './impl.js';
|
|
4
4
|
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
5
5
|
type InferRequest<Method extends string, R extends VersionedProtocolRequest<any>> = Record<`${Method}_request`, R['request']> & Record<`${Method}_response`, R['response']>;
|
|
@@ -12,34 +12,18 @@ export type MessagePayloadSchema = CodecType<EnumCodec<HostApiPayloadFields>>;
|
|
|
12
12
|
export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumCodec<{
|
|
13
13
|
v1: Codec<number>;
|
|
14
14
|
}>> & Record<"handshake_response", EnumCodec<{
|
|
15
|
-
v1: Codec<import("scale-ts").ResultPayload<undefined, (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
payload: {
|
|
19
|
-
reason: string;
|
|
20
|
-
};
|
|
21
|
-
}) | (Error & {
|
|
22
|
-
name: "HandshakeErr::Timeout";
|
|
23
|
-
className: string;
|
|
24
|
-
payload: undefined;
|
|
25
|
-
}) | (Error & {
|
|
26
|
-
name: "HandshakeErr::UnsupportedProtocolVersion";
|
|
27
|
-
className: string;
|
|
28
|
-
payload: undefined;
|
|
29
|
-
})>>;
|
|
15
|
+
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
16
|
+
reason: string;
|
|
17
|
+
}, "HandshakeErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::Timeout"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::UnsupportedProtocolVersion">>>;
|
|
30
18
|
}>> & Record<"feature_request", EnumCodec<{
|
|
31
19
|
v1: Codec<{
|
|
32
20
|
tag: "Chain";
|
|
33
21
|
value: `0x${string}`;
|
|
34
22
|
}>;
|
|
35
23
|
}>> & Record<"feature_response", EnumCodec<{
|
|
36
|
-
v1: Codec<import("scale-ts").ResultPayload<boolean,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
payload: {
|
|
40
|
-
reason: string;
|
|
41
|
-
};
|
|
42
|
-
}>>;
|
|
24
|
+
v1: Codec<import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
|
|
25
|
+
reason: string;
|
|
26
|
+
}, "GenericError">>>;
|
|
43
27
|
}>> & Record<"permission_request_request", EnumCodec<{
|
|
44
28
|
v1: Codec<{
|
|
45
29
|
tag: "ChainSubmit";
|
|
@@ -55,109 +39,45 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
55
39
|
value: string[];
|
|
56
40
|
}>;
|
|
57
41
|
}>> & Record<"permission_request_response", EnumCodec<{
|
|
58
|
-
v1: Codec<import("scale-ts").ResultPayload<undefined, (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
payload: undefined;
|
|
62
|
-
}) | (Error & {
|
|
63
|
-
name: "PermissionErr::Unknown";
|
|
64
|
-
className: string;
|
|
65
|
-
payload: {
|
|
66
|
-
reason: string;
|
|
67
|
-
};
|
|
68
|
-
})>>;
|
|
42
|
+
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<undefined, "PermissionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
43
|
+
reason: string;
|
|
44
|
+
}, "PermissionErr::Unknown">>>;
|
|
69
45
|
}>> & Record<"storage_read_request", EnumCodec<{
|
|
70
46
|
v1: Codec<`0x${string}`>;
|
|
71
47
|
}>> & Record<"storage_read_response", EnumCodec<{
|
|
72
|
-
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
payload: {
|
|
76
|
-
reason: string;
|
|
77
|
-
};
|
|
78
|
-
}) | (Error & {
|
|
79
|
-
name: "StorageErr::Full";
|
|
80
|
-
className: string;
|
|
81
|
-
payload: undefined;
|
|
82
|
-
})>>;
|
|
48
|
+
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, import("@novasamatech/scale").CodecError<{
|
|
49
|
+
reason: string;
|
|
50
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
|
|
83
51
|
}>> & Record<"storage_write_request", EnumCodec<{
|
|
84
52
|
v1: Codec<[`0x${string}`, Uint8Array<ArrayBufferLike>]>;
|
|
85
53
|
}>> & Record<"storage_write_response", EnumCodec<{
|
|
86
|
-
v1: Codec<import("scale-ts").ResultPayload<undefined, (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
payload: {
|
|
90
|
-
reason: string;
|
|
91
|
-
};
|
|
92
|
-
}) | (Error & {
|
|
93
|
-
name: "StorageErr::Full";
|
|
94
|
-
className: string;
|
|
95
|
-
payload: undefined;
|
|
96
|
-
})>>;
|
|
54
|
+
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
55
|
+
reason: string;
|
|
56
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
|
|
97
57
|
}>> & Record<"storage_clear_request", EnumCodec<{
|
|
98
58
|
v1: Codec<`0x${string}`>;
|
|
99
59
|
}>> & Record<"storage_clear_response", EnumCodec<{
|
|
100
|
-
v1: Codec<import("scale-ts").ResultPayload<undefined, (
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
payload: {
|
|
104
|
-
reason: string;
|
|
105
|
-
};
|
|
106
|
-
}) | (Error & {
|
|
107
|
-
name: "StorageErr::Full";
|
|
108
|
-
className: string;
|
|
109
|
-
payload: undefined;
|
|
110
|
-
})>>;
|
|
60
|
+
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
61
|
+
reason: string;
|
|
62
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>>;
|
|
111
63
|
}>> & Record<"account_get_request", EnumCodec<{
|
|
112
64
|
v1: Codec<[string, number]>;
|
|
113
65
|
}>> & Record<"account_get_response", EnumCodec<{
|
|
114
66
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
115
67
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
116
68
|
name: string | undefined;
|
|
117
|
-
}, (
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
payload: undefined;
|
|
121
|
-
}) | (Error & {
|
|
122
|
-
name: "RequestCredentialsErr::Rejected";
|
|
123
|
-
className: string;
|
|
124
|
-
payload: undefined;
|
|
125
|
-
}) | (Error & {
|
|
126
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
127
|
-
className: string;
|
|
128
|
-
payload: undefined;
|
|
129
|
-
}) | (Error & {
|
|
130
|
-
name: "RequestCredentialsErr::Unknown";
|
|
131
|
-
className: string;
|
|
132
|
-
payload: {
|
|
133
|
-
reason: string;
|
|
134
|
-
};
|
|
135
|
-
})>>;
|
|
69
|
+
}, 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<{
|
|
70
|
+
reason: string;
|
|
71
|
+
}, "RequestCredentialsErr::Unknown">>>;
|
|
136
72
|
}>> & Record<"account_get_alias_request", EnumCodec<{
|
|
137
73
|
v1: Codec<[string, number]>;
|
|
138
74
|
}>> & Record<"account_get_alias_response", EnumCodec<{
|
|
139
75
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
140
76
|
context: Uint8Array<ArrayBufferLike>;
|
|
141
77
|
alias: Uint8Array<ArrayBufferLike>;
|
|
142
|
-
}, (
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
payload: undefined;
|
|
146
|
-
}) | (Error & {
|
|
147
|
-
name: "RequestCredentialsErr::Rejected";
|
|
148
|
-
className: string;
|
|
149
|
-
payload: undefined;
|
|
150
|
-
}) | (Error & {
|
|
151
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
152
|
-
className: string;
|
|
153
|
-
payload: undefined;
|
|
154
|
-
}) | (Error & {
|
|
155
|
-
name: "RequestCredentialsErr::Unknown";
|
|
156
|
-
className: string;
|
|
157
|
-
payload: {
|
|
158
|
-
reason: string;
|
|
159
|
-
};
|
|
160
|
-
})>>;
|
|
78
|
+
}, 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<{
|
|
79
|
+
reason: string;
|
|
80
|
+
}, "RequestCredentialsErr::Unknown">>>;
|
|
161
81
|
}>> & Record<"account_create_proof_request", EnumCodec<{
|
|
162
82
|
v1: Codec<[[string, number], {
|
|
163
83
|
genesisHash: `0x${string}`;
|
|
@@ -167,90 +87,30 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
167
87
|
} | undefined;
|
|
168
88
|
}, Uint8Array<ArrayBufferLike>]>;
|
|
169
89
|
}>> & Record<"account_create_proof_response", EnumCodec<{
|
|
170
|
-
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
payload: undefined;
|
|
174
|
-
}) | (Error & {
|
|
175
|
-
name: "CreateProofErr::Unknown";
|
|
176
|
-
className: string;
|
|
177
|
-
payload: {
|
|
178
|
-
reason: string;
|
|
179
|
-
};
|
|
180
|
-
}) | (Error & {
|
|
181
|
-
name: "CreateProofErr::RingNotFound";
|
|
182
|
-
className: string;
|
|
183
|
-
payload: undefined;
|
|
184
|
-
})>>;
|
|
90
|
+
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
91
|
+
reason: string;
|
|
92
|
+
}, "CreateProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::RingNotFound">>>;
|
|
185
93
|
}>> & Record<"get_non_product_accounts_request", EnumCodec<{
|
|
186
94
|
v1: Codec<undefined>;
|
|
187
95
|
}>> & Record<"get_non_product_accounts_response", EnumCodec<{
|
|
188
96
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
189
97
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
190
98
|
name: string | undefined;
|
|
191
|
-
}[], (
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
payload: undefined;
|
|
195
|
-
}) | (Error & {
|
|
196
|
-
name: "RequestCredentialsErr::Rejected";
|
|
197
|
-
className: string;
|
|
198
|
-
payload: undefined;
|
|
199
|
-
}) | (Error & {
|
|
200
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
201
|
-
className: string;
|
|
202
|
-
payload: undefined;
|
|
203
|
-
}) | (Error & {
|
|
204
|
-
name: "RequestCredentialsErr::Unknown";
|
|
205
|
-
className: string;
|
|
206
|
-
payload: {
|
|
207
|
-
reason: string;
|
|
208
|
-
};
|
|
209
|
-
})>>;
|
|
99
|
+
}[], 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
|
+
reason: string;
|
|
101
|
+
}, "RequestCredentialsErr::Unknown">>>;
|
|
210
102
|
}>> & Record<"create_transaction_request", EnumCodec<{
|
|
211
103
|
v1: Codec<[[string, number], import("./v1/createTransaction.js").TxPayloadV1Public]>;
|
|
212
104
|
}>> & Record<"create_transaction_response", EnumCodec<{
|
|
213
|
-
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
payload: undefined;
|
|
217
|
-
}) | (Error & {
|
|
218
|
-
name: "CreateTransactionErr::Unknown";
|
|
219
|
-
className: string;
|
|
220
|
-
payload: {
|
|
221
|
-
reason: string;
|
|
222
|
-
};
|
|
223
|
-
}) | (Error & {
|
|
224
|
-
name: "CreateTransactionErr::FailedToDecode";
|
|
225
|
-
className: string;
|
|
226
|
-
payload: undefined;
|
|
227
|
-
}) | (Error & {
|
|
228
|
-
name: "CreateTransactionErr::NotSupported";
|
|
229
|
-
className: string;
|
|
230
|
-
payload: string;
|
|
231
|
-
})>>;
|
|
105
|
+
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
106
|
+
reason: string;
|
|
107
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>;
|
|
232
108
|
}>> & Record<"create_transaction_with_non_product_account_request", EnumCodec<{
|
|
233
109
|
v1: Codec<import("./v1/createTransaction.js").TxPayloadV1Public>;
|
|
234
110
|
}>> & Record<"create_transaction_with_non_product_account_response", EnumCodec<{
|
|
235
|
-
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
payload: undefined;
|
|
239
|
-
}) | (Error & {
|
|
240
|
-
name: "CreateTransactionErr::Unknown";
|
|
241
|
-
className: string;
|
|
242
|
-
payload: {
|
|
243
|
-
reason: string;
|
|
244
|
-
};
|
|
245
|
-
}) | (Error & {
|
|
246
|
-
name: "CreateTransactionErr::FailedToDecode";
|
|
247
|
-
className: string;
|
|
248
|
-
payload: undefined;
|
|
249
|
-
}) | (Error & {
|
|
250
|
-
name: "CreateTransactionErr::NotSupported";
|
|
251
|
-
className: string;
|
|
252
|
-
payload: string;
|
|
253
|
-
})>>;
|
|
111
|
+
v1: Codec<import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
112
|
+
reason: string;
|
|
113
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>>;
|
|
254
114
|
}>> & Record<"sign_raw_request", EnumCodec<{
|
|
255
115
|
v1: Codec<{
|
|
256
116
|
address: string;
|
|
@@ -266,21 +126,9 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
266
126
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
267
127
|
signature: `0x${string}`;
|
|
268
128
|
signedTransaction: `0x${string}` | undefined;
|
|
269
|
-
}, (
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
payload: undefined;
|
|
273
|
-
}) | (Error & {
|
|
274
|
-
name: "SigningErr::Unknown";
|
|
275
|
-
className: string;
|
|
276
|
-
payload: {
|
|
277
|
-
reason: string;
|
|
278
|
-
};
|
|
279
|
-
}) | (Error & {
|
|
280
|
-
name: "SigningErr::FailedToDecode";
|
|
281
|
-
className: string;
|
|
282
|
-
payload: undefined;
|
|
283
|
-
})>>;
|
|
129
|
+
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
130
|
+
reason: string;
|
|
131
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
|
|
284
132
|
}>> & Record<"sign_payload_request", EnumCodec<{
|
|
285
133
|
v1: Codec<{
|
|
286
134
|
address: string;
|
|
@@ -304,34 +152,18 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
304
152
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
305
153
|
signature: `0x${string}`;
|
|
306
154
|
signedTransaction: `0x${string}` | undefined;
|
|
307
|
-
}, (
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
payload: undefined;
|
|
311
|
-
}) | (Error & {
|
|
312
|
-
name: "SigningErr::Unknown";
|
|
313
|
-
className: string;
|
|
314
|
-
payload: {
|
|
315
|
-
reason: string;
|
|
316
|
-
};
|
|
317
|
-
}) | (Error & {
|
|
318
|
-
name: "SigningErr::FailedToDecode";
|
|
319
|
-
className: string;
|
|
320
|
-
payload: undefined;
|
|
321
|
-
})>>;
|
|
155
|
+
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
156
|
+
reason: string;
|
|
157
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>>;
|
|
322
158
|
}>> & Record<"chat_create_contact_request", EnumCodec<{
|
|
323
159
|
v1: Codec<{
|
|
324
160
|
name: string;
|
|
325
161
|
icon: string;
|
|
326
162
|
}>;
|
|
327
163
|
}>> & Record<"chat_create_contact_response", EnumCodec<{
|
|
328
|
-
v1: Codec<import("scale-ts").ResultPayload<"New" | "Exists",
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
payload: {
|
|
332
|
-
reason: string;
|
|
333
|
-
};
|
|
334
|
-
}>>;
|
|
164
|
+
v1: Codec<import("scale-ts").ResultPayload<"New" | "Exists", import("@novasamatech/scale").CodecError<{
|
|
165
|
+
reason: string;
|
|
166
|
+
}, "ChatContactRegistrationErr::Unknown">>>;
|
|
335
167
|
}>> & Record<"chat_post_message_request", EnumCodec<{
|
|
336
168
|
v1: Codec<{
|
|
337
169
|
tag: "Text";
|
|
@@ -379,17 +211,9 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
379
211
|
}>> & Record<"chat_post_message_response", EnumCodec<{
|
|
380
212
|
v1: Codec<import("scale-ts").ResultPayload<{
|
|
381
213
|
messageId: string;
|
|
382
|
-
}, (
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
payload: {
|
|
386
|
-
reason: string;
|
|
387
|
-
};
|
|
388
|
-
}) | (Error & {
|
|
389
|
-
name: "ChatMessagePostingErr::MessageTooLarge";
|
|
390
|
-
className: string;
|
|
391
|
-
payload: undefined;
|
|
392
|
-
})>>;
|
|
214
|
+
}, import("@novasamatech/scale").CodecError<{
|
|
215
|
+
reason: string;
|
|
216
|
+
}, "ChatMessagePostingErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatMessagePostingErr::MessageTooLarge">>>;
|
|
393
217
|
}>> & Record<"chat_action_subscribe_start", EnumCodec<{
|
|
394
218
|
v1: Codec<undefined>;
|
|
395
219
|
}>> & Record<"chat_action_subscribe_receive", EnumCodec<{
|
|
@@ -505,31 +329,15 @@ export declare const MessagePayload: EnumCodec<Record<"handshake_request", EnumC
|
|
|
505
329
|
blockHash: Uint8Array<ArrayBufferLike>;
|
|
506
330
|
event: bigint;
|
|
507
331
|
};
|
|
508
|
-
}, (
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
payload: {
|
|
512
|
-
reason: string;
|
|
513
|
-
};
|
|
514
|
-
}) | (Error & {
|
|
515
|
-
name: "StatementProofErr::UnableToSign";
|
|
516
|
-
className: string;
|
|
517
|
-
payload: undefined;
|
|
518
|
-
}) | (Error & {
|
|
519
|
-
name: "StatementProofErr::UnknownAccount";
|
|
520
|
-
className: string;
|
|
521
|
-
payload: undefined;
|
|
522
|
-
})>>;
|
|
332
|
+
}, import("@novasamatech/scale").CodecError<{
|
|
333
|
+
reason: string;
|
|
334
|
+
}, "StatementProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnableToSign"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnknownAccount">>>;
|
|
523
335
|
}>> & Record<"jsonrpc_message_send_request", EnumCodec<{
|
|
524
336
|
v1: Codec<[`0x${string}`, string]>;
|
|
525
337
|
}>> & Record<"jsonrpc_message_send_response", EnumCodec<{
|
|
526
|
-
v1: Codec<import("scale-ts").ResultPayload<undefined,
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
payload: {
|
|
530
|
-
reason: string;
|
|
531
|
-
};
|
|
532
|
-
}>>;
|
|
338
|
+
v1: Codec<import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
339
|
+
reason: string;
|
|
340
|
+
}, "GenericError">>>;
|
|
533
341
|
}>> & Record<"jsonrpc_message_subscribe_start", EnumCodec<{
|
|
534
342
|
v1: Codec<`0x${string}`>;
|
|
535
343
|
}>> & Record<"jsonrpc_message_subscribe_receive", EnumCodec<{
|
|
@@ -547,21 +355,9 @@ export declare const Message: Codec<{
|
|
|
547
355
|
tag: "handshake_response";
|
|
548
356
|
value: {
|
|
549
357
|
tag: "v1";
|
|
550
|
-
value: import("scale-ts").ResultPayload<undefined, (
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
payload: {
|
|
554
|
-
reason: string;
|
|
555
|
-
};
|
|
556
|
-
}) | (Error & {
|
|
557
|
-
name: "HandshakeErr::Timeout";
|
|
558
|
-
className: string;
|
|
559
|
-
payload: undefined;
|
|
560
|
-
}) | (Error & {
|
|
561
|
-
name: "HandshakeErr::UnsupportedProtocolVersion";
|
|
562
|
-
className: string;
|
|
563
|
-
payload: undefined;
|
|
564
|
-
})>;
|
|
358
|
+
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
359
|
+
reason: string;
|
|
360
|
+
}, "HandshakeErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::Timeout"> | import("@novasamatech/scale").CodecError<undefined, "HandshakeErr::UnsupportedProtocolVersion">>;
|
|
565
361
|
};
|
|
566
362
|
} | {
|
|
567
363
|
tag: "feature_request";
|
|
@@ -576,13 +372,9 @@ export declare const Message: Codec<{
|
|
|
576
372
|
tag: "feature_response";
|
|
577
373
|
value: {
|
|
578
374
|
tag: "v1";
|
|
579
|
-
value: import("scale-ts").ResultPayload<boolean,
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
payload: {
|
|
583
|
-
reason: string;
|
|
584
|
-
};
|
|
585
|
-
}>;
|
|
375
|
+
value: import("scale-ts").ResultPayload<boolean, import("@novasamatech/scale").CodecError<{
|
|
376
|
+
reason: string;
|
|
377
|
+
}, "GenericError">>;
|
|
586
378
|
};
|
|
587
379
|
} | {
|
|
588
380
|
tag: "permission_request_request";
|
|
@@ -606,17 +398,9 @@ export declare const Message: Codec<{
|
|
|
606
398
|
tag: "permission_request_response";
|
|
607
399
|
value: {
|
|
608
400
|
tag: "v1";
|
|
609
|
-
value: import("scale-ts").ResultPayload<undefined, (
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
payload: undefined;
|
|
613
|
-
}) | (Error & {
|
|
614
|
-
name: "PermissionErr::Unknown";
|
|
615
|
-
className: string;
|
|
616
|
-
payload: {
|
|
617
|
-
reason: string;
|
|
618
|
-
};
|
|
619
|
-
})>;
|
|
401
|
+
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<undefined, "PermissionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
402
|
+
reason: string;
|
|
403
|
+
}, "PermissionErr::Unknown">>;
|
|
620
404
|
};
|
|
621
405
|
} | {
|
|
622
406
|
tag: "storage_read_request";
|
|
@@ -628,17 +412,9 @@ export declare const Message: Codec<{
|
|
|
628
412
|
tag: "storage_read_response";
|
|
629
413
|
value: {
|
|
630
414
|
tag: "v1";
|
|
631
|
-
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, (
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
payload: {
|
|
635
|
-
reason: string;
|
|
636
|
-
};
|
|
637
|
-
}) | (Error & {
|
|
638
|
-
name: "StorageErr::Full";
|
|
639
|
-
className: string;
|
|
640
|
-
payload: undefined;
|
|
641
|
-
})>;
|
|
415
|
+
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike> | undefined, import("@novasamatech/scale").CodecError<{
|
|
416
|
+
reason: string;
|
|
417
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
|
|
642
418
|
};
|
|
643
419
|
} | {
|
|
644
420
|
tag: "storage_write_request";
|
|
@@ -650,17 +426,9 @@ export declare const Message: Codec<{
|
|
|
650
426
|
tag: "storage_write_response";
|
|
651
427
|
value: {
|
|
652
428
|
tag: "v1";
|
|
653
|
-
value: import("scale-ts").ResultPayload<undefined, (
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
payload: {
|
|
657
|
-
reason: string;
|
|
658
|
-
};
|
|
659
|
-
}) | (Error & {
|
|
660
|
-
name: "StorageErr::Full";
|
|
661
|
-
className: string;
|
|
662
|
-
payload: undefined;
|
|
663
|
-
})>;
|
|
429
|
+
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
430
|
+
reason: string;
|
|
431
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
|
|
664
432
|
};
|
|
665
433
|
} | {
|
|
666
434
|
tag: "storage_clear_request";
|
|
@@ -672,17 +440,9 @@ export declare const Message: Codec<{
|
|
|
672
440
|
tag: "storage_clear_response";
|
|
673
441
|
value: {
|
|
674
442
|
tag: "v1";
|
|
675
|
-
value: import("scale-ts").ResultPayload<undefined, (
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
payload: {
|
|
679
|
-
reason: string;
|
|
680
|
-
};
|
|
681
|
-
}) | (Error & {
|
|
682
|
-
name: "StorageErr::Full";
|
|
683
|
-
className: string;
|
|
684
|
-
payload: undefined;
|
|
685
|
-
})>;
|
|
443
|
+
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
444
|
+
reason: string;
|
|
445
|
+
}, "StorageErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StorageErr::Full">>;
|
|
686
446
|
};
|
|
687
447
|
} | {
|
|
688
448
|
tag: "account_get_request";
|
|
@@ -697,25 +457,9 @@ export declare const Message: Codec<{
|
|
|
697
457
|
value: import("scale-ts").ResultPayload<{
|
|
698
458
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
699
459
|
name: string | undefined;
|
|
700
|
-
}, (
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
payload: undefined;
|
|
704
|
-
}) | (Error & {
|
|
705
|
-
name: "RequestCredentialsErr::Rejected";
|
|
706
|
-
className: string;
|
|
707
|
-
payload: undefined;
|
|
708
|
-
}) | (Error & {
|
|
709
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
710
|
-
className: string;
|
|
711
|
-
payload: undefined;
|
|
712
|
-
}) | (Error & {
|
|
713
|
-
name: "RequestCredentialsErr::Unknown";
|
|
714
|
-
className: string;
|
|
715
|
-
payload: {
|
|
716
|
-
reason: string;
|
|
717
|
-
};
|
|
718
|
-
})>;
|
|
460
|
+
}, 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<{
|
|
461
|
+
reason: string;
|
|
462
|
+
}, "RequestCredentialsErr::Unknown">>;
|
|
719
463
|
};
|
|
720
464
|
} | {
|
|
721
465
|
tag: "account_get_alias_request";
|
|
@@ -730,25 +474,9 @@ export declare const Message: Codec<{
|
|
|
730
474
|
value: import("scale-ts").ResultPayload<{
|
|
731
475
|
context: Uint8Array<ArrayBufferLike>;
|
|
732
476
|
alias: Uint8Array<ArrayBufferLike>;
|
|
733
|
-
}, (
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
payload: undefined;
|
|
737
|
-
}) | (Error & {
|
|
738
|
-
name: "RequestCredentialsErr::Rejected";
|
|
739
|
-
className: string;
|
|
740
|
-
payload: undefined;
|
|
741
|
-
}) | (Error & {
|
|
742
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
743
|
-
className: string;
|
|
744
|
-
payload: undefined;
|
|
745
|
-
}) | (Error & {
|
|
746
|
-
name: "RequestCredentialsErr::Unknown";
|
|
747
|
-
className: string;
|
|
748
|
-
payload: {
|
|
749
|
-
reason: string;
|
|
750
|
-
};
|
|
751
|
-
})>;
|
|
477
|
+
}, 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<{
|
|
478
|
+
reason: string;
|
|
479
|
+
}, "RequestCredentialsErr::Unknown">>;
|
|
752
480
|
};
|
|
753
481
|
} | {
|
|
754
482
|
tag: "account_create_proof_request";
|
|
@@ -766,21 +494,9 @@ export declare const Message: Codec<{
|
|
|
766
494
|
tag: "account_create_proof_response";
|
|
767
495
|
value: {
|
|
768
496
|
tag: "v1";
|
|
769
|
-
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
payload: undefined;
|
|
773
|
-
}) | (Error & {
|
|
774
|
-
name: "CreateProofErr::Unknown";
|
|
775
|
-
className: string;
|
|
776
|
-
payload: {
|
|
777
|
-
reason: string;
|
|
778
|
-
};
|
|
779
|
-
}) | (Error & {
|
|
780
|
-
name: "CreateProofErr::RingNotFound";
|
|
781
|
-
className: string;
|
|
782
|
-
payload: undefined;
|
|
783
|
-
})>;
|
|
497
|
+
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
498
|
+
reason: string;
|
|
499
|
+
}, "CreateProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::RingNotFound">>;
|
|
784
500
|
};
|
|
785
501
|
} | {
|
|
786
502
|
tag: "get_non_product_accounts_request";
|
|
@@ -795,25 +511,9 @@ export declare const Message: Codec<{
|
|
|
795
511
|
value: import("scale-ts").ResultPayload<{
|
|
796
512
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
797
513
|
name: string | undefined;
|
|
798
|
-
}[], (
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
payload: undefined;
|
|
802
|
-
}) | (Error & {
|
|
803
|
-
name: "RequestCredentialsErr::Rejected";
|
|
804
|
-
className: string;
|
|
805
|
-
payload: undefined;
|
|
806
|
-
}) | (Error & {
|
|
807
|
-
name: "RequestCredentialsErr::DomainNotValid";
|
|
808
|
-
className: string;
|
|
809
|
-
payload: undefined;
|
|
810
|
-
}) | (Error & {
|
|
811
|
-
name: "RequestCredentialsErr::Unknown";
|
|
812
|
-
className: string;
|
|
813
|
-
payload: {
|
|
814
|
-
reason: string;
|
|
815
|
-
};
|
|
816
|
-
})>;
|
|
514
|
+
}[], 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<{
|
|
515
|
+
reason: string;
|
|
516
|
+
}, "RequestCredentialsErr::Unknown">>;
|
|
817
517
|
};
|
|
818
518
|
} | {
|
|
819
519
|
tag: "create_transaction_request";
|
|
@@ -825,25 +525,9 @@ export declare const Message: Codec<{
|
|
|
825
525
|
tag: "create_transaction_response";
|
|
826
526
|
value: {
|
|
827
527
|
tag: "v1";
|
|
828
|
-
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
payload: undefined;
|
|
832
|
-
}) | (Error & {
|
|
833
|
-
name: "CreateTransactionErr::Unknown";
|
|
834
|
-
className: string;
|
|
835
|
-
payload: {
|
|
836
|
-
reason: string;
|
|
837
|
-
};
|
|
838
|
-
}) | (Error & {
|
|
839
|
-
name: "CreateTransactionErr::FailedToDecode";
|
|
840
|
-
className: string;
|
|
841
|
-
payload: undefined;
|
|
842
|
-
}) | (Error & {
|
|
843
|
-
name: "CreateTransactionErr::NotSupported";
|
|
844
|
-
className: string;
|
|
845
|
-
payload: string;
|
|
846
|
-
})>;
|
|
528
|
+
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
529
|
+
reason: string;
|
|
530
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>;
|
|
847
531
|
};
|
|
848
532
|
} | {
|
|
849
533
|
tag: "create_transaction_with_non_product_account_request";
|
|
@@ -855,25 +539,9 @@ export declare const Message: Codec<{
|
|
|
855
539
|
tag: "create_transaction_with_non_product_account_response";
|
|
856
540
|
value: {
|
|
857
541
|
tag: "v1";
|
|
858
|
-
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, (
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
payload: undefined;
|
|
862
|
-
}) | (Error & {
|
|
863
|
-
name: "CreateTransactionErr::Unknown";
|
|
864
|
-
className: string;
|
|
865
|
-
payload: {
|
|
866
|
-
reason: string;
|
|
867
|
-
};
|
|
868
|
-
}) | (Error & {
|
|
869
|
-
name: "CreateTransactionErr::FailedToDecode";
|
|
870
|
-
className: string;
|
|
871
|
-
payload: undefined;
|
|
872
|
-
}) | (Error & {
|
|
873
|
-
name: "CreateTransactionErr::NotSupported";
|
|
874
|
-
className: string;
|
|
875
|
-
payload: string;
|
|
876
|
-
})>;
|
|
542
|
+
value: import("scale-ts").ResultPayload<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
543
|
+
reason: string;
|
|
544
|
+
}, "CreateTransactionErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateTransactionErr::FailedToDecode"> | import("@novasamatech/scale").CodecError<string, "CreateTransactionErr::NotSupported">>;
|
|
877
545
|
};
|
|
878
546
|
} | {
|
|
879
547
|
tag: "sign_raw_request";
|
|
@@ -897,21 +565,9 @@ export declare const Message: Codec<{
|
|
|
897
565
|
value: import("scale-ts").ResultPayload<{
|
|
898
566
|
signature: `0x${string}`;
|
|
899
567
|
signedTransaction: `0x${string}` | undefined;
|
|
900
|
-
}, (
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
payload: undefined;
|
|
904
|
-
}) | (Error & {
|
|
905
|
-
name: "SigningErr::Unknown";
|
|
906
|
-
className: string;
|
|
907
|
-
payload: {
|
|
908
|
-
reason: string;
|
|
909
|
-
};
|
|
910
|
-
}) | (Error & {
|
|
911
|
-
name: "SigningErr::FailedToDecode";
|
|
912
|
-
className: string;
|
|
913
|
-
payload: undefined;
|
|
914
|
-
})>;
|
|
568
|
+
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
569
|
+
reason: string;
|
|
570
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
|
|
915
571
|
};
|
|
916
572
|
} | {
|
|
917
573
|
tag: "sign_payload_request";
|
|
@@ -943,21 +599,9 @@ export declare const Message: Codec<{
|
|
|
943
599
|
value: import("scale-ts").ResultPayload<{
|
|
944
600
|
signature: `0x${string}`;
|
|
945
601
|
signedTransaction: `0x${string}` | undefined;
|
|
946
|
-
}, (
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
payload: undefined;
|
|
950
|
-
}) | (Error & {
|
|
951
|
-
name: "SigningErr::Unknown";
|
|
952
|
-
className: string;
|
|
953
|
-
payload: {
|
|
954
|
-
reason: string;
|
|
955
|
-
};
|
|
956
|
-
}) | (Error & {
|
|
957
|
-
name: "SigningErr::FailedToDecode";
|
|
958
|
-
className: string;
|
|
959
|
-
payload: undefined;
|
|
960
|
-
})>;
|
|
602
|
+
}, import("@novasamatech/scale").CodecError<undefined, "SigningErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
603
|
+
reason: string;
|
|
604
|
+
}, "SigningErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "SigningErr::FailedToDecode">>;
|
|
961
605
|
};
|
|
962
606
|
} | {
|
|
963
607
|
tag: "chat_create_contact_request";
|
|
@@ -972,13 +616,9 @@ export declare const Message: Codec<{
|
|
|
972
616
|
tag: "chat_create_contact_response";
|
|
973
617
|
value: {
|
|
974
618
|
tag: "v1";
|
|
975
|
-
value: import("scale-ts").ResultPayload<"New" | "Exists",
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
payload: {
|
|
979
|
-
reason: string;
|
|
980
|
-
};
|
|
981
|
-
}>;
|
|
619
|
+
value: import("scale-ts").ResultPayload<"New" | "Exists", import("@novasamatech/scale").CodecError<{
|
|
620
|
+
reason: string;
|
|
621
|
+
}, "ChatContactRegistrationErr::Unknown">>;
|
|
982
622
|
};
|
|
983
623
|
} | {
|
|
984
624
|
tag: "chat_post_message_request";
|
|
@@ -1034,17 +674,9 @@ export declare const Message: Codec<{
|
|
|
1034
674
|
tag: "v1";
|
|
1035
675
|
value: import("scale-ts").ResultPayload<{
|
|
1036
676
|
messageId: string;
|
|
1037
|
-
}, (
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
payload: {
|
|
1041
|
-
reason: string;
|
|
1042
|
-
};
|
|
1043
|
-
}) | (Error & {
|
|
1044
|
-
name: "ChatMessagePostingErr::MessageTooLarge";
|
|
1045
|
-
className: string;
|
|
1046
|
-
payload: undefined;
|
|
1047
|
-
})>;
|
|
677
|
+
}, import("@novasamatech/scale").CodecError<{
|
|
678
|
+
reason: string;
|
|
679
|
+
}, "ChatMessagePostingErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "ChatMessagePostingErr::MessageTooLarge">>;
|
|
1048
680
|
};
|
|
1049
681
|
} | {
|
|
1050
682
|
tag: "chat_action_subscribe_start";
|
|
@@ -1182,21 +814,9 @@ export declare const Message: Codec<{
|
|
|
1182
814
|
blockHash: Uint8Array<ArrayBufferLike>;
|
|
1183
815
|
event: bigint;
|
|
1184
816
|
};
|
|
1185
|
-
}, (
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
payload: {
|
|
1189
|
-
reason: string;
|
|
1190
|
-
};
|
|
1191
|
-
}) | (Error & {
|
|
1192
|
-
name: "StatementProofErr::UnableToSign";
|
|
1193
|
-
className: string;
|
|
1194
|
-
payload: undefined;
|
|
1195
|
-
}) | (Error & {
|
|
1196
|
-
name: "StatementProofErr::UnknownAccount";
|
|
1197
|
-
className: string;
|
|
1198
|
-
payload: undefined;
|
|
1199
|
-
})>;
|
|
817
|
+
}, import("@novasamatech/scale").CodecError<{
|
|
818
|
+
reason: string;
|
|
819
|
+
}, "StatementProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnableToSign"> | import("@novasamatech/scale").CodecError<undefined, "StatementProofErr::UnknownAccount">>;
|
|
1200
820
|
};
|
|
1201
821
|
} | {
|
|
1202
822
|
tag: "jsonrpc_message_send_request";
|
|
@@ -1208,13 +828,9 @@ export declare const Message: Codec<{
|
|
|
1208
828
|
tag: "jsonrpc_message_send_response";
|
|
1209
829
|
value: {
|
|
1210
830
|
tag: "v1";
|
|
1211
|
-
value: import("scale-ts").ResultPayload<undefined,
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
payload: {
|
|
1215
|
-
reason: string;
|
|
1216
|
-
};
|
|
1217
|
-
}>;
|
|
831
|
+
value: import("scale-ts").ResultPayload<undefined, import("@novasamatech/scale").CodecError<{
|
|
832
|
+
reason: string;
|
|
833
|
+
}, "GenericError">>;
|
|
1218
834
|
};
|
|
1219
835
|
} | {
|
|
1220
836
|
tag: "jsonrpc_message_subscribe_start";
|