@mysten/sui 2.6.0 → 2.8.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 +22 -0
- package/dist/bcs/bcs.d.mts +6 -6
- package/dist/bcs/index.d.mts +20 -20
- package/dist/client/types.d.mts +17 -0
- package/dist/client/types.d.mts.map +1 -1
- package/dist/cryptography/signature.d.mts +14 -14
- package/dist/graphql/core.d.mts.map +1 -1
- package/dist/graphql/core.mjs +21 -8
- package/dist/graphql/core.mjs.map +1 -1
- package/dist/graphql/generated/queries.d.mts.map +1 -1
- package/dist/graphql/generated/queries.mjs +18 -3
- package/dist/graphql/generated/queries.mjs.map +1 -1
- package/dist/graphql/generated/tada-env.d.mts +703 -73
- package/dist/grpc/core.d.mts.map +1 -1
- package/dist/grpc/core.mjs +15 -2
- package/dist/grpc/core.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/move_package_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/object.d.mts +38 -1
- package/dist/grpc/proto/sui/rpc/v2/object.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/object.mjs +26 -1
- package/dist/grpc/proto/sui/rpc/v2/object.mjs.map +1 -1
- 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_execution_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.d.mts +8 -0
- package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.mjs +23 -12
- package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.mjs.map +1 -1
- package/dist/grpc/proto/types.d.mts +2 -2
- package/dist/grpc/proto/types.mjs +2 -1
- package/dist/jsonRpc/core.d.mts.map +1 -1
- package/dist/jsonRpc/core.mjs +10 -3
- package/dist/jsonRpc/core.mjs.map +1 -1
- package/dist/keypairs/passkey/keypair.d.mts +11 -4
- package/dist/keypairs/passkey/keypair.d.mts.map +1 -1
- package/dist/keypairs/passkey/keypair.mjs +19 -6
- package/dist/keypairs/passkey/keypair.mjs.map +1 -1
- package/dist/transactions/Transaction.d.mts +9 -9
- package/dist/transactions/Transaction.d.mts.map +1 -1
- package/dist/version.mjs +2 -2
- package/dist/version.mjs.map +1 -1
- package/dist/zklogin/bcs.d.mts +14 -14
- package/docs/bcs.md +131 -0
- package/docs/clients/core.md +601 -0
- package/docs/clients/graphql.md +99 -0
- package/docs/clients/grpc.md +152 -0
- package/docs/clients/index.md +93 -0
- package/docs/clients/json-rpc.md +235 -0
- package/docs/cryptography/keypairs.md +258 -0
- package/docs/cryptography/multisig.md +192 -0
- package/docs/cryptography/passkey.md +111 -0
- package/docs/cryptography/webcrypto-signer.md +81 -0
- package/docs/executors.md +147 -0
- package/docs/faucet.md +26 -0
- package/docs/hello-sui.md +114 -0
- package/docs/index.md +54 -0
- package/docs/install.md +61 -0
- package/docs/llm-docs.md +32 -0
- package/docs/llms-index.md +60 -0
- package/docs/migrations/0.38.md +57 -0
- package/docs/migrations/sui-1.0.md +453 -0
- package/docs/migrations/sui-2.0/agent-prompt.md +42 -0
- package/docs/migrations/sui-2.0/dapp-kit.md +350 -0
- package/docs/migrations/sui-2.0/deepbook-v3.md +33 -0
- package/docs/migrations/sui-2.0/index.md +157 -0
- package/docs/migrations/sui-2.0/json-rpc-migration.md +383 -0
- package/docs/migrations/sui-2.0/kiosk.md +120 -0
- package/docs/migrations/sui-2.0/sdk-maintainers.md +90 -0
- package/docs/migrations/sui-2.0/seal.md +14 -0
- package/docs/migrations/sui-2.0/sui.md +341 -0
- package/docs/migrations/sui-2.0/suins.md +42 -0
- package/docs/migrations/sui-2.0/wallet-builders.md +66 -0
- package/docs/migrations/sui-2.0/walrus.md +41 -0
- package/docs/migrations/sui-2.0/zksend.md +94 -0
- package/docs/plugins.md +255 -0
- package/docs/sdk-building.md +340 -0
- package/docs/transaction-building/basics.md +297 -0
- package/docs/transaction-building/gas.md +62 -0
- package/docs/transaction-building/intents.md +61 -0
- package/docs/transaction-building/offline.md +71 -0
- package/docs/transaction-building/sponsored-transactions.md +22 -0
- package/docs/utils/derived_objects.md +59 -0
- package/docs/utils/index.md +52 -0
- package/docs/zklogin.md +78 -0
- package/package.json +5 -3
- package/src/client/types.ts +16 -0
- package/src/graphql/core.ts +34 -13
- package/src/graphql/generated/queries.ts +252 -14
- package/src/graphql/generated/schema.graphql +324 -8
- package/src/graphql/generated/tada-env.ts +844 -99
- package/src/graphql/queries/objects.graphql +10 -0
- package/src/graphql/queries/verifyZkLoginSignature.graphql +0 -1
- package/src/grpc/core.ts +34 -0
- package/src/grpc/proto/sui/rpc/v2/object.ts +44 -0
- package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.ts +16 -0
- package/src/jsonRpc/core.ts +9 -0
- package/src/keypairs/passkey/keypair.ts +20 -6
- package/src/version.ts +2 -2
|
@@ -574,6 +574,25 @@ export type CheckpointFilter = {
|
|
|
574
574
|
beforeCheckpoint?: InputMaybe<Scalars['UInt53']['input']>;
|
|
575
575
|
};
|
|
576
576
|
|
|
577
|
+
/** A G1 elliptic curve point with 3 base10-encoded Bn254 field elements. */
|
|
578
|
+
export type CircomG1 = {
|
|
579
|
+
__typename?: 'CircomG1';
|
|
580
|
+
e0?: Maybe<Scalars['String']['output']>;
|
|
581
|
+
e1?: Maybe<Scalars['String']['output']>;
|
|
582
|
+
e2?: Maybe<Scalars['String']['output']>;
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
/** A G2 elliptic curve point with 6 base10-encoded Bn254 field elements. */
|
|
586
|
+
export type CircomG2 = {
|
|
587
|
+
__typename?: 'CircomG2';
|
|
588
|
+
e00?: Maybe<Scalars['String']['output']>;
|
|
589
|
+
e01?: Maybe<Scalars['String']['output']>;
|
|
590
|
+
e10?: Maybe<Scalars['String']['output']>;
|
|
591
|
+
e11?: Maybe<Scalars['String']['output']>;
|
|
592
|
+
e20?: Maybe<Scalars['String']['output']>;
|
|
593
|
+
e21?: Maybe<Scalars['String']['output']>;
|
|
594
|
+
};
|
|
595
|
+
|
|
577
596
|
/** System transaction for creating the coin deny list state. */
|
|
578
597
|
export type CoinDenyListStateCreateTransaction = {
|
|
579
598
|
__typename?: 'CoinDenyListStateCreateTransaction';
|
|
@@ -1294,6 +1313,22 @@ export type DynamicFieldName = {
|
|
|
1294
1313
|
/** The value of a dynamic field (`MoveValue`) or dynamic object field (`MoveObject`). */
|
|
1295
1314
|
export type DynamicFieldValue = MoveObject | MoveValue;
|
|
1296
1315
|
|
|
1316
|
+
/** An Ed25519 public key. */
|
|
1317
|
+
export type Ed25519PublicKey = {
|
|
1318
|
+
__typename?: 'Ed25519PublicKey';
|
|
1319
|
+
/** The raw public key bytes. */
|
|
1320
|
+
bytes?: Maybe<Scalars['Base64']['output']>;
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
/** An Ed25519 signature. */
|
|
1324
|
+
export type Ed25519Signature = {
|
|
1325
|
+
__typename?: 'Ed25519Signature';
|
|
1326
|
+
/** The public key bytes. */
|
|
1327
|
+
publicKey?: Maybe<Scalars['Base64']['output']>;
|
|
1328
|
+
/** The raw signature bytes. */
|
|
1329
|
+
signature?: Maybe<Scalars['Base64']['output']>;
|
|
1330
|
+
};
|
|
1331
|
+
|
|
1297
1332
|
/** System transaction that supersedes `ChangeEpochTransaction` as the new way to run transactions at the end of an epoch. Behaves similarly to `ChangeEpochTransaction` but can accommodate other optional transactions to run at the end of the epoch. */
|
|
1298
1333
|
export type EndOfEpochTransaction = {
|
|
1299
1334
|
__typename?: 'EndOfEpochTransaction';
|
|
@@ -2859,6 +2894,12 @@ export type MoveValue = {
|
|
|
2859
2894
|
* Values of other types cannot be interpreted as addresses, and `null` is returned.
|
|
2860
2895
|
*/
|
|
2861
2896
|
asAddress?: Maybe<Address>;
|
|
2897
|
+
/**
|
|
2898
|
+
* Attempts to treat this value as a `vector<T>` and paginate over its elements.
|
|
2899
|
+
*
|
|
2900
|
+
* Values of other types cannot be interpreted as vectors, and `null` is returned.
|
|
2901
|
+
*/
|
|
2902
|
+
asVector?: Maybe<MoveValueConnection>;
|
|
2862
2903
|
/** The BCS representation of this value, Base64-encoded. */
|
|
2863
2904
|
bcs?: Maybe<Scalars['Base64']['output']>;
|
|
2864
2905
|
/**
|
|
@@ -2898,6 +2939,14 @@ export type MoveValue = {
|
|
|
2898
2939
|
};
|
|
2899
2940
|
|
|
2900
2941
|
|
|
2942
|
+
export type MoveValueAsVectorArgs = {
|
|
2943
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
2944
|
+
before?: InputMaybe<Scalars['String']['input']>;
|
|
2945
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2946
|
+
last?: InputMaybe<Scalars['Int']['input']>;
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2949
|
+
|
|
2901
2950
|
export type MoveValueExtractArgs = {
|
|
2902
2951
|
path: Scalars['String']['input'];
|
|
2903
2952
|
};
|
|
@@ -2907,6 +2956,25 @@ export type MoveValueFormatArgs = {
|
|
|
2907
2956
|
format: Scalars['String']['input'];
|
|
2908
2957
|
};
|
|
2909
2958
|
|
|
2959
|
+
export type MoveValueConnection = {
|
|
2960
|
+
__typename?: 'MoveValueConnection';
|
|
2961
|
+
/** A list of edges. */
|
|
2962
|
+
edges: Array<MoveValueEdge>;
|
|
2963
|
+
/** A list of nodes. */
|
|
2964
|
+
nodes: Array<MoveValue>;
|
|
2965
|
+
/** Information to aid in pagination. */
|
|
2966
|
+
pageInfo: PageInfo;
|
|
2967
|
+
};
|
|
2968
|
+
|
|
2969
|
+
/** An edge in a connection. */
|
|
2970
|
+
export type MoveValueEdge = {
|
|
2971
|
+
__typename?: 'MoveValueEdge';
|
|
2972
|
+
/** A cursor for use in pagination */
|
|
2973
|
+
cursor: Scalars['String']['output'];
|
|
2974
|
+
/** The item at the end of the edge */
|
|
2975
|
+
node: MoveValue;
|
|
2976
|
+
};
|
|
2977
|
+
|
|
2910
2978
|
/**
|
|
2911
2979
|
* The visibility modifier describes which modules can access this module member.
|
|
2912
2980
|
*
|
|
@@ -2921,6 +2989,42 @@ export enum MoveVisibility {
|
|
|
2921
2989
|
Public = 'PUBLIC'
|
|
2922
2990
|
}
|
|
2923
2991
|
|
|
2992
|
+
/** The multisig committee definition. */
|
|
2993
|
+
export type MultisigCommittee = {
|
|
2994
|
+
__typename?: 'MultisigCommittee';
|
|
2995
|
+
/** The committee members (public key + weight). */
|
|
2996
|
+
members?: Maybe<Array<MultisigMember>>;
|
|
2997
|
+
/** The threshold number of weight needed for a valid multisig. */
|
|
2998
|
+
threshold?: Maybe<Scalars['Int']['output']>;
|
|
2999
|
+
};
|
|
3000
|
+
|
|
3001
|
+
/** A single member of a multisig committee. */
|
|
3002
|
+
export type MultisigMember = {
|
|
3003
|
+
__typename?: 'MultisigMember';
|
|
3004
|
+
/** The member's public key. */
|
|
3005
|
+
publicKey?: Maybe<MultisigMemberPublicKey>;
|
|
3006
|
+
/** The member's weight in the committee. */
|
|
3007
|
+
weight?: Maybe<Scalars['Int']['output']>;
|
|
3008
|
+
};
|
|
3009
|
+
|
|
3010
|
+
/** A multisig member's public key, varying by scheme. */
|
|
3011
|
+
export type MultisigMemberPublicKey = Ed25519PublicKey | PasskeyPublicKey | Secp256K1PublicKey | Secp256R1PublicKey | ZkLoginPublicIdentifier;
|
|
3012
|
+
|
|
3013
|
+
/** An aggregated multisig signature. */
|
|
3014
|
+
export type MultisigSignature = {
|
|
3015
|
+
__typename?: 'MultisigSignature';
|
|
3016
|
+
/** A bitmap indicating which members of the committee signed. */
|
|
3017
|
+
bitmap?: Maybe<Scalars['Int']['output']>;
|
|
3018
|
+
/** The multisig committee (public keys + weights + threshold). */
|
|
3019
|
+
committee?: Maybe<MultisigCommittee>;
|
|
3020
|
+
/**
|
|
3021
|
+
* The individual member signatures, one per signer who participated.
|
|
3022
|
+
* Compressed signatures within a multisig do not include the signer's public key,
|
|
3023
|
+
* so `publicKey` will be `null` for simple signature schemes (Ed25519, Secp256k1, Secp256r1).
|
|
3024
|
+
*/
|
|
3025
|
+
signatures?: Maybe<Array<SignatureScheme>>;
|
|
3026
|
+
};
|
|
3027
|
+
|
|
2924
3028
|
/** A transaction that wanted to mutate a consensus-managed object but couldn't because it became not-consensus-managed before the transaction executed (for example, it was deleted, turned into an owned object, or wrapped). */
|
|
2925
3029
|
export type MutateConsensusStreamEnded = {
|
|
2926
3030
|
__typename?: 'MutateConsensusStreamEnded';
|
|
@@ -3442,6 +3546,23 @@ export type PageInfo = {
|
|
|
3442
3546
|
startCursor?: Maybe<Scalars['String']['output']>;
|
|
3443
3547
|
};
|
|
3444
3548
|
|
|
3549
|
+
/** A Passkey public key. */
|
|
3550
|
+
export type PasskeyPublicKey = {
|
|
3551
|
+
__typename?: 'PasskeyPublicKey';
|
|
3552
|
+
/** The raw public key bytes. */
|
|
3553
|
+
bytes?: Maybe<Scalars['Base64']['output']>;
|
|
3554
|
+
};
|
|
3555
|
+
|
|
3556
|
+
export type PasskeySignature = {
|
|
3557
|
+
__typename?: 'PasskeySignature';
|
|
3558
|
+
/** The authenticator data returned by the passkey device. */
|
|
3559
|
+
authenticatorData?: Maybe<Scalars['Base64']['output']>;
|
|
3560
|
+
/** The client data JSON string passed to the authenticator. */
|
|
3561
|
+
clientDataJson?: Maybe<Scalars['String']['output']>;
|
|
3562
|
+
/** The inner user signature (secp256r1). */
|
|
3563
|
+
signature?: Maybe<SignatureScheme>;
|
|
3564
|
+
};
|
|
3565
|
+
|
|
3445
3566
|
export type PerEpochConfig = {
|
|
3446
3567
|
__typename?: 'PerEpochConfig';
|
|
3447
3568
|
/** The per-epoch configuration object as of when the transaction was executed. */
|
|
@@ -3762,16 +3883,16 @@ export type Query = {
|
|
|
3762
3883
|
*/
|
|
3763
3884
|
type?: Maybe<MoveType>;
|
|
3764
3885
|
/**
|
|
3765
|
-
* Verify a zkLogin signature
|
|
3886
|
+
* Verify a zkLogin signature is from the given `author`.
|
|
3766
3887
|
*
|
|
3767
|
-
* Returns
|
|
3888
|
+
* Returns successfully if the signature is valid. If the signature is invalid, returns an error with the reason for the failure.
|
|
3768
3889
|
*
|
|
3769
3890
|
* - `bytes` are either the bytes of a serialized personal message, or `TransactionData`, Base64-encoded.
|
|
3770
3891
|
* - `signature` is a serialized zkLogin signature, also Base64-encoded.
|
|
3771
3892
|
* - `intentScope` indicates whether `bytes` are to be parsed as a personal message or `TransactionData`.
|
|
3772
3893
|
* - `author` is the signer's address.
|
|
3773
3894
|
*/
|
|
3774
|
-
verifyZkLoginSignature
|
|
3895
|
+
verifyZkLoginSignature?: Maybe<ZkLoginVerifyResult>;
|
|
3775
3896
|
};
|
|
3776
3897
|
|
|
3777
3898
|
|
|
@@ -4013,6 +4134,38 @@ export enum RegulatedState {
|
|
|
4013
4134
|
Unregulated = 'UNREGULATED'
|
|
4014
4135
|
}
|
|
4015
4136
|
|
|
4137
|
+
/** A Secp256k1 public key. */
|
|
4138
|
+
export type Secp256K1PublicKey = {
|
|
4139
|
+
__typename?: 'Secp256K1PublicKey';
|
|
4140
|
+
/** The raw public key bytes. */
|
|
4141
|
+
bytes?: Maybe<Scalars['Base64']['output']>;
|
|
4142
|
+
};
|
|
4143
|
+
|
|
4144
|
+
/** A Secp256k1 signature. */
|
|
4145
|
+
export type Secp256K1Signature = {
|
|
4146
|
+
__typename?: 'Secp256K1Signature';
|
|
4147
|
+
/** The public key bytes. */
|
|
4148
|
+
publicKey?: Maybe<Scalars['Base64']['output']>;
|
|
4149
|
+
/** The raw signature bytes. */
|
|
4150
|
+
signature?: Maybe<Scalars['Base64']['output']>;
|
|
4151
|
+
};
|
|
4152
|
+
|
|
4153
|
+
/** A Secp256r1 public key. */
|
|
4154
|
+
export type Secp256R1PublicKey = {
|
|
4155
|
+
__typename?: 'Secp256R1PublicKey';
|
|
4156
|
+
/** The raw public key bytes. */
|
|
4157
|
+
bytes?: Maybe<Scalars['Base64']['output']>;
|
|
4158
|
+
};
|
|
4159
|
+
|
|
4160
|
+
/** A Secp256r1 signature. */
|
|
4161
|
+
export type Secp256R1Signature = {
|
|
4162
|
+
__typename?: 'Secp256R1Signature';
|
|
4163
|
+
/** The public key bytes. */
|
|
4164
|
+
publicKey?: Maybe<Scalars['Base64']['output']>;
|
|
4165
|
+
/** The raw signature bytes. */
|
|
4166
|
+
signature?: Maybe<Scalars['Base64']['output']>;
|
|
4167
|
+
};
|
|
4168
|
+
|
|
4016
4169
|
export type ServiceConfig = {
|
|
4017
4170
|
__typename?: 'ServiceConfig';
|
|
4018
4171
|
/** Range of checkpoints for which data is available for a query type, field and optional filter. If filter is not provided, the strictest retention range for the query and type is returned. */
|
|
@@ -4152,6 +4305,9 @@ export type SharedInput = {
|
|
|
4152
4305
|
mutable?: Maybe<Scalars['Boolean']['output']>;
|
|
4153
4306
|
};
|
|
4154
4307
|
|
|
4308
|
+
/** The structured details of a signature, varying by scheme. */
|
|
4309
|
+
export type SignatureScheme = Ed25519Signature | MultisigSignature | PasskeySignature | Secp256K1Signature | Secp256R1Signature | ZkLoginSignature;
|
|
4310
|
+
|
|
4155
4311
|
/** The result of simulating a transaction, including the predicted effects. */
|
|
4156
4312
|
export type SimulationResult = {
|
|
4157
4313
|
__typename?: 'SimulationResult';
|
|
@@ -4454,6 +4610,8 @@ export type UpgradeCommand = {
|
|
|
4454
4610
|
|
|
4455
4611
|
export type UserSignature = {
|
|
4456
4612
|
__typename?: 'UserSignature';
|
|
4613
|
+
/** The structured signature details, parsed by scheme. */
|
|
4614
|
+
scheme?: Maybe<SignatureScheme>;
|
|
4457
4615
|
/**
|
|
4458
4616
|
* The signature bytes, Base64-encoded.
|
|
4459
4617
|
* For simple signatures: flag || signature || pubkey
|
|
@@ -4558,6 +4716,28 @@ export type WriteAccumulatorStorageCostTransaction = {
|
|
|
4558
4716
|
_?: Maybe<Scalars['Boolean']['output']>;
|
|
4559
4717
|
};
|
|
4560
4718
|
|
|
4719
|
+
/** A Base64-encoded claim from the JWT used in zkLogin. */
|
|
4720
|
+
export type ZkLoginClaim = {
|
|
4721
|
+
__typename?: 'ZkLoginClaim';
|
|
4722
|
+
/** The index mod 4 used for Base64 decoding alignment. */
|
|
4723
|
+
indexMod4?: Maybe<Scalars['Int']['output']>;
|
|
4724
|
+
/** The Base64url-unpadded encoded claim value. */
|
|
4725
|
+
value?: Maybe<Scalars['String']['output']>;
|
|
4726
|
+
};
|
|
4727
|
+
|
|
4728
|
+
/** The zkLogin inputs including proof, claim details, and JWT header. */
|
|
4729
|
+
export type ZkLoginInputs = {
|
|
4730
|
+
__typename?: 'ZkLoginInputs';
|
|
4731
|
+
/** The address seed as a base10-encoded string. */
|
|
4732
|
+
addressSeed?: Maybe<Scalars['String']['output']>;
|
|
4733
|
+
/** The Base64-encoded JWT header. */
|
|
4734
|
+
headerBase64?: Maybe<Scalars['String']['output']>;
|
|
4735
|
+
/** The Base64-encoded issuer claim details. */
|
|
4736
|
+
issBase64Details?: Maybe<ZkLoginClaim>;
|
|
4737
|
+
/** The zero-knowledge proof points. */
|
|
4738
|
+
proofPoints?: Maybe<ZkLoginProof>;
|
|
4739
|
+
};
|
|
4740
|
+
|
|
4561
4741
|
/** An enum that specifies the intent scope to be used to parse the bytes for signature verification. */
|
|
4562
4742
|
export enum ZkLoginIntentScope {
|
|
4563
4743
|
/** Indicates that the bytes are to be parsed as a personal message. */
|
|
@@ -4566,12 +4746,53 @@ export enum ZkLoginIntentScope {
|
|
|
4566
4746
|
TransactionData = 'TRANSACTION_DATA'
|
|
4567
4747
|
}
|
|
4568
4748
|
|
|
4749
|
+
/** A JWK (JSON Web Key) identifier. */
|
|
4750
|
+
export type ZkLoginJwkId = {
|
|
4751
|
+
__typename?: 'ZkLoginJwkId';
|
|
4752
|
+
/** The OIDC provider issuer string. */
|
|
4753
|
+
iss?: Maybe<Scalars['String']['output']>;
|
|
4754
|
+
/** The key ID that identifies the JWK. */
|
|
4755
|
+
kid?: Maybe<Scalars['String']['output']>;
|
|
4756
|
+
};
|
|
4757
|
+
|
|
4758
|
+
/** The zero-knowledge proof consisting of three elliptic curve points. */
|
|
4759
|
+
export type ZkLoginProof = {
|
|
4760
|
+
__typename?: 'ZkLoginProof';
|
|
4761
|
+
/** G1 point 'a'. */
|
|
4762
|
+
a?: Maybe<CircomG1>;
|
|
4763
|
+
/** G2 point 'b'. */
|
|
4764
|
+
b?: Maybe<CircomG2>;
|
|
4765
|
+
/** G1 point 'c'. */
|
|
4766
|
+
c?: Maybe<CircomG1>;
|
|
4767
|
+
};
|
|
4768
|
+
|
|
4769
|
+
/** A zkLogin public identifier, containing the OAuth issuer and address seed. */
|
|
4770
|
+
export type ZkLoginPublicIdentifier = {
|
|
4771
|
+
__typename?: 'ZkLoginPublicIdentifier';
|
|
4772
|
+
/** The address seed as a decimal string. */
|
|
4773
|
+
addressSeed?: Maybe<Scalars['String']['output']>;
|
|
4774
|
+
/** The OAuth provider issuer string (e.g. "https://accounts.google.com"). */
|
|
4775
|
+
iss?: Maybe<Scalars['String']['output']>;
|
|
4776
|
+
};
|
|
4777
|
+
|
|
4778
|
+
export type ZkLoginSignature = {
|
|
4779
|
+
__typename?: 'ZkLoginSignature';
|
|
4780
|
+
/** The zkLogin inputs including proof, claim details, and JWT header. */
|
|
4781
|
+
inputs?: Maybe<ZkLoginInputs>;
|
|
4782
|
+
/** The JWK identifier used to verify the zkLogin proof. */
|
|
4783
|
+
jwkId?: Maybe<ZkLoginJwkId>;
|
|
4784
|
+
/** The maximum epoch for which this signature is valid. */
|
|
4785
|
+
maxEpoch?: Maybe<Scalars['UInt53']['output']>;
|
|
4786
|
+
/** The public identifier (issuer + address seed) for this zkLogin authenticator. */
|
|
4787
|
+
publicIdentifier?: Maybe<ZkLoginPublicIdentifier>;
|
|
4788
|
+
/** The inner user signature (ed25519/secp256k1/secp256r1). */
|
|
4789
|
+
signature?: Maybe<SignatureScheme>;
|
|
4790
|
+
};
|
|
4791
|
+
|
|
4569
4792
|
/** The result of the zkLogin signature verification. */
|
|
4570
4793
|
export type ZkLoginVerifyResult = {
|
|
4571
4794
|
__typename?: 'ZkLoginVerifyResult';
|
|
4572
|
-
/**
|
|
4573
|
-
error?: Maybe<Scalars['String']['output']>;
|
|
4574
|
-
/** The boolean result of the verification. If true, errors should be empty. */
|
|
4795
|
+
/** Whether the signature was verified successfully. */
|
|
4575
4796
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
4576
4797
|
};
|
|
4577
4798
|
|
|
@@ -4668,10 +4889,11 @@ export type GetOwnedObjectsQueryVariables = Exact<{
|
|
|
4668
4889
|
includePreviousTransaction?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4669
4890
|
includeObjectBcs?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4670
4891
|
includeJson?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4892
|
+
includeDisplay?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4671
4893
|
}>;
|
|
4672
4894
|
|
|
4673
4895
|
|
|
4674
|
-
export type GetOwnedObjectsQuery = { __typename?: 'Query', address?: { __typename?: 'Address', objects?: { __typename?: 'MoveObjectConnection', pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, endCursor?: string | null }, nodes: Array<{ __typename?: 'MoveObject', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, type?: { __typename?: 'MoveType', repr: string } | null } | null, owner?:
|
|
4896
|
+
export type GetOwnedObjectsQuery = { __typename?: 'Query', address?: { __typename?: 'Address', objects?: { __typename?: 'MoveObjectConnection', pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, endCursor?: string | null }, nodes: Array<{ __typename?: 'MoveObject', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, display?: { __typename?: 'Display', output?: unknown | null, errors?: unknown | null } | null, type?: { __typename?: 'MoveType', repr: string } | null } | null, owner?:
|
|
4675
4897
|
| { __typename: 'AddressOwner', address?: { __typename?: 'Address', address: string } | null }
|
|
4676
4898
|
| { __typename: 'ConsensusAddressOwner', startVersion?: number | null, address?: { __typename?: 'Address', address: string } | null }
|
|
4677
4899
|
| { __typename: 'Immutable' }
|
|
@@ -4685,10 +4907,11 @@ export type MultiGetObjectsQueryVariables = Exact<{
|
|
|
4685
4907
|
includePreviousTransaction?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4686
4908
|
includeObjectBcs?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4687
4909
|
includeJson?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4910
|
+
includeDisplay?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4688
4911
|
}>;
|
|
4689
4912
|
|
|
4690
4913
|
|
|
4691
|
-
export type MultiGetObjectsQuery = { __typename?: 'Query', multiGetObjects: Array<{ __typename?: 'Object', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, asMoveObject?: { __typename?: 'MoveObject', contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, type?: { __typename?: 'MoveType', repr: string } | null } | null } | null, asMovePackage?: { __typename: 'MovePackage' } | null, owner?:
|
|
4914
|
+
export type MultiGetObjectsQuery = { __typename?: 'Query', multiGetObjects: Array<{ __typename?: 'Object', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, asMoveObject?: { __typename?: 'MoveObject', contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, display?: { __typename?: 'Display', output?: unknown | null, errors?: unknown | null } | null, type?: { __typename?: 'MoveType', repr: string } | null } | null } | null, asMovePackage?: { __typename: 'MovePackage' } | null, owner?:
|
|
4692
4915
|
| { __typename: 'AddressOwner', address?: { __typename?: 'Address', address: string } | null }
|
|
4693
4916
|
| { __typename: 'ConsensusAddressOwner', startVersion?: number | null, address?: { __typename?: 'Address', address: string } | null }
|
|
4694
4917
|
| { __typename: 'Immutable' }
|
|
@@ -4696,7 +4919,7 @@ export type MultiGetObjectsQuery = { __typename?: 'Query', multiGetObjects: Arra
|
|
|
4696
4919
|
| { __typename: 'Shared', initialSharedVersion?: number | null }
|
|
4697
4920
|
| null, previousTransaction?: { __typename?: 'Transaction', digest: string } | null } | null> };
|
|
4698
4921
|
|
|
4699
|
-
export type Object_FieldsFragment = { __typename?: 'Object', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, asMoveObject?: { __typename?: 'MoveObject', contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, type?: { __typename?: 'MoveType', repr: string } | null } | null } | null, asMovePackage?: { __typename: 'MovePackage' } | null, owner?:
|
|
4922
|
+
export type Object_FieldsFragment = { __typename?: 'Object', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, asMoveObject?: { __typename?: 'MoveObject', contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, display?: { __typename?: 'Display', output?: unknown | null, errors?: unknown | null } | null, type?: { __typename?: 'MoveType', repr: string } | null } | null } | null, asMovePackage?: { __typename: 'MovePackage' } | null, owner?:
|
|
4700
4923
|
| { __typename: 'AddressOwner', address?: { __typename?: 'Address', address: string } | null }
|
|
4701
4924
|
| { __typename: 'ConsensusAddressOwner', startVersion?: number | null, address?: { __typename?: 'Address', address: string } | null }
|
|
4702
4925
|
| { __typename: 'Immutable' }
|
|
@@ -4704,7 +4927,7 @@ export type Object_FieldsFragment = { __typename?: 'Object', address: string, di
|
|
|
4704
4927
|
| { __typename: 'Shared', initialSharedVersion?: number | null }
|
|
4705
4928
|
| null, previousTransaction?: { __typename?: 'Transaction', digest: string } | null };
|
|
4706
4929
|
|
|
4707
|
-
export type Move_Object_FieldsFragment = { __typename?: 'MoveObject', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, type?: { __typename?: 'MoveType', repr: string } | null } | null, owner?:
|
|
4930
|
+
export type Move_Object_FieldsFragment = { __typename?: 'MoveObject', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, display?: { __typename?: 'Display', output?: unknown | null, errors?: unknown | null } | null, type?: { __typename?: 'MoveType', repr: string } | null } | null, owner?:
|
|
4708
4931
|
| { __typename: 'AddressOwner', address?: { __typename?: 'Address', address: string } | null }
|
|
4709
4932
|
| { __typename: 'ConsensusAddressOwner', startVersion?: number | null, address?: { __typename?: 'Address', address: string } | null }
|
|
4710
4933
|
| { __typename: 'Immutable' }
|
|
@@ -4791,7 +5014,7 @@ export type VerifyZkLoginSignatureQueryVariables = Exact<{
|
|
|
4791
5014
|
}>;
|
|
4792
5015
|
|
|
4793
5016
|
|
|
4794
|
-
export type VerifyZkLoginSignatureQuery = { __typename?: 'Query', verifyZkLoginSignature
|
|
5017
|
+
export type VerifyZkLoginSignatureQuery = { __typename?: 'Query', verifyZkLoginSignature?: { __typename?: 'ZkLoginVerifyResult', success?: boolean | null } | null };
|
|
4795
5018
|
|
|
4796
5019
|
export class TypedDocumentString<TResult, TVariables>
|
|
4797
5020
|
extends String
|
|
@@ -4845,6 +5068,10 @@ export const Object_FieldsFragmentDoc = new TypedDocumentString(`
|
|
|
4845
5068
|
contents {
|
|
4846
5069
|
bcs @include(if: $includeContent)
|
|
4847
5070
|
json @include(if: $includeJson)
|
|
5071
|
+
display @include(if: $includeDisplay) {
|
|
5072
|
+
output
|
|
5073
|
+
errors
|
|
5074
|
+
}
|
|
4848
5075
|
type {
|
|
4849
5076
|
repr
|
|
4850
5077
|
}
|
|
@@ -4891,6 +5118,10 @@ export const Move_Object_FieldsFragmentDoc = new TypedDocumentString(`
|
|
|
4891
5118
|
contents {
|
|
4892
5119
|
bcs @include(if: $includeContent)
|
|
4893
5120
|
json @include(if: $includeJson)
|
|
5121
|
+
display @include(if: $includeDisplay) {
|
|
5122
|
+
output
|
|
5123
|
+
errors
|
|
5124
|
+
}
|
|
4894
5125
|
type {
|
|
4895
5126
|
repr
|
|
4896
5127
|
}
|
|
@@ -5188,7 +5419,7 @@ export const DefaultSuinsNameDocument = new TypedDocumentString(`
|
|
|
5188
5419
|
}
|
|
5189
5420
|
`) as unknown as TypedDocumentString<DefaultSuinsNameQuery, DefaultSuinsNameQueryVariables>;
|
|
5190
5421
|
export const GetOwnedObjectsDocument = new TypedDocumentString(`
|
|
5191
|
-
query getOwnedObjects($owner: SuiAddress!, $limit: Int, $cursor: String, $filter: ObjectFilter, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false) {
|
|
5422
|
+
query getOwnedObjects($owner: SuiAddress!, $limit: Int, $cursor: String, $filter: ObjectFilter, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false, $includeDisplay: Boolean = false) {
|
|
5192
5423
|
address(address: $owner) {
|
|
5193
5424
|
objects(first: $limit, after: $cursor, filter: $filter) {
|
|
5194
5425
|
pageInfo {
|
|
@@ -5209,6 +5440,10 @@ export const GetOwnedObjectsDocument = new TypedDocumentString(`
|
|
|
5209
5440
|
contents {
|
|
5210
5441
|
bcs @include(if: $includeContent)
|
|
5211
5442
|
json @include(if: $includeJson)
|
|
5443
|
+
display @include(if: $includeDisplay) {
|
|
5444
|
+
output
|
|
5445
|
+
errors
|
|
5446
|
+
}
|
|
5212
5447
|
type {
|
|
5213
5448
|
repr
|
|
5214
5449
|
}
|
|
@@ -5243,7 +5478,7 @@ fragment OBJECT_OWNER_FIELDS on Owner {
|
|
|
5243
5478
|
}
|
|
5244
5479
|
}`) as unknown as TypedDocumentString<GetOwnedObjectsQuery, GetOwnedObjectsQueryVariables>;
|
|
5245
5480
|
export const MultiGetObjectsDocument = new TypedDocumentString(`
|
|
5246
|
-
query multiGetObjects($objectKeys: [ObjectKey!]!, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false) {
|
|
5481
|
+
query multiGetObjects($objectKeys: [ObjectKey!]!, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false, $includeDisplay: Boolean = false) {
|
|
5247
5482
|
multiGetObjects(keys: $objectKeys) {
|
|
5248
5483
|
...OBJECT_FIELDS
|
|
5249
5484
|
}
|
|
@@ -5257,6 +5492,10 @@ export const MultiGetObjectsDocument = new TypedDocumentString(`
|
|
|
5257
5492
|
contents {
|
|
5258
5493
|
bcs @include(if: $includeContent)
|
|
5259
5494
|
json @include(if: $includeJson)
|
|
5495
|
+
display @include(if: $includeDisplay) {
|
|
5496
|
+
output
|
|
5497
|
+
errors
|
|
5498
|
+
}
|
|
5260
5499
|
type {
|
|
5261
5500
|
repr
|
|
5262
5501
|
}
|
|
@@ -5592,7 +5831,6 @@ export const VerifyZkLoginSignatureDocument = new TypedDocumentString(`
|
|
|
5592
5831
|
author: $author
|
|
5593
5832
|
) {
|
|
5594
5833
|
success
|
|
5595
|
-
error
|
|
5596
5834
|
}
|
|
5597
5835
|
}
|
|
5598
5836
|
`) as unknown as TypedDocumentString<VerifyZkLoginSignatureQuery, VerifyZkLoginSignatureQueryVariables>;
|