@mysten/wallet-standard 0.21.38 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @mysten/wallet-standard
2
2
 
3
+ ## 0.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f43f64d: Require `@mysten/sui@^3` as a peer dependency.
8
+ - f43f64d: Export the legacy JSON-RPC response types used by the deprecated
9
+ `sui:signAndExecuteTransactionBlock` feature as the deprecated `SuiJsonRpcTypes` namespace (for
10
+ example `SuiJsonRpcTypes.SuiTransactionBlockResponse`), replacing the imports from the removed
11
+ `@mysten/sui/jsonRpc`.
12
+ - e39d2a9: `SuiJsonRpcTypes.SuiWithdrawFrom` matches JSON-RPC's serialization, including
13
+ `{ senderAllowance: { funder, allowance } }` for allowance-funded withdrawals, unlike the
14
+ `'sender' | 'sponsor'` type in the removed `@mysten/sui/jsonRpc`.
15
+
3
16
  ## 0.21.38
4
17
 
5
18
  ## 0.21.37
@@ -0,0 +1,18 @@
1
+ //#region rolldown:runtime
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, symbols) => {
4
+ let target = {};
5
+ for (var name in all) {
6
+ __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ }
11
+ if (symbols) {
12
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
13
+ }
14
+ return target;
15
+ };
16
+
17
+ //#endregion
18
+ export { __exportAll };
@@ -1,5 +1,6 @@
1
1
  import { SignedTransaction, SuiSignTransaction, SuiSignTransactionFeature, SuiSignTransactionInput, SuiSignTransactionMethod, SuiSignTransactionVersion } from "./suiSignTransaction.mjs";
2
2
  import { SuiSignAndExecuteTransaction, SuiSignAndExecuteTransactionFeature, SuiSignAndExecuteTransactionInput, SuiSignAndExecuteTransactionMethod, SuiSignAndExecuteTransactionOutput, SuiSignAndExecuteTransactionVersion } from "./suiSignAndExecuteTransaction.mjs";
3
+ import { suiSignAndExecuteTransactionBlockTypes_d_exports } from "./suiSignAndExecuteTransactionBlockTypes.mjs";
3
4
  import { SignedTransactionBlock, SuiSignTransactionBlock, SuiSignTransactionBlockFeature, SuiSignTransactionBlockInput, SuiSignTransactionBlockMethod, SuiSignTransactionBlockOutput, SuiSignTransactionBlockVersion } from "./suiSignTransactionBlock.mjs";
4
5
  import { SuiSignAndExecuteTransactionBlock, SuiSignAndExecuteTransactionBlockFeature, SuiSignAndExecuteTransactionBlockInput, SuiSignAndExecuteTransactionBlockMethod, SuiSignAndExecuteTransactionBlockOutput, SuiSignAndExecuteTransactionBlockVersion } from "./suiSignAndExecuteTransactionBlock.mjs";
5
6
  import { SuiSignMessage, SuiSignMessageFeature, SuiSignMessageInput, SuiSignMessageMethod, SuiSignMessageOutput, SuiSignMessageVersion } from "./suiSignMessage.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/features/index.ts"],"mappings":";;;;;;;;;;;;AAsBA;KAAY,WAAA,GAAc,OAAA,CAAQ,8BAAA,IACjC,OAAA,CAAQ,wCAAA,IACR,6BAAA,GACA,mCAAA,GACA,yBAAA,GAEA,OAAA,CAAQ,qBAAA,IACR,OAAA,CAAQ,yBAAA;AAAA,KAEG,iBAAA,GAAoB,sBAAA,GAC/B,qBAAA,GACA,WAAA,GAEA,OAAA,CAAQ,yBAAA;AAAA,KAEG,qBAAA,GAAwB,kBAAA,CAAmB,iBAAA;;;;KAK3C,0BAAA,GAA6B,kBAAA,CACxC,yBAAA,GACC,OAAA,CAAQ,WAAA,IACR,OAAA,CAAQ,yBAAA,IACR,gBAAA;AAAA,KAGU,yBAAA,GAA4B,sBAAA,GAAyB,qBAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/features/index.ts"],"mappings":";;;;;;;;;;;;;;KAsBY,WAAA,GAAc,OAAA,CAAQ,8BAAA,IACjC,OAAA,CAAQ,wCAAA,IACR,6BAAA,GACA,mCAAA,GACA,yBAAA,GAEA,OAAA,CAAQ,qBAAA,IACR,OAAA,CAAQ,yBAAA;AAAA,KAEG,iBAAA,GAAoB,sBAAA,GAC/B,qBAAA,GACA,WAAA,GAEA,OAAA,CAAQ,yBAAA;AAAA,KAEG,qBAAA,GAAwB,kBAAA,CAAmB,iBAAA;;;;KAK3C,0BAAA,GAA6B,kBAAA,CACxC,yBAAA,GACC,OAAA,CAAQ,WAAA,IACR,OAAA,CAAQ,yBAAA,IACR,gBAAA;AAAA,KAGU,yBAAA,GAA4B,sBAAA,GAAyB,qBAAA"}
@@ -1,5 +1,5 @@
1
+ import { ExecuteTransactionRequestType, SuiTransactionBlockResponse, SuiTransactionBlockResponseOptions } from "./suiSignAndExecuteTransactionBlockTypes.mjs";
1
2
  import { SuiSignTransactionBlockInput } from "./suiSignTransactionBlock.mjs";
2
- import { ExecuteTransactionRequestType, SuiTransactionBlockResponse, SuiTransactionBlockResponseOptions } from "@mysten/sui/jsonRpc";
3
3
 
4
4
  //#region src/features/suiSignAndExecuteTransactionBlock.d.ts
5
5
  /** Name of the feature. */
@@ -24,7 +24,7 @@ type SuiSignAndExecuteTransactionBlockMethod = (input: SuiSignAndExecuteTransact
24
24
  /** Input for signing and sending transactions. */
25
25
  interface SuiSignAndExecuteTransactionBlockInput extends SuiSignTransactionBlockInput {
26
26
  /**
27
- * @deprecated requestType will be ignored by JSON RPC in the future
27
+ * @deprecated requestType is a legacy execution option that wallets may ignore.
28
28
  */
29
29
  requestType?: ExecuteTransactionRequestType;
30
30
  /** specify which fields to return (e.g., transaction, effects, events, etc). By default, only the transaction digest will be returned. */
@@ -1 +1 @@
1
- {"version":3,"file":"suiSignAndExecuteTransactionBlock.mjs","names":[],"sources":["../../src/features/suiSignAndExecuteTransactionBlock.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n\tExecuteTransactionRequestType,\n\tSuiTransactionBlockResponse,\n\tSuiTransactionBlockResponseOptions,\n} from '@mysten/sui/jsonRpc';\n\nimport type { SuiSignTransactionBlockInput } from './suiSignTransactionBlock.js';\n\n/** Name of the feature. */\nexport const SuiSignAndExecuteTransactionBlock = 'sui:signAndExecuteTransactionBlock';\n\n/** The latest API version of the signAndExecuteTransactionBlock API. */\nexport type SuiSignAndExecuteTransactionBlockVersion = '1.0.0';\n\n/**\n * @deprecated Use `sui:signAndExecuteTransaction` instead.\n *\n * A Wallet Standard feature for signing a transaction, and submitting it to the\n * network. The wallet is expected to submit the transaction to the network via RPC,\n * and return the transaction response.\n */\nexport type SuiSignAndExecuteTransactionBlockFeature = {\n\t/** Namespace for the feature. */\n\t[SuiSignAndExecuteTransactionBlock]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiSignAndExecuteTransactionBlockVersion;\n\t\t/** @deprecated Use `sui:signAndExecuteTransaction` instead. */\n\t\tsignAndExecuteTransactionBlock: SuiSignAndExecuteTransactionBlockMethod;\n\t};\n};\n\n/** @deprecated Use `sui:signAndExecuteTransaction` instead. */\nexport type SuiSignAndExecuteTransactionBlockMethod = (\n\tinput: SuiSignAndExecuteTransactionBlockInput,\n) => Promise<SuiSignAndExecuteTransactionBlockOutput>;\n\n/** Input for signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionBlockInput extends SuiSignTransactionBlockInput {\n\t/**\n\t * @deprecated requestType will be ignored by JSON RPC in the future\n\t */\n\trequestType?: ExecuteTransactionRequestType;\n\t/** specify which fields to return (e.g., transaction, effects, events, etc). By default, only the transaction digest will be returned. */\n\toptions?: SuiTransactionBlockResponseOptions;\n}\n\n/** Output of signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionBlockOutput extends SuiTransactionBlockResponse {}\n"],"mappings":";;AAYA,MAAa,oCAAoC"}
1
+ {"version":3,"file":"suiSignAndExecuteTransactionBlock.mjs","names":[],"sources":["../../src/features/suiSignAndExecuteTransactionBlock.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n\tExecuteTransactionRequestType,\n\tSuiTransactionBlockResponse,\n\tSuiTransactionBlockResponseOptions,\n} from './suiSignAndExecuteTransactionBlockTypes.js';\n\nimport type { SuiSignTransactionBlockInput } from './suiSignTransactionBlock.js';\n\n/** Name of the feature. */\nexport const SuiSignAndExecuteTransactionBlock = 'sui:signAndExecuteTransactionBlock';\n\n/** The latest API version of the signAndExecuteTransactionBlock API. */\nexport type SuiSignAndExecuteTransactionBlockVersion = '1.0.0';\n\n/**\n * @deprecated Use `sui:signAndExecuteTransaction` instead.\n *\n * A Wallet Standard feature for signing a transaction, and submitting it to the\n * network. The wallet is expected to submit the transaction to the network via RPC,\n * and return the transaction response.\n */\nexport type SuiSignAndExecuteTransactionBlockFeature = {\n\t/** Namespace for the feature. */\n\t[SuiSignAndExecuteTransactionBlock]: {\n\t\t/** Version of the feature API. */\n\t\tversion: SuiSignAndExecuteTransactionBlockVersion;\n\t\t/** @deprecated Use `sui:signAndExecuteTransaction` instead. */\n\t\tsignAndExecuteTransactionBlock: SuiSignAndExecuteTransactionBlockMethod;\n\t};\n};\n\n/** @deprecated Use `sui:signAndExecuteTransaction` instead. */\nexport type SuiSignAndExecuteTransactionBlockMethod = (\n\tinput: SuiSignAndExecuteTransactionBlockInput,\n) => Promise<SuiSignAndExecuteTransactionBlockOutput>;\n\n/** Input for signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionBlockInput extends SuiSignTransactionBlockInput {\n\t/**\n\t * @deprecated requestType is a legacy execution option that wallets may ignore.\n\t */\n\trequestType?: ExecuteTransactionRequestType;\n\t/** specify which fields to return (e.g., transaction, effects, events, etc). By default, only the transaction digest will be returned. */\n\toptions?: SuiTransactionBlockResponseOptions;\n}\n\n/** Output of signing and sending transactions. */\nexport interface SuiSignAndExecuteTransactionBlockOutput extends SuiTransactionBlockResponse {}\n"],"mappings":";;AAYA,MAAa,oCAAoC"}
@@ -0,0 +1,539 @@
1
+ declare namespace suiSignAndExecuteTransactionBlockTypes_d_exports {
2
+ export { AccumulatorEvent, AccumulatorOperation, AccumulatorValue, BalanceChange, ConsensusDeterminedVersionAssignments, EventId, ExecuteTransactionRequestType, ExecutionStatus, GasCostSummary, MoveCallSuiTransaction, ObjectOwner, OwnedObjectRef, SuiActiveJwk, SuiArgument, SuiAuthenticatorStateExpire, SuiCallArg, SuiChangeEpoch, SuiEndOfEpochTransactionKind, SuiEvent, SuiGasData, SuiJWK, SuiJwkId, SuiMoveAbort, SuiObjectChange, SuiObjectRef, SuiReservation, SuiTransaction, SuiTransactionBlock, SuiTransactionBlockKind, SuiTransactionBlockResponse, SuiTransactionBlockResponseOptions, SuiWithdrawFrom, SuiWithdrawalTypeArg, TransactionBlockData, TransactionBlockEffectsModifiedAtVersions, TransactionEffects };
3
+ }
4
+ /**
5
+ * The JSON-RPC transaction response types used by the deprecated
6
+ * `sui:signAndExecuteTransactionBlock` feature, exported from this package as the `SuiJsonRpcTypes`
7
+ * namespace. Every type here is deprecated; use `sui:signAndExecuteTransaction` instead.
8
+ */
9
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
10
+ interface AccumulatorEvent {
11
+ accumulatorObj: string;
12
+ address: string;
13
+ operation: AccumulatorOperation;
14
+ ty: string;
15
+ value: AccumulatorValue;
16
+ }
17
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
18
+ type AccumulatorOperation = 'merge' | 'split';
19
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
20
+ type AccumulatorValue = {
21
+ integer: string;
22
+ } | {
23
+ integerTuple: [string, string];
24
+ } | {
25
+ eventDigest: [string, string][];
26
+ };
27
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
28
+ interface BalanceChange {
29
+ /**
30
+ * The amount indicate the balance value changes, negative amount means spending coin value and
31
+ * positive means receiving coin value.
32
+ */
33
+ amount: string;
34
+ coinType: string;
35
+ /** Owner of the balance change */
36
+ owner: ObjectOwner;
37
+ }
38
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
39
+ type ConsensusDeterminedVersionAssignments = {
40
+ CancelledTransactions: [string, [string, string][]][];
41
+ } | {
42
+ CancelledTransactionsV2: [string, [[string, string], string][]][];
43
+ };
44
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
45
+ type SuiEvent = {
46
+ /**
47
+ * Sequential event ID (transaction digest, event sequence number).
48
+ */
49
+ id: EventId; /** Move package where this event was emitted. */
50
+ packageId: string; /** Parsed json value of the event */
51
+ parsedJson: unknown; /** Sender's Sui address. */
52
+ sender: string; /** UTC timestamp in milliseconds since epoch (1/1/1970) */
53
+ timestampMs?: string | null; /** Move module where this event was emitted. */
54
+ transactionModule: string; /** Move event type. */
55
+ type: string;
56
+ bcs: string;
57
+ bcsEncoding: 'base64';
58
+ } | {
59
+ /**
60
+ * Sequential event ID (transaction digest, event sequence number).
61
+ */
62
+ id: EventId; /** Move package where this event was emitted. */
63
+ packageId: string; /** Parsed json value of the event */
64
+ parsedJson: unknown; /** Sender's Sui address. */
65
+ sender: string; /** UTC timestamp in milliseconds since epoch (1/1/1970) */
66
+ timestampMs?: string | null; /** Move module where this event was emitted. */
67
+ transactionModule: string; /** Move event type. */
68
+ type: string;
69
+ bcs: string;
70
+ bcsEncoding: 'base58';
71
+ };
72
+ /**
73
+ * Unique ID of a Sui Event, the ID is a combination of transaction digest and event seq number.
74
+ *
75
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
76
+ */
77
+ interface EventId {
78
+ eventSeq: string;
79
+ txDigest: string;
80
+ }
81
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
82
+ type ExecuteTransactionRequestType = 'WaitForEffectsCert' | 'WaitForLocalExecution';
83
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
84
+ type ExecutionStatus = {
85
+ status: 'success' | 'failure';
86
+ error?: string;
87
+ };
88
+ /**
89
+ * Summary of the gas charges in a transaction. The amount charged is
90
+ * `computationCost + storageCost - storageRebate`.
91
+ *
92
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
93
+ */
94
+ interface GasCostSummary {
95
+ /** Cost of computation/execution */
96
+ computationCost: string;
97
+ /** The fee for the rebate. The portion of the storage rebate kept by the system. */
98
+ nonRefundableStorageFee: string;
99
+ /** Storage cost, it's the sum of all storage cost for all objects created or mutated. */
100
+ storageCost: string;
101
+ /**
102
+ * The amount of storage cost refunded to the user for all objects deleted or mutated in the
103
+ * transaction.
104
+ */
105
+ storageRebate: string;
106
+ }
107
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
108
+ interface SuiGasData {
109
+ budget: string;
110
+ owner: string;
111
+ payment: SuiObjectRef[];
112
+ price: string;
113
+ }
114
+ /**
115
+ * ObjectChange are derived from the object mutations in the TransactionEffect to provide richer object
116
+ * information.
117
+ *
118
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
119
+ */
120
+ type SuiObjectChange = /** Module published */{
121
+ digest: string;
122
+ modules: string[];
123
+ packageId: string;
124
+ type: 'published';
125
+ version: string;
126
+ } /** Transfer objects to new address / wrap in another object */ | {
127
+ digest: string;
128
+ objectId: string;
129
+ objectType: string;
130
+ recipient: ObjectOwner;
131
+ sender: string;
132
+ type: 'transferred';
133
+ version: string;
134
+ } /** Object mutated. */ | {
135
+ digest: string;
136
+ objectId: string;
137
+ objectType: string;
138
+ owner: ObjectOwner;
139
+ previousVersion: string;
140
+ sender: string;
141
+ type: 'mutated';
142
+ version: string;
143
+ } /** Delete object */ | {
144
+ objectId: string;
145
+ objectType: string;
146
+ sender: string;
147
+ type: 'deleted';
148
+ version: string;
149
+ } /** Wrapped object */ | {
150
+ objectId: string;
151
+ objectType: string;
152
+ sender: string;
153
+ type: 'wrapped';
154
+ version: string;
155
+ } /** New object creation */ | {
156
+ digest: string;
157
+ objectId: string;
158
+ objectType: string;
159
+ owner: ObjectOwner;
160
+ sender: string;
161
+ type: 'created';
162
+ version: string;
163
+ };
164
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
165
+ interface SuiObjectRef {
166
+ /** Base64 string representing the object digest */
167
+ digest: string;
168
+ /** Hex code as string representing the object id */
169
+ objectId: string;
170
+ /** Object version. */
171
+ version: string;
172
+ }
173
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
174
+ interface OwnedObjectRef {
175
+ owner: ObjectOwner;
176
+ reference: SuiObjectRef;
177
+ }
178
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
179
+ type ObjectOwner = /** Object is exclusively owned by a single address, and is mutable. */{
180
+ AddressOwner: string;
181
+ }
182
+ /**
183
+ * Object is exclusively owned by a single object, and is mutable. The object ID is converted to
184
+ * SuiAddress as SuiAddress is universal.
185
+ */
186
+ | {
187
+ ObjectOwner: string;
188
+ } /** Object is shared, can be used by any address, and is mutable. */ | {
189
+ Shared: {
190
+ /** The version at which the object became shared */initial_shared_version: string;
191
+ };
192
+ } | 'Immutable' /** Object is exclusively owned by a single address and sequenced via consensus. */ | {
193
+ ConsensusAddressOwner: {
194
+ owner: string;
195
+ /**
196
+ * The version at which the object most recently became a consensus object. This serves the same
197
+ * function as `initial_shared_version`, except it may change if the object's Owner type changes.
198
+ */
199
+ start_version: string;
200
+ };
201
+ };
202
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
203
+ interface SuiActiveJwk {
204
+ epoch: string;
205
+ jwk: SuiJWK;
206
+ jwk_id: SuiJwkId;
207
+ }
208
+ /**
209
+ * An argument to a transaction in a programmable transaction block
210
+ *
211
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
212
+ */
213
+ type SuiArgument = 'GasCoin' /** One of the input objects or primitive values (from `ProgrammableTransactionBlock` inputs) */ | {
214
+ Input: number;
215
+ } /** The result of another transaction (from `ProgrammableTransactionBlock` transactions) */ | {
216
+ Result: number;
217
+ }
218
+ /**
219
+ * Like a `Result` but it accesses a nested result. Currently, the only usage of this is to access a
220
+ * value from a Move call with multiple return values.
221
+ */
222
+ | {
223
+ NestedResult: [number, number];
224
+ };
225
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
226
+ interface SuiAuthenticatorStateExpire {
227
+ min_epoch: string;
228
+ }
229
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
230
+ type SuiCallArg = {
231
+ type: 'object';
232
+ digest: string;
233
+ objectId: string;
234
+ objectType: 'immOrOwnedObject';
235
+ version: string;
236
+ } | {
237
+ type: 'object';
238
+ initialSharedVersion: string;
239
+ mutable: boolean;
240
+ objectId: string;
241
+ objectType: 'sharedObject';
242
+ } | {
243
+ type: 'object';
244
+ digest: string;
245
+ objectId: string;
246
+ objectType: 'receiving';
247
+ version: string;
248
+ } | {
249
+ type: 'pure';
250
+ value: unknown;
251
+ valueType?: string | null;
252
+ } | {
253
+ reservation: SuiReservation;
254
+ type: 'fundsWithdrawal';
255
+ typeArg: SuiWithdrawalTypeArg;
256
+ withdrawFrom: SuiWithdrawFrom;
257
+ };
258
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
259
+ interface SuiChangeEpoch {
260
+ computation_charge: string;
261
+ epoch: string;
262
+ epoch_start_timestamp_ms: string;
263
+ storage_charge: string;
264
+ storage_rebate: string;
265
+ }
266
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
267
+ type SuiEndOfEpochTransactionKind = 'AuthenticatorStateCreate' | 'RandomnessStateCreate' | 'CoinDenyListStateCreate' | 'StoreExecutionTimeObservations' | 'AccumulatorRootCreate' | 'CoinRegistryCreate' | 'DisplayRegistryCreate' | 'AddressAliasStateCreate' | 'WriteAccumulatorStorageCost' | {
268
+ ChangeEpoch: SuiChangeEpoch;
269
+ } | {
270
+ AuthenticatorStateExpire: SuiAuthenticatorStateExpire;
271
+ } | {
272
+ BridgeStateCreate: string;
273
+ } | {
274
+ BridgeCommitteeUpdate: string;
275
+ };
276
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
277
+ interface SuiJWK {
278
+ alg: string;
279
+ e: string;
280
+ kty: string;
281
+ n: string;
282
+ }
283
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
284
+ interface SuiJwkId {
285
+ iss: string;
286
+ kid: string;
287
+ }
288
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
289
+ interface SuiMoveAbort {
290
+ error_code?: string | null;
291
+ function?: string | null;
292
+ line?: number | null;
293
+ module_id?: string | null;
294
+ }
295
+ /**
296
+ * The transaction for calling a Move function, either an entry function or a public function (which
297
+ * cannot return references).
298
+ *
299
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
300
+ */
301
+ interface MoveCallSuiTransaction {
302
+ /** The arguments to the function. */
303
+ arguments?: SuiArgument[];
304
+ /** The function to be called. */
305
+ function: string;
306
+ /** The specific module in the package containing the function. */
307
+ module: string;
308
+ /** The package containing the module and function. */
309
+ package: string;
310
+ /** The type arguments to the function. */
311
+ type_arguments?: string[];
312
+ }
313
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
314
+ type SuiReservation = {
315
+ maxAmountU64: string;
316
+ };
317
+ /**
318
+ * A single transaction in a programmable transaction block.
319
+ *
320
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
321
+ */
322
+ type SuiTransaction = /** A call to either an entry or a public Move function */{
323
+ MoveCall: MoveCallSuiTransaction;
324
+ }
325
+ /**
326
+ * `(Vec<forall T:key+store. T>, address)` It sends n-objects to the specified address. These objects
327
+ * must have store (public transfer) and either the previous owner must be an address or the object
328
+ * must be newly created.
329
+ */
330
+ | {
331
+ TransferObjects: [SuiArgument[], SuiArgument];
332
+ }
333
+ /**
334
+ * `(&mut Coin<T>, Vec<u64>)` -> `Vec<Coin<T>>` It splits off some amounts into a new coins with those
335
+ * amounts
336
+ */
337
+ | {
338
+ SplitCoins: [SuiArgument, SuiArgument[]];
339
+ } /** `(&mut Coin<T>, Vec<Coin<T>>)` It merges n-coins into the first coin */ | {
340
+ MergeCoins: [SuiArgument, SuiArgument[]];
341
+ }
342
+ /**
343
+ * Publishes a Move package. It takes the package bytes and a list of the package's transitive
344
+ * dependencies to link against on-chain.
345
+ */
346
+ | {
347
+ Publish: string[];
348
+ } /** Upgrades a Move package */ | {
349
+ Upgrade: [string[], string, SuiArgument];
350
+ }
351
+ /**
352
+ * `forall T: Vec<T> -> vector<T>` Given n-values of the same type, it constructs a vector. For non
353
+ * objects or an empty vector, the type tag must be specified.
354
+ */
355
+ | {
356
+ MakeMoveVec: [string | null, SuiArgument[]];
357
+ };
358
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
359
+ type SuiWithdrawFrom = 'sender' | 'sponsor' | {
360
+ senderAllowance: {
361
+ funder: string;
362
+ allowance: string;
363
+ };
364
+ };
365
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
366
+ type SuiWithdrawalTypeArg = {
367
+ balance: string;
368
+ };
369
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
370
+ interface SuiTransactionBlock {
371
+ data: TransactionBlockData;
372
+ txSignatures: string[];
373
+ }
374
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
375
+ type TransactionBlockData = {
376
+ gasData: SuiGasData;
377
+ messageVersion: 'v1';
378
+ sender: string;
379
+ transaction: SuiTransactionBlockKind;
380
+ };
381
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
382
+ type TransactionEffects = /** The response from processing a transaction or a certified transaction */{
383
+ /** The abort error populated if the transaction failed with an abort code. */abortError?: SuiMoveAbort | null;
384
+ accumulatorEvents?: AccumulatorEvent[]; /** ObjectRef and owner of new objects created. */
385
+ created?: OwnedObjectRef[]; /** Object Refs of objects now deleted (the old refs). */
386
+ deleted?: SuiObjectRef[]; /** The set of transaction digests this transaction depends on. */
387
+ dependencies?: string[];
388
+ /**
389
+ * The digest of the events emitted during execution, can be None if the transaction does not emit any
390
+ * event.
391
+ */
392
+ eventsDigest?: string | null; /** The epoch when this transaction was executed. */
393
+ executedEpoch: string;
394
+ /**
395
+ * The updated gas object reference. Have a dedicated field for convenient access. It's also included
396
+ * in mutated.
397
+ */
398
+ gasObject: OwnedObjectRef;
399
+ gasUsed: GasCostSummary;
400
+ messageVersion: 'v1';
401
+ /**
402
+ * The version that every modified (mutated or deleted) object had before it was modified by this
403
+ * transaction.
404
+ */
405
+ modifiedAtVersions?: TransactionBlockEffectsModifiedAtVersions[]; /** ObjectRef and owner of mutated objects, including gas object. */
406
+ mutated?: OwnedObjectRef[];
407
+ /**
408
+ * The object references of the shared objects used in this transaction. Empty if no shared objects
409
+ * were used.
410
+ */
411
+ sharedObjects?: SuiObjectRef[]; /** The status of the execution */
412
+ status: ExecutionStatus; /** The transaction digest */
413
+ transactionDigest: string;
414
+ /**
415
+ * ObjectRef and owner of objects that are unwrapped in this transaction. Unwrapped objects are objects
416
+ * that were wrapped into other objects in the past, and just got extracted out.
417
+ */
418
+ unwrapped?: OwnedObjectRef[]; /** Object refs of objects previously wrapped in other objects but now deleted. */
419
+ unwrappedThenDeleted?: SuiObjectRef[]; /** Object refs of objects now wrapped in other objects. */
420
+ wrapped?: SuiObjectRef[];
421
+ };
422
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
423
+ interface TransactionBlockEffectsModifiedAtVersions {
424
+ objectId: string;
425
+ sequenceNumber: string;
426
+ }
427
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
428
+ type SuiTransactionBlockKind = /** A system transaction that will update epoch information on-chain. */{
429
+ computation_charge: string;
430
+ epoch: string;
431
+ epoch_start_timestamp_ms: string;
432
+ kind: 'ChangeEpoch';
433
+ storage_charge: string;
434
+ storage_rebate: string;
435
+ } /** A system transaction used for initializing the initial state of the chain. */ | {
436
+ kind: 'Genesis';
437
+ objects: string[];
438
+ } /** A system transaction marking the start of a series of transactions scheduled as part of a checkpoint */ | {
439
+ commit_timestamp_ms: string;
440
+ epoch: string;
441
+ kind: 'ConsensusCommitPrologue';
442
+ round: string;
443
+ } /** A series of transactions where the results of one transaction can be used in future transactions */ | {
444
+ /** Input objects or primitive values */inputs: SuiCallArg[];
445
+ kind: 'ProgrammableTransaction';
446
+ /**
447
+ * The transactions to be executed sequentially. A failure in any transaction will result in the
448
+ * failure of the entire programmable transaction block.
449
+ */
450
+ transactions: SuiTransaction[];
451
+ } /** A transaction which updates global authenticator state */ | {
452
+ epoch: string;
453
+ kind: 'AuthenticatorStateUpdate';
454
+ new_active_jwks: SuiActiveJwk[];
455
+ round: string;
456
+ } /** A transaction which updates global randomness state */ | {
457
+ epoch: string;
458
+ kind: 'RandomnessStateUpdate';
459
+ random_bytes: number[];
460
+ randomness_round: string;
461
+ } /** The transaction which occurs only at the end of the epoch */ | {
462
+ kind: 'EndOfEpochTransaction';
463
+ transactions: SuiEndOfEpochTransactionKind[];
464
+ } | {
465
+ commit_timestamp_ms: string;
466
+ consensus_commit_digest: string;
467
+ epoch: string;
468
+ kind: 'ConsensusCommitPrologueV2';
469
+ round: string;
470
+ } | {
471
+ commit_timestamp_ms: string;
472
+ consensus_commit_digest: string;
473
+ consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
474
+ epoch: string;
475
+ kind: 'ConsensusCommitPrologueV3';
476
+ round: string;
477
+ sub_dag_index?: string | null;
478
+ } | {
479
+ additional_state_digest: string;
480
+ commit_timestamp_ms: string;
481
+ consensus_commit_digest: string;
482
+ consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
483
+ epoch: string;
484
+ kind: 'ConsensusCommitPrologueV4';
485
+ round: string;
486
+ sub_dag_index?: string | null;
487
+ } /** A series of commands where the results of one command can be used in future commands */ | {
488
+ /** Input objects or primitive values */inputs: SuiCallArg[];
489
+ kind: 'ProgrammableSystemTransaction';
490
+ /**
491
+ * The transactions to be executed sequentially. A failure in any transaction will result in the
492
+ * failure of the entire programmable transaction block.
493
+ */
494
+ transactions: SuiTransaction[];
495
+ };
496
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
497
+ interface SuiTransactionBlockResponse {
498
+ balanceChanges?: BalanceChange[] | null;
499
+ /**
500
+ * The checkpoint number when this transaction was included and hence finalized. This is only returned
501
+ * in the read api, not in the transaction execution api.
502
+ */
503
+ checkpoint?: string | null;
504
+ confirmedLocalExecution?: boolean | null;
505
+ digest: string;
506
+ effects?: TransactionEffects | null;
507
+ errors?: string[];
508
+ events?: SuiEvent[] | null;
509
+ objectChanges?: SuiObjectChange[] | null;
510
+ rawEffects?: number[];
511
+ /**
512
+ * BCS encoded [SenderSignedData] that includes input object references returns empty array if
513
+ * `show_raw_transaction` is false
514
+ */
515
+ rawTransaction?: string;
516
+ timestampMs?: string | null;
517
+ /** Transaction input data */
518
+ transaction?: SuiTransactionBlock | null;
519
+ }
520
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
521
+ interface SuiTransactionBlockResponseOptions {
522
+ /** Whether to show balance_changes. Default to be False */
523
+ showBalanceChanges?: boolean;
524
+ /** Whether to show transaction effects. Default to be False */
525
+ showEffects?: boolean;
526
+ /** Whether to show transaction events. Default to be False */
527
+ showEvents?: boolean;
528
+ /** Whether to show transaction input data. Default to be False */
529
+ showInput?: boolean;
530
+ /** Whether to show object_changes. Default to be False */
531
+ showObjectChanges?: boolean;
532
+ /** Whether to show raw transaction effects. Default to be False */
533
+ showRawEffects?: boolean;
534
+ /** Whether to show bcs-encoded transaction input data */
535
+ showRawInput?: boolean;
536
+ }
537
+ //#endregion
538
+ export { ExecuteTransactionRequestType, SuiTransactionBlockResponse, SuiTransactionBlockResponseOptions, suiSignAndExecuteTransactionBlockTypes_d_exports };
539
+ //# sourceMappingURL=suiSignAndExecuteTransactionBlockTypes.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suiSignAndExecuteTransactionBlockTypes.d.mts","names":[],"sources":["../../src/features/suiSignAndExecuteTransactionBlockTypes.ts"],"mappings":";;;;;;;;;UAUiB,gBAAA;EAChB,cAAA;EACA,OAAA;EACA,SAAA,EAAW,oBAAA;EACX,EAAA;EACA,KAAA,EAAO,gBAAA;AAAA;;KAII,oBAAA;;KAGA,gBAAA;EAET,OAAA;AAAA;EAGA,YAAA;AAAA;EAGA,WAAA;AAAA;;UAIc,aAAA;;;;;EAKhB,MAAA;EACA,QAAA;;EAEA,KAAA,EAAO,WAAA;AAAA;;KAII,qCAAA;EAET,qBAAA;AAAA;EAGA,uBAAA;AAAA;;KAIS,QAAA;EA7CqB;;;EAkD9B,EAAA,EAAI,OAAA,EAhDN;EAkDE,SAAA,UAjDS;EAmDT,UAAA,WAjDF;EAmDE,MAAA,UAnDqB;EAqDrB,WAAA,kBAjDS;EAmDT,iBAAA;EAEA,IAAA;EACA,GAAA;EACA,WAAA;AAAA;;;;EAMA,EAAA,EAAI,OAAA,EAlDJ;EAoDA,SAAA,UApDW;EAsDX,UAAA,WAlD2B;EAoD3B,MAAA,UA5CgB;EA8ChB,WAAA,kBAhDF;EAkDE,iBAAA,UAhDK;EAkDL,IAAA;EACA,GAAA;EACA,WAAA;AAAA;;;;AAvCH;;UA+CiB,OAAA;EAChB,QAAA;EACA,QAAA;AAAA;;KAIW,6BAAA;;KAGA,eAAA;EACX,MAAA;EACA,KAAA;AAAA;;;;;;;UASgB,cAAA;EAhCd;EAkCF,eAAA;EA/BE;EAiCF,uBAAA;EAhCa;EAkCb,WAAA;EA1BgB;;;;EA+BhB,aAAA;AAAA;;UAIgB,UAAA;EAChB,MAAA;EACA,KAAA;EACA,OAAA,EAAS,YAAA;EACT,KAAA;AAAA;;;AAnBD;;;;KA4BY,eAAA;EAGT,MAAA;EACA,OAAA;EACA,SAAA;EACA,IAAA;EACA,OAAA;AAAA;EAGA,MAAA;EACA,QAAA;EACA,UAAA;EACA,SAAA,EAAW,WAAA;EACX,MAAA;EACA,IAAA;EACA,OAAA;AAAA,EAzBG;EA4BH,MAAA;EACA,QAAA;EACA,UAAA;EACA,KAAA,EAAO,WAAA;EACP,eAAA;EACA,MAAA;EACA,IAAA;EACA,OAAA;AAAA,EAvBA;EA0BA,QAAA;EACA,UAAA;EACA,MAAA;EACA,IAAA;EACA,OAAA;AAAA,EAtBA;EAyBA,QAAA;EACA,UAAA;EACA,MAAA;EACA,IAAA;EACA,OAAA;AAAA,EAxBA;EA2BA,MAAA;EACA,QAAA;EACA,UAAA;EACA,KAAA,EAAO,WAAA;EACP,MAAA;EACA,IAAA;EACA,OAAA;AAAA;;UAIc,YAAA;EAvBd;EAyBF,MAAA;EAvBE;EAyBF,QAAA;EArBE;EAuBF,OAAA;AAAA;;UAIgB,cAAA;EAChB,KAAA,EAAO,WAAA;EACP,SAAA,EAAW,YAAA;AAAA;;KAIA,WAAA;EAGT,YAAA;AAAA;AAvBO;;AAIV;;AAJU;EA6BP,WAAA;AAAA,EAzB0B;EA4B1B,MAAA;IAxBF,oDA0BG,sBAAA;EAAA;AAAA,gBAxBI;EA6BL,qBAAA;IACC,KAAA;IAzBI;;;;IA8BJ,aAAA;EAAA;AAAA;;UAKa,YAAA;EAChB,KAAA;EACA,GAAA,EAAK,MAAA;EACL,MAAA,EAAQ,QAAA;AAAA;;;;;;KAQG,WAAA,aAhBR;EAmBD,KAAA;AAAA,EAnBc;EAsBd,MAAA;AAAA;AAjB0B;;;;AAAA;EAuB1B,YAAA;AAAA;;UAIc,2BAAA;EAChB,SAAA;AAAA;AAjBD;AAAA,KAqBY,UAAA;EAET,IAAA;EACA,MAAA;EACA,QAAA;EACA,UAAA;EACA,OAAA;AAAA;EAGA,IAAA;EACA,oBAAA;EACA,OAAA;EACA,QAAA;EACA,UAAA;AAAA;EAGA,IAAA;EACA,MAAA;EACA,QAAA;EACA,UAAA;EACA,OAAA;AAAA;EAGA,IAAA;EACA,KAAA;EACA,SAAA;AAAA;EAGA,WAAA,EAAa,cAAA;EACb,IAAA;EACA,OAAA,EAAS,oBAAA;EACT,YAAA,EAAc,eAAA;AAAA;;UAIA,cAAA;EAChB,kBAAA;EACA,KAAA;EACA,wBAAA;EACA,cAAA;EACA,cAAA;AAAA;;KAIW,4BAAA;EAWT,WAAA,EAAa,cAAA;AAAA;EAGb,wBAAA,EAA0B,2BAAA;AAAA;EAG1B,iBAAA;AAAA;EAGA,qBAAA;AAAA;;UAIc,MAAA;EAChB,GAAA;EACA,CAAA;EACA,GAAA;EACA,CAAA;AAAA;;UAIgB,QAAA;EAChB,GAAA;EACA,GAAA;AAAA;;UAIgB,YAAA;EAChB,UAAA;EACA,QAAA;EACA,IAAA;EACA,SAAA;AAAA;;;;;;;UASgB,sBAAA;EA3BM;EA6BtB,SAAA,GAAY,WAAA;EA7BU;EA+BtB,QAAA;EA7BA;EA+BA,MAAA;EA7BA;EA+BA,OAAA;EA/BC;EAiCD,cAAA;AAAA;;KAIW,cAAA;EACX,YAAA;AAAA;;;;;;KAQW,cAAA;EAGT,QAAA,EAAU,sBAAA;AAAA;AA1Bb;;;;;AAAA;EAiCG,eAAA,GAAkB,WAAA,IAAe,WAAA;AAAA;AA7BnC;;;;AAAA;EAmCE,UAAA,GAAa,WAAA,EAAa,WAAA;AAAA,EA7Bd;EAgCZ,UAAA,GAAa,WAAA,EAAa,WAAA;AAAA;AA5BH;;;;AAAA;EAkCvB,OAAA;AAAA,EAzBuB;EA4BvB,OAAA,qBAA4B,WAAA;AAAA;AAzBlB;;;;AAAA;EA+BV,WAAA,kBAA6B,WAAA;AAAA;;KAIpB,eAAA;EACc,eAAA;IAAmB,MAAA;IAAgB,SAAA;EAAA;AAAA;;KAGjD,oBAAA;EACX,OAAA;AAAA;;UAIgB,mBAAA;EAChB,IAAA,EAAM,oBAAA;EACN,YAAA;AAAA;;KAIW,oBAAA;EACX,OAAA,EAAS,UAAA;EACT,cAAA;EACA,MAAA;EACA,WAAA,EAAa,uBAAA;AAAA;AAnBd;AAAA,KAuBY,kBAAA;EAtBc,8EA0BxB,UAAA,GAAa,YAAA;EACb,iBAAA,GAAoB,gBAAA,IA3BgD;EA6BpE,OAAA,GAAU,cAAA,IA1BA;EA4BV,OAAA,GAAU,YAAA;EAEV,YAAA;EA7BM;AAIR;;;EA8BE,YAAA,kBA7BD;EA+BC,aAAA;EA9BD;;;AAID;EA+BE,SAAA,EAAW,cAAA;EACX,OAAA,EAAS,cAAA;EACT,cAAA;EAhCD;;;;EAqCC,kBAAA,GAAqB,yCAAA,IAlCT;EAoCZ,OAAA,GAAU,cAAA;EApCyB;AAIrC;;;EAqCE,aAAA,GAAgB,YAAA,IAhCI;EAkCpB,MAAA,EAAQ,eAAA,EA9BE;EAgCV,iBAAA;EAjBS;;;;EAsBT,SAAA,GAAY,cAAA,IAAA;EAEZ,oBAAA,GAAuB,YAAA,IAEb;EAAV,OAAA,GAAU,YAAA;AAAA;;UAIK,yCAAA;EAChB,QAAA;EACA,cAAA;AAAA;;KAIW,uBAAA;EAGT,kBAAA;EACA,KAAA;EACA,wBAAA;EACA,IAAA;EACA,cAAA;EACA,cAAA;AAAA,EA3CD;EA8CC,IAAA;EACA,OAAA;AAAA,EAxCD;EA2CC,mBAAA;EACA,KAAA;EACA,IAAA;EACA,KAAA;AAAA,EAvCO;EAER,wCAyCC,MAAA,EAAQ,UAAA;EACR,IAAA;EAnCD;;;;EAwCC,YAAA,EAAc,cAAA;AAAA,EAtCO;EAyCrB,KAAA;EACA,IAAA;EACA,eAAA,EAAiB,YAAA;EACjB,KAAA;AAAA,EAtCY;EAyCZ,KAAA;EACA,IAAA;EACA,YAAA;EACA,gBAAA;AAAA,EAZc;EAed,IAAA;EACA,YAAA,EAAc,4BAAA;AAAA;EAGd,mBAAA;EACA,uBAAA;EACA,KAAA;EACA,IAAA;EACA,KAAA;AAAA;EAGA,mBAAA;EACA,uBAAA;EACA,wCAAA,EAA0C,qCAAA;EAC1C,KAAA;EACA,IAAA;EACA,KAAA;EACA,aAAA;AAAA;EAGA,uBAAA;EACA,mBAAA;EACA,uBAAA;EACA,wCAAA,EAA0C,qCAAA;EAC1C,KAAA;EACA,IAAA;EACA,KAAA;EACA,aAAA;AAAA,EAvCA;EACA,wCA0CA,MAAA,EAAQ,UAAA;EACR,IAAA;EAzCA;;;;EA8CA,YAAA,EAAc,cAAA;AAAA;;UAIA,2BAAA;EAChB,cAAA,GAAiB,aAAA;EArCf;;;;EA0CF,UAAA;EACA,uBAAA;EACA,MAAA;EACA,OAAA,GAAU,kBAAA;EACV,MAAA;EACA,MAAA,GAAS,QAAA;EACT,aAAA,GAAgB,eAAA;EAChB,UAAA;EAlCE;;;;EAuCF,cAAA;EACA,WAAA;EAnCE;EAqCF,WAAA,GAAc,mBAAA;AAAA;;UAIE,kCAAA;EAlCd;EAoCF,kBAAA;EA/BgB;EAiChB,WAAA;EAjC8B;EAmC9B,UAAA;EA/B2C;EAiC3C,SAAA;EAhCiB;EAkCjB,iBAAA;EAxBS;EA0BT,cAAA;EAhBc;EAkBd,YAAA;AAAA"}
package/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { SignedTransaction, SuiSignTransaction, SuiSignTransactionFeature, SuiSignTransactionInput, SuiSignTransactionMethod, SuiSignTransactionVersion } from "./features/suiSignTransaction.mjs";
2
2
  import { SuiSignAndExecuteTransaction, SuiSignAndExecuteTransactionFeature, SuiSignAndExecuteTransactionInput, SuiSignAndExecuteTransactionMethod, SuiSignAndExecuteTransactionOutput, SuiSignAndExecuteTransactionVersion } from "./features/suiSignAndExecuteTransaction.mjs";
3
+ import { suiSignAndExecuteTransactionBlockTypes_d_exports } from "./features/suiSignAndExecuteTransactionBlockTypes.mjs";
3
4
  import { SignedTransactionBlock, SuiSignTransactionBlock, SuiSignTransactionBlockFeature, SuiSignTransactionBlockInput, SuiSignTransactionBlockMethod, SuiSignTransactionBlockOutput, SuiSignTransactionBlockVersion } from "./features/suiSignTransactionBlock.mjs";
4
5
  import { SuiSignAndExecuteTransactionBlock, SuiSignAndExecuteTransactionBlockFeature, SuiSignAndExecuteTransactionBlockInput, SuiSignAndExecuteTransactionBlockMethod, SuiSignAndExecuteTransactionBlockOutput, SuiSignAndExecuteTransactionBlockVersion } from "./features/suiSignAndExecuteTransactionBlock.mjs";
5
6
  import { SuiSignMessage, SuiSignMessageFeature, SuiSignMessageInput, SuiSignMessageMethod, SuiSignMessageOutput, SuiSignMessageVersion } from "./features/suiSignMessage.mjs";
@@ -11,4 +12,4 @@ import { isWalletWithRequiredFeatureSet } from "./detect.mjs";
11
12
  import { SUI_CHAINS, SUI_DEVNET_CHAIN, SUI_LOCALNET_CHAIN, SUI_MAINNET_CHAIN, SUI_TESTNET_CHAIN, SuiChain, isSuiChain } from "./chains.mjs";
12
13
  import { Argument, CallArg, Command, GasData, ObjectArg, PureArg, SerializedTransactionDataV2, UnresolvedObjectArg, UnresolvedPureArg } from "./types.mjs";
13
14
  export * from "@wallet-standard/core";
14
- export { Argument, CallArg, Command, GasData, MinimallyRequiredFeatures, ObjectArg, PureArg, SUI_CHAINS, SUI_DEVNET_CHAIN, SUI_LOCALNET_CHAIN, SUI_MAINNET_CHAIN, SUI_TESTNET_CHAIN, SerializedTransactionDataV2, SignedPersonalMessage, SignedTransaction, SignedTransactionBlock, SuiChain, SuiFeatures, SuiGetCapabilities, SuiGetCapabilitiesFeature, SuiGetCapabilitiesMethod, SuiGetCapabilitiesVersion, SuiSignAndExecuteTransaction, SuiSignAndExecuteTransactionBlock, SuiSignAndExecuteTransactionBlockFeature, SuiSignAndExecuteTransactionBlockInput, SuiSignAndExecuteTransactionBlockMethod, SuiSignAndExecuteTransactionBlockOutput, SuiSignAndExecuteTransactionBlockVersion, SuiSignAndExecuteTransactionFeature, SuiSignAndExecuteTransactionInput, SuiSignAndExecuteTransactionMethod, SuiSignAndExecuteTransactionOutput, SuiSignAndExecuteTransactionVersion, SuiSignMessage, SuiSignMessageFeature, SuiSignMessageInput, SuiSignMessageMethod, SuiSignMessageOutput, SuiSignMessageVersion, SuiSignPersonalMessage, SuiSignPersonalMessageFeature, SuiSignPersonalMessageInput, SuiSignPersonalMessageMethod, SuiSignPersonalMessageOutput, SuiSignPersonalMessageVersion, SuiSignTransaction, SuiSignTransactionBlock, SuiSignTransactionBlockFeature, SuiSignTransactionBlockInput, SuiSignTransactionBlockMethod, SuiSignTransactionBlockOutput, SuiSignTransactionBlockVersion, SuiSignTransactionFeature, SuiSignTransactionInput, SuiSignTransactionMethod, SuiSignTransactionVersion, SuiWalletFeatures, UnresolvedObjectArg, UnresolvedPureArg, type Wallet, WalletWithRequiredFeatures, WalletWithSuiFeatures, isSuiChain, isWalletWithRequiredFeatureSet, signAndExecuteTransaction, signTransaction };
15
+ export { Argument, CallArg, Command, GasData, MinimallyRequiredFeatures, ObjectArg, PureArg, SUI_CHAINS, SUI_DEVNET_CHAIN, SUI_LOCALNET_CHAIN, SUI_MAINNET_CHAIN, SUI_TESTNET_CHAIN, SerializedTransactionDataV2, SignedPersonalMessage, SignedTransaction, SignedTransactionBlock, SuiChain, SuiFeatures, SuiGetCapabilities, SuiGetCapabilitiesFeature, SuiGetCapabilitiesMethod, SuiGetCapabilitiesVersion, suiSignAndExecuteTransactionBlockTypes_d_exports as SuiJsonRpcTypes, SuiSignAndExecuteTransaction, SuiSignAndExecuteTransactionBlock, SuiSignAndExecuteTransactionBlockFeature, SuiSignAndExecuteTransactionBlockInput, SuiSignAndExecuteTransactionBlockMethod, SuiSignAndExecuteTransactionBlockOutput, SuiSignAndExecuteTransactionBlockVersion, SuiSignAndExecuteTransactionFeature, SuiSignAndExecuteTransactionInput, SuiSignAndExecuteTransactionMethod, SuiSignAndExecuteTransactionOutput, SuiSignAndExecuteTransactionVersion, SuiSignMessage, SuiSignMessageFeature, SuiSignMessageInput, SuiSignMessageMethod, SuiSignMessageOutput, SuiSignMessageVersion, SuiSignPersonalMessage, SuiSignPersonalMessageFeature, SuiSignPersonalMessageInput, SuiSignPersonalMessageMethod, SuiSignPersonalMessageOutput, SuiSignPersonalMessageVersion, SuiSignTransaction, SuiSignTransactionBlock, SuiSignTransactionBlockFeature, SuiSignTransactionBlockInput, SuiSignTransactionBlockMethod, SuiSignTransactionBlockOutput, SuiSignTransactionBlockVersion, SuiSignTransactionFeature, SuiSignTransactionInput, SuiSignTransactionMethod, SuiSignTransactionVersion, SuiWalletFeatures, UnresolvedObjectArg, UnresolvedPureArg, type Wallet, WalletWithRequiredFeatures, WalletWithSuiFeatures, isSuiChain, isWalletWithRequiredFeatureSet, signAndExecuteTransaction, signTransaction };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mysten/wallet-standard",
3
- "version": "0.21.38",
3
+ "version": "0.22.0",
4
4
  "description": "A suite of standard utilities for implementing wallets based on the Wallet Standard.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Mysten Labs <build@mystenlabs.com>",
@@ -35,7 +35,7 @@
35
35
  "typescript-json-schema": "^0.68.0"
36
36
  },
37
37
  "peerDependencies": {
38
- "@mysten/sui": "^2.39.1"
38
+ "@mysten/sui": "^3.0.0"
39
39
  },
40
40
  "scripts": {
41
41
  "clean": "rm -rf tsconfig.tsbuildinfo ./dist",
@@ -56,3 +56,11 @@ export * from './suiSignAndExecuteTransactionBlock.js';
56
56
  export * from './suiSignAndExecuteTransaction.js';
57
57
  export * from './suiSignPersonalMessage.js';
58
58
  export * from './suiGetCapabilities.js';
59
+
60
+ /**
61
+ * The legacy JSON-RPC response types that the deprecated `sui:signAndExecuteTransactionBlock`
62
+ * feature returns, such as `SuiJsonRpcTypes.SuiTransactionBlockResponse`. Several of their names
63
+ * (`ObjectOwner`, `BalanceChange`, `TransactionEffects`, ...) also exist in `@mysten/sui` with a
64
+ * different shape. Every member is deprecated; use `sui:signAndExecuteTransaction` instead.
65
+ */
66
+ export type * as SuiJsonRpcTypes from './suiSignAndExecuteTransactionBlockTypes.js';
@@ -5,7 +5,7 @@ import type {
5
5
  ExecuteTransactionRequestType,
6
6
  SuiTransactionBlockResponse,
7
7
  SuiTransactionBlockResponseOptions,
8
- } from '@mysten/sui/jsonRpc';
8
+ } from './suiSignAndExecuteTransactionBlockTypes.js';
9
9
 
10
10
  import type { SuiSignTransactionBlockInput } from './suiSignTransactionBlock.js';
11
11
 
@@ -40,7 +40,7 @@ export type SuiSignAndExecuteTransactionBlockMethod = (
40
40
  /** Input for signing and sending transactions. */
41
41
  export interface SuiSignAndExecuteTransactionBlockInput extends SuiSignTransactionBlockInput {
42
42
  /**
43
- * @deprecated requestType will be ignored by JSON RPC in the future
43
+ * @deprecated requestType is a legacy execution option that wallets may ignore.
44
44
  */
45
45
  requestType?: ExecuteTransactionRequestType;
46
46
  /** specify which fields to return (e.g., transaction, effects, events, etc). By default, only the transaction digest will be returned. */
@@ -0,0 +1,645 @@
1
+ // Copyright (c) Mysten Labs, Inc.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ /**
5
+ * The JSON-RPC transaction response types used by the deprecated
6
+ * `sui:signAndExecuteTransactionBlock` feature, exported from this package as the `SuiJsonRpcTypes`
7
+ * namespace. Every type here is deprecated; use `sui:signAndExecuteTransaction` instead.
8
+ */
9
+
10
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
11
+ export interface AccumulatorEvent {
12
+ accumulatorObj: string;
13
+ address: string;
14
+ operation: AccumulatorOperation;
15
+ ty: string;
16
+ value: AccumulatorValue;
17
+ }
18
+
19
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
20
+ export type AccumulatorOperation = 'merge' | 'split';
21
+
22
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
23
+ export type AccumulatorValue =
24
+ | {
25
+ integer: string;
26
+ }
27
+ | {
28
+ integerTuple: [string, string];
29
+ }
30
+ | {
31
+ eventDigest: [string, string][];
32
+ };
33
+
34
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
35
+ export interface BalanceChange {
36
+ /**
37
+ * The amount indicate the balance value changes, negative amount means spending coin value and
38
+ * positive means receiving coin value.
39
+ */
40
+ amount: string;
41
+ coinType: string;
42
+ /** Owner of the balance change */
43
+ owner: ObjectOwner;
44
+ }
45
+
46
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
47
+ export type ConsensusDeterminedVersionAssignments =
48
+ | {
49
+ CancelledTransactions: [string, [string, string][]][];
50
+ }
51
+ | {
52
+ CancelledTransactionsV2: [string, [[string, string], string][]][];
53
+ };
54
+
55
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
56
+ export type SuiEvent =
57
+ | {
58
+ /**
59
+ * Sequential event ID (transaction digest, event sequence number).
60
+ */
61
+ id: EventId;
62
+ /** Move package where this event was emitted. */
63
+ packageId: string;
64
+ /** Parsed json value of the event */
65
+ parsedJson: unknown;
66
+ /** Sender's Sui address. */
67
+ sender: string;
68
+ /** UTC timestamp in milliseconds since epoch (1/1/1970) */
69
+ timestampMs?: string | null;
70
+ /** Move module where this event was emitted. */
71
+ transactionModule: string;
72
+ /** Move event type. */
73
+ type: string;
74
+ bcs: string;
75
+ bcsEncoding: 'base64';
76
+ }
77
+ | {
78
+ /**
79
+ * Sequential event ID (transaction digest, event sequence number).
80
+ */
81
+ id: EventId;
82
+ /** Move package where this event was emitted. */
83
+ packageId: string;
84
+ /** Parsed json value of the event */
85
+ parsedJson: unknown;
86
+ /** Sender's Sui address. */
87
+ sender: string;
88
+ /** UTC timestamp in milliseconds since epoch (1/1/1970) */
89
+ timestampMs?: string | null;
90
+ /** Move module where this event was emitted. */
91
+ transactionModule: string;
92
+ /** Move event type. */
93
+ type: string;
94
+ bcs: string;
95
+ bcsEncoding: 'base58';
96
+ };
97
+
98
+ /**
99
+ * Unique ID of a Sui Event, the ID is a combination of transaction digest and event seq number.
100
+ *
101
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
102
+ */
103
+ export interface EventId {
104
+ eventSeq: string;
105
+ txDigest: string;
106
+ }
107
+
108
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
109
+ export type ExecuteTransactionRequestType = 'WaitForEffectsCert' | 'WaitForLocalExecution';
110
+
111
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
112
+ export type ExecutionStatus = {
113
+ status: 'success' | 'failure';
114
+ error?: string;
115
+ };
116
+
117
+ /**
118
+ * Summary of the gas charges in a transaction. The amount charged is
119
+ * `computationCost + storageCost - storageRebate`.
120
+ *
121
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
122
+ */
123
+ export interface GasCostSummary {
124
+ /** Cost of computation/execution */
125
+ computationCost: string;
126
+ /** The fee for the rebate. The portion of the storage rebate kept by the system. */
127
+ nonRefundableStorageFee: string;
128
+ /** Storage cost, it's the sum of all storage cost for all objects created or mutated. */
129
+ storageCost: string;
130
+ /**
131
+ * The amount of storage cost refunded to the user for all objects deleted or mutated in the
132
+ * transaction.
133
+ */
134
+ storageRebate: string;
135
+ }
136
+
137
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
138
+ export interface SuiGasData {
139
+ budget: string;
140
+ owner: string;
141
+ payment: SuiObjectRef[];
142
+ price: string;
143
+ }
144
+
145
+ /**
146
+ * ObjectChange are derived from the object mutations in the TransactionEffect to provide richer object
147
+ * information.
148
+ *
149
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
150
+ */
151
+ export type SuiObjectChange =
152
+ /** Module published */
153
+ | {
154
+ digest: string;
155
+ modules: string[];
156
+ packageId: string;
157
+ type: 'published';
158
+ version: string;
159
+ } /** Transfer objects to new address / wrap in another object */
160
+ | {
161
+ digest: string;
162
+ objectId: string;
163
+ objectType: string;
164
+ recipient: ObjectOwner;
165
+ sender: string;
166
+ type: 'transferred';
167
+ version: string;
168
+ } /** Object mutated. */
169
+ | {
170
+ digest: string;
171
+ objectId: string;
172
+ objectType: string;
173
+ owner: ObjectOwner;
174
+ previousVersion: string;
175
+ sender: string;
176
+ type: 'mutated';
177
+ version: string;
178
+ } /** Delete object */
179
+ | {
180
+ objectId: string;
181
+ objectType: string;
182
+ sender: string;
183
+ type: 'deleted';
184
+ version: string;
185
+ } /** Wrapped object */
186
+ | {
187
+ objectId: string;
188
+ objectType: string;
189
+ sender: string;
190
+ type: 'wrapped';
191
+ version: string;
192
+ } /** New object creation */
193
+ | {
194
+ digest: string;
195
+ objectId: string;
196
+ objectType: string;
197
+ owner: ObjectOwner;
198
+ sender: string;
199
+ type: 'created';
200
+ version: string;
201
+ };
202
+
203
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
204
+ export interface SuiObjectRef {
205
+ /** Base64 string representing the object digest */
206
+ digest: string;
207
+ /** Hex code as string representing the object id */
208
+ objectId: string;
209
+ /** Object version. */
210
+ version: string;
211
+ }
212
+
213
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
214
+ export interface OwnedObjectRef {
215
+ owner: ObjectOwner;
216
+ reference: SuiObjectRef;
217
+ }
218
+
219
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
220
+ export type ObjectOwner =
221
+ /** Object is exclusively owned by a single address, and is mutable. */
222
+ | {
223
+ AddressOwner: string;
224
+ } /**
225
+ * Object is exclusively owned by a single object, and is mutable. The object ID is converted to
226
+ * SuiAddress as SuiAddress is universal.
227
+ */
228
+ | {
229
+ ObjectOwner: string;
230
+ } /** Object is shared, can be used by any address, and is mutable. */
231
+ | {
232
+ Shared: {
233
+ /** The version at which the object became shared */
234
+ initial_shared_version: string;
235
+ };
236
+ }
237
+ | 'Immutable' /** Object is exclusively owned by a single address and sequenced via consensus. */
238
+ | {
239
+ ConsensusAddressOwner: {
240
+ owner: string;
241
+ /**
242
+ * The version at which the object most recently became a consensus object. This serves the same
243
+ * function as `initial_shared_version`, except it may change if the object's Owner type changes.
244
+ */
245
+ start_version: string;
246
+ };
247
+ };
248
+
249
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
250
+ export interface SuiActiveJwk {
251
+ epoch: string;
252
+ jwk: SuiJWK;
253
+ jwk_id: SuiJwkId;
254
+ }
255
+
256
+ /**
257
+ * An argument to a transaction in a programmable transaction block
258
+ *
259
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
260
+ */
261
+ export type SuiArgument =
262
+ | 'GasCoin' /** One of the input objects or primitive values (from `ProgrammableTransactionBlock` inputs) */
263
+ | {
264
+ Input: number;
265
+ } /** The result of another transaction (from `ProgrammableTransactionBlock` transactions) */
266
+ | {
267
+ Result: number;
268
+ } /**
269
+ * Like a `Result` but it accesses a nested result. Currently, the only usage of this is to access a
270
+ * value from a Move call with multiple return values.
271
+ */
272
+ | {
273
+ NestedResult: [number, number];
274
+ };
275
+
276
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
277
+ export interface SuiAuthenticatorStateExpire {
278
+ min_epoch: string;
279
+ }
280
+
281
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
282
+ export type SuiCallArg =
283
+ | {
284
+ type: 'object';
285
+ digest: string;
286
+ objectId: string;
287
+ objectType: 'immOrOwnedObject';
288
+ version: string;
289
+ }
290
+ | {
291
+ type: 'object';
292
+ initialSharedVersion: string;
293
+ mutable: boolean;
294
+ objectId: string;
295
+ objectType: 'sharedObject';
296
+ }
297
+ | {
298
+ type: 'object';
299
+ digest: string;
300
+ objectId: string;
301
+ objectType: 'receiving';
302
+ version: string;
303
+ }
304
+ | {
305
+ type: 'pure';
306
+ value: unknown;
307
+ valueType?: string | null;
308
+ }
309
+ | {
310
+ reservation: SuiReservation;
311
+ type: 'fundsWithdrawal';
312
+ typeArg: SuiWithdrawalTypeArg;
313
+ withdrawFrom: SuiWithdrawFrom;
314
+ };
315
+
316
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
317
+ export interface SuiChangeEpoch {
318
+ computation_charge: string;
319
+ epoch: string;
320
+ epoch_start_timestamp_ms: string;
321
+ storage_charge: string;
322
+ storage_rebate: string;
323
+ }
324
+
325
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
326
+ export type SuiEndOfEpochTransactionKind =
327
+ | 'AuthenticatorStateCreate'
328
+ | 'RandomnessStateCreate'
329
+ | 'CoinDenyListStateCreate'
330
+ | 'StoreExecutionTimeObservations'
331
+ | 'AccumulatorRootCreate'
332
+ | 'CoinRegistryCreate'
333
+ | 'DisplayRegistryCreate'
334
+ | 'AddressAliasStateCreate'
335
+ | 'WriteAccumulatorStorageCost'
336
+ | {
337
+ ChangeEpoch: SuiChangeEpoch;
338
+ }
339
+ | {
340
+ AuthenticatorStateExpire: SuiAuthenticatorStateExpire;
341
+ }
342
+ | {
343
+ BridgeStateCreate: string;
344
+ }
345
+ | {
346
+ BridgeCommitteeUpdate: string;
347
+ };
348
+
349
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
350
+ export interface SuiJWK {
351
+ alg: string;
352
+ e: string;
353
+ kty: string;
354
+ n: string;
355
+ }
356
+
357
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
358
+ export interface SuiJwkId {
359
+ iss: string;
360
+ kid: string;
361
+ }
362
+
363
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
364
+ export interface SuiMoveAbort {
365
+ error_code?: string | null;
366
+ function?: string | null;
367
+ line?: number | null;
368
+ module_id?: string | null;
369
+ }
370
+
371
+ /**
372
+ * The transaction for calling a Move function, either an entry function or a public function (which
373
+ * cannot return references).
374
+ *
375
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
376
+ */
377
+ export interface MoveCallSuiTransaction {
378
+ /** The arguments to the function. */
379
+ arguments?: SuiArgument[];
380
+ /** The function to be called. */
381
+ function: string;
382
+ /** The specific module in the package containing the function. */
383
+ module: string;
384
+ /** The package containing the module and function. */
385
+ package: string;
386
+ /** The type arguments to the function. */
387
+ type_arguments?: string[];
388
+ }
389
+
390
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
391
+ export type SuiReservation = {
392
+ maxAmountU64: string;
393
+ };
394
+
395
+ /**
396
+ * A single transaction in a programmable transaction block.
397
+ *
398
+ * @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature.
399
+ */
400
+ export type SuiTransaction =
401
+ /** A call to either an entry or a public Move function */
402
+ | {
403
+ MoveCall: MoveCallSuiTransaction;
404
+ } /**
405
+ * `(Vec<forall T:key+store. T>, address)` It sends n-objects to the specified address. These objects
406
+ * must have store (public transfer) and either the previous owner must be an address or the object
407
+ * must be newly created.
408
+ */
409
+ | {
410
+ TransferObjects: [SuiArgument[], SuiArgument];
411
+ } /**
412
+ * `(&mut Coin<T>, Vec<u64>)` -> `Vec<Coin<T>>` It splits off some amounts into a new coins with those
413
+ * amounts
414
+ */
415
+ | {
416
+ SplitCoins: [SuiArgument, SuiArgument[]];
417
+ } /** `(&mut Coin<T>, Vec<Coin<T>>)` It merges n-coins into the first coin */
418
+ | {
419
+ MergeCoins: [SuiArgument, SuiArgument[]];
420
+ } /**
421
+ * Publishes a Move package. It takes the package bytes and a list of the package's transitive
422
+ * dependencies to link against on-chain.
423
+ */
424
+ | {
425
+ Publish: string[];
426
+ } /** Upgrades a Move package */
427
+ | {
428
+ Upgrade: [string[], string, SuiArgument];
429
+ } /**
430
+ * `forall T: Vec<T> -> vector<T>` Given n-values of the same type, it constructs a vector. For non
431
+ * objects or an empty vector, the type tag must be specified.
432
+ */
433
+ | {
434
+ MakeMoveVec: [string | null, SuiArgument[]];
435
+ };
436
+
437
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
438
+ export type SuiWithdrawFrom =
439
+ 'sender' | 'sponsor' | { senderAllowance: { funder: string; allowance: string } };
440
+
441
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
442
+ export type SuiWithdrawalTypeArg = {
443
+ balance: string;
444
+ };
445
+
446
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
447
+ export interface SuiTransactionBlock {
448
+ data: TransactionBlockData;
449
+ txSignatures: string[];
450
+ }
451
+
452
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
453
+ export type TransactionBlockData = {
454
+ gasData: SuiGasData;
455
+ messageVersion: 'v1';
456
+ sender: string;
457
+ transaction: SuiTransactionBlockKind;
458
+ };
459
+
460
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
461
+ export type TransactionEffects =
462
+ /** The response from processing a transaction or a certified transaction */
463
+ {
464
+ /** The abort error populated if the transaction failed with an abort code. */
465
+ abortError?: SuiMoveAbort | null;
466
+ accumulatorEvents?: AccumulatorEvent[];
467
+ /** ObjectRef and owner of new objects created. */
468
+ created?: OwnedObjectRef[];
469
+ /** Object Refs of objects now deleted (the old refs). */
470
+ deleted?: SuiObjectRef[];
471
+ /** The set of transaction digests this transaction depends on. */
472
+ dependencies?: string[];
473
+ /**
474
+ * The digest of the events emitted during execution, can be None if the transaction does not emit any
475
+ * event.
476
+ */
477
+ eventsDigest?: string | null;
478
+ /** The epoch when this transaction was executed. */
479
+ executedEpoch: string;
480
+ /**
481
+ * The updated gas object reference. Have a dedicated field for convenient access. It's also included
482
+ * in mutated.
483
+ */
484
+ gasObject: OwnedObjectRef;
485
+ gasUsed: GasCostSummary;
486
+ messageVersion: 'v1';
487
+ /**
488
+ * The version that every modified (mutated or deleted) object had before it was modified by this
489
+ * transaction.
490
+ */
491
+ modifiedAtVersions?: TransactionBlockEffectsModifiedAtVersions[];
492
+ /** ObjectRef and owner of mutated objects, including gas object. */
493
+ mutated?: OwnedObjectRef[];
494
+ /**
495
+ * The object references of the shared objects used in this transaction. Empty if no shared objects
496
+ * were used.
497
+ */
498
+ sharedObjects?: SuiObjectRef[];
499
+ /** The status of the execution */
500
+ status: ExecutionStatus;
501
+ /** The transaction digest */
502
+ transactionDigest: string;
503
+ /**
504
+ * ObjectRef and owner of objects that are unwrapped in this transaction. Unwrapped objects are objects
505
+ * that were wrapped into other objects in the past, and just got extracted out.
506
+ */
507
+ unwrapped?: OwnedObjectRef[];
508
+ /** Object refs of objects previously wrapped in other objects but now deleted. */
509
+ unwrappedThenDeleted?: SuiObjectRef[];
510
+ /** Object refs of objects now wrapped in other objects. */
511
+ wrapped?: SuiObjectRef[];
512
+ };
513
+
514
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
515
+ export interface TransactionBlockEffectsModifiedAtVersions {
516
+ objectId: string;
517
+ sequenceNumber: string;
518
+ }
519
+
520
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
521
+ export type SuiTransactionBlockKind =
522
+ /** A system transaction that will update epoch information on-chain. */
523
+ | {
524
+ computation_charge: string;
525
+ epoch: string;
526
+ epoch_start_timestamp_ms: string;
527
+ kind: 'ChangeEpoch';
528
+ storage_charge: string;
529
+ storage_rebate: string;
530
+ } /** A system transaction used for initializing the initial state of the chain. */
531
+ | {
532
+ kind: 'Genesis';
533
+ objects: string[];
534
+ } /** A system transaction marking the start of a series of transactions scheduled as part of a checkpoint */
535
+ | {
536
+ commit_timestamp_ms: string;
537
+ epoch: string;
538
+ kind: 'ConsensusCommitPrologue';
539
+ round: string;
540
+ } /** A series of transactions where the results of one transaction can be used in future transactions */
541
+ | {
542
+ /** Input objects or primitive values */
543
+ inputs: SuiCallArg[];
544
+ kind: 'ProgrammableTransaction';
545
+ /**
546
+ * The transactions to be executed sequentially. A failure in any transaction will result in the
547
+ * failure of the entire programmable transaction block.
548
+ */
549
+ transactions: SuiTransaction[];
550
+ } /** A transaction which updates global authenticator state */
551
+ | {
552
+ epoch: string;
553
+ kind: 'AuthenticatorStateUpdate';
554
+ new_active_jwks: SuiActiveJwk[];
555
+ round: string;
556
+ } /** A transaction which updates global randomness state */
557
+ | {
558
+ epoch: string;
559
+ kind: 'RandomnessStateUpdate';
560
+ random_bytes: number[];
561
+ randomness_round: string;
562
+ } /** The transaction which occurs only at the end of the epoch */
563
+ | {
564
+ kind: 'EndOfEpochTransaction';
565
+ transactions: SuiEndOfEpochTransactionKind[];
566
+ }
567
+ | {
568
+ commit_timestamp_ms: string;
569
+ consensus_commit_digest: string;
570
+ epoch: string;
571
+ kind: 'ConsensusCommitPrologueV2';
572
+ round: string;
573
+ }
574
+ | {
575
+ commit_timestamp_ms: string;
576
+ consensus_commit_digest: string;
577
+ consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
578
+ epoch: string;
579
+ kind: 'ConsensusCommitPrologueV3';
580
+ round: string;
581
+ sub_dag_index?: string | null;
582
+ }
583
+ | {
584
+ additional_state_digest: string;
585
+ commit_timestamp_ms: string;
586
+ consensus_commit_digest: string;
587
+ consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
588
+ epoch: string;
589
+ kind: 'ConsensusCommitPrologueV4';
590
+ round: string;
591
+ sub_dag_index?: string | null;
592
+ } /** A series of commands where the results of one command can be used in future commands */
593
+ | {
594
+ /** Input objects or primitive values */
595
+ inputs: SuiCallArg[];
596
+ kind: 'ProgrammableSystemTransaction';
597
+ /**
598
+ * The transactions to be executed sequentially. A failure in any transaction will result in the
599
+ * failure of the entire programmable transaction block.
600
+ */
601
+ transactions: SuiTransaction[];
602
+ };
603
+
604
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
605
+ export interface SuiTransactionBlockResponse {
606
+ balanceChanges?: BalanceChange[] | null;
607
+ /**
608
+ * The checkpoint number when this transaction was included and hence finalized. This is only returned
609
+ * in the read api, not in the transaction execution api.
610
+ */
611
+ checkpoint?: string | null;
612
+ confirmedLocalExecution?: boolean | null;
613
+ digest: string;
614
+ effects?: TransactionEffects | null;
615
+ errors?: string[];
616
+ events?: SuiEvent[] | null;
617
+ objectChanges?: SuiObjectChange[] | null;
618
+ rawEffects?: number[];
619
+ /**
620
+ * BCS encoded [SenderSignedData] that includes input object references returns empty array if
621
+ * `show_raw_transaction` is false
622
+ */
623
+ rawTransaction?: string;
624
+ timestampMs?: string | null;
625
+ /** Transaction input data */
626
+ transaction?: SuiTransactionBlock | null;
627
+ }
628
+
629
+ /** @deprecated Part of the deprecated `sui:signAndExecuteTransactionBlock` feature. */
630
+ export interface SuiTransactionBlockResponseOptions {
631
+ /** Whether to show balance_changes. Default to be False */
632
+ showBalanceChanges?: boolean;
633
+ /** Whether to show transaction effects. Default to be False */
634
+ showEffects?: boolean;
635
+ /** Whether to show transaction events. Default to be False */
636
+ showEvents?: boolean;
637
+ /** Whether to show transaction input data. Default to be False */
638
+ showInput?: boolean;
639
+ /** Whether to show object_changes. Default to be False */
640
+ showObjectChanges?: boolean;
641
+ /** Whether to show raw transaction effects. Default to be False */
642
+ showRawEffects?: boolean;
643
+ /** Whether to show bcs-encoded transaction input data */
644
+ showRawInput?: boolean;
645
+ }