rdx-cli 0.1.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.
@@ -0,0 +1,969 @@
1
+ import { Effect, Option, Schema } from "effect";
2
+ import { Command } from "@effect/cli";
3
+ import * as effect_Types0 from "effect/Types";
4
+ import * as effect_Cause0 from "effect/Cause";
5
+
6
+ //#region src/schemas.d.ts
7
+ declare const PLACEHOLDER_PUBLIC_KEY_HEX = "<replace-with-ed25519-public-key-hex>";
8
+ declare const PLACEHOLDER_SIGNATURE_HEX = "<replace-with-ed25519-signature-hex>";
9
+ declare const NetworkSchema: Schema.brand<Schema.Literal<["mainnet", "stokenet"]>, "Network">;
10
+ type Network = typeof NetworkSchema.Type;
11
+ declare const ArtifactScopeSchema: Schema.brand<Schema.Literal<["local", "global"]>, "ArtifactScope">;
12
+ type ArtifactScope = typeof ArtifactScopeSchema.Type;
13
+ declare const OutputFormatSchema: Schema.brand<Schema.Literal<["json", "text"]>, "OutputFormat">;
14
+ declare const HexStringSchema: Schema.filter<typeof Schema.String>;
15
+ declare const Ed25519PublicKeyHexSchema: Schema.filter<Schema.filter<typeof Schema.String>>;
16
+ declare const Ed25519SignatureHexSchema: Schema.filter<Schema.filter<typeof Schema.String>>;
17
+ declare const SubintentIdSchema: Schema.filter<typeof Schema.String>;
18
+ declare const PublicKeySchema: Schema.Struct<{
19
+ curve: Schema.Literal<["Ed25519"]>;
20
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
21
+ }>;
22
+ declare const SigningScopeSchema: Schema.Union<[Schema.Struct<{
23
+ kind: Schema.Literal<["rootIntent"]>;
24
+ }>, Schema.Struct<{
25
+ kind: Schema.Literal<["subintent"]>;
26
+ subintentId: Schema.filter<typeof Schema.String>;
27
+ }>, Schema.Struct<{
28
+ kind: Schema.Literal<["notarySignatory"]>;
29
+ }>, Schema.Struct<{
30
+ kind: Schema.Literal<["notary"]>;
31
+ }>]>;
32
+ declare const SigningRequestSchema: Schema.Struct<{
33
+ type: Schema.Literal<["signingRequest"]>;
34
+ version: Schema.Literal<[1]>;
35
+ transactionId: typeof Schema.NonEmptyString;
36
+ scope: Schema.Union<[Schema.Struct<{
37
+ kind: Schema.Literal<["rootIntent"]>;
38
+ }>, Schema.Struct<{
39
+ kind: Schema.Literal<["subintent"]>;
40
+ subintentId: Schema.filter<typeof Schema.String>;
41
+ }>, Schema.Struct<{
42
+ kind: Schema.Literal<["notarySignatory"]>;
43
+ }>, Schema.Struct<{
44
+ kind: Schema.Literal<["notary"]>;
45
+ }>]>;
46
+ account: Schema.NullOr<typeof Schema.NonEmptyString>;
47
+ hash: Schema.Struct<{
48
+ id: Schema.NullOr<typeof Schema.String>;
49
+ hex: Schema.filter<typeof Schema.String>;
50
+ }>;
51
+ signingRequestPath: Schema.optional<typeof Schema.String>;
52
+ }>;
53
+ declare const SignatureTemplateSchema: Schema.Struct<{
54
+ type: Schema.Literal<["signatureTemplate"]>;
55
+ version: Schema.Literal<[1]>;
56
+ transactionId: typeof Schema.NonEmptyString;
57
+ scope: Schema.Union<[Schema.Struct<{
58
+ kind: Schema.Literal<["rootIntent"]>;
59
+ }>, Schema.Struct<{
60
+ kind: Schema.Literal<["subintent"]>;
61
+ subintentId: Schema.filter<typeof Schema.String>;
62
+ }>, Schema.Struct<{
63
+ kind: Schema.Literal<["notarySignatory"]>;
64
+ }>, Schema.Struct<{
65
+ kind: Schema.Literal<["notary"]>;
66
+ }>]>;
67
+ account: Schema.NullOr<typeof Schema.NonEmptyString>;
68
+ hash: Schema.Struct<{
69
+ id: Schema.NullOr<typeof Schema.String>;
70
+ hex: Schema.filter<typeof Schema.String>;
71
+ }>;
72
+ signingRequestPath: Schema.optional<typeof Schema.String>;
73
+ publicKey: Schema.Struct<{
74
+ curve: Schema.Literal<["Ed25519"]>;
75
+ hex: Schema.Union<[Schema.filter<Schema.filter<typeof Schema.String>>, Schema.Literal<["<replace-with-ed25519-public-key-hex>"]>]>;
76
+ }>;
77
+ signature: Schema.Struct<{
78
+ curve: Schema.Literal<["Ed25519"]>;
79
+ hex: Schema.Union<[Schema.filter<Schema.filter<typeof Schema.String>>, Schema.Literal<["<replace-with-ed25519-signature-hex>"]>]>;
80
+ }>;
81
+ }>;
82
+ declare const SignatureEntrySchema: Schema.Struct<{
83
+ scope: Schema.Union<[Schema.Struct<{
84
+ kind: Schema.Literal<["rootIntent"]>;
85
+ }>, Schema.Struct<{
86
+ kind: Schema.Literal<["subintent"]>;
87
+ subintentId: Schema.filter<typeof Schema.String>;
88
+ }>, Schema.Struct<{
89
+ kind: Schema.Literal<["notarySignatory"]>;
90
+ }>, Schema.Struct<{
91
+ kind: Schema.Literal<["notary"]>;
92
+ }>]>;
93
+ account: Schema.NullOr<typeof Schema.NonEmptyString>;
94
+ hash: Schema.Struct<{
95
+ id: Schema.NullOr<typeof Schema.String>;
96
+ hex: Schema.filter<typeof Schema.String>;
97
+ }>;
98
+ signingRequestPath: Schema.optional<typeof Schema.String>;
99
+ publicKey: Schema.filter<Schema.Struct<{
100
+ curve: Schema.Literal<["Ed25519"]>;
101
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
102
+ }>>;
103
+ signature: Schema.filter<Schema.Struct<{
104
+ curve: Schema.Literal<["Ed25519"]>;
105
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
106
+ }>>;
107
+ }>;
108
+ declare const SignatureFileSchema: Schema.Struct<{
109
+ type: Schema.Literal<["signatureFile"]>;
110
+ version: Schema.Literal<[1]>;
111
+ transactionId: typeof Schema.NonEmptyString;
112
+ signatures: Schema.Array$<Schema.Struct<{
113
+ scope: Schema.Union<[Schema.Struct<{
114
+ kind: Schema.Literal<["rootIntent"]>;
115
+ }>, Schema.Struct<{
116
+ kind: Schema.Literal<["subintent"]>;
117
+ subintentId: Schema.filter<typeof Schema.String>;
118
+ }>, Schema.Struct<{
119
+ kind: Schema.Literal<["notarySignatory"]>;
120
+ }>, Schema.Struct<{
121
+ kind: Schema.Literal<["notary"]>;
122
+ }>]>;
123
+ account: Schema.NullOr<typeof Schema.NonEmptyString>;
124
+ hash: Schema.Struct<{
125
+ id: Schema.NullOr<typeof Schema.String>;
126
+ hex: Schema.filter<typeof Schema.String>;
127
+ }>;
128
+ signingRequestPath: Schema.optional<typeof Schema.String>;
129
+ publicKey: Schema.filter<Schema.Struct<{
130
+ curve: Schema.Literal<["Ed25519"]>;
131
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
132
+ }>>;
133
+ signature: Schema.filter<Schema.Struct<{
134
+ curve: Schema.Literal<["Ed25519"]>;
135
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
136
+ }>>;
137
+ }>>;
138
+ }>;
139
+ declare const BatchSignatureFileSchema: Schema.Struct<{
140
+ type: Schema.Literal<["batchSignatureFile"]>;
141
+ version: Schema.Literal<[1]>;
142
+ signatures: Schema.NonEmptyArray<Schema.Struct<{
143
+ type: Schema.Literal<["signatureFile"]>;
144
+ version: Schema.Literal<[1]>;
145
+ transactionId: typeof Schema.NonEmptyString;
146
+ signatures: Schema.Array$<Schema.Struct<{
147
+ scope: Schema.Union<[Schema.Struct<{
148
+ kind: Schema.Literal<["rootIntent"]>;
149
+ }>, Schema.Struct<{
150
+ kind: Schema.Literal<["subintent"]>;
151
+ subintentId: Schema.filter<typeof Schema.String>;
152
+ }>, Schema.Struct<{
153
+ kind: Schema.Literal<["notarySignatory"]>;
154
+ }>, Schema.Struct<{
155
+ kind: Schema.Literal<["notary"]>;
156
+ }>]>;
157
+ account: Schema.NullOr<typeof Schema.NonEmptyString>;
158
+ hash: Schema.Struct<{
159
+ id: Schema.NullOr<typeof Schema.String>;
160
+ hex: Schema.filter<typeof Schema.String>;
161
+ }>;
162
+ signingRequestPath: Schema.optional<typeof Schema.String>;
163
+ publicKey: Schema.filter<Schema.Struct<{
164
+ curve: Schema.Literal<["Ed25519"]>;
165
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
166
+ }>>;
167
+ signature: Schema.filter<Schema.Struct<{
168
+ curve: Schema.Literal<["Ed25519"]>;
169
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
170
+ }>>;
171
+ }>>;
172
+ }>>;
173
+ }>;
174
+ declare const SubintentsFileSchema: Schema.Struct<{
175
+ type: Schema.Literal<["subintents"]>;
176
+ version: Schema.Literal<[1]>;
177
+ subintents: Schema.filter<Schema.Record$<typeof Schema.String, Schema.Struct<{
178
+ manifest: typeof Schema.NonEmptyString;
179
+ }>>>;
180
+ }>;
181
+ declare const NotaryFileSchema: Schema.Struct<{
182
+ type: Schema.Literal<["notary"]>;
183
+ version: Schema.Literal<[1]>;
184
+ publicKey: Schema.Struct<{
185
+ curve: Schema.Literal<["Ed25519"]>;
186
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
187
+ }>;
188
+ notaryIsSignatory: Schema.optional<typeof Schema.Boolean>;
189
+ }>;
190
+ declare const ArtifactStatusSchema: Schema.Union<[Schema.Literal<["prepared"]>, Schema.Literal<["notarized"]>, Schema.Literal<["submitted"]>]>;
191
+ declare const AuthorizationAnalysisSchema: Schema.Struct<{
192
+ rootIntent: Schema.Array$<typeof Schema.String>;
193
+ subintents: Schema.Record$<typeof Schema.String, Schema.Array$<typeof Schema.String>>;
194
+ }>;
195
+ declare const PreparedTransactionSchema: Schema.Struct<{
196
+ type: Schema.Literal<["preparedTransaction"]>;
197
+ version: Schema.Literal<[1]>;
198
+ transactionId: typeof Schema.NonEmptyString;
199
+ network: Schema.brand<Schema.Literal<["mainnet", "stokenet"]>, "Network">;
200
+ intentHash: Schema.Struct<{
201
+ id: Schema.NullOr<typeof Schema.String>;
202
+ hex: Schema.filter<typeof Schema.String>;
203
+ }>;
204
+ manifestSourceFile: typeof Schema.String;
205
+ transactionIntentPath: typeof Schema.String;
206
+ staticAnalysisPath: typeof Schema.String;
207
+ signingRequests: Schema.Array$<typeof Schema.String>;
208
+ signatureTemplates: Schema.Array$<typeof Schema.String>;
209
+ subintentOrder: Schema.Array$<typeof Schema.String>;
210
+ authorizationAnalysis: Schema.Struct<{
211
+ rootIntent: Schema.Array$<typeof Schema.String>;
212
+ subintents: Schema.Record$<typeof Schema.String, Schema.Array$<typeof Schema.String>>;
213
+ }>;
214
+ notaryPublicKey: Schema.optional<Schema.Struct<{
215
+ curve: Schema.Literal<["Ed25519"]>;
216
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
217
+ }>>;
218
+ notaryIsSignatory: Schema.optional<typeof Schema.Boolean>;
219
+ }>;
220
+ declare const NetworkTransactionStatusSchema: Schema.Struct<{
221
+ transactionId: typeof Schema.NonEmptyString;
222
+ status: typeof Schema.String;
223
+ statusDescription: typeof Schema.String;
224
+ errorMessage: Schema.NullOr<typeof Schema.String>;
225
+ checkedAt: typeof Schema.String;
226
+ }>;
227
+ declare const SubmitResultSchema: Schema.Struct<{
228
+ type: Schema.Literal<["submitResult"]>;
229
+ version: Schema.Literal<[1]>;
230
+ transactionId: typeof Schema.NonEmptyString;
231
+ networkStatus: Schema.Struct<{
232
+ transactionId: typeof Schema.NonEmptyString;
233
+ status: typeof Schema.String;
234
+ statusDescription: typeof Schema.String;
235
+ errorMessage: Schema.NullOr<typeof Schema.String>;
236
+ checkedAt: typeof Schema.String;
237
+ }>;
238
+ attempts: Schema.Array$<Schema.Struct<{
239
+ checkedAt: typeof Schema.String;
240
+ status: typeof Schema.String;
241
+ statusDescription: typeof Schema.String;
242
+ errorMessage: Schema.NullOr<typeof Schema.String>;
243
+ }>>;
244
+ }>;
245
+ declare const AccountFungiblesResultSchema: Schema.Struct<{
246
+ type: Schema.Literal<["commandResult"]>;
247
+ command: Schema.Literal<["account fungibles"]>;
248
+ result: typeof Schema.Unknown;
249
+ }>;
250
+ declare const AccountNftsResultSchema: Schema.Struct<{
251
+ type: Schema.Literal<["commandResult"]>;
252
+ command: Schema.Literal<["account nfts"]>;
253
+ result: typeof Schema.Unknown;
254
+ }>;
255
+ declare const AccountShowResultSchema: Schema.Struct<{
256
+ type: Schema.Literal<["commandResult"]>;
257
+ command: Schema.Literal<["account show"]>;
258
+ result: typeof Schema.Unknown;
259
+ }>;
260
+ declare const TransactionHistoryResultSchema: Schema.Struct<{
261
+ type: Schema.Literal<["commandResult"]>;
262
+ command: Schema.Literal<["tx history"]>;
263
+ result: typeof Schema.Unknown;
264
+ }>;
265
+ declare const VirtualAccountDerivationSchema: Schema.Struct<{
266
+ network: Schema.brand<Schema.Literal<["mainnet", "stokenet"]>, "Network">;
267
+ derivation: Schema.Literal<["virtualAccount"]>;
268
+ publicKey: Schema.Struct<{
269
+ curve: Schema.Literal<["Ed25519"]>;
270
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
271
+ }>;
272
+ accountAddress: typeof Schema.String;
273
+ }>;
274
+ type SigningScope = typeof SigningScopeSchema.Type;
275
+ type SigningRequest = typeof SigningRequestSchema.Type;
276
+ type SignatureTemplate = typeof SignatureTemplateSchema.Type;
277
+ type SignatureEntry = typeof SignatureEntrySchema.Type;
278
+ type SignatureFile = typeof SignatureFileSchema.Type;
279
+ type SubintentsFile = typeof SubintentsFileSchema.Type;
280
+ type NotaryFile = typeof NotaryFileSchema.Type;
281
+ type ArtifactStatus = typeof ArtifactStatusSchema.Type;
282
+ type AuthorizationAnalysis = typeof AuthorizationAnalysisSchema.Type;
283
+ type PreparedTransaction = typeof PreparedTransactionSchema.Type;
284
+ type NetworkTransactionStatus = typeof NetworkTransactionStatusSchema.Type;
285
+ type SubmitResult = typeof SubmitResultSchema.Type;
286
+ type AccountFungiblesResult = typeof AccountFungiblesResultSchema.Type;
287
+ type AccountNftsResult = typeof AccountNftsResultSchema.Type;
288
+ type AccountShowResult = typeof AccountShowResultSchema.Type;
289
+ type TransactionHistoryResult = typeof TransactionHistoryResultSchema.Type;
290
+ type VirtualAccountDerivation = typeof VirtualAccountDerivationSchema.Type;
291
+ //#endregion
292
+ //#region src/config.d.ts
293
+ declare const RdxConfigFileSchema: Schema.Struct<{
294
+ network: Schema.optional<Schema.brand<Schema.Literal<["mainnet", "stokenet"]>, "Network">>;
295
+ gatewayBaseUrl: Schema.optional<typeof Schema.String>;
296
+ artifactScope: Schema.optional<Schema.brand<Schema.Literal<["local", "global"]>, "ArtifactScope">>;
297
+ artifactDirectory: Schema.optional<typeof Schema.String>;
298
+ notary: Schema.optional<Schema.Struct<{
299
+ publicKey: Schema.Struct<{
300
+ curve: Schema.Literal<["Ed25519"]>;
301
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
302
+ }>;
303
+ notaryIsSignatory: Schema.optional<typeof Schema.Boolean>;
304
+ }>>;
305
+ }>;
306
+ type RdxConfigFile = typeof RdxConfigFileSchema.Type;
307
+ declare const ResolvedRdxConfigSchema: Schema.Struct<{
308
+ network: Schema.brand<Schema.Literal<["mainnet", "stokenet"]>, "Network">;
309
+ gatewayBaseUrl: Schema.optional<typeof Schema.String>;
310
+ artifactScope: Schema.brand<Schema.Literal<["local", "global"]>, "ArtifactScope">;
311
+ artifactDirectory: Schema.optional<typeof Schema.String>;
312
+ artifactRoot: typeof Schema.String;
313
+ notary: Schema.optional<Schema.Struct<{
314
+ publicKey: Schema.Struct<{
315
+ curve: Schema.Literal<["Ed25519"]>;
316
+ hex: Schema.filter<Schema.filter<typeof Schema.String>>;
317
+ }>;
318
+ notaryIsSignatory: Schema.optional<typeof Schema.Boolean>;
319
+ }>>;
320
+ projectConfigPath: Schema.optional<typeof Schema.String>;
321
+ globalConfigPath: Schema.optional<typeof Schema.String>;
322
+ }>;
323
+ type ResolvedRdxConfig = typeof ResolvedRdxConfigSchema.Type;
324
+ declare const ConfigResolutionError_base: new <A extends Record<string, any> = {}>(args: effect_Types0.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause0.YieldableError & {
325
+ readonly _tag: "ConfigResolutionError";
326
+ } & Readonly<A>;
327
+ declare class ConfigResolutionError extends ConfigResolutionError_base<{
328
+ path: string;
329
+ reason: unknown;
330
+ }> {}
331
+ declare const resolveRdxConfig: (input: {
332
+ cwd: string;
333
+ home?: string;
334
+ overrides?: RdxConfigFile;
335
+ }) => Effect.Effect<ResolvedRdxConfig, ConfigResolutionError>;
336
+ declare const ConfigResolver_base: Effect.Service.Class<ConfigResolver, "ConfigResolver", {
337
+ readonly sync: () => {
338
+ resolve: (input: {
339
+ cwd: string;
340
+ home?: string;
341
+ overrides?: RdxConfigFile;
342
+ }) => Effect.Effect<ResolvedRdxConfig, ConfigResolutionError>;
343
+ };
344
+ }>;
345
+ declare class ConfigResolver extends ConfigResolver_base {}
346
+ //#endregion
347
+ //#region src/accountReads.d.ts
348
+ declare const AccountReadError_base: new <A extends Record<string, any> = {}>(args: effect_Types0.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause0.YieldableError & {
349
+ readonly _tag: "AccountReadError";
350
+ } & Readonly<A>;
351
+ declare class AccountReadError extends AccountReadError_base<{
352
+ accountAddress: string;
353
+ reason: unknown;
354
+ }> {}
355
+ declare const InvalidPublicKeyError_base: new <A extends Record<string, any> = {}>(args: effect_Types0.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause0.YieldableError & {
356
+ readonly _tag: "InvalidPublicKeyError";
357
+ } & Readonly<A>;
358
+ declare class InvalidPublicKeyError extends InvalidPublicKeyError_base<{
359
+ code: 'INVALID_PUBLIC_KEY';
360
+ publicKeyHex: string;
361
+ }> {}
362
+ declare const getAccountFungibles: (input: {
363
+ accountAddress: string;
364
+ readFungibles: (accountAddress: string) => Effect.Effect<unknown, unknown>;
365
+ }) => Effect.Effect<AccountFungiblesResult, unknown>;
366
+ declare const getAccountNfts: (input: {
367
+ accountAddress: string;
368
+ readNfts: (accountAddress: string) => Effect.Effect<unknown, unknown>;
369
+ }) => Effect.Effect<AccountNftsResult, unknown>;
370
+ declare const gatewayAccountFungibles: (input: {
371
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
372
+ accountAddress: string;
373
+ }) => Effect.Effect<unknown, AccountReadError>;
374
+ declare const gatewayAccountNfts: (input: {
375
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
376
+ accountAddress: string;
377
+ }) => Effect.Effect<unknown, AccountReadError>;
378
+ declare const gatewayAccountDetails: (input: {
379
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
380
+ accountAddress: string;
381
+ }) => Effect.Effect<unknown, AccountReadError>;
382
+ declare const gatewayAccountHistory: (input: {
383
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
384
+ accountAddress: string;
385
+ limit: number;
386
+ }) => Effect.Effect<unknown, AccountReadError>;
387
+ declare const getAccountDetails: (input: {
388
+ accountAddress: string;
389
+ readDetails: (accountAddress: string) => Effect.Effect<unknown, unknown>;
390
+ }) => Effect.Effect<AccountShowResult, unknown>;
391
+ declare const getAccountTransactionHistory: (input: {
392
+ accountAddress: string;
393
+ limit: number;
394
+ readHistory: (accountAddress: string, limit: number) => Effect.Effect<unknown, unknown>;
395
+ }) => Effect.Effect<TransactionHistoryResult, unknown>;
396
+ declare const deriveVirtualAccountAddress: (input: {
397
+ network: Network;
398
+ publicKeyHex: string;
399
+ }) => Effect.Effect<{
400
+ type: "commandResult";
401
+ command: "account derive";
402
+ } & VirtualAccountDerivation, unknown>;
403
+ declare const AccountReadService_base: Effect.Service.Class<AccountReadService, "AccountReadService", {
404
+ readonly sync: () => {
405
+ getAccountDetails: (input: {
406
+ accountAddress: string;
407
+ readDetails: (accountAddress: string) => Effect.Effect<unknown, unknown>;
408
+ }) => Effect.Effect<AccountShowResult, unknown>;
409
+ getAccountFungibles: (input: {
410
+ accountAddress: string;
411
+ readFungibles: (accountAddress: string) => Effect.Effect<unknown, unknown>;
412
+ }) => Effect.Effect<AccountFungiblesResult, unknown>;
413
+ getAccountNfts: (input: {
414
+ accountAddress: string;
415
+ readNfts: (accountAddress: string) => Effect.Effect<unknown, unknown>;
416
+ }) => Effect.Effect<AccountNftsResult, unknown>;
417
+ getAccountTransactionHistory: (input: {
418
+ accountAddress: string;
419
+ limit: number;
420
+ readHistory: (accountAddress: string, limit: number) => Effect.Effect<unknown, unknown>;
421
+ }) => Effect.Effect<TransactionHistoryResult, unknown>;
422
+ deriveVirtualAccountAddress: (input: {
423
+ network: Network;
424
+ publicKeyHex: string;
425
+ }) => Effect.Effect<{
426
+ type: "commandResult";
427
+ command: "account derive";
428
+ } & VirtualAccountDerivation, unknown>;
429
+ gatewayAccountDetails: (input: {
430
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
431
+ accountAddress: string;
432
+ }) => Effect.Effect<unknown, AccountReadError>;
433
+ gatewayAccountFungibles: (input: {
434
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
435
+ accountAddress: string;
436
+ }) => Effect.Effect<unknown, AccountReadError>;
437
+ gatewayAccountHistory: (input: {
438
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
439
+ accountAddress: string;
440
+ limit: number;
441
+ }) => Effect.Effect<unknown, AccountReadError>;
442
+ gatewayAccountNfts: (input: {
443
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
444
+ accountAddress: string;
445
+ }) => Effect.Effect<unknown, AccountReadError>;
446
+ };
447
+ }>;
448
+ declare class AccountReadService extends AccountReadService_base {}
449
+ //#endregion
450
+ //#region src/artifacts.d.ts
451
+ declare const ArtifactStoreError_base: new <A extends Record<string, any> = {}>(args: effect_Types0.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause0.YieldableError & {
452
+ readonly _tag: "ArtifactStoreError";
453
+ } & Readonly<A>;
454
+ declare class ArtifactStoreError extends ArtifactStoreError_base<{
455
+ path: string;
456
+ reason: unknown;
457
+ }> {}
458
+ type SignatureImportResult = {
459
+ signatureFile: SignatureFile;
460
+ acceptedCount: number;
461
+ warnings: string[];
462
+ };
463
+ type TransactionArtifactSummary = {
464
+ transactionId: string;
465
+ path: string;
466
+ network: PreparedTransaction['network'];
467
+ status: ArtifactStatus;
468
+ intentHash: string;
469
+ manifestSourceFile: string;
470
+ networkStatus?: NetworkTransactionStatus;
471
+ updatedSubmitResultPath?: string | null;
472
+ };
473
+ declare const normalizeSignatures: (input: {
474
+ transactionId: string;
475
+ existing: readonly SignatureEntry[];
476
+ imported: readonly SignatureEntry[];
477
+ }) => SignatureImportResult;
478
+ declare const createTransactionArtifactDirectory: (input: {
479
+ artifactRoot: string;
480
+ transactionId: string;
481
+ }) => Effect.Effect<string, ArtifactStoreError>;
482
+ declare const writeCanonicalSignatures: (input: {
483
+ artifactPath: string;
484
+ transactionId: string;
485
+ existing: readonly SignatureEntry[];
486
+ imported: readonly SignatureEntry[];
487
+ }) => Effect.Effect<string, ArtifactStoreError>;
488
+ declare const writeSubmitResult: (input: {
489
+ artifactPath: string;
490
+ submitResult: SubmitResult;
491
+ }) => Effect.Effect<string, ArtifactStoreError>;
492
+ declare const findTransactionArtifact: (input: {
493
+ artifactRoot: string;
494
+ transactionId: string;
495
+ }) => Effect.Effect<string, ArtifactStoreError>;
496
+ declare const findTransactionArtifactOption: (input: {
497
+ artifactRoot: string;
498
+ transactionId: string;
499
+ }) => Effect.Effect<string | undefined>;
500
+ declare const listTransactionArtifacts: (input: {
501
+ artifactRoot: string;
502
+ pattern?: string;
503
+ regex?: string;
504
+ network?: PreparedTransaction["network"];
505
+ status?: ArtifactStatus;
506
+ }) => Effect.Effect<TransactionArtifactSummary[], ArtifactStoreError>;
507
+ declare const ArtifactStore_base: Effect.Service.Class<ArtifactStore, "ArtifactStore", {
508
+ readonly sync: () => {
509
+ createTransactionArtifactDirectory: (input: {
510
+ artifactRoot: string;
511
+ transactionId: string;
512
+ }) => Effect.Effect<string, ArtifactStoreError>;
513
+ findTransactionArtifactOption: (input: {
514
+ artifactRoot: string;
515
+ transactionId: string;
516
+ }) => Effect.Effect<string | undefined>;
517
+ findTransactionArtifact: (input: {
518
+ artifactRoot: string;
519
+ transactionId: string;
520
+ }) => Effect.Effect<string, ArtifactStoreError>;
521
+ listTransactionArtifacts: (input: {
522
+ artifactRoot: string;
523
+ pattern?: string;
524
+ regex?: string;
525
+ network?: PreparedTransaction["network"];
526
+ status?: ArtifactStatus;
527
+ }) => Effect.Effect<TransactionArtifactSummary[], ArtifactStoreError>;
528
+ writeSubmitResult: (input: {
529
+ artifactPath: string;
530
+ submitResult: SubmitResult;
531
+ }) => Effect.Effect<string, ArtifactStoreError>;
532
+ writeCanonicalSignatures: (input: {
533
+ artifactPath: string;
534
+ transactionId: string;
535
+ existing: readonly SignatureEntry[];
536
+ imported: readonly SignatureEntry[];
537
+ }) => Effect.Effect<string, ArtifactStoreError>;
538
+ };
539
+ }>;
540
+ declare class ArtifactStore extends ArtifactStore_base {}
541
+ //#endregion
542
+ //#region src/addSignatures.d.ts
543
+ type AddSignaturesResult = SignatureImportResult & {
544
+ signaturesPath: string;
545
+ complete: boolean;
546
+ };
547
+ declare const addSignaturesToArtifact: (input: {
548
+ artifactRoot: string;
549
+ transactionId: string;
550
+ signatureFilePaths: string[];
551
+ }) => Effect.Effect<AddSignaturesResult, unknown>;
552
+ declare const AddSignaturesWorkflow_base: Effect.Service.Class<AddSignaturesWorkflow, "AddSignaturesWorkflow", {
553
+ readonly sync: () => {
554
+ addSignaturesToArtifact: (input: {
555
+ artifactRoot: string;
556
+ transactionId: string;
557
+ signatureFilePaths: string[];
558
+ }) => Effect.Effect<AddSignaturesResult, unknown>;
559
+ };
560
+ }>;
561
+ declare class AddSignaturesWorkflow extends AddSignaturesWorkflow_base {}
562
+ //#endregion
563
+ //#region src/notarize.d.ts
564
+ declare const NotarizeError_base: new <A extends Record<string, any> = {}>(args: effect_Types0.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause0.YieldableError & {
565
+ readonly _tag: "NotarizeError";
566
+ } & Readonly<A>;
567
+ declare class NotarizeError extends NotarizeError_base<{
568
+ code: 'INCOMPLETE_SIGNATURES' | 'MISSING_SIGNATURE_FILE' | 'MISSING_NOTARY_PUBLIC_KEY' | 'PREVIEW_FAILED' | 'READ_FAILED' | 'WRITE_FAILED';
569
+ path?: string;
570
+ reason?: unknown;
571
+ }> {}
572
+ type NotarizeTransactionResult = {
573
+ transactionId: string;
574
+ artifactPath: string;
575
+ signedTransactionIntentPath: string;
576
+ notarySigningRequestPath: string;
577
+ notarySignatureTemplatePath: string;
578
+ };
579
+ declare const gatewayNotarizePreview: (input: {
580
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
581
+ previewTransactionHex: string;
582
+ }) => Effect.Effect<void, NotarizeError, never>;
583
+ declare const notarizeTransactionArtifact: (input: {
584
+ artifactRoot: string;
585
+ transactionId: string;
586
+ previewSignedTransactionIntent?: (previewTransactionHex: string) => Effect.Effect<void, unknown>;
587
+ }) => Effect.Effect<NotarizeTransactionResult, unknown>;
588
+ declare const NotarizationCoordinator_base: Effect.Service.Class<NotarizationCoordinator, "NotarizationCoordinator", {
589
+ readonly sync: () => {
590
+ notarizeTransactionArtifact: (input: {
591
+ artifactRoot: string;
592
+ transactionId: string;
593
+ previewSignedTransactionIntent?: (previewTransactionHex: string) => Effect.Effect<void, unknown>;
594
+ }) => Effect.Effect<NotarizeTransactionResult, unknown>;
595
+ gatewayNotarizePreview: (input: {
596
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
597
+ previewTransactionHex: string;
598
+ }) => Effect.Effect<void, NotarizeError, never>;
599
+ };
600
+ }>;
601
+ declare class NotarizationCoordinator extends NotarizationCoordinator_base {}
602
+ //#endregion
603
+ //#region src/prepare.d.ts
604
+ type PrepareTransactionResult = {
605
+ transactionId: string;
606
+ artifactPath: string;
607
+ preparedPath: string;
608
+ transactionIntentPath: string;
609
+ staticAnalysisPath: string;
610
+ signatureTemplatePaths: string[];
611
+ startEpochInclusive: number;
612
+ endEpochExclusive: number;
613
+ };
614
+ declare const PreparePreviewError_base: new <A extends Record<string, any> = {}>(args: effect_Types0.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause0.YieldableError & {
615
+ readonly _tag: "PreparePreviewError";
616
+ } & Readonly<A>;
617
+ declare class PreparePreviewError extends PreparePreviewError_base<{
618
+ message?: string;
619
+ reason?: unknown;
620
+ }> {}
621
+ declare const gatewayPreparePreview: (input: {
622
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
623
+ previewTransactionHex: string;
624
+ }) => Effect.Effect<void, PreparePreviewError, never>;
625
+ declare const gatewayCurrentEpoch: (input: {
626
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
627
+ }) => Effect.Effect<number, PreparePreviewError, never>;
628
+ declare const prepareTransactionArtifacts: (input: {
629
+ artifactRoot: string;
630
+ network: Network;
631
+ manifestPath: string;
632
+ subintentsPath?: string;
633
+ notary: Pick<NotaryFile, "publicKey" | "notaryIsSignatory">;
634
+ currentEpoch?: number;
635
+ previewPreparedTransaction?: (previewTransactionHex: string) => Effect.Effect<void, unknown>;
636
+ }) => Effect.Effect<PrepareTransactionResult, unknown>;
637
+ declare const TransactionPreparer_base: Effect.Service.Class<TransactionPreparer, "TransactionPreparer", {
638
+ readonly sync: () => {
639
+ prepareTransactionArtifacts: (input: {
640
+ artifactRoot: string;
641
+ network: Network;
642
+ manifestPath: string;
643
+ subintentsPath?: string;
644
+ notary: Pick<NotaryFile, "publicKey" | "notaryIsSignatory">;
645
+ currentEpoch?: number;
646
+ previewPreparedTransaction?: (previewTransactionHex: string) => Effect.Effect<void, unknown>;
647
+ }) => Effect.Effect<PrepareTransactionResult, unknown>;
648
+ gatewayPreparePreview: (input: {
649
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
650
+ previewTransactionHex: string;
651
+ }) => Effect.Effect<void, PreparePreviewError, never>;
652
+ gatewayCurrentEpoch: (input: {
653
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
654
+ }) => Effect.Effect<number, PreparePreviewError, never>;
655
+ };
656
+ }>;
657
+ declare class TransactionPreparer extends TransactionPreparer_base {}
658
+ //#endregion
659
+ //#region src/status.d.ts
660
+ declare const TransactionStatusError_base: new <A extends Record<string, any> = {}>(args: effect_Types0.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause0.YieldableError & {
661
+ readonly _tag: "TransactionStatusError";
662
+ } & Readonly<A>;
663
+ declare class TransactionStatusError extends TransactionStatusError_base<{
664
+ transactionId: string;
665
+ reason: unknown;
666
+ }> {}
667
+ type TransactionStatusResult = {
668
+ transactionId: string;
669
+ artifactPath: string | null;
670
+ networkStatus: NetworkTransactionStatus;
671
+ updatedSubmitResultPath: string | null;
672
+ };
673
+ declare const gatewayTransactionStatus: (input: {
674
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
675
+ transactionId: string;
676
+ }) => Effect.Effect<NetworkTransactionStatus, TransactionStatusError>;
677
+ declare const queryTransactionStatus: (input: {
678
+ artifactRoot: string;
679
+ transactionId: string;
680
+ readOnly?: boolean;
681
+ getNetworkStatus: (transactionId: string) => Effect.Effect<NetworkTransactionStatus, unknown>;
682
+ }) => Effect.Effect<TransactionStatusResult, unknown>;
683
+ declare const listTransactionArtifactsWithNetworkStatus: (input: {
684
+ artifactRoot: string;
685
+ pattern?: string;
686
+ regex?: string;
687
+ network?: PreparedTransaction["network"];
688
+ status?: ArtifactStatus;
689
+ update?: boolean;
690
+ getNetworkStatus: (transactionId: string) => Effect.Effect<NetworkTransactionStatus, unknown>;
691
+ }) => Effect.Effect<TransactionArtifactSummary[], unknown>;
692
+ declare const StatusLifecycle_base: Effect.Service.Class<StatusLifecycle, "StatusLifecycle", {
693
+ readonly sync: () => {
694
+ queryTransactionStatus: (input: {
695
+ artifactRoot: string;
696
+ transactionId: string;
697
+ readOnly?: boolean;
698
+ getNetworkStatus: (transactionId: string) => Effect.Effect<NetworkTransactionStatus, unknown>;
699
+ }) => Effect.Effect<TransactionStatusResult, unknown>;
700
+ listTransactionArtifactsWithNetworkStatus: (input: {
701
+ artifactRoot: string;
702
+ pattern?: string;
703
+ regex?: string;
704
+ network?: PreparedTransaction["network"];
705
+ status?: ArtifactStatus;
706
+ update?: boolean;
707
+ getNetworkStatus: (transactionId: string) => Effect.Effect<NetworkTransactionStatus, unknown>;
708
+ }) => Effect.Effect<TransactionArtifactSummary[], unknown>;
709
+ gatewayTransactionStatus: (input: {
710
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
711
+ transactionId: string;
712
+ }) => Effect.Effect<NetworkTransactionStatus, TransactionStatusError>;
713
+ };
714
+ }>;
715
+ declare class StatusLifecycle extends StatusLifecycle_base {}
716
+ //#endregion
717
+ //#region src/submit.d.ts
718
+ declare const SubmitError_base: new <A extends Record<string, any> = {}>(args: effect_Types0.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause0.YieldableError & {
719
+ readonly _tag: "SubmitError";
720
+ } & Readonly<A>;
721
+ declare class SubmitError extends SubmitError_base<{
722
+ code: 'ALREADY_SUBMITTED' | 'MISSING_SIGNATURE' | 'MISSING_NOTARY_SIGNATURE' | 'READ_FAILED' | 'WRITE_FAILED';
723
+ path?: string;
724
+ reason?: unknown;
725
+ }> {}
726
+ type SubmitTransactionResult = {
727
+ transactionId: string;
728
+ artifactPath: string;
729
+ notarizedTransactionPath: string;
730
+ submitResultPath: string;
731
+ networkStatus: typeof NetworkTransactionStatusSchema.Type;
732
+ };
733
+ declare const gatewaySubmitNotarizedTransaction: (input: {
734
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
735
+ transactionId: string;
736
+ notarizedTransactionHex: string;
737
+ }) => Effect.Effect<{
738
+ readonly transactionId: string;
739
+ readonly status: string;
740
+ readonly statusDescription: string;
741
+ readonly errorMessage: string | null;
742
+ readonly checkedAt: string;
743
+ }, SubmitError, never>;
744
+ declare const submitTransactionArtifact: (input: {
745
+ artifactRoot: string;
746
+ transactionId: string;
747
+ submitNotarizedTransaction: (notarizedTransactionHex: string) => Effect.Effect<typeof NetworkTransactionStatusSchema.Type, unknown>;
748
+ pollTransactionStatus?: (transactionId: string) => Effect.Effect<typeof NetworkTransactionStatusSchema.Type, unknown>;
749
+ }) => Effect.Effect<SubmitTransactionResult, unknown>;
750
+ declare const SubmitLifecycle_base: Effect.Service.Class<SubmitLifecycle, "SubmitLifecycle", {
751
+ readonly sync: () => {
752
+ submitTransactionArtifact: (input: {
753
+ artifactRoot: string;
754
+ transactionId: string;
755
+ submitNotarizedTransaction: (notarizedTransactionHex: string) => Effect.Effect<typeof NetworkTransactionStatusSchema.Type, unknown>;
756
+ pollTransactionStatus?: (transactionId: string) => Effect.Effect<typeof NetworkTransactionStatusSchema.Type, unknown>;
757
+ }) => Effect.Effect<SubmitTransactionResult, unknown>;
758
+ gatewaySubmitNotarizedTransaction: (input: {
759
+ config: Pick<ResolvedRdxConfig, "network" | "gatewayBaseUrl">;
760
+ transactionId: string;
761
+ notarizedTransactionHex: string;
762
+ }) => Effect.Effect<{
763
+ readonly transactionId: string;
764
+ readonly status: string;
765
+ readonly statusDescription: string;
766
+ readonly errorMessage: string | null;
767
+ readonly checkedAt: string;
768
+ }, SubmitError, never>;
769
+ };
770
+ }>;
771
+ declare class SubmitLifecycle extends SubmitLifecycle_base {}
772
+ //#endregion
773
+ //#region src/templates.d.ts
774
+ type TemplateKind = 'subintents' | 'signing-request' | 'signature-template' | 'signature-file';
775
+ declare const workflowTemplate: (kind: TemplateKind) => {
776
+ type: string;
777
+ version: number;
778
+ subintents: {
779
+ child_one: {
780
+ manifest: string;
781
+ };
782
+ };
783
+ transactionId?: undefined;
784
+ scope?: undefined;
785
+ account?: undefined;
786
+ hash?: undefined;
787
+ signingRequestPath?: undefined;
788
+ publicKey?: undefined;
789
+ signature?: undefined;
790
+ signatures?: undefined;
791
+ } | {
792
+ type: "signingRequest";
793
+ version: 1;
794
+ transactionId: string;
795
+ scope: {
796
+ kind: "rootIntent";
797
+ };
798
+ account: string;
799
+ hash: {
800
+ id: string;
801
+ hex: string;
802
+ };
803
+ signingRequestPath: string;
804
+ subintents?: undefined;
805
+ publicKey?: undefined;
806
+ signature?: undefined;
807
+ signatures?: undefined;
808
+ } | {
809
+ type: "signatureTemplate";
810
+ version: 1;
811
+ transactionId: string;
812
+ scope: {
813
+ kind: "rootIntent";
814
+ };
815
+ account: string;
816
+ hash: {
817
+ id: string;
818
+ hex: string;
819
+ };
820
+ signingRequestPath: string;
821
+ publicKey: {
822
+ curve: "Ed25519";
823
+ hex: string;
824
+ };
825
+ signature: {
826
+ curve: "Ed25519";
827
+ hex: string;
828
+ };
829
+ subintents?: undefined;
830
+ signatures?: undefined;
831
+ } | {
832
+ type: "signatureFile";
833
+ version: 1;
834
+ transactionId: string;
835
+ signatures: never[];
836
+ subintents?: undefined;
837
+ scope?: undefined;
838
+ account?: undefined;
839
+ hash?: undefined;
840
+ signingRequestPath?: undefined;
841
+ publicKey?: undefined;
842
+ signature?: undefined;
843
+ };
844
+ //#endregion
845
+ //#region src/json.d.ts
846
+ type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
847
+ readonly [key: string]: JsonValue;
848
+ };
849
+ declare const JsonValueSchema: Schema.Schema<JsonValue>;
850
+ declare const toJsonValue: (value: unknown) => JsonValue;
851
+ declare const renderJson: (value: unknown) => string;
852
+ //#endregion
853
+ //#region src/cli.d.ts
854
+ type OutputFormat = 'json' | 'text';
855
+ //#endregion
856
+ //#region src/llm.d.ts
857
+ declare const llmGuide = "# rdx Agent Guide\n\nUse `rdx` to prepare, inspect, sign-orchestrate, notarize, submit, and track Radix Transaction Manifest V2 workflows from files. It is built for agents: workflow commands are non-interactive and print JSON by default.\n\n## Core Rules\n\n- Run `rdx config show` before `tx prepare` to verify the resolved network and artifact root.\n- After `tx prepare`, check `startEpochInclusive` and `endEpochExclusive` in the command JSON before collecting signatures.\n- `rdx` defaults to Mainnet. Prepare on the intended network; do not reuse prepared artifacts across networks.\n- A transaction lifecycle is network-bound from `tx prepare` through signing, notarization, submission, and status.\n- `rdx` never stores, accepts, or derives private keys.\n- Participants sign only the requested `hash.hex` outside `rdx` and return a filled signature template or signature file.\n- v1 CLI workflow files support Ed25519 only. Secp256k1 and other curves are rejected.\n- Use `rdx account derive --public-key <hex>` to derive a virtual account address offline from an Ed25519 public key.\n- Do not edit signing request files. Fill signature templates or create signature files instead.\n- Do not rerun `tx prepare` expecting overwrite. Existing transaction artifact directories are protected.\n- Do not submit until intent, subintent, notary-signatory, and notary signatures required by the artifacts are complete.\n- Use `tx path` and `tx list` before manually scanning artifact directories.\n\n## Discover Live Inputs\n\n```sh\nrdx config show\nrdx template print subintents\nrdx template print signing-request\nrdx template print signature-template\nrdx template print signature-file\nrdx --help\nrdx tx prepare --help\n```\n\nUse template output for workflow file shapes. Do not rely on copied config schemas; use `rdx config show` for resolved configuration.\n\n## Transaction Lifecycle\n\n1. Prepare: compile the root manifest plus optional direct child subintents, preview, and write immutable transaction artifacts.\n2. Inspect: read command JSON output, `prepared.json`, copied manifests, signing requests, and templates.\n3. Intent signing: each participant signs the relevant request `hash.hex` out of band.\n4. Import signatures: use `tx add-signatures` one or more times. Imports are normalized into `signatures.json`.\n5. Notarize: after intent/subintent signatures are locally complete, `tx notarize` previews the signed intent and creates the notary signing request.\n6. Notary signing: the notary signs the notary request `hash.hex` out of band.\n7. Import notary signature: use `tx add-signatures` again.\n8. Submit: `tx submit` compiles from prepared artifacts plus canonical signatures, writes the submitted payload, broadcasts, polls, and records the result.\n9. Track: use `tx status`, `tx path`, and `tx list` to inspect local and Gateway state.\n\n## Stable Artifact Mental Model\n\nUse command JSON outputs for exact paths. Common artifact files include:\n\n- `prepared.json`: canonical prepared metadata and signing request/template path index.\n- `transactionIntent.json`: encoded Transaction Intent V2 used by later commands.\n- `staticAnalysis.json`: full static analysis output.\n- `rootManifest.rtm`: copied root manifest.\n- `subintents/<subintentId>.rtm`: copied direct child subintent manifests.\n- `signatures.json`: canonical normalized signature state.\n- `notarizedTransaction.hex`: exact submitted payload.\n- `submitResult.json`: submit attempts and network status results.\n\n## Single-party Example\n\n```sh\nrdx config show\nrdx template print signature-file\nrdx tx prepare --manifest ./tx/root.rtm --notary-file ./tx/notary.json\nrdx tx path txid_example\nrdx tx add-signatures txid_example --file ./tx/signatures/intent-signature.json\nrdx tx notarize txid_example\nrdx tx add-signatures txid_example --file ./tx/signatures/notary-signature.json\nrdx tx submit txid_example\nrdx tx status txid_example\n```\n\nAfter `tx prepare`, inspect the JSON result for `transactionId`, `artifactPath`, `preparedPath`, `startEpochInclusive`, `endEpochExclusive`, and generated `signatureTemplatePaths`. Fill the generated templates by replacing placeholder Ed25519 public key and signature values. Sign only each request's `hash.hex`.\n\n## Multi-party And Subintent Example\n\n```sh\nrdx config show\nrdx template print subintents\nrdx tx prepare --manifest ./tx/root.rtm --subintents ./tx/subintents.json --notary-file ./tx/notary.json\nrdx tx add-signatures txid_example --file ./party-a/root-signature.json\nrdx tx add-signatures txid_example --file ./party-b/child-one-signature.json\nrdx tx add-signatures txid_example --file ./party-c/batch-signatures.json\nrdx tx notarize txid_example\nrdx tx add-signatures txid_example --file ./notary/notary-signature.json\nrdx tx submit txid_example\n```\n\nSubintent IDs in `subintents.json` are also Radix `NamedIntent` values referenced by root `YIELD_TO_CHILD` instructions. v1 supports root plus direct child subintents only. Multiple parties can return signatures asynchronously; repeat `tx add-signatures` until local completeness allows `tx notarize` and later `tx submit`.\n\n## Command Examples\n\n```sh\nrdx config show\nrdx account derive --public-key 1111111111111111111111111111111111111111111111111111111111111111\nrdx account show account_rdx1...\nrdx account fungibles account_rdx1...\nrdx account nfts account_rdx1...\nrdx tx history account_rdx1... --limit 10\nrdx tx prepare --manifest ./tx/root.rtm --notary-file ./tx/notary.json\nrdx tx prepare --manifest ./tx/root.rtm --subintents ./tx/subintents.json --notary-file ./tx/notary.json\nrdx tx add-signatures txid_example --file ./signature.json\nrdx tx add-signatures txid_example --file ./signature-a.json --file ./signature-batch.json\nrdx tx notarize txid_example\nrdx tx submit txid_example\nrdx tx status txid_example\nrdx tx status txid_example --read-only\nrdx tx path txid_example\nrdx tx list\nrdx tx list --pattern root.rtm\nrdx tx list --regex '^txid_' --network mainnet --status prepared\nrdx tx list --with-network-status\nrdx tx list --with-network-status --update-network-status\nrdx template print subintents\nrdx template print signing-request\nrdx template print signature-template\nrdx template print signature-file\n```\n\n`account derive` uses the resolved config network and does not query Gateway. It returns the derived virtual account address, not proof that the account exists on-ledger.\n\n## Troubleshooting\n\n- Workflow command failures print structured JSON errors with `type`, `code`, and `message`.\n- Gateway failures include response details in `message` when the Gateway returns a structured error body.\n- Inspect `code` and `message` first; avoid parsing human help text.\n- Use `rdx tx status`, `rdx tx list`, and `rdx tx path` before reading files manually.\n- If the network is wrong, prepare a new transaction for the intended network.\n- If a placeholder public key or signature remains in a file, replace it with a real Ed25519 value produced outside `rdx`.\n";
858
+ //#endregion
859
+ //#region src/signatureImport.d.ts
860
+ declare const SignatureImportError_base: new <A extends Record<string, any> = {}>(args: effect_Types0.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause0.YieldableError & {
861
+ readonly _tag: "SignatureImportError";
862
+ } & Readonly<A>;
863
+ declare class SignatureImportError extends SignatureImportError_base<{
864
+ code: 'INVALID_SIGNATURE_FILE' | 'UNKNOWN_SIGNING_REQUEST' | 'PLACEHOLDER_VALUE' | 'INVALID_SIGNATURE';
865
+ reason: unknown;
866
+ }> {}
867
+ type ImportableSignatureFile = SignatureFile | SignatureTemplate | unknown;
868
+ declare const importSignatures: (input: {
869
+ transactionId: string;
870
+ generatedRequests: SigningRequest[];
871
+ existing: readonly SignatureEntry[];
872
+ files: ImportableSignatureFile[];
873
+ }) => Effect.Effect<SignatureImportResult, SignatureImportError>;
874
+ declare const SignatureImporter_base: Effect.Service.Class<SignatureImporter, "SignatureImporter", {
875
+ readonly sync: () => {
876
+ importSignatures: (input: {
877
+ transactionId: string;
878
+ generatedRequests: SigningRequest[];
879
+ existing: readonly SignatureEntry[];
880
+ files: ImportableSignatureFile[];
881
+ }) => Effect.Effect<SignatureImportResult, SignatureImportError>;
882
+ };
883
+ }>;
884
+ declare class SignatureImporter extends SignatureImporter_base {}
885
+ //#endregion
886
+ //#region src/signingRequests.d.ts
887
+ type SigningRequestHash = {
888
+ id: string | null;
889
+ hex: string;
890
+ };
891
+ type AuthorizationRequirements = {
892
+ rootIntent: string[];
893
+ subintents: Record<string, string[]>;
894
+ };
895
+ type GeneratedWorkflowFile<File> = {
896
+ path: string;
897
+ file: File;
898
+ };
899
+ type GeneratedSigningRequests = {
900
+ requests: GeneratedWorkflowFile<SigningRequest>[];
901
+ templates: GeneratedWorkflowFile<SignatureTemplate>[];
902
+ };
903
+ declare const generateSigningRequests: (input: {
904
+ transactionId: string;
905
+ rootIntentHash: SigningRequestHash;
906
+ subintentHashes: Record<string, SigningRequestHash>;
907
+ authorizationAnalysis: AuthorizationRequirements;
908
+ notary: {
909
+ publicKey: SignatureTemplate["publicKey"];
910
+ notaryIsSignatory: boolean;
911
+ };
912
+ }) => Effect.Effect<GeneratedSigningRequests>;
913
+ declare const SigningRequestGenerator_base: Effect.Service.Class<SigningRequestGenerator, "SigningRequestGenerator", {
914
+ readonly sync: () => {
915
+ generateSigningRequests: (input: {
916
+ transactionId: string;
917
+ rootIntentHash: SigningRequestHash;
918
+ subintentHashes: Record<string, SigningRequestHash>;
919
+ authorizationAnalysis: AuthorizationRequirements;
920
+ notary: {
921
+ publicKey: SignatureTemplate["publicKey"];
922
+ notaryIsSignatory: boolean;
923
+ };
924
+ }) => Effect.Effect<GeneratedSigningRequests>;
925
+ };
926
+ }>;
927
+ declare class SigningRequestGenerator extends SigningRequestGenerator_base {}
928
+ //#endregion
929
+ //#region src/subintentAssembly.d.ts
930
+ declare const SubintentAssemblyError_base: new <A extends Record<string, any> = {}>(args: effect_Types0.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause0.YieldableError & {
931
+ readonly _tag: "SubintentAssemblyError";
932
+ } & Readonly<A>;
933
+ declare class SubintentAssemblyError extends SubintentAssemblyError_base<{
934
+ code: 'INVALID_SUBINTENT_ID' | 'MISSING_SUBINTENT' | 'UNREFERENCED_SUBINTENT';
935
+ subintentId: string;
936
+ }> {}
937
+ type AssembledRootManifest = {
938
+ rootManifest: string;
939
+ subintentOrder: string[];
940
+ };
941
+ declare const assembleRootManifest: (input: {
942
+ rootManifest: string;
943
+ childIntentHashes: Record<string, string>;
944
+ }) => Effect.Effect<AssembledRootManifest, SubintentAssemblyError>;
945
+ declare const SubintentAssembly_base: Effect.Service.Class<SubintentAssembly, "SubintentAssembly", {
946
+ readonly sync: () => {
947
+ assembleRootManifest: (input: {
948
+ rootManifest: string;
949
+ childIntentHashes: Record<string, string>;
950
+ }) => Effect.Effect<AssembledRootManifest, SubintentAssemblyError>;
951
+ };
952
+ }>;
953
+ declare class SubintentAssembly extends SubintentAssembly_base {}
954
+ //#endregion
955
+ //#region src/index.d.ts
956
+ type RdxResult = {
957
+ exitCode: number;
958
+ stdout: string;
959
+ stderr: string;
960
+ };
961
+ type RunRdxInput = {
962
+ argv: string[];
963
+ cwd: string;
964
+ };
965
+ declare const runRdxEffect: (input: RunRdxInput) => Effect.Effect<RdxResult>;
966
+ declare const runRdx: (input: RunRdxInput) => Promise<RdxResult>;
967
+ //#endregion
968
+ export { AccountFungiblesResult, AccountFungiblesResultSchema, AccountNftsResult, AccountNftsResultSchema, AccountReadError, AccountReadService, AccountShowResult, AccountShowResultSchema, AddSignaturesResult, AddSignaturesWorkflow, type ArtifactScope, ArtifactScopeSchema, ArtifactStatus, ArtifactStatusSchema, ArtifactStore, ArtifactStoreError, AssembledRootManifest, AuthorizationAnalysis, AuthorizationAnalysisSchema, AuthorizationRequirements, BatchSignatureFileSchema, ConfigResolutionError, ConfigResolver, Ed25519PublicKeyHexSchema, Ed25519SignatureHexSchema, GeneratedSigningRequests, GeneratedWorkflowFile, HexStringSchema, InvalidPublicKeyError, JsonValue, JsonValueSchema, type Network, NetworkSchema, NetworkTransactionStatus, NetworkTransactionStatusSchema, NotarizationCoordinator, NotarizeError, NotarizeTransactionResult, NotaryFile, NotaryFileSchema, type OutputFormat, OutputFormatSchema, PLACEHOLDER_PUBLIC_KEY_HEX, PLACEHOLDER_SIGNATURE_HEX, PreparePreviewError, PrepareTransactionResult, PreparedTransaction, PreparedTransactionSchema, PublicKeySchema, RdxConfigFile, RdxConfigFileSchema, RdxResult, ResolvedRdxConfig, ResolvedRdxConfigSchema, RunRdxInput, SignatureEntry, SignatureEntrySchema, SignatureFile, SignatureFileSchema, SignatureImportError, SignatureImportResult, SignatureImporter, SignatureTemplate, SignatureTemplateSchema, SigningRequest, SigningRequestGenerator, SigningRequestHash, SigningRequestSchema, SigningScope, SigningScopeSchema, StatusLifecycle, SubintentAssembly, SubintentAssemblyError, SubintentIdSchema, SubintentsFile, SubintentsFileSchema, SubmitError, SubmitLifecycle, SubmitResult, SubmitResultSchema, SubmitTransactionResult, TemplateKind, TransactionArtifactSummary, TransactionHistoryResult, TransactionHistoryResultSchema, TransactionPreparer, TransactionStatusError, TransactionStatusResult, type VirtualAccountDerivation, VirtualAccountDerivationSchema, addSignaturesToArtifact, assembleRootManifest, createTransactionArtifactDirectory, deriveVirtualAccountAddress, findTransactionArtifact, findTransactionArtifactOption, gatewayAccountDetails, gatewayAccountFungibles, gatewayAccountHistory, gatewayAccountNfts, gatewayCurrentEpoch, gatewayNotarizePreview, gatewayPreparePreview, gatewaySubmitNotarizedTransaction, gatewayTransactionStatus, generateSigningRequests, getAccountDetails, getAccountFungibles, getAccountNfts, getAccountTransactionHistory, importSignatures, listTransactionArtifacts, listTransactionArtifactsWithNetworkStatus, llmGuide, normalizeSignatures, notarizeTransactionArtifact, prepareTransactionArtifacts, queryTransactionStatus, renderJson, resolveRdxConfig, runRdx, runRdxEffect, submitTransactionArtifact, toJsonValue, workflowTemplate, writeCanonicalSignatures, writeSubmitResult };
969
+ //# sourceMappingURL=index.d.ts.map