@mysten/sui 2.27.1 → 2.28.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 +14 -0
- package/dist/bcs/bcs.d.mts +6 -6
- package/dist/bcs/bcs.d.mts.map +1 -1
- package/dist/bcs/bcs.mjs +29 -2
- package/dist/bcs/bcs.mjs.map +1 -1
- package/dist/bcs/effects.mjs +2 -1
- package/dist/bcs/effects.mjs.map +1 -1
- package/dist/bcs/index.d.mts +137 -41
- package/dist/bcs/index.d.mts.map +1 -1
- package/dist/bcs/transactions.mjs +2 -1
- package/dist/bcs/transactions.mjs.map +1 -1
- package/dist/client/transaction-resolver.mjs +45 -9
- package/dist/client/transaction-resolver.mjs.map +1 -1
- package/dist/cryptography/signature.d.mts +14 -14
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/execution_status.d.mts +9 -1
- package/dist/grpc/proto/sui/rpc/v2/execution_status.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/execution_status.mjs +8 -0
- package/dist/grpc/proto/sui/rpc/v2/execution_status.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/move_package_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/name_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/state_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/transaction.d.mts +50 -2
- package/dist/grpc/proto/sui/rpc/v2/transaction.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction.mjs +36 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction.mjs.map +1 -1
- package/dist/grpc/proto/types.d.mts +2 -2
- package/dist/grpc/proto/types.mjs +2 -1
- package/dist/transactions/Transaction.d.mts +21 -9
- package/dist/transactions/Transaction.d.mts.map +1 -1
- package/dist/transactions/data/internal.d.mts +133 -109
- package/dist/transactions/data/internal.d.mts.map +1 -1
- package/dist/transactions/data/internal.mjs +11 -2
- package/dist/transactions/data/internal.mjs.map +1 -1
- package/dist/transactions/data/v1.d.mts +242 -220
- package/dist/transactions/data/v1.d.mts.map +1 -1
- package/dist/transactions/data/v1.mjs +27 -4
- package/dist/transactions/data/v1.mjs.map +1 -1
- package/dist/transactions/data/v2.d.mts +28 -16
- package/dist/transactions/data/v2.d.mts.map +1 -1
- package/dist/transactions/data/v2.mjs +3 -2
- package/dist/transactions/data/v2.mjs.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/version.mjs.map +1 -1
- package/dist/zklogin/bcs.d.mts +14 -14
- package/package.json +1 -1
- package/src/bcs/bcs.ts +45 -0
- package/src/bcs/effects.ts +3 -0
- package/src/bcs/transactions.ts +1 -0
- package/src/bcs/types.ts +10 -1
- package/src/client/transaction-resolver.ts +79 -9
- package/src/grpc/proto/sui/rpc/v2/execution_status.ts +8 -0
- package/src/grpc/proto/sui/rpc/v2/transaction.ts +68 -0
- package/src/transactions/data/internal.ts +19 -0
- package/src/transactions/data/v1.ts +51 -12
- package/src/transactions/data/v2.ts +2 -0
- package/src/version.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SuiClientTypes } from "../../client/types.mjs";
|
|
2
2
|
import { EnumInputShape, EnumOutputShape } from "@mysten/bcs";
|
|
3
3
|
import { Simplify } from "@mysten/utils";
|
|
4
|
-
import * as
|
|
4
|
+
import * as valibot525 from "valibot";
|
|
5
5
|
import { GenericSchema, InferInput, InferOutput, ObjectSchema } from "valibot";
|
|
6
6
|
|
|
7
7
|
//#region src/transactions/data/internal.d.ts
|
|
@@ -9,12 +9,12 @@ type EnumSchemaInput<T extends Record<string, GenericSchema<any>>> = EnumInputSh
|
|
|
9
9
|
type EnumSchemaOutput<T extends Record<string, GenericSchema<any>>> = EnumOutputShape<Simplify<{ [K in keyof T]: InferOutput<T[K]> }>>;
|
|
10
10
|
type EnumSchema<T extends Record<string, GenericSchema<any>>> = GenericSchema<EnumSchemaInput<T>, EnumSchemaOutput<T>>;
|
|
11
11
|
declare const ObjectRefSchema: ObjectSchema<{
|
|
12
|
-
readonly objectId:
|
|
13
|
-
readonly version:
|
|
14
|
-
readonly digest:
|
|
12
|
+
readonly objectId: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
13
|
+
readonly version: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
14
|
+
readonly digest: valibot525.StringSchema<undefined>;
|
|
15
15
|
}, undefined>;
|
|
16
16
|
type ObjectRef = InferOutput<typeof ObjectRefSchema>;
|
|
17
|
-
declare const ArgumentSchema:
|
|
17
|
+
declare const ArgumentSchema: valibot525.UnionSchema<[GenericSchema<{
|
|
18
18
|
GasCoin: true;
|
|
19
19
|
$kind?: "GasCoin" | undefined;
|
|
20
20
|
}, {
|
|
@@ -43,13 +43,13 @@ declare const ArgumentSchema: valibot481.UnionSchema<[GenericSchema<{
|
|
|
43
43
|
}>], undefined>;
|
|
44
44
|
type Argument = InferOutput<typeof ArgumentSchema>;
|
|
45
45
|
declare const GasDataSchema: ObjectSchema<{
|
|
46
|
-
readonly budget:
|
|
47
|
-
readonly price:
|
|
48
|
-
readonly owner:
|
|
49
|
-
readonly payment:
|
|
50
|
-
readonly objectId:
|
|
51
|
-
readonly version:
|
|
52
|
-
readonly digest:
|
|
46
|
+
readonly budget: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
47
|
+
readonly price: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
48
|
+
readonly owner: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>, undefined>;
|
|
49
|
+
readonly payment: valibot525.NullableSchema<valibot525.ArraySchema<ObjectSchema<{
|
|
50
|
+
readonly objectId: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
51
|
+
readonly version: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
52
|
+
readonly digest: valibot525.StringSchema<undefined>;
|
|
53
53
|
}, undefined>, undefined>, undefined>;
|
|
54
54
|
}, undefined>;
|
|
55
55
|
type GasData = InferOutput<typeof GasDataSchema>;
|
|
@@ -95,152 +95,176 @@ type Command<Arg = Argument> = EnumOutputShape<{
|
|
|
95
95
|
};
|
|
96
96
|
}>;
|
|
97
97
|
declare const ReservationSchema: EnumSchema<{
|
|
98
|
-
MaxAmountU64:
|
|
98
|
+
MaxAmountU64: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
99
99
|
}>;
|
|
100
100
|
type Reservation = InferOutput<typeof ReservationSchema>;
|
|
101
101
|
declare const WithdrawalTypeArgSchema: EnumSchema<{
|
|
102
|
-
Balance:
|
|
102
|
+
Balance: valibot525.StringSchema<undefined>;
|
|
103
103
|
}>;
|
|
104
104
|
type WithdrawalTypeArg = InferOutput<typeof WithdrawalTypeArgSchema>;
|
|
105
105
|
declare const WithdrawFromSchema: EnumSchema<{
|
|
106
|
-
Sender:
|
|
107
|
-
Sponsor:
|
|
106
|
+
Sender: valibot525.LiteralSchema<true, undefined>;
|
|
107
|
+
Sponsor: valibot525.LiteralSchema<true, undefined>;
|
|
108
108
|
}>;
|
|
109
109
|
type WithdrawFrom = InferOutput<typeof WithdrawFromSchema>;
|
|
110
110
|
declare const CallArgSchema: EnumSchema<{
|
|
111
111
|
Object: EnumSchema<{
|
|
112
112
|
ImmOrOwnedObject: ObjectSchema<{
|
|
113
|
-
readonly objectId:
|
|
114
|
-
readonly version:
|
|
115
|
-
readonly digest:
|
|
113
|
+
readonly objectId: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
114
|
+
readonly version: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
115
|
+
readonly digest: valibot525.StringSchema<undefined>;
|
|
116
116
|
}, undefined>;
|
|
117
117
|
SharedObject: ObjectSchema<{
|
|
118
|
-
readonly objectId:
|
|
119
|
-
readonly initialSharedVersion:
|
|
120
|
-
readonly mutable:
|
|
118
|
+
readonly objectId: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
119
|
+
readonly initialSharedVersion: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
120
|
+
readonly mutable: valibot525.BooleanSchema<undefined>;
|
|
121
121
|
}, undefined>;
|
|
122
122
|
Receiving: ObjectSchema<{
|
|
123
|
-
readonly objectId:
|
|
124
|
-
readonly version:
|
|
125
|
-
readonly digest:
|
|
123
|
+
readonly objectId: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
124
|
+
readonly version: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
125
|
+
readonly digest: valibot525.StringSchema<undefined>;
|
|
126
126
|
}, undefined>;
|
|
127
127
|
}>;
|
|
128
128
|
Pure: ObjectSchema<{
|
|
129
|
-
readonly bytes:
|
|
129
|
+
readonly bytes: valibot525.StringSchema<undefined>;
|
|
130
130
|
}, undefined>;
|
|
131
131
|
UnresolvedPure: ObjectSchema<{
|
|
132
|
-
readonly value:
|
|
132
|
+
readonly value: valibot525.UnknownSchema;
|
|
133
133
|
}, undefined>;
|
|
134
134
|
UnresolvedObject: ObjectSchema<{
|
|
135
|
-
readonly objectId:
|
|
136
|
-
readonly version:
|
|
137
|
-
readonly digest:
|
|
138
|
-
readonly initialSharedVersion:
|
|
139
|
-
readonly mutable:
|
|
135
|
+
readonly objectId: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
136
|
+
readonly version: valibot525.OptionalSchema<valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>, undefined>;
|
|
137
|
+
readonly digest: valibot525.OptionalSchema<valibot525.NullableSchema<valibot525.StringSchema<undefined>, undefined>, undefined>;
|
|
138
|
+
readonly initialSharedVersion: valibot525.OptionalSchema<valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>, undefined>;
|
|
139
|
+
readonly mutable: valibot525.OptionalSchema<valibot525.NullableSchema<valibot525.BooleanSchema<undefined>, undefined>, undefined>;
|
|
140
140
|
}, undefined>;
|
|
141
141
|
FundsWithdrawal: ObjectSchema<{
|
|
142
142
|
readonly reservation: EnumSchema<{
|
|
143
|
-
MaxAmountU64:
|
|
143
|
+
MaxAmountU64: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
144
144
|
}>;
|
|
145
145
|
readonly typeArg: EnumSchema<{
|
|
146
|
-
Balance:
|
|
146
|
+
Balance: valibot525.StringSchema<undefined>;
|
|
147
147
|
}>;
|
|
148
148
|
readonly withdrawFrom: EnumSchema<{
|
|
149
|
-
Sender:
|
|
150
|
-
Sponsor:
|
|
149
|
+
Sender: valibot525.LiteralSchema<true, undefined>;
|
|
150
|
+
Sponsor: valibot525.LiteralSchema<true, undefined>;
|
|
151
151
|
}>;
|
|
152
152
|
}, undefined>;
|
|
153
153
|
}>;
|
|
154
154
|
type CallArg = InferOutput<typeof CallArgSchema>;
|
|
155
155
|
declare const TransactionExpiration: EnumSchema<{
|
|
156
|
-
None:
|
|
157
|
-
Epoch:
|
|
156
|
+
None: valibot525.LiteralSchema<true, undefined>;
|
|
157
|
+
Epoch: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
158
158
|
ValidDuring: ObjectSchema<{
|
|
159
|
-
readonly minEpoch:
|
|
160
|
-
readonly maxEpoch:
|
|
161
|
-
readonly minTimestamp:
|
|
162
|
-
readonly maxTimestamp:
|
|
163
|
-
readonly chain:
|
|
164
|
-
readonly nonce:
|
|
159
|
+
readonly minEpoch: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
160
|
+
readonly maxEpoch: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
161
|
+
readonly minTimestamp: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
162
|
+
readonly maxTimestamp: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
163
|
+
readonly chain: valibot525.StringSchema<undefined>;
|
|
164
|
+
readonly nonce: valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>, valibot525.CheckAction<number, "Invalid u32">]>;
|
|
165
|
+
}, undefined>;
|
|
166
|
+
Validity: ObjectSchema<{
|
|
167
|
+
readonly allowedProposers: valibot525.NullableSchema<ObjectSchema<{
|
|
168
|
+
readonly epoch: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
169
|
+
readonly proposers: valibot525.SchemaWithPipe<readonly [valibot525.ArraySchema<valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>, valibot525.CheckAction<number, "Invalid u32">]>, undefined>, valibot525.CheckAction<number[], "Allowed proposers must not be empty">]>;
|
|
170
|
+
}, undefined>, undefined>;
|
|
171
|
+
readonly minEpoch: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
172
|
+
readonly maxEpoch: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
173
|
+
readonly minTimestamp: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
174
|
+
readonly maxTimestamp: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
175
|
+
readonly chain: valibot525.StringSchema<undefined>;
|
|
176
|
+
readonly nonce: valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>, valibot525.CheckAction<number, "Invalid u32">]>;
|
|
165
177
|
}, undefined>;
|
|
166
178
|
}>;
|
|
167
179
|
type TransactionExpiration = InferOutput<typeof TransactionExpiration>;
|
|
168
180
|
declare const TransactionDataSchema: ObjectSchema<{
|
|
169
|
-
readonly version:
|
|
170
|
-
readonly sender:
|
|
171
|
-
readonly expiration:
|
|
172
|
-
None:
|
|
173
|
-
Epoch:
|
|
181
|
+
readonly version: valibot525.LiteralSchema<2, undefined>;
|
|
182
|
+
readonly sender: valibot525.NullishSchema<valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>, undefined>;
|
|
183
|
+
readonly expiration: valibot525.NullishSchema<EnumSchema<{
|
|
184
|
+
None: valibot525.LiteralSchema<true, undefined>;
|
|
185
|
+
Epoch: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
174
186
|
ValidDuring: ObjectSchema<{
|
|
175
|
-
readonly minEpoch:
|
|
176
|
-
readonly maxEpoch:
|
|
177
|
-
readonly minTimestamp:
|
|
178
|
-
readonly maxTimestamp:
|
|
179
|
-
readonly chain:
|
|
180
|
-
readonly nonce:
|
|
187
|
+
readonly minEpoch: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
188
|
+
readonly maxEpoch: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
189
|
+
readonly minTimestamp: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
190
|
+
readonly maxTimestamp: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
191
|
+
readonly chain: valibot525.StringSchema<undefined>;
|
|
192
|
+
readonly nonce: valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>, valibot525.CheckAction<number, "Invalid u32">]>;
|
|
193
|
+
}, undefined>;
|
|
194
|
+
Validity: ObjectSchema<{
|
|
195
|
+
readonly allowedProposers: valibot525.NullableSchema<ObjectSchema<{
|
|
196
|
+
readonly epoch: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
197
|
+
readonly proposers: valibot525.SchemaWithPipe<readonly [valibot525.ArraySchema<valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>, valibot525.CheckAction<number, "Invalid u32">]>, undefined>, valibot525.CheckAction<number[], "Allowed proposers must not be empty">]>;
|
|
198
|
+
}, undefined>, undefined>;
|
|
199
|
+
readonly minEpoch: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
200
|
+
readonly maxEpoch: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
201
|
+
readonly minTimestamp: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
202
|
+
readonly maxTimestamp: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
203
|
+
readonly chain: valibot525.StringSchema<undefined>;
|
|
204
|
+
readonly nonce: valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>, valibot525.CheckAction<number, "Invalid u32">]>;
|
|
181
205
|
}, undefined>;
|
|
182
206
|
}>, undefined>;
|
|
183
207
|
readonly gasData: ObjectSchema<{
|
|
184
|
-
readonly budget:
|
|
185
|
-
readonly price:
|
|
186
|
-
readonly owner:
|
|
187
|
-
readonly payment:
|
|
188
|
-
readonly objectId:
|
|
189
|
-
readonly version:
|
|
190
|
-
readonly digest:
|
|
208
|
+
readonly budget: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
209
|
+
readonly price: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
210
|
+
readonly owner: valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>, undefined>;
|
|
211
|
+
readonly payment: valibot525.NullableSchema<valibot525.ArraySchema<ObjectSchema<{
|
|
212
|
+
readonly objectId: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
213
|
+
readonly version: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
214
|
+
readonly digest: valibot525.StringSchema<undefined>;
|
|
191
215
|
}, undefined>, undefined>, undefined>;
|
|
192
216
|
}, undefined>;
|
|
193
|
-
readonly inputs:
|
|
217
|
+
readonly inputs: valibot525.ArraySchema<EnumSchema<{
|
|
194
218
|
Object: EnumSchema<{
|
|
195
219
|
ImmOrOwnedObject: ObjectSchema<{
|
|
196
|
-
readonly objectId:
|
|
197
|
-
readonly version:
|
|
198
|
-
readonly digest:
|
|
220
|
+
readonly objectId: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
221
|
+
readonly version: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
222
|
+
readonly digest: valibot525.StringSchema<undefined>;
|
|
199
223
|
}, undefined>;
|
|
200
224
|
SharedObject: ObjectSchema<{
|
|
201
|
-
readonly objectId:
|
|
202
|
-
readonly initialSharedVersion:
|
|
203
|
-
readonly mutable:
|
|
225
|
+
readonly objectId: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
226
|
+
readonly initialSharedVersion: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
227
|
+
readonly mutable: valibot525.BooleanSchema<undefined>;
|
|
204
228
|
}, undefined>;
|
|
205
229
|
Receiving: ObjectSchema<{
|
|
206
|
-
readonly objectId:
|
|
207
|
-
readonly version:
|
|
208
|
-
readonly digest:
|
|
230
|
+
readonly objectId: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
231
|
+
readonly version: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
232
|
+
readonly digest: valibot525.StringSchema<undefined>;
|
|
209
233
|
}, undefined>;
|
|
210
234
|
}>;
|
|
211
235
|
Pure: ObjectSchema<{
|
|
212
|
-
readonly bytes:
|
|
236
|
+
readonly bytes: valibot525.StringSchema<undefined>;
|
|
213
237
|
}, undefined>;
|
|
214
238
|
UnresolvedPure: ObjectSchema<{
|
|
215
|
-
readonly value:
|
|
239
|
+
readonly value: valibot525.UnknownSchema;
|
|
216
240
|
}, undefined>;
|
|
217
241
|
UnresolvedObject: ObjectSchema<{
|
|
218
|
-
readonly objectId:
|
|
219
|
-
readonly version:
|
|
220
|
-
readonly digest:
|
|
221
|
-
readonly initialSharedVersion:
|
|
222
|
-
readonly mutable:
|
|
242
|
+
readonly objectId: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
243
|
+
readonly version: valibot525.OptionalSchema<valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>, undefined>;
|
|
244
|
+
readonly digest: valibot525.OptionalSchema<valibot525.NullableSchema<valibot525.StringSchema<undefined>, undefined>, undefined>;
|
|
245
|
+
readonly initialSharedVersion: valibot525.OptionalSchema<valibot525.NullableSchema<valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>, undefined>, undefined>;
|
|
246
|
+
readonly mutable: valibot525.OptionalSchema<valibot525.NullableSchema<valibot525.BooleanSchema<undefined>, undefined>, undefined>;
|
|
223
247
|
}, undefined>;
|
|
224
248
|
FundsWithdrawal: ObjectSchema<{
|
|
225
249
|
readonly reservation: EnumSchema<{
|
|
226
|
-
MaxAmountU64:
|
|
250
|
+
MaxAmountU64: valibot525.SchemaWithPipe<readonly [valibot525.UnionSchema<[valibot525.StringSchema<undefined>, valibot525.SchemaWithPipe<readonly [valibot525.NumberSchema<undefined>, valibot525.IntegerAction<number, undefined>]>], undefined>, valibot525.CheckAction<string | number, "Invalid u64">]>;
|
|
227
251
|
}>;
|
|
228
252
|
readonly typeArg: EnumSchema<{
|
|
229
|
-
Balance:
|
|
253
|
+
Balance: valibot525.StringSchema<undefined>;
|
|
230
254
|
}>;
|
|
231
255
|
readonly withdrawFrom: EnumSchema<{
|
|
232
|
-
Sender:
|
|
233
|
-
Sponsor:
|
|
256
|
+
Sender: valibot525.LiteralSchema<true, undefined>;
|
|
257
|
+
Sponsor: valibot525.LiteralSchema<true, undefined>;
|
|
234
258
|
}>;
|
|
235
259
|
}, undefined>;
|
|
236
260
|
}>, undefined>;
|
|
237
|
-
readonly commands:
|
|
261
|
+
readonly commands: valibot525.ArraySchema<EnumSchema<{
|
|
238
262
|
MoveCall: ObjectSchema<{
|
|
239
|
-
readonly package:
|
|
240
|
-
readonly module:
|
|
241
|
-
readonly function:
|
|
242
|
-
readonly typeArguments:
|
|
243
|
-
readonly arguments:
|
|
263
|
+
readonly package: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
264
|
+
readonly module: valibot525.StringSchema<undefined>;
|
|
265
|
+
readonly function: valibot525.StringSchema<undefined>;
|
|
266
|
+
readonly typeArguments: valibot525.ArraySchema<valibot525.StringSchema<undefined>, undefined>;
|
|
267
|
+
readonly arguments: valibot525.ArraySchema<valibot525.UnionSchema<[GenericSchema<{
|
|
244
268
|
GasCoin: true;
|
|
245
269
|
$kind?: "GasCoin" | undefined;
|
|
246
270
|
}, {
|
|
@@ -267,13 +291,13 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
267
291
|
NestedResult: [number, number];
|
|
268
292
|
$kind: "NestedResult";
|
|
269
293
|
}>], undefined>, undefined>;
|
|
270
|
-
readonly _argumentTypes:
|
|
271
|
-
readonly reference:
|
|
294
|
+
readonly _argumentTypes: valibot525.OptionalSchema<valibot525.NullableSchema<valibot525.ArraySchema<ObjectSchema<{
|
|
295
|
+
readonly reference: valibot525.NullableSchema<valibot525.UnionSchema<[valibot525.LiteralSchema<"mutable", undefined>, valibot525.LiteralSchema<"immutable", undefined>, valibot525.LiteralSchema<"unknown", undefined>], undefined>, undefined>;
|
|
272
296
|
readonly body: GenericSchema<SuiClientTypes.OpenSignatureBody>;
|
|
273
297
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
274
298
|
}, undefined>;
|
|
275
299
|
TransferObjects: ObjectSchema<{
|
|
276
|
-
readonly objects:
|
|
300
|
+
readonly objects: valibot525.ArraySchema<valibot525.UnionSchema<[GenericSchema<{
|
|
277
301
|
GasCoin: true;
|
|
278
302
|
$kind?: "GasCoin" | undefined;
|
|
279
303
|
}, {
|
|
@@ -300,7 +324,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
300
324
|
NestedResult: [number, number];
|
|
301
325
|
$kind: "NestedResult";
|
|
302
326
|
}>], undefined>, undefined>;
|
|
303
|
-
readonly address:
|
|
327
|
+
readonly address: valibot525.UnionSchema<[GenericSchema<{
|
|
304
328
|
GasCoin: true;
|
|
305
329
|
$kind?: "GasCoin" | undefined;
|
|
306
330
|
}, {
|
|
@@ -329,7 +353,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
329
353
|
}>], undefined>;
|
|
330
354
|
}, undefined>;
|
|
331
355
|
SplitCoins: ObjectSchema<{
|
|
332
|
-
readonly coin:
|
|
356
|
+
readonly coin: valibot525.UnionSchema<[GenericSchema<{
|
|
333
357
|
GasCoin: true;
|
|
334
358
|
$kind?: "GasCoin" | undefined;
|
|
335
359
|
}, {
|
|
@@ -356,7 +380,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
356
380
|
NestedResult: [number, number];
|
|
357
381
|
$kind: "NestedResult";
|
|
358
382
|
}>], undefined>;
|
|
359
|
-
readonly amounts:
|
|
383
|
+
readonly amounts: valibot525.ArraySchema<valibot525.UnionSchema<[GenericSchema<{
|
|
360
384
|
GasCoin: true;
|
|
361
385
|
$kind?: "GasCoin" | undefined;
|
|
362
386
|
}, {
|
|
@@ -385,7 +409,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
385
409
|
}>], undefined>, undefined>;
|
|
386
410
|
}, undefined>;
|
|
387
411
|
MergeCoins: ObjectSchema<{
|
|
388
|
-
readonly destination:
|
|
412
|
+
readonly destination: valibot525.UnionSchema<[GenericSchema<{
|
|
389
413
|
GasCoin: true;
|
|
390
414
|
$kind?: "GasCoin" | undefined;
|
|
391
415
|
}, {
|
|
@@ -412,7 +436,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
412
436
|
NestedResult: [number, number];
|
|
413
437
|
$kind: "NestedResult";
|
|
414
438
|
}>], undefined>;
|
|
415
|
-
readonly sources:
|
|
439
|
+
readonly sources: valibot525.ArraySchema<valibot525.UnionSchema<[GenericSchema<{
|
|
416
440
|
GasCoin: true;
|
|
417
441
|
$kind?: "GasCoin" | undefined;
|
|
418
442
|
}, {
|
|
@@ -441,12 +465,12 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
441
465
|
}>], undefined>, undefined>;
|
|
442
466
|
}, undefined>;
|
|
443
467
|
Publish: ObjectSchema<{
|
|
444
|
-
readonly modules:
|
|
445
|
-
readonly dependencies:
|
|
468
|
+
readonly modules: valibot525.ArraySchema<valibot525.StringSchema<undefined>, undefined>;
|
|
469
|
+
readonly dependencies: valibot525.ArraySchema<valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>, undefined>;
|
|
446
470
|
}, undefined>;
|
|
447
471
|
MakeMoveVec: ObjectSchema<{
|
|
448
|
-
readonly type:
|
|
449
|
-
readonly elements:
|
|
472
|
+
readonly type: valibot525.NullableSchema<valibot525.StringSchema<undefined>, undefined>;
|
|
473
|
+
readonly elements: valibot525.ArraySchema<valibot525.UnionSchema<[GenericSchema<{
|
|
450
474
|
GasCoin: true;
|
|
451
475
|
$kind?: "GasCoin" | undefined;
|
|
452
476
|
}, {
|
|
@@ -475,10 +499,10 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
475
499
|
}>], undefined>, undefined>;
|
|
476
500
|
}, undefined>;
|
|
477
501
|
Upgrade: ObjectSchema<{
|
|
478
|
-
readonly modules:
|
|
479
|
-
readonly dependencies:
|
|
480
|
-
readonly package:
|
|
481
|
-
readonly ticket:
|
|
502
|
+
readonly modules: valibot525.ArraySchema<valibot525.StringSchema<undefined>, undefined>;
|
|
503
|
+
readonly dependencies: valibot525.ArraySchema<valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>, undefined>;
|
|
504
|
+
readonly package: valibot525.SchemaWithPipe<readonly [valibot525.StringSchema<undefined>, valibot525.TransformAction<string, string>, valibot525.CheckAction<string, undefined>]>;
|
|
505
|
+
readonly ticket: valibot525.UnionSchema<[GenericSchema<{
|
|
482
506
|
GasCoin: true;
|
|
483
507
|
$kind?: "GasCoin" | undefined;
|
|
484
508
|
}, {
|
|
@@ -507,8 +531,8 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
507
531
|
}>], undefined>;
|
|
508
532
|
}, undefined>;
|
|
509
533
|
$Intent: ObjectSchema<{
|
|
510
|
-
readonly name:
|
|
511
|
-
readonly inputs:
|
|
534
|
+
readonly name: valibot525.StringSchema<undefined>;
|
|
535
|
+
readonly inputs: valibot525.RecordSchema<valibot525.StringSchema<undefined>, valibot525.UnionSchema<[valibot525.UnionSchema<[GenericSchema<{
|
|
512
536
|
GasCoin: true;
|
|
513
537
|
$kind?: "GasCoin" | undefined;
|
|
514
538
|
}, {
|
|
@@ -534,7 +558,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
534
558
|
}, {
|
|
535
559
|
NestedResult: [number, number];
|
|
536
560
|
$kind: "NestedResult";
|
|
537
|
-
}>], undefined>,
|
|
561
|
+
}>], undefined>, valibot525.ArraySchema<valibot525.UnionSchema<[GenericSchema<{
|
|
538
562
|
GasCoin: true;
|
|
539
563
|
$kind?: "GasCoin" | undefined;
|
|
540
564
|
}, {
|
|
@@ -561,7 +585,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
561
585
|
NestedResult: [number, number];
|
|
562
586
|
$kind: "NestedResult";
|
|
563
587
|
}>], undefined>, undefined>], undefined>, undefined>;
|
|
564
|
-
readonly data:
|
|
588
|
+
readonly data: valibot525.RecordSchema<valibot525.StringSchema<undefined>, valibot525.UnknownSchema, undefined>;
|
|
565
589
|
}, undefined>;
|
|
566
590
|
}>, undefined>;
|
|
567
591
|
}, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.mts","names":[],"sources":["../../../src/transactions/data/internal.ts"],"mappings":";;;;;;;KA8BK,eAAA,WAA0B,MAAA,SAAe,aAAA,UAAuB,cAAA,CACpE,QAAA,eACa,CAAA,GAAI,UAAA,CAAW,CAAA,CAAE,CAAA;AAAA,KAI1B,gBAAA,WAA2B,MAAA,SAAe,aAAA,UAAuB,eAAA,CACrE,QAAA,eACa,CAAA,GAAI,WAAA,CAAY,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,eAAA,GAAkB,WAAA,QAAmB,qBAAA"}
|
|
@@ -178,10 +178,19 @@ const ValidDuringSchema = object({
|
|
|
178
178
|
chain: string(),
|
|
179
179
|
nonce: U32
|
|
180
180
|
});
|
|
181
|
+
const AllowedProposersSchema = object({
|
|
182
|
+
epoch: JsonU64,
|
|
183
|
+
proposers: pipe(array(U32), check((proposers) => proposers.length > 0, "Allowed proposers must not be empty"))
|
|
184
|
+
});
|
|
185
|
+
const ValiditySchema = object({
|
|
186
|
+
...ValidDuringSchema.entries,
|
|
187
|
+
allowedProposers: nullable(AllowedProposersSchema)
|
|
188
|
+
});
|
|
181
189
|
const TransactionExpiration = safeEnum({
|
|
182
190
|
None: literal(true),
|
|
183
191
|
Epoch: JsonU64,
|
|
184
|
-
ValidDuring: ValidDuringSchema
|
|
192
|
+
ValidDuring: ValidDuringSchema,
|
|
193
|
+
Validity: ValiditySchema
|
|
185
194
|
});
|
|
186
195
|
const TransactionDataSchema = object({
|
|
187
196
|
version: literal(2),
|
|
@@ -193,5 +202,5 @@ const TransactionDataSchema = object({
|
|
|
193
202
|
});
|
|
194
203
|
|
|
195
204
|
//#endregion
|
|
196
|
-
export { ArgumentSchema, BCSBytes, FundsWithdrawalArgSchema, JsonU64, NormalizedCallArg, ObjectID, ObjectRefSchema, SuiAddress, TransactionDataSchema, TransactionExpiration, ValidDuringSchema, safeEnum };
|
|
205
|
+
export { ArgumentSchema, BCSBytes, FundsWithdrawalArgSchema, JsonU64, NormalizedCallArg, ObjectID, ObjectRefSchema, SuiAddress, TransactionDataSchema, TransactionExpiration, ValidDuringSchema, ValiditySchema, safeEnum };
|
|
197
206
|
//# sourceMappingURL=internal.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.mjs","names":[],"sources":["../../../src/transactions/data/internal.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { EnumInputShape, EnumOutputShape } from '@mysten/bcs';\nimport type { GenericSchema, InferInput, InferOutput, ObjectEntries, ObjectSchema } from 'valibot';\nimport {\n\tarray,\n\tboolean,\n\tcheck,\n\tinteger,\n\tlazy,\n\tliteral,\n\tnullable,\n\tnullish,\n\tnumber,\n\tobject,\n\toptional,\n\tpipe,\n\trecord,\n\tstring,\n\ttransform,\n\ttuple,\n\tunion,\n\tunknown,\n} from 'valibot';\n\nimport { isValidSuiAddress, normalizeSuiAddress } from '../../utils/sui-types.js';\nimport type { Simplify } from '@mysten/utils';\nimport type { SuiClientTypes } from '../../client/types.js';\n\ntype EnumSchemaInput<T extends Record<string, GenericSchema<any>>> = EnumInputShape<\n\tSimplify<{\n\t\t[K in keyof T]: InferInput<T[K]>;\n\t}>\n>;\n\ntype EnumSchemaOutput<T extends Record<string, GenericSchema<any>>> = EnumOutputShape<\n\tSimplify<{\n\t\t[K in keyof T]: InferOutput<T[K]>;\n\t}>\n>;\n\ntype EnumSchema<T extends Record<string, GenericSchema<any>>> = GenericSchema<\n\tEnumSchemaInput<T>,\n\tEnumSchemaOutput<T>\n>;\n\nexport function safeEnum<T extends Record<string, GenericSchema<any>>>(options: T): EnumSchema<T> {\n\treturn union(\n\t\tObject.keys(options).map(\n\t\t\t(key) =>\n\t\t\t\twithKind(\n\t\t\t\t\tkey,\n\t\t\t\t\tobject({\n\t\t\t\t\t\t[key]: options[key],\n\t\t\t\t\t}),\n\t\t\t\t) as GenericSchema<EnumOutputShape<T>>,\n\t\t),\n\t) as EnumSchema<T>;\n}\n\nfunction withKind<K extends string, TEntries extends ObjectEntries>(\n\tkey: K,\n\tschema: ObjectSchema<TEntries, undefined>,\n) {\n\treturn pipe(\n\t\tobject({\n\t\t\t...schema.entries,\n\t\t\t$kind: optional(literal(key)),\n\t\t}),\n\t\ttransform((value) => ({ ...value, $kind: key })),\n\t) as GenericSchema<\n\t\tSimplify<InferInput<ObjectSchema<TEntries, undefined>> & { $kind?: K }>,\n\t\tSimplify<InferOutput<ObjectSchema<TEntries, undefined>> & { $kind: K }>\n\t>;\n}\n\nexport const SuiAddress = pipe(\n\tstring(),\n\ttransform((value) => normalizeSuiAddress(value)),\n\tcheck(isValidSuiAddress),\n);\nexport const ObjectID = SuiAddress;\nexport const BCSBytes = string();\nexport const JsonU64 = pipe(\n\tunion([string(), pipe(number(), integer())]),\n\n\tcheck((val) => {\n\t\ttry {\n\t\t\tBigInt(val);\n\t\t\treturn BigInt(val) >= 0 && BigInt(val) <= 18446744073709551615n;\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t}, 'Invalid u64'),\n);\n\nexport const U32 = pipe(\n\tnumber(),\n\tinteger(),\n\tcheck((val) => val >= 0 && val < 2 ** 32, 'Invalid u32'),\n);\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/base_types.rs#L138\n// Implemented as a tuple in rust\nexport const ObjectRefSchema = object({\n\tobjectId: SuiAddress,\n\tversion: JsonU64,\n\tdigest: string(),\n});\nexport type ObjectRef = InferOutput<typeof ObjectRefSchema>;\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L690-L702\nexport const ArgumentSchema = union([\n\twithKind('GasCoin', object({ GasCoin: literal(true) })),\n\twithKind(\n\t\t'Input',\n\t\tobject({\n\t\t\tInput: pipe(number(), integer()),\n\t\t\ttype: optional(union([literal('pure'), literal('object'), literal('withdrawal')])),\n\t\t}),\n\t),\n\twithKind('Result', object({ Result: pipe(number(), integer()) })),\n\twithKind(\n\t\t'NestedResult',\n\t\tobject({ NestedResult: tuple([pipe(number(), integer()), pipe(number(), integer())]) }),\n\t),\n]);\n\nexport type Argument = InferOutput<typeof ArgumentSchema>;\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L1387-L1392\nexport const GasDataSchema = object({\n\tbudget: nullable(JsonU64),\n\tprice: nullable(JsonU64),\n\towner: nullable(SuiAddress),\n\tpayment: nullable(array(ObjectRefSchema)),\n});\nexport type GasData = InferOutput<typeof GasDataSchema>;\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/external-crates/move/crates/move-core-types/src/language_storage.rs#L140-L147\nexport const StructTagSchema = object({\n\taddress: string(),\n\tmodule: string(),\n\tname: string(),\n\t// type_params in rust, should be updated to use camelCase\n\ttypeParams: array(string()),\n});\nexport type StructTag = InferOutput<typeof StructTagSchema>;\n\nexport const OpenSignatureBodySchema: GenericSchema<SuiClientTypes.OpenSignatureBody> = union([\n\tobject({ $kind: literal('address') }),\n\tobject({ $kind: literal('bool') }),\n\tobject({ $kind: literal('u8') }),\n\tobject({ $kind: literal('u16') }),\n\tobject({ $kind: literal('u32') }),\n\tobject({ $kind: literal('u64') }),\n\tobject({ $kind: literal('u128') }),\n\tobject({ $kind: literal('u256') }),\n\tobject({ $kind: literal('unknown') }),\n\tobject({ $kind: literal('vector'), vector: lazy(() => OpenSignatureBodySchema) }),\n\tobject({\n\t\t$kind: literal('datatype'),\n\t\tdatatype: object({\n\t\t\ttypeName: string(),\n\t\t\ttypeParameters: array(lazy(() => OpenSignatureBodySchema)),\n\t\t}),\n\t}),\n\tobject({ $kind: literal('typeParameter'), index: pipe(number(), integer()) }),\n]);\n\nexport const OpenSignatureSchema = object({\n\treference: nullable(union([literal('mutable'), literal('immutable'), literal('unknown')])),\n\tbody: OpenSignatureBodySchema,\n});\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L707-L718\nconst ProgrammableMoveCallSchema = object({\n\tpackage: ObjectID,\n\tmodule: string(),\n\tfunction: string(),\n\t// snake case in rust\n\ttypeArguments: array(string()),\n\targuments: array(ArgumentSchema),\n\t_argumentTypes: optional(nullable(array(OpenSignatureSchema))),\n});\nexport type ProgrammableMoveCall = InferOutput<typeof ProgrammableMoveCallSchema>;\n\nexport const $Intent = object({\n\tname: string(),\n\tinputs: record(string(), union([ArgumentSchema, array(ArgumentSchema)])),\n\tdata: record(string(), unknown()),\n});\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L657-L685\nexport const CommandSchema = safeEnum({\n\tMoveCall: ProgrammableMoveCallSchema,\n\tTransferObjects: object({\n\t\tobjects: array(ArgumentSchema),\n\t\taddress: ArgumentSchema,\n\t}),\n\tSplitCoins: object({\n\t\tcoin: ArgumentSchema,\n\t\tamounts: array(ArgumentSchema),\n\t}),\n\tMergeCoins: object({\n\t\tdestination: ArgumentSchema,\n\t\tsources: array(ArgumentSchema),\n\t}),\n\tPublish: object({\n\t\tmodules: array(BCSBytes),\n\t\tdependencies: array(ObjectID),\n\t}),\n\tMakeMoveVec: object({\n\t\ttype: nullable(string()),\n\t\telements: array(ArgumentSchema),\n\t}),\n\tUpgrade: object({\n\t\tmodules: array(BCSBytes),\n\t\tdependencies: array(ObjectID),\n\t\tpackage: ObjectID,\n\t\tticket: ArgumentSchema,\n\t}),\n\t$Intent,\n});\n\nexport type Command<Arg = Argument> = EnumOutputShape<{\n\tMoveCall: {\n\t\tpackage: string;\n\t\tmodule: string;\n\t\tfunction: string;\n\t\ttypeArguments: string[];\n\t\targuments: Arg[];\n\t\t_argumentTypes?: SuiClientTypes.OpenSignature[] | null;\n\t};\n\tTransferObjects: {\n\t\tobjects: Arg[];\n\t\taddress: Arg;\n\t};\n\tSplitCoins: {\n\t\tcoin: Arg;\n\t\tamounts: Arg[];\n\t};\n\tMergeCoins: {\n\t\tdestination: Arg;\n\t\tsources: Arg[];\n\t};\n\tPublish: {\n\t\tmodules: string[];\n\t\tdependencies: string[];\n\t};\n\tMakeMoveVec: {\n\t\ttype: string | null;\n\t\telements: Arg[];\n\t};\n\tUpgrade: {\n\t\tmodules: string[];\n\t\tdependencies: string[];\n\t\tpackage: string;\n\t\tticket: Arg;\n\t};\n\t$Intent: {\n\t\tname: string;\n\t\tinputs: Record<string, Argument | Argument[]>;\n\t\tdata: Record<string, unknown>;\n\t};\n}>;\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L102-L114\nexport const ObjectArgSchema = safeEnum({\n\tImmOrOwnedObject: ObjectRefSchema,\n\tSharedObject: object({\n\t\tobjectId: ObjectID,\n\t\t// snake case in rust\n\t\tinitialSharedVersion: JsonU64,\n\t\tmutable: boolean(),\n\t}),\n\tReceiving: ObjectRefSchema,\n});\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const ReservationSchema = safeEnum({\n\tMaxAmountU64: JsonU64,\n});\nexport type Reservation = InferOutput<typeof ReservationSchema>;\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const WithdrawalTypeArgSchema = safeEnum({\n\tBalance: string(),\n});\nexport type WithdrawalTypeArg = InferOutput<typeof WithdrawalTypeArgSchema>;\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const WithdrawFromSchema = safeEnum({\n\tSender: literal(true),\n\tSponsor: literal(true),\n});\nexport type WithdrawFrom = InferOutput<typeof WithdrawFromSchema>;\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const FundsWithdrawalArgSchema = object({\n\treservation: ReservationSchema,\n\ttypeArg: WithdrawalTypeArgSchema,\n\twithdrawFrom: WithdrawFromSchema,\n});\nexport type FundsWithdrawalArg = InferOutput<typeof FundsWithdrawalArgSchema>;\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L75-L80\nconst CallArgSchema = safeEnum({\n\tObject: ObjectArgSchema,\n\tPure: object({\n\t\tbytes: BCSBytes,\n\t}),\n\tUnresolvedPure: object({\n\t\tvalue: unknown(),\n\t}),\n\tUnresolvedObject: object({\n\t\tobjectId: ObjectID,\n\t\tversion: optional(nullable(JsonU64)),\n\t\tdigest: optional(nullable(string())),\n\t\tinitialSharedVersion: optional(nullable(JsonU64)),\n\t\tmutable: optional(nullable(boolean())),\n\t}),\n\tFundsWithdrawal: FundsWithdrawalArgSchema,\n});\nexport type CallArg = InferOutput<typeof CallArgSchema>;\n\nexport const NormalizedCallArg = safeEnum({\n\tObject: ObjectArgSchema,\n\tPure: object({\n\t\tbytes: BCSBytes,\n\t}),\n});\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const ValidDuringSchema = object({\n\tminEpoch: nullable(JsonU64),\n\tmaxEpoch: nullable(JsonU64),\n\tminTimestamp: nullable(JsonU64),\n\tmaxTimestamp: nullable(JsonU64),\n\tchain: string(),\n\tnonce: U32,\n});\nexport type ValidDuring = InferOutput<typeof ValidDuringSchema>;\n\nexport const TransactionExpiration = safeEnum({\n\tNone: literal(true),\n\tEpoch: JsonU64,\n\tValidDuring: ValidDuringSchema,\n});\n\nexport type TransactionExpiration = InferOutput<typeof TransactionExpiration>;\n\nexport const TransactionDataSchema = object({\n\tversion: literal(2),\n\tsender: nullish(SuiAddress),\n\texpiration: nullish(TransactionExpiration),\n\tgasData: GasDataSchema,\n\tinputs: array(CallArgSchema),\n\tcommands: array(CommandSchema),\n});\n\nexport type TransactionData = InferOutput<typeof TransactionDataSchema>;\n"],"mappings":";;;;AA+CA,SAAgB,SAAuD,SAA2B;AACjG,QAAO,MACN,OAAO,KAAK,QAAQ,CAAC,KACnB,QACA,SACC,KACA,OAAO,GACL,MAAM,QAAQ,MACf,CAAC,CACF,C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K;CACtB,CAAC;AAIF,MAAa,2BAA2B,OAAO;CAC9C,aAAa;CACb,SAAS;CACT,cAAc;CACd,CAAC;AAIF,MAAM,gBAAgB,SAAS;CAC9B,QAAQ;CACR,MAAM,OAAO,EACZ,OAAO,UACP,CAAC;CACF,gBAAgB,OAAO,EACtB,OAAO,SAAS,EAChB,CAAC;CACF,kBAAkB,OAAO;EACxB,UAAU;EACV,SAAS,SAAS,SAAS,QAAQ,CAAC;EACpC,QAAQ,SAAS,SAAS,QAAQ,CAAC,CAAC;EACpC,sBAAsB,SAAS,SAAS,QAAQ,CAAC;EACjD,SAAS,SAAS,SAAS,SAAS,CAAC,CAAC;EACtC,CAAC;CACF,iBAAiB;CACjB,CAAC;AAGF,MAAa,oBAAoB,SAAS;CACzC,QAAQ;CACR,MAAM,OAAO,EACZ,OAAO,UACP,CAAC;CACF,CAAC;AAGF,MAAa,oBAAoB,OAAO;CACvC,UAAU,SAAS,QAAQ;CAC3B,UAAU,SAAS,QAAQ;CAC3B,cAAc,SAAS,QAAQ;CAC/B,cAAc,SAAS,QAAQ;CAC/B,OAAO,QAAQ;CACf,OAAO;CACP,CAAC;AAGF,MAAa,wBAAwB,SAAS;CAC7C,MAAM,QAAQ,KAAK;CACnB,OAAO;CACP,aAAa;CACb,CAAC;AAIF,MAAa,wBAAwB,OAAO;CAC3C,SAAS,QAAQ,EAAE;CACnB,QAAQ,QAAQ,WAAW;CAC3B,YAAY,QAAQ,sBAAsB;CAC1C,SAAS;CACT,QAAQ,MAAM,cAAc;CAC5B,UAAU,MAAM,cAAc;CAC9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"internal.mjs","names":[],"sources":["../../../src/transactions/data/internal.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { EnumInputShape, EnumOutputShape } from '@mysten/bcs';\nimport type { GenericSchema, InferInput, InferOutput, ObjectEntries, ObjectSchema } from 'valibot';\nimport {\n\tarray,\n\tboolean,\n\tcheck,\n\tinteger,\n\tlazy,\n\tliteral,\n\tnullable,\n\tnullish,\n\tnumber,\n\tobject,\n\toptional,\n\tpipe,\n\trecord,\n\tstring,\n\ttransform,\n\ttuple,\n\tunion,\n\tunknown,\n} from 'valibot';\n\nimport { isValidSuiAddress, normalizeSuiAddress } from '../../utils/sui-types.js';\nimport type { Simplify } from '@mysten/utils';\nimport type { SuiClientTypes } from '../../client/types.js';\n\ntype EnumSchemaInput<T extends Record<string, GenericSchema<any>>> = EnumInputShape<\n\tSimplify<{\n\t\t[K in keyof T]: InferInput<T[K]>;\n\t}>\n>;\n\ntype EnumSchemaOutput<T extends Record<string, GenericSchema<any>>> = EnumOutputShape<\n\tSimplify<{\n\t\t[K in keyof T]: InferOutput<T[K]>;\n\t}>\n>;\n\ntype EnumSchema<T extends Record<string, GenericSchema<any>>> = GenericSchema<\n\tEnumSchemaInput<T>,\n\tEnumSchemaOutput<T>\n>;\n\nexport function safeEnum<T extends Record<string, GenericSchema<any>>>(options: T): EnumSchema<T> {\n\treturn union(\n\t\tObject.keys(options).map(\n\t\t\t(key) =>\n\t\t\t\twithKind(\n\t\t\t\t\tkey,\n\t\t\t\t\tobject({\n\t\t\t\t\t\t[key]: options[key],\n\t\t\t\t\t}),\n\t\t\t\t) as GenericSchema<EnumOutputShape<T>>,\n\t\t),\n\t) as EnumSchema<T>;\n}\n\nfunction withKind<K extends string, TEntries extends ObjectEntries>(\n\tkey: K,\n\tschema: ObjectSchema<TEntries, undefined>,\n) {\n\treturn pipe(\n\t\tobject({\n\t\t\t...schema.entries,\n\t\t\t$kind: optional(literal(key)),\n\t\t}),\n\t\ttransform((value) => ({ ...value, $kind: key })),\n\t) as GenericSchema<\n\t\tSimplify<InferInput<ObjectSchema<TEntries, undefined>> & { $kind?: K }>,\n\t\tSimplify<InferOutput<ObjectSchema<TEntries, undefined>> & { $kind: K }>\n\t>;\n}\n\nexport const SuiAddress = pipe(\n\tstring(),\n\ttransform((value) => normalizeSuiAddress(value)),\n\tcheck(isValidSuiAddress),\n);\nexport const ObjectID = SuiAddress;\nexport const BCSBytes = string();\nexport const JsonU64 = pipe(\n\tunion([string(), pipe(number(), integer())]),\n\n\tcheck((val) => {\n\t\ttry {\n\t\t\tBigInt(val);\n\t\t\treturn BigInt(val) >= 0 && BigInt(val) <= 18446744073709551615n;\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t}, 'Invalid u64'),\n);\n\nexport const U32 = pipe(\n\tnumber(),\n\tinteger(),\n\tcheck((val) => val >= 0 && val < 2 ** 32, 'Invalid u32'),\n);\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/base_types.rs#L138\n// Implemented as a tuple in rust\nexport const ObjectRefSchema = object({\n\tobjectId: SuiAddress,\n\tversion: JsonU64,\n\tdigest: string(),\n});\nexport type ObjectRef = InferOutput<typeof ObjectRefSchema>;\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L690-L702\nexport const ArgumentSchema = union([\n\twithKind('GasCoin', object({ GasCoin: literal(true) })),\n\twithKind(\n\t\t'Input',\n\t\tobject({\n\t\t\tInput: pipe(number(), integer()),\n\t\t\ttype: optional(union([literal('pure'), literal('object'), literal('withdrawal')])),\n\t\t}),\n\t),\n\twithKind('Result', object({ Result: pipe(number(), integer()) })),\n\twithKind(\n\t\t'NestedResult',\n\t\tobject({ NestedResult: tuple([pipe(number(), integer()), pipe(number(), integer())]) }),\n\t),\n]);\n\nexport type Argument = InferOutput<typeof ArgumentSchema>;\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L1387-L1392\nexport const GasDataSchema = object({\n\tbudget: nullable(JsonU64),\n\tprice: nullable(JsonU64),\n\towner: nullable(SuiAddress),\n\tpayment: nullable(array(ObjectRefSchema)),\n});\nexport type GasData = InferOutput<typeof GasDataSchema>;\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/external-crates/move/crates/move-core-types/src/language_storage.rs#L140-L147\nexport const StructTagSchema = object({\n\taddress: string(),\n\tmodule: string(),\n\tname: string(),\n\t// type_params in rust, should be updated to use camelCase\n\ttypeParams: array(string()),\n});\nexport type StructTag = InferOutput<typeof StructTagSchema>;\n\nexport const OpenSignatureBodySchema: GenericSchema<SuiClientTypes.OpenSignatureBody> = union([\n\tobject({ $kind: literal('address') }),\n\tobject({ $kind: literal('bool') }),\n\tobject({ $kind: literal('u8') }),\n\tobject({ $kind: literal('u16') }),\n\tobject({ $kind: literal('u32') }),\n\tobject({ $kind: literal('u64') }),\n\tobject({ $kind: literal('u128') }),\n\tobject({ $kind: literal('u256') }),\n\tobject({ $kind: literal('unknown') }),\n\tobject({ $kind: literal('vector'), vector: lazy(() => OpenSignatureBodySchema) }),\n\tobject({\n\t\t$kind: literal('datatype'),\n\t\tdatatype: object({\n\t\t\ttypeName: string(),\n\t\t\ttypeParameters: array(lazy(() => OpenSignatureBodySchema)),\n\t\t}),\n\t}),\n\tobject({ $kind: literal('typeParameter'), index: pipe(number(), integer()) }),\n]);\n\nexport const OpenSignatureSchema = object({\n\treference: nullable(union([literal('mutable'), literal('immutable'), literal('unknown')])),\n\tbody: OpenSignatureBodySchema,\n});\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L707-L718\nconst ProgrammableMoveCallSchema = object({\n\tpackage: ObjectID,\n\tmodule: string(),\n\tfunction: string(),\n\t// snake case in rust\n\ttypeArguments: array(string()),\n\targuments: array(ArgumentSchema),\n\t_argumentTypes: optional(nullable(array(OpenSignatureSchema))),\n});\nexport type ProgrammableMoveCall = InferOutput<typeof ProgrammableMoveCallSchema>;\n\nexport const $Intent = object({\n\tname: string(),\n\tinputs: record(string(), union([ArgumentSchema, array(ArgumentSchema)])),\n\tdata: record(string(), unknown()),\n});\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L657-L685\nexport const CommandSchema = safeEnum({\n\tMoveCall: ProgrammableMoveCallSchema,\n\tTransferObjects: object({\n\t\tobjects: array(ArgumentSchema),\n\t\taddress: ArgumentSchema,\n\t}),\n\tSplitCoins: object({\n\t\tcoin: ArgumentSchema,\n\t\tamounts: array(ArgumentSchema),\n\t}),\n\tMergeCoins: object({\n\t\tdestination: ArgumentSchema,\n\t\tsources: array(ArgumentSchema),\n\t}),\n\tPublish: object({\n\t\tmodules: array(BCSBytes),\n\t\tdependencies: array(ObjectID),\n\t}),\n\tMakeMoveVec: object({\n\t\ttype: nullable(string()),\n\t\telements: array(ArgumentSchema),\n\t}),\n\tUpgrade: object({\n\t\tmodules: array(BCSBytes),\n\t\tdependencies: array(ObjectID),\n\t\tpackage: ObjectID,\n\t\tticket: ArgumentSchema,\n\t}),\n\t$Intent,\n});\n\nexport type Command<Arg = Argument> = EnumOutputShape<{\n\tMoveCall: {\n\t\tpackage: string;\n\t\tmodule: string;\n\t\tfunction: string;\n\t\ttypeArguments: string[];\n\t\targuments: Arg[];\n\t\t_argumentTypes?: SuiClientTypes.OpenSignature[] | null;\n\t};\n\tTransferObjects: {\n\t\tobjects: Arg[];\n\t\taddress: Arg;\n\t};\n\tSplitCoins: {\n\t\tcoin: Arg;\n\t\tamounts: Arg[];\n\t};\n\tMergeCoins: {\n\t\tdestination: Arg;\n\t\tsources: Arg[];\n\t};\n\tPublish: {\n\t\tmodules: string[];\n\t\tdependencies: string[];\n\t};\n\tMakeMoveVec: {\n\t\ttype: string | null;\n\t\telements: Arg[];\n\t};\n\tUpgrade: {\n\t\tmodules: string[];\n\t\tdependencies: string[];\n\t\tpackage: string;\n\t\tticket: Arg;\n\t};\n\t$Intent: {\n\t\tname: string;\n\t\tinputs: Record<string, Argument | Argument[]>;\n\t\tdata: Record<string, unknown>;\n\t};\n}>;\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L102-L114\nexport const ObjectArgSchema = safeEnum({\n\tImmOrOwnedObject: ObjectRefSchema,\n\tSharedObject: object({\n\t\tobjectId: ObjectID,\n\t\t// snake case in rust\n\t\tinitialSharedVersion: JsonU64,\n\t\tmutable: boolean(),\n\t}),\n\tReceiving: ObjectRefSchema,\n});\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const ReservationSchema = safeEnum({\n\tMaxAmountU64: JsonU64,\n});\nexport type Reservation = InferOutput<typeof ReservationSchema>;\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const WithdrawalTypeArgSchema = safeEnum({\n\tBalance: string(),\n});\nexport type WithdrawalTypeArg = InferOutput<typeof WithdrawalTypeArgSchema>;\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const WithdrawFromSchema = safeEnum({\n\tSender: literal(true),\n\tSponsor: literal(true),\n});\nexport type WithdrawFrom = InferOutput<typeof WithdrawFromSchema>;\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const FundsWithdrawalArgSchema = object({\n\treservation: ReservationSchema,\n\ttypeArg: WithdrawalTypeArgSchema,\n\twithdrawFrom: WithdrawFromSchema,\n});\nexport type FundsWithdrawalArg = InferOutput<typeof FundsWithdrawalArgSchema>;\n\n// https://github.com/MystenLabs/sui/blob/df41d5fa8127634ff4285671a01ead00e519f806/crates/sui-types/src/transaction.rs#L75-L80\nconst CallArgSchema = safeEnum({\n\tObject: ObjectArgSchema,\n\tPure: object({\n\t\tbytes: BCSBytes,\n\t}),\n\tUnresolvedPure: object({\n\t\tvalue: unknown(),\n\t}),\n\tUnresolvedObject: object({\n\t\tobjectId: ObjectID,\n\t\tversion: optional(nullable(JsonU64)),\n\t\tdigest: optional(nullable(string())),\n\t\tinitialSharedVersion: optional(nullable(JsonU64)),\n\t\tmutable: optional(nullable(boolean())),\n\t}),\n\tFundsWithdrawal: FundsWithdrawalArgSchema,\n});\nexport type CallArg = InferOutput<typeof CallArgSchema>;\n\nexport const NormalizedCallArg = safeEnum({\n\tObject: ObjectArgSchema,\n\tPure: object({\n\t\tbytes: BCSBytes,\n\t}),\n});\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const ValidDuringSchema = object({\n\tminEpoch: nullable(JsonU64),\n\tmaxEpoch: nullable(JsonU64),\n\tminTimestamp: nullable(JsonU64),\n\tmaxTimestamp: nullable(JsonU64),\n\tchain: string(),\n\tnonce: U32,\n});\nexport type ValidDuring = InferOutput<typeof ValidDuringSchema>;\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const AllowedProposersSchema = object({\n\tepoch: JsonU64,\n\t// Shared by `setExpiration` and `restore`, so this can only carry the invariant true on both.\n\tproposers: pipe(\n\t\tarray(U32),\n\t\tcheck((proposers) => proposers.length > 0, 'Allowed proposers must not be empty'),\n\t),\n});\nexport type AllowedProposers = InferOutput<typeof AllowedProposersSchema>;\n\n// Rust: crates/sui-types/src/transaction.rs\nexport const ValiditySchema = object({\n\t...ValidDuringSchema.entries,\n\tallowedProposers: nullable(AllowedProposersSchema),\n});\nexport type Validity = InferOutput<typeof ValiditySchema>;\n\nexport const TransactionExpiration = safeEnum({\n\tNone: literal(true),\n\tEpoch: JsonU64,\n\tValidDuring: ValidDuringSchema,\n\tValidity: ValiditySchema,\n});\n\nexport type TransactionExpiration = InferOutput<typeof TransactionExpiration>;\n\nexport const TransactionDataSchema = object({\n\tversion: literal(2),\n\tsender: nullish(SuiAddress),\n\texpiration: nullish(TransactionExpiration),\n\tgasData: GasDataSchema,\n\tinputs: array(CallArgSchema),\n\tcommands: array(CommandSchema),\n});\n\nexport type TransactionData = InferOutput<typeof TransactionDataSchema>;\n"],"mappings":";;;;AA+CA,SAAgB,SAAuD,SAA2B;AACjG,QAAO,MACN,OAAO,KAAK,QAAQ,CAAC,KACnB,QACA,SACC,KACA,OAAO,GACL,MAAM,QAAQ,MACf,CAAC,CACF,CACF,CACD;;AAGF,SAAS,SACR,KACA,QACC;AACD,QAAO,KAC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