@mysten/sui 2.20.1 → 2.20.3
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 +22 -0
- package/dist/client/transaction-resolver.mjs +1 -0
- package/dist/client/transaction-resolver.mjs.map +1 -1
- package/dist/cryptography/signature.d.mts +6 -6
- package/dist/graphql/core.d.mts.map +1 -1
- package/dist/graphql/core.mjs +8 -2
- package/dist/graphql/core.mjs.map +1 -1
- package/dist/graphql/generated/queries.d.mts.map +1 -1
- package/dist/graphql/generated/queries.mjs +6 -2
- package/dist/graphql/generated/queries.mjs.map +1 -1
- package/dist/grpc/core.d.mts.map +1 -1
- package/dist/grpc/core.mjs +2 -0
- package/dist/grpc/core.mjs.map +1 -1
- 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/state_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +4 -4
- package/dist/transactions/Transaction.d.mts +6 -6
- 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/client/transaction-resolver.ts +1 -0
- package/src/graphql/core.ts +7 -1
- package/src/graphql/generated/queries.ts +211 -4923
- package/src/graphql/queries/transactions.graphql +10 -2
- package/src/grpc/core.ts +5 -0
- package/src/version.ts +1 -1
|
@@ -143,8 +143,16 @@ fragment TRANSACTION_FIELDS on Transaction {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
query resolveTransaction(
|
|
147
|
-
|
|
146
|
+
query resolveTransaction(
|
|
147
|
+
$transaction: JSON!
|
|
148
|
+
$doGasSelection: Boolean = true
|
|
149
|
+
$checksEnabled: Boolean = true
|
|
150
|
+
) {
|
|
151
|
+
simulateTransaction(
|
|
152
|
+
transaction: $transaction
|
|
153
|
+
doGasSelection: $doGasSelection
|
|
154
|
+
checksEnabled: $checksEnabled
|
|
155
|
+
) {
|
|
148
156
|
effects {
|
|
149
157
|
transaction {
|
|
150
158
|
transactionBcs
|
package/src/grpc/core.ts
CHANGED
|
@@ -211,6 +211,7 @@ export class GrpcCoreClient extends CoreClient {
|
|
|
211
211
|
owner: options.owner,
|
|
212
212
|
objectType: `0x2::coin::Coin<${(await this.mvr.resolveType({ type: coinType })).type}>`,
|
|
213
213
|
pageToken: options.cursor ? fromBase64(options.cursor) : undefined,
|
|
214
|
+
pageSize: options.limit,
|
|
214
215
|
readMask: {
|
|
215
216
|
paths,
|
|
216
217
|
},
|
|
@@ -756,6 +757,10 @@ export class GrpcCoreClient extends CoreClient {
|
|
|
756
757
|
doGasSelection:
|
|
757
758
|
!options.onlyTransactionKind &&
|
|
758
759
|
(snapshot.gasData.budget == null || snapshot.gasData.payment == null),
|
|
760
|
+
// Kind-only txns are never executed directly and do not have sender, so skip validation checks.
|
|
761
|
+
checks: options.onlyTransactionKind
|
|
762
|
+
? SimulateTransactionRequest_TransactionChecks.DISABLED
|
|
763
|
+
: SimulateTransactionRequest_TransactionChecks.ENABLED,
|
|
759
764
|
readMask: {
|
|
760
765
|
paths: [
|
|
761
766
|
'transaction.transaction.sender',
|
package/src/version.ts
CHANGED