@t2000/cli 0.22.23 → 0.22.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -10
- package/dist/{chunk-RN7Z6TWD.js → chunk-BPTNEFB5.js} +69 -303
- package/dist/chunk-BPTNEFB5.js.map +1 -0
- package/dist/{chunk-KHIL2KNW.js → chunk-XOAZJ42V.js} +32 -32
- package/dist/{chunk-KHIL2KNW.js.map → chunk-XOAZJ42V.js.map} +1 -1
- package/dist/{client-I4SGZLVD.js → client-CK5OR2TP.js} +2 -2
- package/dist/{dist-FDS4MNUV.js → dist-MJOXMRDV.js} +3 -102
- package/dist/{dist-FDS4MNUV.js.map → dist-MJOXMRDV.js.map} +1 -1
- package/dist/{dist-G5YKLWC5.js → dist-TWST5EWE.js} +9 -25
- package/dist/index.js +81 -252
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-RN7Z6TWD.js.map +0 -1
- /package/dist/{client-I4SGZLVD.js.map → client-CK5OR2TP.js.map} +0 -0
- /package/dist/{dist-G5YKLWC5.js.map → dist-TWST5EWE.js.map} +0 -0
|
@@ -117,7 +117,7 @@ function IntentMessage(T) {
|
|
|
117
117
|
value: T
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
var Address, ObjectDigest, SuiObjectRef, SharedObjectRef,
|
|
120
|
+
var Address, ObjectDigest, SuiObjectRef, SharedObjectRef, ObjectArg2, Owner, Reservation, WithdrawalType, WithdrawFrom, FundsWithdrawal, CallArg, InnerTypeTag, TypeTag2, Argument, ProgrammableMoveCall, Command, ProgrammableTransaction, TransactionKind, ValidDuring, TransactionExpiration3, StructTag2, GasData, TransactionDataV1, TransactionData, IntentScope, IntentVersion, AppId, Intent, CompressedSignature, PublicKey, MultiSigPkMap, MultiSigPublicKey, MultiSig, base64String, SenderSignedTransaction, SenderSignedData, PasskeyAuthenticator, MoveObjectType, TypeOrigin, UpgradeInfo, MovePackage, MoveObject, Data, ObjectInner;
|
|
121
121
|
var init_bcs = __esm({
|
|
122
122
|
"../../node_modules/.pnpm/@mysten+sui@2.11.0_typescript@5.9.3/node_modules/@mysten/sui/dist/bcs/bcs.mjs"() {
|
|
123
123
|
"use strict";
|
|
@@ -150,7 +150,7 @@ var init_bcs = __esm({
|
|
|
150
150
|
initialSharedVersion: bcs.u64(),
|
|
151
151
|
mutable: bcs.bool()
|
|
152
152
|
});
|
|
153
|
-
|
|
153
|
+
ObjectArg2 = bcs.enum("ObjectArg", {
|
|
154
154
|
ImmOrOwnedObject: SuiObjectRef,
|
|
155
155
|
SharedObject: SharedObjectRef,
|
|
156
156
|
Receiving: SuiObjectRef
|
|
@@ -166,7 +166,7 @@ var init_bcs = __esm({
|
|
|
166
166
|
})
|
|
167
167
|
});
|
|
168
168
|
Reservation = bcs.enum("Reservation", { MaxAmountU64: bcs.u64() });
|
|
169
|
-
WithdrawalType = bcs.enum("WithdrawalType", { Balance: bcs.lazy(() =>
|
|
169
|
+
WithdrawalType = bcs.enum("WithdrawalType", { Balance: bcs.lazy(() => TypeTag2) });
|
|
170
170
|
WithdrawFrom = bcs.enum("WithdrawFrom", {
|
|
171
171
|
Sender: null,
|
|
172
172
|
Sponsor: null
|
|
@@ -181,7 +181,7 @@ var init_bcs = __esm({
|
|
|
181
181
|
input: (val) => typeof val === "string" ? fromBase64(val) : val,
|
|
182
182
|
output: (val) => toBase64(new Uint8Array(val))
|
|
183
183
|
}) }),
|
|
184
|
-
Object:
|
|
184
|
+
Object: ObjectArg2,
|
|
185
185
|
FundsWithdrawal
|
|
186
186
|
});
|
|
187
187
|
InnerTypeTag = bcs.enum("TypeTag", {
|
|
@@ -192,12 +192,12 @@ var init_bcs = __esm({
|
|
|
192
192
|
address: null,
|
|
193
193
|
signer: null,
|
|
194
194
|
vector: bcs.lazy(() => InnerTypeTag),
|
|
195
|
-
struct: bcs.lazy(() =>
|
|
195
|
+
struct: bcs.lazy(() => StructTag2),
|
|
196
196
|
u16: null,
|
|
197
197
|
u32: null,
|
|
198
198
|
u256: null
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
TypeTag2 = InnerTypeTag.transform({
|
|
201
201
|
input: (typeTag) => typeof typeTag === "string" ? TypeTagSerializer.parseFromStr(typeTag, true) : typeTag,
|
|
202
202
|
output: (typeTag) => TypeTagSerializer.tagToString(typeTag)
|
|
203
203
|
});
|
|
@@ -211,7 +211,7 @@ var init_bcs = __esm({
|
|
|
211
211
|
package: Address,
|
|
212
212
|
module: bcs.string(),
|
|
213
213
|
function: bcs.string(),
|
|
214
|
-
typeArguments: bcs.vector(
|
|
214
|
+
typeArguments: bcs.vector(TypeTag2),
|
|
215
215
|
arguments: bcs.vector(Argument)
|
|
216
216
|
});
|
|
217
217
|
Command = bcs.enum("Command", {
|
|
@@ -236,7 +236,7 @@ var init_bcs = __esm({
|
|
|
236
236
|
dependencies: bcs.vector(Address)
|
|
237
237
|
}),
|
|
238
238
|
MakeMoveVec: bcs.struct("MakeMoveVec", {
|
|
239
|
-
type: optionEnum(
|
|
239
|
+
type: optionEnum(TypeTag2).transform({
|
|
240
240
|
input: (val) => val === null ? { None: true } : { Some: val },
|
|
241
241
|
output: (val) => val.Some ?? null
|
|
242
242
|
}),
|
|
@@ -270,12 +270,12 @@ var init_bcs = __esm({
|
|
|
270
270
|
chain: ObjectDigest,
|
|
271
271
|
nonce: bcs.u32()
|
|
272
272
|
});
|
|
273
|
-
|
|
273
|
+
TransactionExpiration3 = bcs.enum("TransactionExpiration", {
|
|
274
274
|
None: null,
|
|
275
275
|
Epoch: unsafe_u64(),
|
|
276
276
|
ValidDuring
|
|
277
277
|
});
|
|
278
|
-
|
|
278
|
+
StructTag2 = bcs.struct("StructTag", {
|
|
279
279
|
address: Address,
|
|
280
280
|
module: bcs.string(),
|
|
281
281
|
name: bcs.string(),
|
|
@@ -291,7 +291,7 @@ var init_bcs = __esm({
|
|
|
291
291
|
kind: TransactionKind,
|
|
292
292
|
sender: Address,
|
|
293
293
|
gasData: GasData,
|
|
294
|
-
expiration:
|
|
294
|
+
expiration: TransactionExpiration3
|
|
295
295
|
});
|
|
296
296
|
TransactionData = bcs.enum("TransactionData", { V1: TransactionDataV1 });
|
|
297
297
|
IntentScope = bcs.enum("IntentScope", {
|
|
@@ -349,10 +349,10 @@ var init_bcs = __esm({
|
|
|
349
349
|
userSignature: bcs.byteVector()
|
|
350
350
|
});
|
|
351
351
|
MoveObjectType = bcs.enum("MoveObjectType", {
|
|
352
|
-
Other:
|
|
352
|
+
Other: StructTag2,
|
|
353
353
|
GasCoin: null,
|
|
354
354
|
StakedSui: null,
|
|
355
|
-
Coin:
|
|
355
|
+
Coin: TypeTag2,
|
|
356
356
|
AccumulatorBalanceWrapper: null
|
|
357
357
|
});
|
|
358
358
|
TypeOrigin = bcs.struct("TypeOrigin", {
|
|
@@ -557,7 +557,7 @@ var init_effects = __esm({
|
|
|
557
557
|
});
|
|
558
558
|
AccumulatorAddress = bcs.struct("AccumulatorAddress", {
|
|
559
559
|
address: Address,
|
|
560
|
-
ty:
|
|
560
|
+
ty: TypeTag2
|
|
561
561
|
});
|
|
562
562
|
AccumulatorOperation = bcs.enum("AccumulatorOperation", {
|
|
563
563
|
Merge: null,
|
|
@@ -706,7 +706,7 @@ var init_bcs2 = __esm({
|
|
|
706
706
|
MultiSigPkMap,
|
|
707
707
|
MultiSigPublicKey,
|
|
708
708
|
Object: ObjectInner,
|
|
709
|
-
ObjectArg,
|
|
709
|
+
ObjectArg: ObjectArg2,
|
|
710
710
|
ObjectDigest,
|
|
711
711
|
Owner,
|
|
712
712
|
PasskeyAuthenticator,
|
|
@@ -716,15 +716,15 @@ var init_bcs2 = __esm({
|
|
|
716
716
|
SenderSignedData,
|
|
717
717
|
SenderSignedTransaction,
|
|
718
718
|
SharedObjectRef,
|
|
719
|
-
StructTag,
|
|
719
|
+
StructTag: StructTag2,
|
|
720
720
|
SuiObjectRef,
|
|
721
721
|
TransactionData,
|
|
722
722
|
TransactionDataV1,
|
|
723
723
|
TransactionEffects,
|
|
724
|
-
TransactionExpiration,
|
|
724
|
+
TransactionExpiration: TransactionExpiration3,
|
|
725
725
|
TransactionKind,
|
|
726
726
|
TypeOrigin,
|
|
727
|
-
TypeTag,
|
|
727
|
+
TypeTag: TypeTag2,
|
|
728
728
|
UpgradeInfo
|
|
729
729
|
};
|
|
730
730
|
}
|
|
@@ -1588,7 +1588,7 @@ var ValidDuringSchema = object({
|
|
|
1588
1588
|
chain: string(),
|
|
1589
1589
|
nonce: U32
|
|
1590
1590
|
});
|
|
1591
|
-
var
|
|
1591
|
+
var TransactionExpiration = safeEnum({
|
|
1592
1592
|
None: literal(true),
|
|
1593
1593
|
Epoch: JsonU64,
|
|
1594
1594
|
ValidDuring: ValidDuringSchema
|
|
@@ -1596,7 +1596,7 @@ var TransactionExpiration2 = safeEnum({
|
|
|
1596
1596
|
var TransactionDataSchema = object({
|
|
1597
1597
|
version: literal(2),
|
|
1598
1598
|
sender: nullish(SuiAddress),
|
|
1599
|
-
expiration: nullish(
|
|
1599
|
+
expiration: nullish(TransactionExpiration),
|
|
1600
1600
|
gasData: GasDataSchema,
|
|
1601
1601
|
inputs: array(CallArgSchema),
|
|
1602
1602
|
commands: array(CommandSchema)
|
|
@@ -1614,7 +1614,7 @@ var ObjectRef = object({
|
|
|
1614
1614
|
bigint()
|
|
1615
1615
|
])
|
|
1616
1616
|
});
|
|
1617
|
-
var
|
|
1617
|
+
var ObjectArg = safeEnum({
|
|
1618
1618
|
ImmOrOwned: ObjectRef,
|
|
1619
1619
|
Shared: object({
|
|
1620
1620
|
objectId: ObjectID,
|
|
@@ -1624,7 +1624,7 @@ var ObjectArg2 = safeEnum({
|
|
|
1624
1624
|
Receiving: ObjectRef
|
|
1625
1625
|
});
|
|
1626
1626
|
var NormalizedCallArg2 = safeEnum({
|
|
1627
|
-
Object:
|
|
1627
|
+
Object: ObjectArg,
|
|
1628
1628
|
Pure: array(pipe(number(), integer()))
|
|
1629
1629
|
});
|
|
1630
1630
|
var TransactionInput = union([object({
|
|
@@ -1638,7 +1638,7 @@ var TransactionInput = union([object({
|
|
|
1638
1638
|
value: unknown(),
|
|
1639
1639
|
type: literal("pure")
|
|
1640
1640
|
})]);
|
|
1641
|
-
var
|
|
1641
|
+
var TransactionExpiration2 = union([object({ Epoch: pipe(number(), integer()) }), object({ None: nullable(literal(true)) })]);
|
|
1642
1642
|
var StringEncodedBigint = pipe(union([
|
|
1643
1643
|
number(),
|
|
1644
1644
|
string(),
|
|
@@ -1656,24 +1656,24 @@ var StringEncodedBigint = pipe(union([
|
|
|
1656
1656
|
return false;
|
|
1657
1657
|
}
|
|
1658
1658
|
}));
|
|
1659
|
-
var
|
|
1659
|
+
var TypeTag = union([
|
|
1660
1660
|
object({ bool: nullable(literal(true)) }),
|
|
1661
1661
|
object({ u8: nullable(literal(true)) }),
|
|
1662
1662
|
object({ u64: nullable(literal(true)) }),
|
|
1663
1663
|
object({ u128: nullable(literal(true)) }),
|
|
1664
1664
|
object({ address: nullable(literal(true)) }),
|
|
1665
1665
|
object({ signer: nullable(literal(true)) }),
|
|
1666
|
-
object({ vector: lazy(() =>
|
|
1667
|
-
object({ struct: lazy(() =>
|
|
1666
|
+
object({ vector: lazy(() => TypeTag) }),
|
|
1667
|
+
object({ struct: lazy(() => StructTag) }),
|
|
1668
1668
|
object({ u16: nullable(literal(true)) }),
|
|
1669
1669
|
object({ u32: nullable(literal(true)) }),
|
|
1670
1670
|
object({ u256: nullable(literal(true)) })
|
|
1671
1671
|
]);
|
|
1672
|
-
var
|
|
1672
|
+
var StructTag = object({
|
|
1673
1673
|
address: string(),
|
|
1674
1674
|
module: string(),
|
|
1675
1675
|
name: string(),
|
|
1676
|
-
typeParams: array(
|
|
1676
|
+
typeParams: array(TypeTag)
|
|
1677
1677
|
});
|
|
1678
1678
|
var GasConfig = object({
|
|
1679
1679
|
budget: optional(StringEncodedBigint),
|
|
@@ -1718,7 +1718,7 @@ var MergeCoinsTransaction = object({
|
|
|
1718
1718
|
});
|
|
1719
1719
|
var MakeMoveVecTransaction = object({
|
|
1720
1720
|
kind: literal("MakeMoveVec"),
|
|
1721
|
-
type: union([object({ Some:
|
|
1721
|
+
type: union([object({ Some: TypeTag }), object({ None: nullable(literal(true)) })]),
|
|
1722
1722
|
objects: array(TransactionArgument)
|
|
1723
1723
|
});
|
|
1724
1724
|
var TransactionType = union([...[
|
|
@@ -1743,7 +1743,7 @@ var TransactionType = union([...[
|
|
|
1743
1743
|
var SerializedTransactionDataV1 = object({
|
|
1744
1744
|
version: literal(1),
|
|
1745
1745
|
sender: optional(string()),
|
|
1746
|
-
expiration: nullish(
|
|
1746
|
+
expiration: nullish(TransactionExpiration2),
|
|
1747
1747
|
gasConfig: GasConfig,
|
|
1748
1748
|
inputs: array(TransactionInput),
|
|
1749
1749
|
transactions: array(TransactionType)
|
|
@@ -3579,7 +3579,7 @@ var Transaction = class Transaction2 {
|
|
|
3579
3579
|
if (!this.#data.sender) this.#data.sender = sender;
|
|
3580
3580
|
}
|
|
3581
3581
|
setExpiration(expiration) {
|
|
3582
|
-
this.#data.expiration = expiration ? parse(
|
|
3582
|
+
this.#data.expiration = expiration ? parse(TransactionExpiration, expiration) : null;
|
|
3583
3583
|
}
|
|
3584
3584
|
setGasPrice(price) {
|
|
3585
3585
|
this.#data.gasData.price = String(price);
|
|
@@ -4013,4 +4013,4 @@ export {
|
|
|
4013
4013
|
isTransaction,
|
|
4014
4014
|
Transaction
|
|
4015
4015
|
};
|
|
4016
|
-
//# sourceMappingURL=chunk-
|
|
4016
|
+
//# sourceMappingURL=chunk-XOAZJ42V.js.map
|