@radix-effects/tx-tool 0.0.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/chunk-Bp6m_JJh.js +13 -0
- package/dist/index.d.ts +593 -0
- package/dist/index.js +900 -0
- package/package.json +42 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __export = (all) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
return target;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __export as t };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
import { Account, AccountAddress, Amount, Epoch, HexString, NetworkId, Nonce, TransactionId, TransactionManifestString } from "@radix-effects/shared";
|
|
2
|
+
import * as _radixdlt_radix_engine_toolkit1 from "@radixdlt/radix-engine-toolkit";
|
|
3
|
+
import { PublicKey, SignatureWithPublicKey } from "@radixdlt/radix-engine-toolkit";
|
|
4
|
+
import { Cause, Context, Duration, Effect, Layer, Option, ParseResult, Redacted, Schedule, Schema } from "effect";
|
|
5
|
+
import { FileSystem, HttpBody, HttpClient } from "@effect/platform";
|
|
6
|
+
import * as _radix_effects_gateway97 from "@radix-effects/gateway";
|
|
7
|
+
import { GatewayApiClient, GetFungibleBalance, GetLedgerStateService } from "@radix-effects/gateway";
|
|
8
|
+
import * as effect_Brand26 from "effect/Brand";
|
|
9
|
+
import * as effect_Cause13 from "effect/Cause";
|
|
10
|
+
import * as effect_Types13 from "effect/Types";
|
|
11
|
+
import * as effect_ConfigError2 from "effect/ConfigError";
|
|
12
|
+
import * as _effect_platform_HttpClientError0 from "@effect/platform/HttpClientError";
|
|
13
|
+
import * as _effect_platform_Error0 from "@effect/platform/Error";
|
|
14
|
+
import * as effect_Layer0 from "effect/Layer";
|
|
15
|
+
import * as effect_ParseResult0 from "effect/ParseResult";
|
|
16
|
+
import * as _radixdlt_babylon_gateway_api_sdk3 from "@radixdlt/babylon-gateway-api-sdk";
|
|
17
|
+
import { TransactionPreviewOperationRequest, TransactionStatusResponse } from "@radixdlt/babylon-gateway-api-sdk";
|
|
18
|
+
|
|
19
|
+
//#region src/manifests/addFeePayer.d.ts
|
|
20
|
+
declare const addFeePayer: (input: {
|
|
21
|
+
account: Account;
|
|
22
|
+
amount: Amount;
|
|
23
|
+
}) => string & effect_Brand26.Brand<"TransactionManifestString">;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/manifests/createBadge.d.ts
|
|
26
|
+
declare const createBadge: (account: Account, initialSupply?: number) => string & effect_Brand26.Brand<"TransactionManifestString">;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/manifests/createFungibleToken.d.ts
|
|
29
|
+
declare const createFungibleTokenManifest: (input: {
|
|
30
|
+
name: string;
|
|
31
|
+
symbol: string;
|
|
32
|
+
initialSupply: Amount;
|
|
33
|
+
account: Account;
|
|
34
|
+
}) => string & effect_Brand26.Brand<"TransactionManifestString">;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/manifests/faucet.d.ts
|
|
37
|
+
declare const faucet: (accountAddress: AccountAddress) => Effect.Effect<string & effect_Brand26.Brand<"TransactionManifestString">, effect_Cause13.UnknownException, never>;
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/manifests/manifestHelper.d.ts
|
|
40
|
+
declare const ManifestHelper_base: Effect.Service.Class<ManifestHelper, "ManifestHelper", {
|
|
41
|
+
readonly effect: Effect.Effect<{
|
|
42
|
+
addFeePayer: (input: {
|
|
43
|
+
account: Account;
|
|
44
|
+
amount: Amount;
|
|
45
|
+
}) => Effect.Effect<string & effect_Brand26.Brand<"TransactionManifestString">, never, never>;
|
|
46
|
+
}, never, never>;
|
|
47
|
+
}>;
|
|
48
|
+
declare class ManifestHelper extends ManifestHelper_base {}
|
|
49
|
+
declare namespace schemas_d_exports {
|
|
50
|
+
export { Badge, BadgeDecodedSchema, BadgeSchema, Base64FromHexSchema, Ed25519PrivateKey, Ed25519PrivateKeySchema, Ed25519PublicKey, Ed25519PublicKeySchema, Ed25519SignatureWithPublicKey, Ed25519SignatureWithPublicKeyEncoded, Ed25519SignatureWithPublicKeySchema, HexFromBase64Schema, Manifest, ManifestEncoded, ManifestSchema, TransactionHeader$1 as TransactionHeader, TransactionHeaderSchema, TransactionIntent, TransactionIntentEncoded, TransactionIntentSchema, TransactionMessage, TransactionMessageSchema };
|
|
51
|
+
}
|
|
52
|
+
declare const Base64FromHexSchema: Schema.Schema<string & effect_Brand26.Brand<"Base64String">, string, never>;
|
|
53
|
+
declare const HexFromBase64Schema: Schema.Schema<string & effect_Brand26.Brand<"HexString">, string, never>;
|
|
54
|
+
declare const Ed25519PublicKeySchema: Schema.Schema<{
|
|
55
|
+
readonly curve: _radixdlt_radix_engine_toolkit1.Curve;
|
|
56
|
+
readonly bytes: Uint8Array;
|
|
57
|
+
rawBytes: () => Uint8Array;
|
|
58
|
+
hexString: () => string;
|
|
59
|
+
toString: () => string;
|
|
60
|
+
hex: () => string;
|
|
61
|
+
readonly publicKey: Uint8Array;
|
|
62
|
+
}, string, never>;
|
|
63
|
+
type Ed25519PublicKey = typeof Ed25519PublicKeySchema.Type;
|
|
64
|
+
declare const Ed25519PrivateKeySchema: Schema.Schema<{
|
|
65
|
+
readonly curve: _radixdlt_radix_engine_toolkit1.Curve;
|
|
66
|
+
readonly bytes: Uint8Array;
|
|
67
|
+
publicKey(): PublicKey;
|
|
68
|
+
publicKeyBytes(): Uint8Array;
|
|
69
|
+
publicKeyHex(): string;
|
|
70
|
+
sign(messageHash: Uint8Array): Uint8Array;
|
|
71
|
+
signToSignature(messageHash: Uint8Array): _radixdlt_radix_engine_toolkit1.Signature;
|
|
72
|
+
signToSignatureWithPublicKey(messageHash: Uint8Array): SignatureWithPublicKey;
|
|
73
|
+
produceSignature(messageHash: Uint8Array): _radixdlt_radix_engine_toolkit1.SignerResponse;
|
|
74
|
+
}, string, never>;
|
|
75
|
+
type Ed25519PrivateKey = typeof Ed25519PrivateKeySchema.Type;
|
|
76
|
+
declare const ManifestSchema: Schema.Schema<{
|
|
77
|
+
readonly instructions: {
|
|
78
|
+
readonly value: string & effect_Brand26.Brand<"TransactionManifestString">;
|
|
79
|
+
readonly kind: "String";
|
|
80
|
+
};
|
|
81
|
+
readonly blobs: Uint8Array<ArrayBufferLike>[];
|
|
82
|
+
}, string, never>;
|
|
83
|
+
type Manifest = typeof ManifestSchema.Type;
|
|
84
|
+
type ManifestEncoded = TransactionManifestString;
|
|
85
|
+
declare const TransactionMessageSchema: Schema.Schema<{
|
|
86
|
+
readonly value: {
|
|
87
|
+
readonly message: {
|
|
88
|
+
readonly value: string & effect_Brand26.Brand<"TransactionMessageString">;
|
|
89
|
+
readonly kind: "String";
|
|
90
|
+
};
|
|
91
|
+
readonly mimeType: "text/plain";
|
|
92
|
+
};
|
|
93
|
+
readonly kind: "PlainText";
|
|
94
|
+
} | {
|
|
95
|
+
readonly kind: "None";
|
|
96
|
+
}, string | undefined, never>;
|
|
97
|
+
type TransactionMessage = typeof TransactionMessageSchema.Type;
|
|
98
|
+
declare const TransactionHeaderSchema: Schema.Struct<{
|
|
99
|
+
networkId: Schema.brand<typeof Schema.Number, "NetworkId">;
|
|
100
|
+
startEpochInclusive: Schema.brand<typeof Schema.Number, "Epoch">;
|
|
101
|
+
endEpochExclusive: Schema.brand<typeof Schema.Number, "Epoch">;
|
|
102
|
+
notaryPublicKey: Schema.Schema<{
|
|
103
|
+
readonly curve: _radixdlt_radix_engine_toolkit1.Curve;
|
|
104
|
+
readonly bytes: Uint8Array;
|
|
105
|
+
rawBytes: () => Uint8Array;
|
|
106
|
+
hexString: () => string;
|
|
107
|
+
toString: () => string;
|
|
108
|
+
hex: () => string;
|
|
109
|
+
readonly publicKey: Uint8Array;
|
|
110
|
+
}, string, never>;
|
|
111
|
+
nonce: Schema.brand<typeof Schema.Number, "Nonce">;
|
|
112
|
+
notaryIsSignatory: typeof Schema.Boolean;
|
|
113
|
+
tipPercentage: typeof Schema.Number;
|
|
114
|
+
}>;
|
|
115
|
+
type TransactionHeader$1 = typeof TransactionHeaderSchema.Type;
|
|
116
|
+
declare const TransactionIntentSchema: Schema.Struct<{
|
|
117
|
+
header: Schema.Struct<{
|
|
118
|
+
networkId: Schema.brand<typeof Schema.Number, "NetworkId">;
|
|
119
|
+
startEpochInclusive: Schema.brand<typeof Schema.Number, "Epoch">;
|
|
120
|
+
endEpochExclusive: Schema.brand<typeof Schema.Number, "Epoch">;
|
|
121
|
+
notaryPublicKey: Schema.Schema<{
|
|
122
|
+
readonly curve: _radixdlt_radix_engine_toolkit1.Curve;
|
|
123
|
+
readonly bytes: Uint8Array;
|
|
124
|
+
rawBytes: () => Uint8Array;
|
|
125
|
+
hexString: () => string;
|
|
126
|
+
toString: () => string;
|
|
127
|
+
hex: () => string;
|
|
128
|
+
readonly publicKey: Uint8Array;
|
|
129
|
+
}, string, never>;
|
|
130
|
+
nonce: Schema.brand<typeof Schema.Number, "Nonce">;
|
|
131
|
+
notaryIsSignatory: typeof Schema.Boolean;
|
|
132
|
+
tipPercentage: typeof Schema.Number;
|
|
133
|
+
}>;
|
|
134
|
+
message: Schema.Schema<{
|
|
135
|
+
readonly value: {
|
|
136
|
+
readonly message: {
|
|
137
|
+
readonly value: string & effect_Brand26.Brand<"TransactionMessageString">;
|
|
138
|
+
readonly kind: "String";
|
|
139
|
+
};
|
|
140
|
+
readonly mimeType: "text/plain";
|
|
141
|
+
};
|
|
142
|
+
readonly kind: "PlainText";
|
|
143
|
+
} | {
|
|
144
|
+
readonly kind: "None";
|
|
145
|
+
}, string | undefined, never>;
|
|
146
|
+
manifest: Schema.Schema<{
|
|
147
|
+
readonly instructions: {
|
|
148
|
+
readonly value: string & effect_Brand26.Brand<"TransactionManifestString">;
|
|
149
|
+
readonly kind: "String";
|
|
150
|
+
};
|
|
151
|
+
readonly blobs: Uint8Array<ArrayBufferLike>[];
|
|
152
|
+
}, string, never>;
|
|
153
|
+
}>;
|
|
154
|
+
type TransactionIntent = typeof TransactionIntentSchema.Type;
|
|
155
|
+
type TransactionIntentEncoded = typeof TransactionIntentSchema.Encoded;
|
|
156
|
+
declare const Ed25519SignatureWithPublicKeySchema: Schema.Schema<{
|
|
157
|
+
readonly curve: _radixdlt_radix_engine_toolkit1.Curve;
|
|
158
|
+
readonly signature: Uint8Array;
|
|
159
|
+
readonly publicKey: Uint8Array;
|
|
160
|
+
}, {
|
|
161
|
+
readonly signature: string;
|
|
162
|
+
readonly signerPublicKey: string;
|
|
163
|
+
readonly curve: "Ed25519";
|
|
164
|
+
}, never>;
|
|
165
|
+
type Ed25519SignatureWithPublicKey = typeof Ed25519SignatureWithPublicKeySchema.Type;
|
|
166
|
+
type Ed25519SignatureWithPublicKeyEncoded = typeof Ed25519SignatureWithPublicKeySchema.Encoded;
|
|
167
|
+
declare const BadgeDecodedSchema: Schema.Struct<{
|
|
168
|
+
type: Schema.Literal<["fungibleResource"]>;
|
|
169
|
+
resourceAddress: Schema.brand<typeof Schema.String, "FungibleResourceAddress">;
|
|
170
|
+
}>;
|
|
171
|
+
declare const BadgeSchema: Schema.transformOrFail<Schema.Struct<{
|
|
172
|
+
type: typeof Schema.String;
|
|
173
|
+
resourceAddress: typeof Schema.String;
|
|
174
|
+
}>, Schema.Struct<{
|
|
175
|
+
type: Schema.Literal<["fungibleResource"]>;
|
|
176
|
+
resourceAddress: Schema.brand<typeof Schema.String, "FungibleResourceAddress">;
|
|
177
|
+
}>, never>;
|
|
178
|
+
type Badge = typeof BadgeSchema.Type;
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/signer/signer.d.ts
|
|
181
|
+
declare const FailedToSignTransactionError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
182
|
+
readonly _tag: "FailedToSignTransactionError";
|
|
183
|
+
} & Readonly<A>;
|
|
184
|
+
declare class FailedToSignTransactionError extends FailedToSignTransactionError_base<{
|
|
185
|
+
error: unknown;
|
|
186
|
+
}> {}
|
|
187
|
+
declare const Signer_base: Context.TagClass<Signer, "Signer", {
|
|
188
|
+
signToSignatureWithPublicKey: (hash: HexString) => Effect.Effect<Ed25519SignatureWithPublicKey[], FailedToSignTransactionError, never>;
|
|
189
|
+
publicKey: () => Effect.Effect<PublicKey, never, never>;
|
|
190
|
+
}>;
|
|
191
|
+
declare class Signer extends Signer_base {
|
|
192
|
+
static VaultLive: Layer.Layer<Signer, effect_ConfigError2.ConfigError, never>;
|
|
193
|
+
static makePrivateKeySigner: (privateKey: Redacted.Redacted<HexString>) => Layer.Layer<Signer, never, never>;
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region src/signer/vault.d.ts
|
|
197
|
+
declare const Vault_base: Effect.Service.Class<Vault, "Vault", {
|
|
198
|
+
readonly dependencies: readonly [Layer.Layer<HttpClient.HttpClient, never, never>, Layer.Layer<FileSystem.FileSystem, never, never>];
|
|
199
|
+
readonly effect: Effect.Effect<{
|
|
200
|
+
getPublicKey: () => Effect.Effect<string & effect_Brand26.Brand<"HexString">, never, never>;
|
|
201
|
+
toSignatureWithPublicKey: (hash: HexString) => Effect.Effect<{
|
|
202
|
+
readonly curve: _radixdlt_radix_engine_toolkit1.Curve;
|
|
203
|
+
readonly signature: Uint8Array;
|
|
204
|
+
readonly publicKey: Uint8Array;
|
|
205
|
+
}, effect_ConfigError2.ConfigError | ParseResult.ParseError | _effect_platform_HttpClientError0.HttpClientError | _effect_platform_Error0.PlatformError | HttpBody.HttpBodyError, never>;
|
|
206
|
+
}, effect_ConfigError2.ConfigError, HttpClient.HttpClient | FileSystem.FileSystem>;
|
|
207
|
+
}>;
|
|
208
|
+
declare class Vault extends Vault_base {}
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region src/test-helpers/createAccount.d.ts
|
|
211
|
+
declare const createAccount: (input?: Partial<{
|
|
212
|
+
privateKey: Uint8Array;
|
|
213
|
+
networkId: number;
|
|
214
|
+
}>) => Effect.Effect<{
|
|
215
|
+
address: any;
|
|
216
|
+
sign: (hash: string) => string;
|
|
217
|
+
publicKeyHex: string;
|
|
218
|
+
privateKeyHex: string;
|
|
219
|
+
}, effect_Cause13.UnknownException, never>;
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/test-helpers/disableTestClock.d.ts
|
|
222
|
+
declare const DisableTestClock: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/notaryKeyPair.d.ts
|
|
225
|
+
declare const NotaryKeyPair_base: Effect.Service.Class<NotaryKeyPair, "NotaryKeyPair", {
|
|
226
|
+
readonly effect: Effect.Effect<{
|
|
227
|
+
publicKey: () => Effect.Effect<_radixdlt_radix_engine_toolkit1.PublicKey, never, never>;
|
|
228
|
+
signToSignature: (hash: HexString) => Effect.Effect<{
|
|
229
|
+
readonly curve: _radixdlt_radix_engine_toolkit1.Curve;
|
|
230
|
+
readonly bytes: Uint8Array;
|
|
231
|
+
rawBytes: () => Uint8Array;
|
|
232
|
+
hexString: () => string;
|
|
233
|
+
toString: () => string;
|
|
234
|
+
hex: () => string;
|
|
235
|
+
readonly signature: Uint8Array;
|
|
236
|
+
}, FailedToSignTransactionError, never>;
|
|
237
|
+
}, never, Signer>;
|
|
238
|
+
}>;
|
|
239
|
+
declare class NotaryKeyPair extends NotaryKeyPair_base {}
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region src/compileTransaction.d.ts
|
|
242
|
+
declare const FailedToCompileTransactionError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
243
|
+
readonly _tag: "FailedToCompileTransactionError";
|
|
244
|
+
} & Readonly<A>;
|
|
245
|
+
declare class FailedToCompileTransactionError extends FailedToCompileTransactionError_base<{
|
|
246
|
+
error: unknown;
|
|
247
|
+
}> {}
|
|
248
|
+
declare const FailedToNotarizeTransactionError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
249
|
+
readonly _tag: "FailedToNotarizeTransactionError";
|
|
250
|
+
} & Readonly<A>;
|
|
251
|
+
declare class FailedToNotarizeTransactionError extends FailedToNotarizeTransactionError_base<{
|
|
252
|
+
error: unknown;
|
|
253
|
+
}> {}
|
|
254
|
+
declare const CompileTransactionInputSchema: Schema.Struct<{
|
|
255
|
+
intent: Schema.Struct<{
|
|
256
|
+
header: Schema.Struct<{
|
|
257
|
+
networkId: Schema.brand<typeof Schema.Number, "NetworkId">;
|
|
258
|
+
startEpochInclusive: Schema.brand<typeof Schema.Number, "Epoch">;
|
|
259
|
+
endEpochExclusive: Schema.brand<typeof Schema.Number, "Epoch">;
|
|
260
|
+
notaryPublicKey: Schema.Schema<{
|
|
261
|
+
readonly curve: _radixdlt_radix_engine_toolkit1.Curve;
|
|
262
|
+
readonly bytes: Uint8Array;
|
|
263
|
+
rawBytes: () => Uint8Array;
|
|
264
|
+
hexString: () => string;
|
|
265
|
+
toString: () => string;
|
|
266
|
+
hex: () => string;
|
|
267
|
+
readonly publicKey: Uint8Array;
|
|
268
|
+
}, string, never>;
|
|
269
|
+
nonce: Schema.brand<typeof Schema.Number, "Nonce">;
|
|
270
|
+
notaryIsSignatory: typeof Schema.Boolean;
|
|
271
|
+
tipPercentage: typeof Schema.Number;
|
|
272
|
+
}>;
|
|
273
|
+
message: Schema.Schema<{
|
|
274
|
+
readonly value: {
|
|
275
|
+
readonly message: {
|
|
276
|
+
readonly value: string & effect_Brand26.Brand<"TransactionMessageString">;
|
|
277
|
+
readonly kind: "String";
|
|
278
|
+
};
|
|
279
|
+
readonly mimeType: "text/plain";
|
|
280
|
+
};
|
|
281
|
+
readonly kind: "PlainText";
|
|
282
|
+
} | {
|
|
283
|
+
readonly kind: "None";
|
|
284
|
+
}, string | undefined, never>;
|
|
285
|
+
manifest: Schema.Schema<{
|
|
286
|
+
readonly instructions: {
|
|
287
|
+
readonly value: string & effect_Brand26.Brand<"TransactionManifestString">;
|
|
288
|
+
readonly kind: "String";
|
|
289
|
+
};
|
|
290
|
+
readonly blobs: Uint8Array<ArrayBufferLike>[];
|
|
291
|
+
}, string, never>;
|
|
292
|
+
}>;
|
|
293
|
+
signatures: Schema.Array$<Schema.Schema<{
|
|
294
|
+
readonly curve: _radixdlt_radix_engine_toolkit1.Curve;
|
|
295
|
+
readonly signature: Uint8Array;
|
|
296
|
+
readonly publicKey: Uint8Array;
|
|
297
|
+
}, {
|
|
298
|
+
readonly signature: string;
|
|
299
|
+
readonly signerPublicKey: string;
|
|
300
|
+
readonly curve: "Ed25519";
|
|
301
|
+
}, never>>;
|
|
302
|
+
}>;
|
|
303
|
+
type CompileTransactionInput = typeof CompileTransactionInputSchema.Type;
|
|
304
|
+
declare const CompileTransaction_base: Effect.Service.Class<CompileTransaction, "CompileTransaction", {
|
|
305
|
+
readonly dependencies: readonly [effect_Layer0.Layer<NotaryKeyPair, never, Signer>];
|
|
306
|
+
readonly effect: Effect.Effect<(input: CompileTransactionInput) => Effect.Effect<Uint8Array<ArrayBufferLike>, FailedToCompileTransactionError | FailedToNotarizeTransactionError, never>, never, NotaryKeyPair>;
|
|
307
|
+
}>;
|
|
308
|
+
declare class CompileTransaction extends CompileTransaction_base {}
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region src/epoch.d.ts
|
|
311
|
+
declare const InvalidEndEpochError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
312
|
+
readonly _tag: "InvalidEndEpochError";
|
|
313
|
+
} & Readonly<A>;
|
|
314
|
+
declare class InvalidEndEpochError extends InvalidEndEpochError_base<{
|
|
315
|
+
message: string;
|
|
316
|
+
transactionId: TransactionId;
|
|
317
|
+
}> {}
|
|
318
|
+
declare const InvalidStartEpochError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
319
|
+
readonly _tag: "InvalidStartEpochError";
|
|
320
|
+
} & Readonly<A>;
|
|
321
|
+
declare class InvalidStartEpochError extends InvalidStartEpochError_base<{
|
|
322
|
+
message: string;
|
|
323
|
+
transactionId: TransactionId;
|
|
324
|
+
}> {}
|
|
325
|
+
declare const EpochService_base: Effect.Service.Class<EpochService, "EpochService", {
|
|
326
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GetLedgerStateService, never, _radix_effects_gateway97.GatewayApiClient>];
|
|
327
|
+
readonly effect: Effect.Effect<{
|
|
328
|
+
getCurrentEpoch: () => Effect.Effect<number & effect_Brand26.Brand<"Epoch">, _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError, never>;
|
|
329
|
+
verifyEpochBounds: (input: {
|
|
330
|
+
transactionId: TransactionId;
|
|
331
|
+
transactionIntent: TransactionIntent;
|
|
332
|
+
}) => Effect.Effect<undefined, _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError | InvalidStartEpochError | InvalidEndEpochError, never>;
|
|
333
|
+
}, never, GetLedgerStateService>;
|
|
334
|
+
}>;
|
|
335
|
+
declare class EpochService extends EpochService_base {}
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region src/transactionHeader.d.ts
|
|
338
|
+
declare const InvalidEpochError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
339
|
+
readonly _tag: "InvalidEpochError";
|
|
340
|
+
} & Readonly<A>;
|
|
341
|
+
declare class InvalidEpochError extends InvalidEpochError_base<{
|
|
342
|
+
message: string;
|
|
343
|
+
}> {}
|
|
344
|
+
type CreateTransactionHeaderInput = {
|
|
345
|
+
networkId: NetworkId;
|
|
346
|
+
startEpochInclusive: Option.Option<Epoch>;
|
|
347
|
+
endEpochExclusive: Option.Option<Epoch>;
|
|
348
|
+
tipPercentage?: number;
|
|
349
|
+
nonce?: Nonce;
|
|
350
|
+
notaryIsSignatory?: boolean;
|
|
351
|
+
};
|
|
352
|
+
declare const TransactionHeader_base: Effect.Service.Class<TransactionHeader, "TransactionHeader", {
|
|
353
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GetLedgerStateService, never, _radix_effects_gateway97.GatewayApiClient>, effect_Layer0.Layer<NotaryKeyPair, never, Signer>, effect_Layer0.Layer<EpochService, never, _radix_effects_gateway97.GatewayApiClient>];
|
|
354
|
+
readonly effect: Effect.Effect<(input: CreateTransactionHeaderInput) => Effect.Effect<{
|
|
355
|
+
readonly networkId: number & effect_Brand26.Brand<"NetworkId">;
|
|
356
|
+
readonly startEpochInclusive: number & effect_Brand26.Brand<"Epoch">;
|
|
357
|
+
readonly endEpochExclusive: number & effect_Brand26.Brand<"Epoch">;
|
|
358
|
+
readonly notaryPublicKey: {
|
|
359
|
+
readonly curve: _radixdlt_radix_engine_toolkit1.Curve;
|
|
360
|
+
readonly bytes: Uint8Array;
|
|
361
|
+
rawBytes: () => Uint8Array;
|
|
362
|
+
hexString: () => string;
|
|
363
|
+
toString: () => string;
|
|
364
|
+
hex: () => string;
|
|
365
|
+
readonly publicKey: Uint8Array;
|
|
366
|
+
};
|
|
367
|
+
readonly nonce: number & effect_Brand26.Brand<"Nonce">;
|
|
368
|
+
readonly notaryIsSignatory: boolean;
|
|
369
|
+
readonly tipPercentage: number;
|
|
370
|
+
}, _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError | InvalidEpochError, never>, never, NotaryKeyPair | EpochService>;
|
|
371
|
+
}>;
|
|
372
|
+
declare class TransactionHeader extends TransactionHeader_base {}
|
|
373
|
+
//#endregion
|
|
374
|
+
//#region src/staticallyValidateManifest.d.ts
|
|
375
|
+
declare const FailedToStaticallyValidateManifestError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
376
|
+
readonly _tag: "FailedToStaticallyValidateManifestError";
|
|
377
|
+
} & Readonly<A>;
|
|
378
|
+
declare class FailedToStaticallyValidateManifestError extends FailedToStaticallyValidateManifestError_base<{
|
|
379
|
+
error: unknown;
|
|
380
|
+
}> {}
|
|
381
|
+
declare const InvalidManifestError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
382
|
+
readonly _tag: "InvalidManifestError";
|
|
383
|
+
} & Readonly<A>;
|
|
384
|
+
declare class InvalidManifestError extends InvalidManifestError_base<{
|
|
385
|
+
message: string;
|
|
386
|
+
}> {}
|
|
387
|
+
declare const StaticallyValidateManifest_base: Effect.Service.Class<StaticallyValidateManifest, "StaticallyValidateManifest", {
|
|
388
|
+
readonly effect: Effect.Effect<(input: {
|
|
389
|
+
manifest: Manifest;
|
|
390
|
+
networkId: NetworkId;
|
|
391
|
+
}) => Effect.Effect<undefined, InvalidManifestError | FailedToStaticallyValidateManifestError, never>, never, never>;
|
|
392
|
+
}>;
|
|
393
|
+
declare class StaticallyValidateManifest extends StaticallyValidateManifest_base {}
|
|
394
|
+
//#endregion
|
|
395
|
+
//#region src/createTransactionIntent.d.ts
|
|
396
|
+
declare const CreateTransactionIntentInputSchema: Schema.Struct<{
|
|
397
|
+
startEpochInclusive: Schema.optional<Schema.brand<typeof Schema.Number, "Epoch">>;
|
|
398
|
+
endEpochExclusive: Schema.optional<Schema.brand<typeof Schema.Number, "Epoch">>;
|
|
399
|
+
manifest: Schema.brand<typeof Schema.String, "TransactionManifestString">;
|
|
400
|
+
message: Schema.optional<Schema.brand<typeof Schema.String, "TransactionMessageString">>;
|
|
401
|
+
tipPercentage: Schema.optional<typeof Schema.Number>;
|
|
402
|
+
}>;
|
|
403
|
+
type CreateTransactionIntentInput = typeof CreateTransactionIntentInputSchema.Type;
|
|
404
|
+
declare const CreateTransactionIntent_base: Effect.Service.Class<CreateTransactionIntent, "CreateTransactionIntent", {
|
|
405
|
+
readonly dependencies: readonly [effect_Layer0.Layer<StaticallyValidateManifest, never, never>, effect_Layer0.Layer<TransactionHeader, never, Signer | GatewayApiClient>];
|
|
406
|
+
readonly effect: Effect.Effect<(input: CreateTransactionIntentInput) => Effect.Effect<{
|
|
407
|
+
readonly message: {
|
|
408
|
+
readonly value: {
|
|
409
|
+
readonly message: {
|
|
410
|
+
readonly value: string & effect_Brand26.Brand<"TransactionMessageString">;
|
|
411
|
+
readonly kind: "String";
|
|
412
|
+
};
|
|
413
|
+
readonly mimeType: "text/plain";
|
|
414
|
+
};
|
|
415
|
+
readonly kind: "PlainText";
|
|
416
|
+
} | {
|
|
417
|
+
readonly kind: "None";
|
|
418
|
+
};
|
|
419
|
+
readonly header: {
|
|
420
|
+
readonly networkId: number & effect_Brand26.Brand<"NetworkId">;
|
|
421
|
+
readonly startEpochInclusive: number & effect_Brand26.Brand<"Epoch">;
|
|
422
|
+
readonly endEpochExclusive: number & effect_Brand26.Brand<"Epoch">;
|
|
423
|
+
readonly notaryPublicKey: {
|
|
424
|
+
readonly curve: _radixdlt_radix_engine_toolkit1.Curve;
|
|
425
|
+
readonly bytes: Uint8Array;
|
|
426
|
+
rawBytes: () => Uint8Array;
|
|
427
|
+
hexString: () => string;
|
|
428
|
+
toString: () => string;
|
|
429
|
+
hex: () => string;
|
|
430
|
+
readonly publicKey: Uint8Array;
|
|
431
|
+
};
|
|
432
|
+
readonly nonce: number & effect_Brand26.Brand<"Nonce">;
|
|
433
|
+
readonly notaryIsSignatory: boolean;
|
|
434
|
+
readonly tipPercentage: number;
|
|
435
|
+
};
|
|
436
|
+
readonly manifest: {
|
|
437
|
+
readonly instructions: {
|
|
438
|
+
readonly value: string & effect_Brand26.Brand<"TransactionManifestString">;
|
|
439
|
+
readonly kind: "String";
|
|
440
|
+
};
|
|
441
|
+
readonly blobs: Uint8Array<ArrayBufferLike>[];
|
|
442
|
+
};
|
|
443
|
+
}, _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError | InvalidEpochError | effect_ParseResult0.ParseError | InvalidManifestError | FailedToStaticallyValidateManifestError, never>, never, GatewayApiClient | TransactionHeader | StaticallyValidateManifest>;
|
|
444
|
+
}>;
|
|
445
|
+
declare class CreateTransactionIntent extends CreateTransactionIntent_base {}
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region src/intentHash.d.ts
|
|
448
|
+
declare const FailedToCreateIntentHashError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
449
|
+
readonly _tag: "FailedToCreateIntentHashError";
|
|
450
|
+
} & Readonly<A>;
|
|
451
|
+
declare class FailedToCreateIntentHashError extends FailedToCreateIntentHashError_base<{
|
|
452
|
+
error: unknown;
|
|
453
|
+
}> {}
|
|
454
|
+
declare const IntentHashService_base: Effect.Service.Class<IntentHashService, "IntentHashService", {
|
|
455
|
+
readonly effect: Effect.Effect<{
|
|
456
|
+
create: (input: TransactionIntent) => Effect.Effect<{
|
|
457
|
+
id: string & effect_Brand26.Brand<"TransactionId">;
|
|
458
|
+
hash: string & effect_Brand26.Brand<"HexString">;
|
|
459
|
+
}, FailedToCreateIntentHashError, never>;
|
|
460
|
+
}, never, never>;
|
|
461
|
+
}>;
|
|
462
|
+
declare class IntentHashService extends IntentHashService_base {}
|
|
463
|
+
//#endregion
|
|
464
|
+
//#region src/previewTransaction.d.ts
|
|
465
|
+
declare const TransactionPreviewError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
466
|
+
readonly _tag: "TransactionPreviewError";
|
|
467
|
+
} & Readonly<A>;
|
|
468
|
+
declare class TransactionPreviewError extends TransactionPreviewError_base<{
|
|
469
|
+
message?: string;
|
|
470
|
+
}> {}
|
|
471
|
+
declare const PreviewTransaction_base: Effect.Service.Class<PreviewTransaction, "PreviewTransaction", {
|
|
472
|
+
readonly effect: Effect.Effect<(input: {
|
|
473
|
+
payload: TransactionPreviewOperationRequest["transactionPreviewRequest"];
|
|
474
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk3.TransactionPreviewResponse, _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError | TransactionPreviewError, never>, never, GatewayApiClient>;
|
|
475
|
+
}>;
|
|
476
|
+
declare class PreviewTransaction extends PreviewTransaction_base {}
|
|
477
|
+
//#endregion
|
|
478
|
+
//#region src/submitTransaction.d.ts
|
|
479
|
+
declare const SubmitTransaction_base: Effect.Service.Class<SubmitTransaction, "SubmitTransaction", {
|
|
480
|
+
readonly effect: Effect.Effect<(input: {
|
|
481
|
+
compiledTransaction: Uint8Array<ArrayBufferLike>;
|
|
482
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk3.TransactionSubmitResponse, _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError, never>, never, GatewayApiClient>;
|
|
483
|
+
}>;
|
|
484
|
+
declare class SubmitTransaction extends SubmitTransaction_base {}
|
|
485
|
+
//#endregion
|
|
486
|
+
//#region src/transactionStatus.d.ts
|
|
487
|
+
declare const TransactionNotResolvedError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
488
|
+
readonly _tag: "TransactionNotResolvedError";
|
|
489
|
+
} & Readonly<A>;
|
|
490
|
+
declare class TransactionNotResolvedError extends TransactionNotResolvedError_base<{
|
|
491
|
+
status: TransactionStatusResponse['intent_status'];
|
|
492
|
+
statusDescription: string;
|
|
493
|
+
message: null | undefined | string;
|
|
494
|
+
transactionId: TransactionId;
|
|
495
|
+
}> {}
|
|
496
|
+
declare const TransactionFailedError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
497
|
+
readonly _tag: "TransactionFailedError";
|
|
498
|
+
} & Readonly<A>;
|
|
499
|
+
declare class TransactionFailedError extends TransactionFailedError_base<{
|
|
500
|
+
status: TransactionStatusResponse['intent_status'];
|
|
501
|
+
statusDescription: string;
|
|
502
|
+
message: null | undefined | string;
|
|
503
|
+
transactionId: TransactionId;
|
|
504
|
+
}> {}
|
|
505
|
+
declare const TimeoutError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause13.YieldableError & {
|
|
506
|
+
readonly _tag: "TimeoutError";
|
|
507
|
+
} & Readonly<A>;
|
|
508
|
+
declare class TimeoutError extends TimeoutError_base<{
|
|
509
|
+
transactionId: TransactionId;
|
|
510
|
+
}> {}
|
|
511
|
+
declare const TransactionStatus_base: Effect.Service.Class<TransactionStatus, "TransactionStatus", {
|
|
512
|
+
readonly effect: Effect.Effect<{
|
|
513
|
+
poll: (input: {
|
|
514
|
+
id: TransactionId;
|
|
515
|
+
retryPolicy?: Schedule.Schedule<number, unknown, never>;
|
|
516
|
+
timeout?: Duration.Duration;
|
|
517
|
+
}) => Effect.Effect<TransactionStatusResponse, _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError | TransactionFailedError | TransactionNotResolvedError | TimeoutError, never>;
|
|
518
|
+
}, never, GatewayApiClient>;
|
|
519
|
+
}>;
|
|
520
|
+
declare class TransactionStatus extends TransactionStatus_base {}
|
|
521
|
+
//#endregion
|
|
522
|
+
//#region src/transactionHelper.d.ts
|
|
523
|
+
declare const FaucetNotAvailableError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => Cause.YieldableError & {
|
|
524
|
+
readonly _tag: "FaucetNotAvailableError";
|
|
525
|
+
} & Readonly<A>;
|
|
526
|
+
declare class FaucetNotAvailableError extends FaucetNotAvailableError_base<{
|
|
527
|
+
message: string;
|
|
528
|
+
}> {}
|
|
529
|
+
declare const TransactionLifeCycleHook_base: Context.TagClass<TransactionLifeCycleHook, "TransactionLifeCycleHook", {
|
|
530
|
+
onSubmit?: (input: {
|
|
531
|
+
id: TransactionId;
|
|
532
|
+
intent: TransactionIntent;
|
|
533
|
+
}) => Effect.Effect<void, never, never>;
|
|
534
|
+
onSubmitSuccess?: (input: {
|
|
535
|
+
id: TransactionId;
|
|
536
|
+
intent: TransactionIntent;
|
|
537
|
+
}) => Effect.Effect<void, never, never>;
|
|
538
|
+
onStatusFailure?: (input: {
|
|
539
|
+
id: TransactionId;
|
|
540
|
+
permanent: boolean;
|
|
541
|
+
intent: TransactionIntent;
|
|
542
|
+
}) => Effect.Effect<void, never, never>;
|
|
543
|
+
onSuccess?: (input: {
|
|
544
|
+
id: TransactionId;
|
|
545
|
+
}) => Effect.Effect<void, never, never>;
|
|
546
|
+
}>;
|
|
547
|
+
declare class TransactionLifeCycleHook extends TransactionLifeCycleHook_base {}
|
|
548
|
+
declare const InsufficientXrdBalanceError_base: new <A extends Record<string, any> = {}>(args: effect_Types13.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => Cause.YieldableError & {
|
|
549
|
+
readonly _tag: "InsufficientXrdBalanceError";
|
|
550
|
+
} & Readonly<A>;
|
|
551
|
+
declare class InsufficientXrdBalanceError extends InsufficientXrdBalanceError_base<{
|
|
552
|
+
message: string;
|
|
553
|
+
}> {}
|
|
554
|
+
declare const TransactionHelper_base: Effect.Service.Class<TransactionHelper, "TransactionHelper", {
|
|
555
|
+
readonly dependencies: readonly [effect_Layer0.Layer<CreateTransactionIntent, never, Signer | GatewayApiClient>, effect_Layer0.Layer<CompileTransaction, never, Signer>, effect_Layer0.Layer<SubmitTransaction, never, GatewayApiClient>, effect_Layer0.Layer<TransactionStatus, never, GatewayApiClient>, effect_Layer0.Layer<ManifestHelper, never, never>, effect_Layer0.Layer<IntentHashService, never, never>, effect_Layer0.Layer<EpochService, never, GatewayApiClient>, effect_Layer0.Layer<GetFungibleBalance, effect_ConfigError2.ConfigError, GatewayApiClient>, effect_Layer0.Layer<GetLedgerStateService, never, GatewayApiClient>];
|
|
556
|
+
readonly effect: Effect.Effect<{
|
|
557
|
+
submitTransaction: (input: {
|
|
558
|
+
manifest: TransactionManifestString;
|
|
559
|
+
feePayer?: {
|
|
560
|
+
account: Account;
|
|
561
|
+
amount: Amount;
|
|
562
|
+
};
|
|
563
|
+
transactionIntent?: TransactionIntent;
|
|
564
|
+
}) => Effect.Effect<{
|
|
565
|
+
statusResponse: _radixdlt_babylon_gateway_api_sdk3.TransactionStatusResponse;
|
|
566
|
+
id: string & effect_Brand26.Brand<"TransactionId">;
|
|
567
|
+
}, FailedToSignTransactionError | _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError | InsufficientXrdBalanceError | InvalidManifestError | FailedToStaticallyValidateManifestError | FailedToCreateIntentHashError | InvalidStartEpochError | InvalidEndEpochError | TransactionFailedError | TransactionNotResolvedError | TimeoutError, never>;
|
|
568
|
+
getCommittedDetails: (input: {
|
|
569
|
+
id: TransactionId;
|
|
570
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk3.TransactionCommittedDetailsResponse, _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError, never>;
|
|
571
|
+
createBadge: (input: {
|
|
572
|
+
account: Account;
|
|
573
|
+
feePayer: Account;
|
|
574
|
+
initialSupply?: number;
|
|
575
|
+
}) => Effect.Effect<string & effect_Brand26.Brand<"FungibleResourceAddress">, FailedToSignTransactionError | _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError | InsufficientXrdBalanceError | InvalidManifestError | FailedToStaticallyValidateManifestError | FailedToCreateIntentHashError | InvalidStartEpochError | InvalidEndEpochError | TransactionFailedError | TransactionNotResolvedError | TimeoutError, never>;
|
|
576
|
+
createFungibleToken: (input: {
|
|
577
|
+
account: Account;
|
|
578
|
+
feePayer: Account;
|
|
579
|
+
name: string;
|
|
580
|
+
symbol: string;
|
|
581
|
+
initialSupply: Amount;
|
|
582
|
+
}) => Effect.Effect<string & effect_Brand26.Brand<"FungibleResourceAddress">, FailedToSignTransactionError | _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError | InsufficientXrdBalanceError | InvalidManifestError | FailedToStaticallyValidateManifestError | FailedToCreateIntentHashError | InvalidStartEpochError | InvalidEndEpochError | TransactionFailedError | TransactionNotResolvedError | TimeoutError, never>;
|
|
583
|
+
faucet: (input: {
|
|
584
|
+
account: Account;
|
|
585
|
+
}) => Effect.Effect<{
|
|
586
|
+
statusResponse: _radixdlt_babylon_gateway_api_sdk3.TransactionStatusResponse;
|
|
587
|
+
id: string & effect_Brand26.Brand<"TransactionId">;
|
|
588
|
+
}, FailedToSignTransactionError | Cause.UnknownException | _radix_effects_gateway97.AccountLockerNotFoundError | _radix_effects_gateway97.InvalidRequestError | _radix_effects_gateway97.EntityNotFoundError | _radix_effects_gateway97.InternalServerError | _radix_effects_gateway97.InvalidEntityError | _radix_effects_gateway97.InvalidTransactionError | _radix_effects_gateway97.NotSyncedUpError | _radix_effects_gateway97.TransactionNotFoundError | _radix_effects_gateway97.ErrorResponse | _radix_effects_gateway97.RateLimitExceededError | _radix_effects_gateway97.ResponseError | _radix_effects_gateway97.UnknownGatewayError | InsufficientXrdBalanceError | InvalidManifestError | FailedToStaticallyValidateManifestError | FailedToCreateIntentHashError | InvalidStartEpochError | InvalidEndEpochError | TransactionFailedError | TransactionNotResolvedError | TimeoutError, never>;
|
|
589
|
+
}, Cause.UnknownException, CompileTransaction | Signer | SubmitTransaction | GatewayApiClient | GetLedgerStateService | EpochService | CreateTransactionIntent | TransactionStatus | ManifestHelper | IntentHashService | GetFungibleBalance>;
|
|
590
|
+
}>;
|
|
591
|
+
declare class TransactionHelper extends TransactionHelper_base {}
|
|
592
|
+
//#endregion
|
|
593
|
+
export { CompileTransaction, CreateTransactionHeaderInput, CreateTransactionIntent, DisableTestClock, EpochService, FailedToCompileTransactionError, FailedToCreateIntentHashError, FailedToNotarizeTransactionError, FailedToSignTransactionError, FailedToStaticallyValidateManifestError, FaucetNotAvailableError, InsufficientXrdBalanceError, IntentHashService, InvalidEndEpochError, InvalidEpochError, InvalidManifestError, InvalidStartEpochError, ManifestHelper, NotaryKeyPair, PreviewTransaction, Signer, StaticallyValidateManifest, SubmitTransaction, TimeoutError, TransactionFailedError, TransactionHeader, TransactionHelper, TransactionLifeCycleHook, TransactionNotResolvedError, TransactionStatus, Vault, addFeePayer, createAccount, createBadge, createFungibleTokenManifest, faucet, schemas_d_exports as schemas };
|