@unconfirmed/sui-effect 0.1.0 → 0.1.2
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/AGENTS.md +47 -14
- package/CHANGELOG.md +86 -0
- package/LLMS.md +2889 -1726
- package/README.md +517 -11
- package/dist/domain/bcs.d.ts +44 -0
- package/dist/domain/bcs.d.ts.map +1 -1
- package/dist/domain/bcs.js +64 -0
- package/dist/domain/bcs.js.map +1 -1
- package/dist/domain/errors.d.ts +164 -26
- package/dist/domain/errors.d.ts.map +1 -1
- package/dist/domain/errors.js +193 -15
- package/dist/domain/errors.js.map +1 -1
- package/dist/domain/executed.d.ts +123 -18
- package/dist/domain/executed.d.ts.map +1 -1
- package/dist/domain/executed.js +196 -5
- package/dist/domain/executed.js.map +1 -1
- package/dist/domain/journal-entry.d.ts +6 -2
- package/dist/domain/journal-entry.d.ts.map +1 -1
- package/dist/domain/schemas.d.ts +234 -67
- package/dist/domain/schemas.d.ts.map +1 -1
- package/dist/domain/schemas.js +82 -4
- package/dist/domain/schemas.js.map +1 -1
- package/dist/domain/sui-schema.d.ts +3 -2
- package/dist/domain/sui-schema.d.ts.map +1 -1
- package/dist/domain/sui-schema.js +3 -2
- package/dist/domain/sui-schema.js.map +1 -1
- package/dist/extension.d.ts +1 -1
- package/dist/extension.d.ts.map +1 -1
- package/dist/extension.js +1 -1
- package/dist/extension.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/script.d.ts +1 -1
- package/dist/script.d.ts.map +1 -1
- package/dist/script.js +1 -1
- package/dist/script.js.map +1 -1
- package/dist/services/Script.d.ts +42 -0
- package/dist/services/Script.d.ts.map +1 -1
- package/dist/services/Script.js +69 -2
- package/dist/services/Script.js.map +1 -1
- package/dist/services/Signer.d.ts +32 -7
- package/dist/services/Signer.d.ts.map +1 -1
- package/dist/services/Signer.js +69 -10
- package/dist/services/Signer.js.map +1 -1
- package/dist/services/Sui.d.ts +42 -1
- package/dist/services/Sui.d.ts.map +1 -1
- package/dist/services/Sui.js +18 -4
- package/dist/services/Sui.js.map +1 -1
- package/dist/services/SuiCore.d.ts +12 -0
- package/dist/services/SuiCore.d.ts.map +1 -1
- package/dist/services/SuiCore.js +124 -0
- package/dist/services/SuiCore.js.map +1 -1
- package/dist/services/SuiCoreFake.d.ts +59 -4
- package/dist/services/SuiCoreFake.d.ts.map +1 -1
- package/dist/services/SuiCoreFake.js +199 -23
- package/dist/services/SuiCoreFake.js.map +1 -1
- package/dist/services/SuiExtension.d.ts +127 -14
- package/dist/services/SuiExtension.d.ts.map +1 -1
- package/dist/services/SuiExtension.js +125 -28
- package/dist/services/SuiExtension.js.map +1 -1
- package/dist/services/SuiGraphQL.d.ts +13 -0
- package/dist/services/SuiGraphQL.d.ts.map +1 -1
- package/dist/services/SuiGraphQL.js +13 -0
- package/dist/services/SuiGraphQL.js.map +1 -1
- package/dist/services/Tx.d.ts +630 -12
- package/dist/services/Tx.d.ts.map +1 -1
- package/dist/services/Tx.js +187 -8
- package/dist/services/Tx.js.map +1 -1
- package/dist/testing.d.ts +22 -3
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +39 -3
- package/dist/testing.js.map +1 -1
- package/dist/tx.d.ts +1 -1
- package/dist/tx.d.ts.map +1 -1
- package/dist/tx.js +1 -1
- package/dist/tx.js.map +1 -1
- package/docs/extensions.md +871 -33
- package/examples/extension-template/src/Escrow.ts +1 -1
- package/examples/extension-template/test/escrow.test.ts +91 -2
- package/package.json +3 -2
|
@@ -81,16 +81,22 @@ declare const Executed_base: Schema.Class<Executed, Schema.Struct<{
|
|
|
81
81
|
}>;
|
|
82
82
|
readonly transactionDigest: Schema.brand<Schema.String, "Digest">;
|
|
83
83
|
readonly gasObject: Schema.NullOr<Schema.Struct<{
|
|
84
|
-
readonly objectId: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"
|
|
84
|
+
readonly objectId: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"> & {
|
|
85
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"ObjectId">;
|
|
86
|
+
};
|
|
85
87
|
readonly inputState: Schema.Literals<readonly ["Unknown", "DoesNotExist", "Exists"]>;
|
|
86
88
|
readonly inputVersion: Schema.NullOr<Schema.brand<Schema.BigIntFromString, "Version">>;
|
|
87
89
|
readonly inputDigest: Schema.NullOr<Schema.String>;
|
|
88
90
|
readonly inputOwner: Schema.NullOr<Schema.toTaggedUnion<"$kind", readonly [Schema.Struct<{
|
|
89
91
|
readonly $kind: Schema.Literal<"AddressOwner">;
|
|
90
|
-
readonly AddressOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
92
|
+
readonly AddressOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
93
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
94
|
+
};
|
|
91
95
|
}>, Schema.Struct<{
|
|
92
96
|
readonly $kind: Schema.Literal<"ObjectOwner">;
|
|
93
|
-
readonly ObjectOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"
|
|
97
|
+
readonly ObjectOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"> & {
|
|
98
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"ObjectId">;
|
|
99
|
+
};
|
|
94
100
|
}>, Schema.Struct<{
|
|
95
101
|
readonly $kind: Schema.Literal<"Shared">;
|
|
96
102
|
readonly Shared: Schema.Struct<{
|
|
@@ -103,7 +109,9 @@ declare const Executed_base: Schema.Class<Executed, Schema.Struct<{
|
|
|
103
109
|
readonly $kind: Schema.Literal<"ConsensusAddressOwner">;
|
|
104
110
|
readonly ConsensusAddressOwner: Schema.Struct<{
|
|
105
111
|
readonly startVersion: Schema.brand<Schema.BigIntFromString, "Version">;
|
|
106
|
-
readonly owner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
112
|
+
readonly owner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
113
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
114
|
+
};
|
|
107
115
|
}>;
|
|
108
116
|
}>, Schema.Struct<{
|
|
109
117
|
readonly $kind: Schema.Literal<"Unknown">;
|
|
@@ -113,10 +121,14 @@ declare const Executed_base: Schema.Class<Executed, Schema.Struct<{
|
|
|
113
121
|
readonly outputDigest: Schema.NullOr<Schema.String>;
|
|
114
122
|
readonly outputOwner: Schema.NullOr<Schema.toTaggedUnion<"$kind", readonly [Schema.Struct<{
|
|
115
123
|
readonly $kind: Schema.Literal<"AddressOwner">;
|
|
116
|
-
readonly AddressOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
124
|
+
readonly AddressOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
125
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
126
|
+
};
|
|
117
127
|
}>, Schema.Struct<{
|
|
118
128
|
readonly $kind: Schema.Literal<"ObjectOwner">;
|
|
119
|
-
readonly ObjectOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"
|
|
129
|
+
readonly ObjectOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"> & {
|
|
130
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"ObjectId">;
|
|
131
|
+
};
|
|
120
132
|
}>, Schema.Struct<{
|
|
121
133
|
readonly $kind: Schema.Literal<"Shared">;
|
|
122
134
|
readonly Shared: Schema.Struct<{
|
|
@@ -129,7 +141,9 @@ declare const Executed_base: Schema.Class<Executed, Schema.Struct<{
|
|
|
129
141
|
readonly $kind: Schema.Literal<"ConsensusAddressOwner">;
|
|
130
142
|
readonly ConsensusAddressOwner: Schema.Struct<{
|
|
131
143
|
readonly startVersion: Schema.brand<Schema.BigIntFromString, "Version">;
|
|
132
|
-
readonly owner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
144
|
+
readonly owner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
145
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
146
|
+
};
|
|
133
147
|
}>;
|
|
134
148
|
}>, Schema.Struct<{
|
|
135
149
|
readonly $kind: Schema.Literal<"Unknown">;
|
|
@@ -140,16 +154,22 @@ declare const Executed_base: Schema.Class<Executed, Schema.Struct<{
|
|
|
140
154
|
readonly dependencies: Schema.$Array<Schema.String>;
|
|
141
155
|
readonly lamportVersion: Schema.NullOr<Schema.brand<Schema.BigIntFromString, "Version">>;
|
|
142
156
|
readonly changedObjects: Schema.$Array<Schema.Struct<{
|
|
143
|
-
readonly objectId: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"
|
|
157
|
+
readonly objectId: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"> & {
|
|
158
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"ObjectId">;
|
|
159
|
+
};
|
|
144
160
|
readonly inputState: Schema.Literals<readonly ["Unknown", "DoesNotExist", "Exists"]>;
|
|
145
161
|
readonly inputVersion: Schema.NullOr<Schema.brand<Schema.BigIntFromString, "Version">>;
|
|
146
162
|
readonly inputDigest: Schema.NullOr<Schema.String>;
|
|
147
163
|
readonly inputOwner: Schema.NullOr<Schema.toTaggedUnion<"$kind", readonly [Schema.Struct<{
|
|
148
164
|
readonly $kind: Schema.Literal<"AddressOwner">;
|
|
149
|
-
readonly AddressOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
165
|
+
readonly AddressOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
166
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
167
|
+
};
|
|
150
168
|
}>, Schema.Struct<{
|
|
151
169
|
readonly $kind: Schema.Literal<"ObjectOwner">;
|
|
152
|
-
readonly ObjectOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"
|
|
170
|
+
readonly ObjectOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"> & {
|
|
171
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"ObjectId">;
|
|
172
|
+
};
|
|
153
173
|
}>, Schema.Struct<{
|
|
154
174
|
readonly $kind: Schema.Literal<"Shared">;
|
|
155
175
|
readonly Shared: Schema.Struct<{
|
|
@@ -162,7 +182,9 @@ declare const Executed_base: Schema.Class<Executed, Schema.Struct<{
|
|
|
162
182
|
readonly $kind: Schema.Literal<"ConsensusAddressOwner">;
|
|
163
183
|
readonly ConsensusAddressOwner: Schema.Struct<{
|
|
164
184
|
readonly startVersion: Schema.brand<Schema.BigIntFromString, "Version">;
|
|
165
|
-
readonly owner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
185
|
+
readonly owner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
186
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
187
|
+
};
|
|
166
188
|
}>;
|
|
167
189
|
}>, Schema.Struct<{
|
|
168
190
|
readonly $kind: Schema.Literal<"Unknown">;
|
|
@@ -172,10 +194,14 @@ declare const Executed_base: Schema.Class<Executed, Schema.Struct<{
|
|
|
172
194
|
readonly outputDigest: Schema.NullOr<Schema.String>;
|
|
173
195
|
readonly outputOwner: Schema.NullOr<Schema.toTaggedUnion<"$kind", readonly [Schema.Struct<{
|
|
174
196
|
readonly $kind: Schema.Literal<"AddressOwner">;
|
|
175
|
-
readonly AddressOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
197
|
+
readonly AddressOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
198
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
199
|
+
};
|
|
176
200
|
}>, Schema.Struct<{
|
|
177
201
|
readonly $kind: Schema.Literal<"ObjectOwner">;
|
|
178
|
-
readonly ObjectOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"
|
|
202
|
+
readonly ObjectOwner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"> & {
|
|
203
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"ObjectId">;
|
|
204
|
+
};
|
|
179
205
|
}>, Schema.Struct<{
|
|
180
206
|
readonly $kind: Schema.Literal<"Shared">;
|
|
181
207
|
readonly Shared: Schema.Struct<{
|
|
@@ -188,7 +214,9 @@ declare const Executed_base: Schema.Class<Executed, Schema.Struct<{
|
|
|
188
214
|
readonly $kind: Schema.Literal<"ConsensusAddressOwner">;
|
|
189
215
|
readonly ConsensusAddressOwner: Schema.Struct<{
|
|
190
216
|
readonly startVersion: Schema.brand<Schema.BigIntFromString, "Version">;
|
|
191
|
-
readonly owner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
217
|
+
readonly owner: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
218
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
219
|
+
};
|
|
192
220
|
}>;
|
|
193
221
|
}>, Schema.Struct<{
|
|
194
222
|
readonly $kind: Schema.Literal<"Unknown">;
|
|
@@ -197,22 +225,31 @@ declare const Executed_base: Schema.Class<Executed, Schema.Struct<{
|
|
|
197
225
|
}>>;
|
|
198
226
|
readonly unchangedConsensusObjects: Schema.$Array<Schema.Struct<{
|
|
199
227
|
readonly kind: Schema.Literals<readonly ["Unknown", "ReadOnlyRoot", "MutateConsensusStreamEnded", "ReadConsensusStreamEnded", "Cancelled", "PerEpochConfig"]>;
|
|
200
|
-
readonly objectId: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"
|
|
228
|
+
readonly objectId: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"> & {
|
|
229
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"ObjectId">;
|
|
230
|
+
};
|
|
201
231
|
readonly version: Schema.NullOr<Schema.brand<Schema.BigIntFromString, "Version">>;
|
|
202
232
|
readonly digest: Schema.NullOr<Schema.String>;
|
|
203
233
|
}>>;
|
|
204
234
|
readonly auxiliaryDataDigest: Schema.NullOr<Schema.String>;
|
|
205
235
|
}>;
|
|
206
236
|
readonly events: Schema.$Array<Schema.Struct<{
|
|
207
|
-
readonly packageId: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"
|
|
237
|
+
readonly packageId: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "ObjectId"> & {
|
|
238
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"ObjectId">;
|
|
239
|
+
};
|
|
208
240
|
readonly module: Schema.String;
|
|
209
|
-
readonly sender: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
241
|
+
readonly sender: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
242
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
243
|
+
};
|
|
210
244
|
readonly eventType: Schema.String;
|
|
211
245
|
readonly bcs: Schema.Uint8Array;
|
|
246
|
+
readonly json: Schema.optional<Schema.Unknown>;
|
|
212
247
|
}>>;
|
|
213
248
|
readonly balanceChanges: Schema.$Array<Schema.Struct<{
|
|
214
249
|
readonly coinType: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "CoinType">;
|
|
215
|
-
readonly address: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
250
|
+
readonly address: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
251
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
252
|
+
};
|
|
216
253
|
readonly amount: Schema.BigIntFromString;
|
|
217
254
|
}>>;
|
|
218
255
|
readonly objectTypes: Schema.$Record<Schema.String, Schema.String>;
|
|
@@ -222,6 +259,16 @@ declare const Executed_base: Schema.Class<Executed, Schema.Struct<{
|
|
|
222
259
|
/**
|
|
223
260
|
* A transaction the network executed, built from the fixed execute include set:
|
|
224
261
|
* effects, events, balance changes and object types.
|
|
262
|
+
*
|
|
263
|
+
* **`events` is `ReadonlyArray<Event>`, not `SuiClientTypes.Event[]`.** It is
|
|
264
|
+
* that type minus `json`: `packageId`, `module`, `sender`, `eventType` and
|
|
265
|
+
* `bcs`, with the branded ids this package uses. The SDK's `json` is dropped on
|
|
266
|
+
* purpose — it is the node's own rendering, it is absent on most transports,
|
|
267
|
+
* and the decode a caller wants is `SuiSchema.decode(codec, event.bcs)`, which
|
|
268
|
+
* gives a typed value rather than a shape that changes with the node. Code
|
|
269
|
+
* typed against the SDK's `Event[]` therefore does not accept these; take
|
|
270
|
+
* `ReadonlyArray<Event>` from `@unconfirmed/sui-effect`, or map the fields you
|
|
271
|
+
* need.
|
|
225
272
|
*/
|
|
226
273
|
export declare class Executed extends Executed_base {
|
|
227
274
|
/**
|
|
@@ -278,6 +325,17 @@ export declare class Executed extends Executed_base {
|
|
|
278
325
|
* Never fails.
|
|
279
326
|
*/
|
|
280
327
|
wrapped(): ReadonlyArray<ChangedRef>;
|
|
328
|
+
/**
|
|
329
|
+
* Whether this change wrote an object, treating `Unknown` as "the envelope
|
|
330
|
+
* did not say".
|
|
331
|
+
*
|
|
332
|
+
* A node always reports the output state; a reduced envelope from a relay or
|
|
333
|
+
* a sponsor often reports nothing but the id and the id operation, and
|
|
334
|
+
* {@link Executed.fromPartial} leaves what it was not told as `Unknown`
|
|
335
|
+
* rather than inventing `ObjectWrite`. Reading `Unknown` as "not an object
|
|
336
|
+
* write" would make `created()` silently empty for exactly those envelopes.
|
|
337
|
+
*/
|
|
338
|
+
private static wroteAnObject;
|
|
281
339
|
private static isDeleted;
|
|
282
340
|
private static isWrapped;
|
|
283
341
|
/**
|
|
@@ -292,6 +350,53 @@ export declare class Executed extends Executed_base {
|
|
|
292
350
|
balanceChange(address: SuiAddress, coinType: CoinType): bigint;
|
|
293
351
|
/** Computation plus storage less the storage rebate, in MIST. Can be negative. Never fails. */
|
|
294
352
|
get gasUsedTotal(): bigint;
|
|
353
|
+
/**
|
|
354
|
+
* An `Executed` from the SDK's own `TransactionResult`, read with
|
|
355
|
+
* {@link EXECUTE_INCLUDE}.
|
|
356
|
+
*
|
|
357
|
+
* This is what `Tx.submit` uses, exported so a caller holding a result from
|
|
358
|
+
* somewhere else — `client.core.executeTransaction`, a sponsor's SDK call —
|
|
359
|
+
* can get the accessors without re-implementing the decode.
|
|
360
|
+
*
|
|
361
|
+
* Fails with: `ExecutionFailed` (the transaction applied and failed),
|
|
362
|
+
* `DecodeError` (the response does not carry the include set).
|
|
363
|
+
*
|
|
364
|
+
* @since 0.1.2
|
|
365
|
+
*/
|
|
366
|
+
static readonly fromTransactionResult: (result: SuiClientTypes.TransactionResult<typeof EXECUTE_INCLUDE>) => Effect.Effect<Executed, ExecutionFailed | DecodeError>;
|
|
367
|
+
/**
|
|
368
|
+
* An `Executed` from a **reduced** execute envelope: what a relay, a sponsor
|
|
369
|
+
* or another service hands back, over JSON, after submitting on your behalf.
|
|
370
|
+
*
|
|
371
|
+
* Such an envelope is rarely the SDK's full include set. Everything optional
|
|
372
|
+
* is filled in with "the node did not say" rather than refused:
|
|
373
|
+
*
|
|
374
|
+
* - `changedObjects` entries need only `objectId` and `idOperation`; the
|
|
375
|
+
* version, digest and owner on either side default to `null`, and
|
|
376
|
+
* `outputState` defaults to `ObjectWrite` (`DoesNotExist` for a
|
|
377
|
+
* `Deleted`), so {@link created} and {@link deleted} classify correctly
|
|
378
|
+
* from the id operation alone.
|
|
379
|
+
* - `objectTypes` defaults to `{}`. **The type filters need it**:
|
|
380
|
+
* `created(type)`, `mutated(type)` and `expectCreated(type)` can only
|
|
381
|
+
* match a change whose type the envelope carried, so without
|
|
382
|
+
* `objectTypes` they return nothing. `created()` with no argument, and
|
|
383
|
+
* {@link createdWhere}, still list every created id.
|
|
384
|
+
* - `balanceChanges` and `events` default to `[]`, `checkpoint` and
|
|
385
|
+
* `timestampMs` to `null`, `gasUsed` to zeros, and `effects.status` to
|
|
386
|
+
* success.
|
|
387
|
+
* - **JSON spellings are accepted** where the SDK's types are not JSON:
|
|
388
|
+
* `bcs` as base64 or as an array of byte values as well as a
|
|
389
|
+
* `Uint8Array`, and every `u64` (versions, balances, gas, `checkpoint`)
|
|
390
|
+
* as a number or a `bigint` as well as the decimal string the wire uses.
|
|
391
|
+
*
|
|
392
|
+
* An envelope with no usable digest, or whose values are the wrong shape
|
|
393
|
+
* rather than merely absent, fails: absence is filled in, nonsense is not.
|
|
394
|
+
*
|
|
395
|
+
* Fails with: `DecodeError`.
|
|
396
|
+
*
|
|
397
|
+
* @since 0.1.2
|
|
398
|
+
*/
|
|
399
|
+
static readonly fromPartial: (envelope: unknown) => Effect.Effect<Executed, DecodeError>;
|
|
295
400
|
/**
|
|
296
401
|
* The single object of this type the transaction created.
|
|
297
402
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executed.d.ts","sourceRoot":"","sources":["../../src/domain/executed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"executed.d.ts","sourceRoot":"","sources":["../../src/domain/executed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC7E,OAAO,EAGL,QAAQ,EAIR,QAAQ,EACR,SAAS,EACT,UAAU,EACV,KAAK,EACL,UAAU,EAEV,OAAO,EACR,MAAM,cAAc,CAAA;AAMrB;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAA;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,KAAK,UAAU,KAAG,SAAS,GAAG,SAIsC,CAAA;AAEhG;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,UAAU,GAAG,SAAS,KAAG,YAAY,GAAG,SAGS,CAAA;AAE/E,iFAAiF;AACjF,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AO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM;IAU9D,+FAA+F;IAC/F,IAAI,YAAY,IAAI,MAAM,CAGzB;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,QAAQ,CAAC,qBAAqB,GACnC,QAAQ,cAAc,CAAC,iBAAiB,CAAC,OAAO,eAAe,CAAC,KAC/D,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,eAAe,GAAG,WAAW,CAAC,CAAiC;IAE1F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CAAC,QAAQ,CAAC,WAAW,GAAI,UAAU,OAAO,KAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,CAChE;IAEvB;;;;;OAKG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,iBAAiB,CAAC;CAY1E;AAED,+EAA+E;AAC/E,eAAO,MAAM,eAAe;;;;;CAKlB,CAAA;AAIV;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB;;;;;oEA6BjC,CAAA"}
|
package/dist/domain/executed.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fromBase64 } from "@mysten/sui/utils";
|
|
1
2
|
import { Effect, Schema } from "effect";
|
|
2
3
|
import { DecodeError, ExecutionFailed, UnexpectedEffects } from "./errors.js";
|
|
3
4
|
import { BalanceChange, ChangedObject, CoinType, Digest, Event, executionReasonOf, ObjectId, ObjectRef, ObjectType, Owner, SuiAddress, TransactionEffects, Version } from "./schemas.js";
|
|
@@ -39,6 +40,16 @@ export const sdkRefOf = (ref) => ref.version === undefined || ref.digest === und
|
|
|
39
40
|
/**
|
|
40
41
|
* A transaction the network executed, built from the fixed execute include set:
|
|
41
42
|
* effects, events, balance changes and object types.
|
|
43
|
+
*
|
|
44
|
+
* **`events` is `ReadonlyArray<Event>`, not `SuiClientTypes.Event[]`.** It is
|
|
45
|
+
* that type minus `json`: `packageId`, `module`, `sender`, `eventType` and
|
|
46
|
+
* `bcs`, with the branded ids this package uses. The SDK's `json` is dropped on
|
|
47
|
+
* purpose — it is the node's own rendering, it is absent on most transports,
|
|
48
|
+
* and the decode a caller wants is `SuiSchema.decode(codec, event.bcs)`, which
|
|
49
|
+
* gives a typed value rather than a shape that changes with the node. Code
|
|
50
|
+
* typed against the SDK's `Event[]` therefore does not accept these; take
|
|
51
|
+
* `ReadonlyArray<Event>` from `@unconfirmed/sui-effect`, or map the fields you
|
|
52
|
+
* need.
|
|
42
53
|
*/
|
|
43
54
|
export class Executed extends Schema.Class("sui-effect/Executed")({
|
|
44
55
|
digest: Digest,
|
|
@@ -104,7 +115,7 @@ export class Executed extends Schema.Class("sui-effect/Executed")({
|
|
|
104
115
|
* (compared with `normalizeStructTag`). Never fails.
|
|
105
116
|
*/
|
|
106
117
|
created(type) {
|
|
107
|
-
return this.select((change) => change.idOperation === "Created" && change
|
|
118
|
+
return this.select((change) => change.idOperation === "Created" && Executed.wroteAnObject(change), "output", Executed.byType(type));
|
|
108
119
|
}
|
|
109
120
|
/**
|
|
110
121
|
* Objects this transaction created whose reference satisfies a predicate.
|
|
@@ -115,13 +126,13 @@ export class Executed extends Schema.Class("sui-effect/Executed")({
|
|
|
115
126
|
* Never fails.
|
|
116
127
|
*/
|
|
117
128
|
createdWhere(predicate) {
|
|
118
|
-
return this.select((change) => change.idOperation === "Created" && change
|
|
129
|
+
return this.select((change) => change.idOperation === "Created" && Executed.wroteAnObject(change), "output", predicate);
|
|
119
130
|
}
|
|
120
131
|
/** Objects this transaction mutated in place, optionally filtered by type. Never fails. */
|
|
121
132
|
mutated(type) {
|
|
122
133
|
return this.select((change) => change.idOperation === "None" &&
|
|
123
|
-
change
|
|
124
|
-
change.inputState === "Exists", "output", Executed.byType(type));
|
|
134
|
+
Executed.wroteAnObject(change) &&
|
|
135
|
+
(change.inputState === "Exists" || change.inputState === "Unknown"), "output", Executed.byType(type));
|
|
125
136
|
}
|
|
126
137
|
/**
|
|
127
138
|
* Objects this transaction deleted or wrapped. The refs carry the versions the
|
|
@@ -150,6 +161,19 @@ export class Executed extends Schema.Class("sui-effect/Executed")({
|
|
|
150
161
|
wrapped() {
|
|
151
162
|
return this.select(Executed.isWrapped, "input");
|
|
152
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Whether this change wrote an object, treating `Unknown` as "the envelope
|
|
166
|
+
* did not say".
|
|
167
|
+
*
|
|
168
|
+
* A node always reports the output state; a reduced envelope from a relay or
|
|
169
|
+
* a sponsor often reports nothing but the id and the id operation, and
|
|
170
|
+
* {@link Executed.fromPartial} leaves what it was not told as `Unknown`
|
|
171
|
+
* rather than inventing `ObjectWrite`. Reading `Unknown` as "not an object
|
|
172
|
+
* write" would make `created()` silently empty for exactly those envelopes.
|
|
173
|
+
*/
|
|
174
|
+
static wroteAnObject(change) {
|
|
175
|
+
return change.outputState === "ObjectWrite" || change.outputState === "Unknown";
|
|
176
|
+
}
|
|
153
177
|
static isDeleted(change) {
|
|
154
178
|
return change.idOperation === "Deleted";
|
|
155
179
|
}
|
|
@@ -192,6 +216,53 @@ export class Executed extends Schema.Class("sui-effect/Executed")({
|
|
|
192
216
|
const gas = this.effects.gasUsed;
|
|
193
217
|
return gas.computationCost + gas.storageCost - gas.storageRebate;
|
|
194
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* An `Executed` from the SDK's own `TransactionResult`, read with
|
|
221
|
+
* {@link EXECUTE_INCLUDE}.
|
|
222
|
+
*
|
|
223
|
+
* This is what `Tx.submit` uses, exported so a caller holding a result from
|
|
224
|
+
* somewhere else — `client.core.executeTransaction`, a sponsor's SDK call —
|
|
225
|
+
* can get the accessors without re-implementing the decode.
|
|
226
|
+
*
|
|
227
|
+
* Fails with: `ExecutionFailed` (the transaction applied and failed),
|
|
228
|
+
* `DecodeError` (the response does not carry the include set).
|
|
229
|
+
*
|
|
230
|
+
* @since 0.1.2
|
|
231
|
+
*/
|
|
232
|
+
static fromTransactionResult = (result) => fromTransactionResult(result);
|
|
233
|
+
/**
|
|
234
|
+
* An `Executed` from a **reduced** execute envelope: what a relay, a sponsor
|
|
235
|
+
* or another service hands back, over JSON, after submitting on your behalf.
|
|
236
|
+
*
|
|
237
|
+
* Such an envelope is rarely the SDK's full include set. Everything optional
|
|
238
|
+
* is filled in with "the node did not say" rather than refused:
|
|
239
|
+
*
|
|
240
|
+
* - `changedObjects` entries need only `objectId` and `idOperation`; the
|
|
241
|
+
* version, digest and owner on either side default to `null`, and
|
|
242
|
+
* `outputState` defaults to `ObjectWrite` (`DoesNotExist` for a
|
|
243
|
+
* `Deleted`), so {@link created} and {@link deleted} classify correctly
|
|
244
|
+
* from the id operation alone.
|
|
245
|
+
* - `objectTypes` defaults to `{}`. **The type filters need it**:
|
|
246
|
+
* `created(type)`, `mutated(type)` and `expectCreated(type)` can only
|
|
247
|
+
* match a change whose type the envelope carried, so without
|
|
248
|
+
* `objectTypes` they return nothing. `created()` with no argument, and
|
|
249
|
+
* {@link createdWhere}, still list every created id.
|
|
250
|
+
* - `balanceChanges` and `events` default to `[]`, `checkpoint` and
|
|
251
|
+
* `timestampMs` to `null`, `gasUsed` to zeros, and `effects.status` to
|
|
252
|
+
* success.
|
|
253
|
+
* - **JSON spellings are accepted** where the SDK's types are not JSON:
|
|
254
|
+
* `bcs` as base64 or as an array of byte values as well as a
|
|
255
|
+
* `Uint8Array`, and every `u64` (versions, balances, gas, `checkpoint`)
|
|
256
|
+
* as a number or a `bigint` as well as the decimal string the wire uses.
|
|
257
|
+
*
|
|
258
|
+
* An envelope with no usable digest, or whose values are the wrong shape
|
|
259
|
+
* rather than merely absent, fails: absence is filled in, nonsense is not.
|
|
260
|
+
*
|
|
261
|
+
* Fails with: `DecodeError`.
|
|
262
|
+
*
|
|
263
|
+
* @since 0.1.2
|
|
264
|
+
*/
|
|
265
|
+
static fromPartial = (envelope) => fromPartial(envelope);
|
|
195
266
|
/**
|
|
196
267
|
* The single object of this type the transaction created.
|
|
197
268
|
*
|
|
@@ -237,7 +308,7 @@ export const fromTransactionResult = Effect.fn("Executed.fromTransactionResult")
|
|
|
237
308
|
checkpoint: transaction.checkpoint,
|
|
238
309
|
timestampMs: transaction.timestampMs
|
|
239
310
|
};
|
|
240
|
-
const executed = yield* decodeExecuted(encoded).pipe(Effect.mapError((error) => new DecodeError({ issue: error.message })));
|
|
311
|
+
const executed = yield* decodeExecuted(encoded).pipe(Effect.mapError((error) => new DecodeError({ kind: "shape", issue: error.message })));
|
|
241
312
|
if (!transaction.status.success) {
|
|
242
313
|
return yield* new ExecutionFailed({
|
|
243
314
|
digest: executed.digest,
|
|
@@ -250,4 +321,124 @@ export const fromTransactionResult = Effect.fn("Executed.fromTransactionResult")
|
|
|
250
321
|
}
|
|
251
322
|
return executed;
|
|
252
323
|
});
|
|
324
|
+
/** The zero gas summary a reduced envelope gets when it reports no gas at all. */
|
|
325
|
+
const NO_GAS = {
|
|
326
|
+
computationCost: "0",
|
|
327
|
+
storageCost: "0",
|
|
328
|
+
storageRebate: "0",
|
|
329
|
+
nonRefundableStorageFee: "0"
|
|
330
|
+
};
|
|
331
|
+
const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
332
|
+
const field = (value, key) => (isRecord(value) ? value[key] : undefined);
|
|
333
|
+
/** A `u64` in whatever spelling JSON left it in, as the decimal string the schemas take. */
|
|
334
|
+
const u64String = (value, fallback) => {
|
|
335
|
+
if (typeof value === "string")
|
|
336
|
+
return value;
|
|
337
|
+
if (typeof value === "bigint")
|
|
338
|
+
return value.toString();
|
|
339
|
+
if (typeof value === "number" && Number.isFinite(value))
|
|
340
|
+
return BigInt(Math.trunc(value)).toString();
|
|
341
|
+
return fallback;
|
|
342
|
+
};
|
|
343
|
+
/** The same, for a field the schema allows to be `null`. */
|
|
344
|
+
const u64OrNull = (value) => value === undefined || value === null ? null : u64String(value) ?? null;
|
|
345
|
+
/**
|
|
346
|
+
* Event bytes in whatever spelling survived JSON: the bytes themselves, base64,
|
|
347
|
+
* or an array of byte values. An absent one is empty rather than a failure — a
|
|
348
|
+
* relay that reports events as JSON carries no BCS to give.
|
|
349
|
+
*/
|
|
350
|
+
const bytesOf = (value) => {
|
|
351
|
+
if (value instanceof Uint8Array)
|
|
352
|
+
return value;
|
|
353
|
+
if (typeof value === "string") {
|
|
354
|
+
try {
|
|
355
|
+
return fromBase64(value);
|
|
356
|
+
}
|
|
357
|
+
catch {
|
|
358
|
+
return new Uint8Array();
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
if (Array.isArray(value) && value.every((byte) => typeof byte === "number")) {
|
|
362
|
+
return Uint8Array.from(value);
|
|
363
|
+
}
|
|
364
|
+
return new Uint8Array();
|
|
365
|
+
};
|
|
366
|
+
/** One changed object, with every field the envelope left out filled in as "not said". */
|
|
367
|
+
const partialChange = (value) => ({
|
|
368
|
+
objectId: field(value, "objectId"),
|
|
369
|
+
inputState: field(value, "inputState") ?? "Unknown",
|
|
370
|
+
inputVersion: u64OrNull(field(value, "inputVersion")),
|
|
371
|
+
inputDigest: field(value, "inputDigest") ?? null,
|
|
372
|
+
inputOwner: field(value, "inputOwner") ?? null,
|
|
373
|
+
outputState: field(value, "outputState") ?? "Unknown",
|
|
374
|
+
outputVersion: u64OrNull(field(value, "outputVersion")),
|
|
375
|
+
outputDigest: field(value, "outputDigest") ?? null,
|
|
376
|
+
outputOwner: field(value, "outputOwner") ?? null,
|
|
377
|
+
idOperation: field(value, "idOperation") ?? "Unknown"
|
|
378
|
+
});
|
|
379
|
+
const partialEvent = (value) => {
|
|
380
|
+
const json = field(value, "json");
|
|
381
|
+
return {
|
|
382
|
+
packageId: field(value, "packageId"),
|
|
383
|
+
module: field(value, "module"),
|
|
384
|
+
sender: field(value, "sender"),
|
|
385
|
+
eventType: field(value, "eventType") ?? field(value, "type"),
|
|
386
|
+
// A relay that renders events as JSON carries no BCS; the bytes are empty
|
|
387
|
+
// and `json` is the whole of the event.
|
|
388
|
+
bcs: bytesOf(field(value, "bcs")),
|
|
389
|
+
...(json === undefined ? {} : { json })
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
const partialBalanceChange = (value) => ({
|
|
393
|
+
coinType: field(value, "coinType"),
|
|
394
|
+
address: field(value, "address") ?? field(value, "owner"),
|
|
395
|
+
amount: u64String(field(value, "amount"), "0")
|
|
396
|
+
});
|
|
397
|
+
const asArray = (value) => (Array.isArray(value) ? value : []);
|
|
398
|
+
/**
|
|
399
|
+
* The body of {@link Executed.fromPartial}: normalize what a reduced envelope
|
|
400
|
+
* carries into the encoded shape `Executed` decodes, then decode it.
|
|
401
|
+
*/
|
|
402
|
+
const fromPartial = (envelope) => {
|
|
403
|
+
const effects = field(envelope, "effects");
|
|
404
|
+
const digest = field(envelope, "digest") ?? field(effects, "transactionDigest");
|
|
405
|
+
const status = field(effects, "status") ?? field(envelope, "status");
|
|
406
|
+
const encoded = {
|
|
407
|
+
digest,
|
|
408
|
+
effects: {
|
|
409
|
+
version: field(effects, "version") ?? 2,
|
|
410
|
+
status: { success: field(status, "success") ?? true },
|
|
411
|
+
gasUsed: {
|
|
412
|
+
computationCost: u64String(field(field(effects, "gasUsed"), "computationCost"), NO_GAS.computationCost),
|
|
413
|
+
storageCost: u64String(field(field(effects, "gasUsed"), "storageCost"), NO_GAS.storageCost),
|
|
414
|
+
storageRebate: u64String(field(field(effects, "gasUsed"), "storageRebate"), NO_GAS.storageRebate),
|
|
415
|
+
nonRefundableStorageFee: u64String(field(field(effects, "gasUsed"), "nonRefundableStorageFee"), NO_GAS.nonRefundableStorageFee)
|
|
416
|
+
},
|
|
417
|
+
transactionDigest: field(effects, "transactionDigest") ?? digest,
|
|
418
|
+
gasObject: field(effects, "gasObject") ?? null,
|
|
419
|
+
eventsDigest: field(effects, "eventsDigest") ?? null,
|
|
420
|
+
dependencies: asArray(field(effects, "dependencies")),
|
|
421
|
+
lamportVersion: u64OrNull(field(effects, "lamportVersion")),
|
|
422
|
+
changedObjects: asArray(field(effects, "changedObjects") ?? field(envelope, "changedObjects"))
|
|
423
|
+
.map(partialChange),
|
|
424
|
+
unchangedConsensusObjects: asArray(field(effects, "unchangedConsensusObjects")),
|
|
425
|
+
auxiliaryDataDigest: field(effects, "auxiliaryDataDigest") ?? null
|
|
426
|
+
},
|
|
427
|
+
events: asArray(field(envelope, "events")).map(partialEvent),
|
|
428
|
+
balanceChanges: asArray(field(envelope, "balanceChanges")).map(partialBalanceChange),
|
|
429
|
+
objectTypes: field(envelope, "objectTypes") ?? {},
|
|
430
|
+
checkpoint: u64OrNull(field(envelope, "checkpoint")),
|
|
431
|
+
timestampMs: (() => {
|
|
432
|
+
const value = field(envelope, "timestampMs");
|
|
433
|
+
if (value === undefined || value === null)
|
|
434
|
+
return null;
|
|
435
|
+
const asNumber = typeof value === "string" ? Number(value) : value;
|
|
436
|
+
return typeof asNumber === "number" && Number.isFinite(asNumber) ? asNumber : null;
|
|
437
|
+
})()
|
|
438
|
+
};
|
|
439
|
+
return decodeExecuted(encoded).pipe(Effect.mapError((error) => new DecodeError({
|
|
440
|
+
kind: "shape",
|
|
441
|
+
issue: `this is not an execute envelope Executed can be built from: ${error.message}`
|
|
442
|
+
})));
|
|
443
|
+
};
|
|
253
444
|
//# sourceMappingURL=executed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executed.js","sourceRoot":"","sources":["../../src/domain/executed.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC7E,OAAO,EACL,aAAa,EACb,aAAa,EACb,QAAQ,EACR,MAAM,EACN,KAAK,EACL,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,KAAK,EACL,UAAU,EACV,kBAAkB,EAClB,OAAO,EACR,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,WAAW,EAA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QACd,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,+DAA+D,KAAK,CAAC,OAAO,EAAE;KACtF,CAAC,CACH,CACF,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -30,7 +30,9 @@ export declare const JournalEntry: Schema.TaggedUnion<{
|
|
|
30
30
|
readonly digest: Schema.brand<Schema.String, "Digest">;
|
|
31
31
|
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
32
32
|
readonly signatures: Schema.$Array<Schema.brand<Schema.String, "Signature">>;
|
|
33
|
-
readonly sender: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
33
|
+
readonly sender: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
34
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
35
|
+
};
|
|
34
36
|
readonly expiration: Schema.optional<Schema.toTaggedUnion<"$kind", readonly [Schema.Struct<{
|
|
35
37
|
readonly $kind: Schema.Literal<"None">;
|
|
36
38
|
readonly None: Schema.Literal<true>;
|
|
@@ -79,7 +81,9 @@ export declare const JournalEntry: Schema.TaggedUnion<{
|
|
|
79
81
|
readonly digest: Schema.brand<Schema.String, "Digest">;
|
|
80
82
|
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
81
83
|
readonly signatures: Schema.$Array<Schema.brand<Schema.String, "Signature">>;
|
|
82
|
-
readonly sender: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"
|
|
84
|
+
readonly sender: Schema.brand<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>, "SuiAddress"> & {
|
|
85
|
+
normalize: (input: string) => string & import("effect/Brand").Brand<"SuiAddress">;
|
|
86
|
+
};
|
|
83
87
|
readonly expiration: Schema.optional<Schema.toTaggedUnion<"$kind", readonly [Schema.Struct<{
|
|
84
88
|
readonly $kind: Schema.Literal<"None">;
|
|
85
89
|
readonly None: Schema.Literal<true>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal-entry.d.ts","sourceRoot":"","sources":["../../src/domain/journal-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAG/B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"journal-entry.d.ts","sourceRoot":"","sources":["../../src/domain/journal-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAG/B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BvB,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAEnD,oEAAoE;AACpE,eAAO,MAAM,eAAe,gCAAiC,CAAA;AAE7D;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAA"}
|