@mysten/sui 2.28.0 → 2.30.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 +27 -0
- package/dist/client/core-resolver.d.mts.map +1 -1
- package/dist/client/core-resolver.mjs +2 -5
- package/dist/client/core-resolver.mjs.map +1 -1
- package/dist/cryptography/signature.d.mts +14 -14
- package/dist/grpc/client.d.mts +1 -1
- package/dist/grpc/client.d.mts.map +1 -1
- package/dist/grpc/client.mjs +3 -5
- package/dist/grpc/client.mjs.map +1 -1
- package/dist/grpc/core.d.mts.map +1 -1
- package/dist/grpc/core.mjs +10 -10
- package/dist/grpc/core.mjs.map +1 -1
- package/dist/grpc/index.d.mts +4 -3
- package/dist/grpc/index.mjs +4 -2
- package/dist/grpc/proto/sui/forking/v1alpha/forking_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/transaction_execution_service.client.d.mts +4 -4
- package/dist/grpc/transport.d.mts +18 -0
- package/dist/grpc/transport.d.mts.map +1 -0
- package/dist/grpc/transport.mjs +97 -0
- package/dist/grpc/transport.mjs.map +1 -0
- package/dist/transactions/Transaction.d.mts +7 -10
- package/dist/transactions/Transaction.d.mts.map +1 -1
- package/dist/transactions/Transaction.mjs.map +1 -1
- package/dist/transactions/data/internal.d.mts +127 -127
- package/dist/transactions/data/v1.d.mts +239 -239
- package/dist/transactions/data/v1.d.mts.map +1 -1
- package/dist/transactions/data/v2.d.mts +16 -16
- package/dist/transactions/data/v2.d.mts.map +1 -1
- package/dist/transactions/intents/CoinWithBalance.mjs +4 -2
- package/dist/transactions/intents/CoinWithBalance.mjs.map +1 -1
- package/dist/transactions/resolution-utils.mjs +13 -0
- package/dist/transactions/resolution-utils.mjs.map +1 -0
- package/dist/transactions/resolve.d.mts +8 -0
- package/dist/transactions/resolve.d.mts.map +1 -1
- package/dist/transactions/resolve.mjs +6 -2
- package/dist/transactions/resolve.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/docs/clients/grpc.md +31 -7
- package/docs/migrations/sui-2.0/json-rpc-migration.md +50 -1
- package/docs/transactions/basics.md +19 -14
- package/docs/transactions/offline.md +137 -88
- package/package.json +2 -2
- package/src/client/core-resolver.ts +2 -7
- package/src/grpc/client.ts +12 -4
- package/src/grpc/core.ts +18 -14
- package/src/grpc/index.ts +7 -3
- package/src/grpc/transport.ts +160 -0
- package/src/transactions/Transaction.ts +1 -4
- package/src/transactions/intents/CoinWithBalance.ts +32 -25
- package/src/transactions/resolution-utils.ts +18 -0
- package/src/transactions/resolve.ts +29 -2
- 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 valibot575 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: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
13
|
+
readonly version: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
14
|
+
readonly digest: valibot575.StringSchema<undefined>;
|
|
15
15
|
}, undefined>;
|
|
16
16
|
type ObjectRef = InferOutput<typeof ObjectRefSchema>;
|
|
17
|
-
declare const ArgumentSchema:
|
|
17
|
+
declare const ArgumentSchema: valibot575.UnionSchema<[GenericSchema<{
|
|
18
18
|
GasCoin: true;
|
|
19
19
|
$kind?: "GasCoin" | undefined;
|
|
20
20
|
}, {
|
|
@@ -43,13 +43,13 @@ declare const ArgumentSchema: valibot525.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: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
47
|
+
readonly price: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
48
|
+
readonly owner: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>, undefined>;
|
|
49
|
+
readonly payment: valibot575.NullableSchema<valibot575.ArraySchema<ObjectSchema<{
|
|
50
|
+
readonly objectId: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
51
|
+
readonly version: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
52
|
+
readonly digest: valibot575.StringSchema<undefined>;
|
|
53
53
|
}, undefined>, undefined>, undefined>;
|
|
54
54
|
}, undefined>;
|
|
55
55
|
type GasData = InferOutput<typeof GasDataSchema>;
|
|
@@ -95,176 +95,176 @@ type Command<Arg = Argument> = EnumOutputShape<{
|
|
|
95
95
|
};
|
|
96
96
|
}>;
|
|
97
97
|
declare const ReservationSchema: EnumSchema<{
|
|
98
|
-
MaxAmountU64:
|
|
98
|
+
MaxAmountU64: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
99
99
|
}>;
|
|
100
100
|
type Reservation = InferOutput<typeof ReservationSchema>;
|
|
101
101
|
declare const WithdrawalTypeArgSchema: EnumSchema<{
|
|
102
|
-
Balance:
|
|
102
|
+
Balance: valibot575.StringSchema<undefined>;
|
|
103
103
|
}>;
|
|
104
104
|
type WithdrawalTypeArg = InferOutput<typeof WithdrawalTypeArgSchema>;
|
|
105
105
|
declare const WithdrawFromSchema: EnumSchema<{
|
|
106
|
-
Sender:
|
|
107
|
-
Sponsor:
|
|
106
|
+
Sender: valibot575.LiteralSchema<true, undefined>;
|
|
107
|
+
Sponsor: valibot575.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: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
114
|
+
readonly version: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
115
|
+
readonly digest: valibot575.StringSchema<undefined>;
|
|
116
116
|
}, undefined>;
|
|
117
117
|
SharedObject: ObjectSchema<{
|
|
118
|
-
readonly objectId:
|
|
119
|
-
readonly initialSharedVersion:
|
|
120
|
-
readonly mutable:
|
|
118
|
+
readonly objectId: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
119
|
+
readonly initialSharedVersion: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
120
|
+
readonly mutable: valibot575.BooleanSchema<undefined>;
|
|
121
121
|
}, undefined>;
|
|
122
122
|
Receiving: ObjectSchema<{
|
|
123
|
-
readonly objectId:
|
|
124
|
-
readonly version:
|
|
125
|
-
readonly digest:
|
|
123
|
+
readonly objectId: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
124
|
+
readonly version: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
125
|
+
readonly digest: valibot575.StringSchema<undefined>;
|
|
126
126
|
}, undefined>;
|
|
127
127
|
}>;
|
|
128
128
|
Pure: ObjectSchema<{
|
|
129
|
-
readonly bytes:
|
|
129
|
+
readonly bytes: valibot575.StringSchema<undefined>;
|
|
130
130
|
}, undefined>;
|
|
131
131
|
UnresolvedPure: ObjectSchema<{
|
|
132
|
-
readonly value:
|
|
132
|
+
readonly value: valibot575.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: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
136
|
+
readonly version: valibot575.OptionalSchema<valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>, undefined>;
|
|
137
|
+
readonly digest: valibot575.OptionalSchema<valibot575.NullableSchema<valibot575.StringSchema<undefined>, undefined>, undefined>;
|
|
138
|
+
readonly initialSharedVersion: valibot575.OptionalSchema<valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>, undefined>;
|
|
139
|
+
readonly mutable: valibot575.OptionalSchema<valibot575.NullableSchema<valibot575.BooleanSchema<undefined>, undefined>, undefined>;
|
|
140
140
|
}, undefined>;
|
|
141
141
|
FundsWithdrawal: ObjectSchema<{
|
|
142
142
|
readonly reservation: EnumSchema<{
|
|
143
|
-
MaxAmountU64:
|
|
143
|
+
MaxAmountU64: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
144
144
|
}>;
|
|
145
145
|
readonly typeArg: EnumSchema<{
|
|
146
|
-
Balance:
|
|
146
|
+
Balance: valibot575.StringSchema<undefined>;
|
|
147
147
|
}>;
|
|
148
148
|
readonly withdrawFrom: EnumSchema<{
|
|
149
|
-
Sender:
|
|
150
|
-
Sponsor:
|
|
149
|
+
Sender: valibot575.LiteralSchema<true, undefined>;
|
|
150
|
+
Sponsor: valibot575.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: valibot575.LiteralSchema<true, undefined>;
|
|
157
|
+
Epoch: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.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: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
160
|
+
readonly maxEpoch: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
161
|
+
readonly minTimestamp: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
162
|
+
readonly maxTimestamp: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
163
|
+
readonly chain: valibot575.StringSchema<undefined>;
|
|
164
|
+
readonly nonce: valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>, valibot575.CheckAction<number, "Invalid u32">]>;
|
|
165
165
|
}, undefined>;
|
|
166
166
|
Validity: ObjectSchema<{
|
|
167
|
-
readonly allowedProposers:
|
|
168
|
-
readonly epoch:
|
|
169
|
-
readonly proposers:
|
|
167
|
+
readonly allowedProposers: valibot575.NullableSchema<ObjectSchema<{
|
|
168
|
+
readonly epoch: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
169
|
+
readonly proposers: valibot575.SchemaWithPipe<readonly [valibot575.ArraySchema<valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>, valibot575.CheckAction<number, "Invalid u32">]>, undefined>, valibot575.CheckAction<number[], "Allowed proposers must not be empty">]>;
|
|
170
170
|
}, undefined>, undefined>;
|
|
171
|
-
readonly minEpoch:
|
|
172
|
-
readonly maxEpoch:
|
|
173
|
-
readonly minTimestamp:
|
|
174
|
-
readonly maxTimestamp:
|
|
175
|
-
readonly chain:
|
|
176
|
-
readonly nonce:
|
|
171
|
+
readonly minEpoch: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
172
|
+
readonly maxEpoch: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
173
|
+
readonly minTimestamp: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
174
|
+
readonly maxTimestamp: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
175
|
+
readonly chain: valibot575.StringSchema<undefined>;
|
|
176
|
+
readonly nonce: valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>, valibot575.CheckAction<number, "Invalid u32">]>;
|
|
177
177
|
}, undefined>;
|
|
178
178
|
}>;
|
|
179
179
|
type TransactionExpiration = InferOutput<typeof TransactionExpiration>;
|
|
180
180
|
declare const TransactionDataSchema: ObjectSchema<{
|
|
181
|
-
readonly version:
|
|
182
|
-
readonly sender:
|
|
183
|
-
readonly expiration:
|
|
184
|
-
None:
|
|
185
|
-
Epoch:
|
|
181
|
+
readonly version: valibot575.LiteralSchema<2, undefined>;
|
|
182
|
+
readonly sender: valibot575.NullishSchema<valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>, undefined>;
|
|
183
|
+
readonly expiration: valibot575.NullishSchema<EnumSchema<{
|
|
184
|
+
None: valibot575.LiteralSchema<true, undefined>;
|
|
185
|
+
Epoch: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
186
186
|
ValidDuring: ObjectSchema<{
|
|
187
|
-
readonly minEpoch:
|
|
188
|
-
readonly maxEpoch:
|
|
189
|
-
readonly minTimestamp:
|
|
190
|
-
readonly maxTimestamp:
|
|
191
|
-
readonly chain:
|
|
192
|
-
readonly nonce:
|
|
187
|
+
readonly minEpoch: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
188
|
+
readonly maxEpoch: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
189
|
+
readonly minTimestamp: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
190
|
+
readonly maxTimestamp: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
191
|
+
readonly chain: valibot575.StringSchema<undefined>;
|
|
192
|
+
readonly nonce: valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>, valibot575.CheckAction<number, "Invalid u32">]>;
|
|
193
193
|
}, undefined>;
|
|
194
194
|
Validity: ObjectSchema<{
|
|
195
|
-
readonly allowedProposers:
|
|
196
|
-
readonly epoch:
|
|
197
|
-
readonly proposers:
|
|
195
|
+
readonly allowedProposers: valibot575.NullableSchema<ObjectSchema<{
|
|
196
|
+
readonly epoch: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
197
|
+
readonly proposers: valibot575.SchemaWithPipe<readonly [valibot575.ArraySchema<valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>, valibot575.CheckAction<number, "Invalid u32">]>, undefined>, valibot575.CheckAction<number[], "Allowed proposers must not be empty">]>;
|
|
198
198
|
}, undefined>, undefined>;
|
|
199
|
-
readonly minEpoch:
|
|
200
|
-
readonly maxEpoch:
|
|
201
|
-
readonly minTimestamp:
|
|
202
|
-
readonly maxTimestamp:
|
|
203
|
-
readonly chain:
|
|
204
|
-
readonly nonce:
|
|
199
|
+
readonly minEpoch: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
200
|
+
readonly maxEpoch: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
201
|
+
readonly minTimestamp: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
202
|
+
readonly maxTimestamp: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
203
|
+
readonly chain: valibot575.StringSchema<undefined>;
|
|
204
|
+
readonly nonce: valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>, valibot575.CheckAction<number, "Invalid u32">]>;
|
|
205
205
|
}, undefined>;
|
|
206
206
|
}>, undefined>;
|
|
207
207
|
readonly gasData: ObjectSchema<{
|
|
208
|
-
readonly budget:
|
|
209
|
-
readonly price:
|
|
210
|
-
readonly owner:
|
|
211
|
-
readonly payment:
|
|
212
|
-
readonly objectId:
|
|
213
|
-
readonly version:
|
|
214
|
-
readonly digest:
|
|
208
|
+
readonly budget: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
209
|
+
readonly price: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>;
|
|
210
|
+
readonly owner: valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>, undefined>;
|
|
211
|
+
readonly payment: valibot575.NullableSchema<valibot575.ArraySchema<ObjectSchema<{
|
|
212
|
+
readonly objectId: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
213
|
+
readonly version: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
214
|
+
readonly digest: valibot575.StringSchema<undefined>;
|
|
215
215
|
}, undefined>, undefined>, undefined>;
|
|
216
216
|
}, undefined>;
|
|
217
|
-
readonly inputs:
|
|
217
|
+
readonly inputs: valibot575.ArraySchema<EnumSchema<{
|
|
218
218
|
Object: EnumSchema<{
|
|
219
219
|
ImmOrOwnedObject: ObjectSchema<{
|
|
220
|
-
readonly objectId:
|
|
221
|
-
readonly version:
|
|
222
|
-
readonly digest:
|
|
220
|
+
readonly objectId: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
221
|
+
readonly version: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
222
|
+
readonly digest: valibot575.StringSchema<undefined>;
|
|
223
223
|
}, undefined>;
|
|
224
224
|
SharedObject: ObjectSchema<{
|
|
225
|
-
readonly objectId:
|
|
226
|
-
readonly initialSharedVersion:
|
|
227
|
-
readonly mutable:
|
|
225
|
+
readonly objectId: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
226
|
+
readonly initialSharedVersion: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
227
|
+
readonly mutable: valibot575.BooleanSchema<undefined>;
|
|
228
228
|
}, undefined>;
|
|
229
229
|
Receiving: ObjectSchema<{
|
|
230
|
-
readonly objectId:
|
|
231
|
-
readonly version:
|
|
232
|
-
readonly digest:
|
|
230
|
+
readonly objectId: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
231
|
+
readonly version: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
232
|
+
readonly digest: valibot575.StringSchema<undefined>;
|
|
233
233
|
}, undefined>;
|
|
234
234
|
}>;
|
|
235
235
|
Pure: ObjectSchema<{
|
|
236
|
-
readonly bytes:
|
|
236
|
+
readonly bytes: valibot575.StringSchema<undefined>;
|
|
237
237
|
}, undefined>;
|
|
238
238
|
UnresolvedPure: ObjectSchema<{
|
|
239
|
-
readonly value:
|
|
239
|
+
readonly value: valibot575.UnknownSchema;
|
|
240
240
|
}, undefined>;
|
|
241
241
|
UnresolvedObject: ObjectSchema<{
|
|
242
|
-
readonly objectId:
|
|
243
|
-
readonly version:
|
|
244
|
-
readonly digest:
|
|
245
|
-
readonly initialSharedVersion:
|
|
246
|
-
readonly mutable:
|
|
242
|
+
readonly objectId: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
243
|
+
readonly version: valibot575.OptionalSchema<valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>, undefined>;
|
|
244
|
+
readonly digest: valibot575.OptionalSchema<valibot575.NullableSchema<valibot575.StringSchema<undefined>, undefined>, undefined>;
|
|
245
|
+
readonly initialSharedVersion: valibot575.OptionalSchema<valibot575.NullableSchema<valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>, undefined>, undefined>;
|
|
246
|
+
readonly mutable: valibot575.OptionalSchema<valibot575.NullableSchema<valibot575.BooleanSchema<undefined>, undefined>, undefined>;
|
|
247
247
|
}, undefined>;
|
|
248
248
|
FundsWithdrawal: ObjectSchema<{
|
|
249
249
|
readonly reservation: EnumSchema<{
|
|
250
|
-
MaxAmountU64:
|
|
250
|
+
MaxAmountU64: valibot575.SchemaWithPipe<readonly [valibot575.UnionSchema<[valibot575.StringSchema<undefined>, valibot575.SchemaWithPipe<readonly [valibot575.NumberSchema<undefined>, valibot575.IntegerAction<number, undefined>]>], undefined>, valibot575.CheckAction<string | number, "Invalid u64">]>;
|
|
251
251
|
}>;
|
|
252
252
|
readonly typeArg: EnumSchema<{
|
|
253
|
-
Balance:
|
|
253
|
+
Balance: valibot575.StringSchema<undefined>;
|
|
254
254
|
}>;
|
|
255
255
|
readonly withdrawFrom: EnumSchema<{
|
|
256
|
-
Sender:
|
|
257
|
-
Sponsor:
|
|
256
|
+
Sender: valibot575.LiteralSchema<true, undefined>;
|
|
257
|
+
Sponsor: valibot575.LiteralSchema<true, undefined>;
|
|
258
258
|
}>;
|
|
259
259
|
}, undefined>;
|
|
260
260
|
}>, undefined>;
|
|
261
|
-
readonly commands:
|
|
261
|
+
readonly commands: valibot575.ArraySchema<EnumSchema<{
|
|
262
262
|
MoveCall: ObjectSchema<{
|
|
263
|
-
readonly package:
|
|
264
|
-
readonly module:
|
|
265
|
-
readonly function:
|
|
266
|
-
readonly typeArguments:
|
|
267
|
-
readonly arguments:
|
|
263
|
+
readonly package: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
264
|
+
readonly module: valibot575.StringSchema<undefined>;
|
|
265
|
+
readonly function: valibot575.StringSchema<undefined>;
|
|
266
|
+
readonly typeArguments: valibot575.ArraySchema<valibot575.StringSchema<undefined>, undefined>;
|
|
267
|
+
readonly arguments: valibot575.ArraySchema<valibot575.UnionSchema<[GenericSchema<{
|
|
268
268
|
GasCoin: true;
|
|
269
269
|
$kind?: "GasCoin" | undefined;
|
|
270
270
|
}, {
|
|
@@ -291,13 +291,13 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
291
291
|
NestedResult: [number, number];
|
|
292
292
|
$kind: "NestedResult";
|
|
293
293
|
}>], undefined>, undefined>;
|
|
294
|
-
readonly _argumentTypes:
|
|
295
|
-
readonly reference:
|
|
294
|
+
readonly _argumentTypes: valibot575.OptionalSchema<valibot575.NullableSchema<valibot575.ArraySchema<ObjectSchema<{
|
|
295
|
+
readonly reference: valibot575.NullableSchema<valibot575.UnionSchema<[valibot575.LiteralSchema<"mutable", undefined>, valibot575.LiteralSchema<"immutable", undefined>, valibot575.LiteralSchema<"unknown", undefined>], undefined>, undefined>;
|
|
296
296
|
readonly body: GenericSchema<SuiClientTypes.OpenSignatureBody>;
|
|
297
297
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
298
298
|
}, undefined>;
|
|
299
299
|
TransferObjects: ObjectSchema<{
|
|
300
|
-
readonly objects:
|
|
300
|
+
readonly objects: valibot575.ArraySchema<valibot575.UnionSchema<[GenericSchema<{
|
|
301
301
|
GasCoin: true;
|
|
302
302
|
$kind?: "GasCoin" | undefined;
|
|
303
303
|
}, {
|
|
@@ -324,7 +324,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
324
324
|
NestedResult: [number, number];
|
|
325
325
|
$kind: "NestedResult";
|
|
326
326
|
}>], undefined>, undefined>;
|
|
327
|
-
readonly address:
|
|
327
|
+
readonly address: valibot575.UnionSchema<[GenericSchema<{
|
|
328
328
|
GasCoin: true;
|
|
329
329
|
$kind?: "GasCoin" | undefined;
|
|
330
330
|
}, {
|
|
@@ -353,7 +353,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
353
353
|
}>], undefined>;
|
|
354
354
|
}, undefined>;
|
|
355
355
|
SplitCoins: ObjectSchema<{
|
|
356
|
-
readonly coin:
|
|
356
|
+
readonly coin: valibot575.UnionSchema<[GenericSchema<{
|
|
357
357
|
GasCoin: true;
|
|
358
358
|
$kind?: "GasCoin" | undefined;
|
|
359
359
|
}, {
|
|
@@ -380,7 +380,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
380
380
|
NestedResult: [number, number];
|
|
381
381
|
$kind: "NestedResult";
|
|
382
382
|
}>], undefined>;
|
|
383
|
-
readonly amounts:
|
|
383
|
+
readonly amounts: valibot575.ArraySchema<valibot575.UnionSchema<[GenericSchema<{
|
|
384
384
|
GasCoin: true;
|
|
385
385
|
$kind?: "GasCoin" | undefined;
|
|
386
386
|
}, {
|
|
@@ -409,7 +409,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
409
409
|
}>], undefined>, undefined>;
|
|
410
410
|
}, undefined>;
|
|
411
411
|
MergeCoins: ObjectSchema<{
|
|
412
|
-
readonly destination:
|
|
412
|
+
readonly destination: valibot575.UnionSchema<[GenericSchema<{
|
|
413
413
|
GasCoin: true;
|
|
414
414
|
$kind?: "GasCoin" | undefined;
|
|
415
415
|
}, {
|
|
@@ -436,7 +436,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
436
436
|
NestedResult: [number, number];
|
|
437
437
|
$kind: "NestedResult";
|
|
438
438
|
}>], undefined>;
|
|
439
|
-
readonly sources:
|
|
439
|
+
readonly sources: valibot575.ArraySchema<valibot575.UnionSchema<[GenericSchema<{
|
|
440
440
|
GasCoin: true;
|
|
441
441
|
$kind?: "GasCoin" | undefined;
|
|
442
442
|
}, {
|
|
@@ -465,12 +465,12 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
465
465
|
}>], undefined>, undefined>;
|
|
466
466
|
}, undefined>;
|
|
467
467
|
Publish: ObjectSchema<{
|
|
468
|
-
readonly modules:
|
|
469
|
-
readonly dependencies:
|
|
468
|
+
readonly modules: valibot575.ArraySchema<valibot575.StringSchema<undefined>, undefined>;
|
|
469
|
+
readonly dependencies: valibot575.ArraySchema<valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>, undefined>;
|
|
470
470
|
}, undefined>;
|
|
471
471
|
MakeMoveVec: ObjectSchema<{
|
|
472
|
-
readonly type:
|
|
473
|
-
readonly elements:
|
|
472
|
+
readonly type: valibot575.NullableSchema<valibot575.StringSchema<undefined>, undefined>;
|
|
473
|
+
readonly elements: valibot575.ArraySchema<valibot575.UnionSchema<[GenericSchema<{
|
|
474
474
|
GasCoin: true;
|
|
475
475
|
$kind?: "GasCoin" | undefined;
|
|
476
476
|
}, {
|
|
@@ -499,10 +499,10 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
499
499
|
}>], undefined>, undefined>;
|
|
500
500
|
}, undefined>;
|
|
501
501
|
Upgrade: ObjectSchema<{
|
|
502
|
-
readonly modules:
|
|
503
|
-
readonly dependencies:
|
|
504
|
-
readonly package:
|
|
505
|
-
readonly ticket:
|
|
502
|
+
readonly modules: valibot575.ArraySchema<valibot575.StringSchema<undefined>, undefined>;
|
|
503
|
+
readonly dependencies: valibot575.ArraySchema<valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>, undefined>;
|
|
504
|
+
readonly package: valibot575.SchemaWithPipe<readonly [valibot575.StringSchema<undefined>, valibot575.TransformAction<string, string>, valibot575.CheckAction<string, undefined>]>;
|
|
505
|
+
readonly ticket: valibot575.UnionSchema<[GenericSchema<{
|
|
506
506
|
GasCoin: true;
|
|
507
507
|
$kind?: "GasCoin" | undefined;
|
|
508
508
|
}, {
|
|
@@ -531,8 +531,8 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
531
531
|
}>], undefined>;
|
|
532
532
|
}, undefined>;
|
|
533
533
|
$Intent: ObjectSchema<{
|
|
534
|
-
readonly name:
|
|
535
|
-
readonly inputs:
|
|
534
|
+
readonly name: valibot575.StringSchema<undefined>;
|
|
535
|
+
readonly inputs: valibot575.RecordSchema<valibot575.StringSchema<undefined>, valibot575.UnionSchema<[valibot575.UnionSchema<[GenericSchema<{
|
|
536
536
|
GasCoin: true;
|
|
537
537
|
$kind?: "GasCoin" | undefined;
|
|
538
538
|
}, {
|
|
@@ -558,7 +558,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
558
558
|
}, {
|
|
559
559
|
NestedResult: [number, number];
|
|
560
560
|
$kind: "NestedResult";
|
|
561
|
-
}>], undefined>,
|
|
561
|
+
}>], undefined>, valibot575.ArraySchema<valibot575.UnionSchema<[GenericSchema<{
|
|
562
562
|
GasCoin: true;
|
|
563
563
|
$kind?: "GasCoin" | undefined;
|
|
564
564
|
}, {
|
|
@@ -585,7 +585,7 @@ declare const TransactionDataSchema: ObjectSchema<{
|
|
|
585
585
|
NestedResult: [number, number];
|
|
586
586
|
$kind: "NestedResult";
|
|
587
587
|
}>], undefined>, undefined>], undefined>, undefined>;
|
|
588
|
-
readonly data:
|
|
588
|
+
readonly data: valibot575.RecordSchema<valibot575.StringSchema<undefined>, valibot575.UnknownSchema, undefined>;
|
|
589
589
|
}, undefined>;
|
|
590
590
|
}>, undefined>;
|
|
591
591
|
}, undefined>;
|