@mysten/sui 1.34.0 → 1.36.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 +20 -0
- package/README.md +0 -32
- package/dist/cjs/bcs/bcs.d.ts +5 -10
- package/dist/cjs/bcs/bcs.js +2 -4
- package/dist/cjs/bcs/bcs.js.map +2 -2
- package/dist/cjs/bcs/effects.d.ts +30 -60
- package/dist/cjs/bcs/index.d.ts +35 -70
- package/dist/cjs/client/types/generated.d.ts +22 -14
- package/dist/cjs/client/types/generated.js.map +1 -1
- package/dist/cjs/client/types/params.d.ts +1 -1
- package/dist/cjs/client/types/params.js.map +1 -1
- package/dist/cjs/experimental/client.d.ts +1 -1
- package/dist/cjs/experimental/client.js +6 -2
- package/dist/cjs/experimental/client.js.map +2 -2
- package/dist/cjs/experimental/core.d.ts +1 -0
- package/dist/cjs/experimental/core.js +6 -2
- package/dist/cjs/experimental/core.js.map +2 -2
- package/dist/cjs/experimental/transports/graphql.js +8 -2
- package/dist/cjs/experimental/transports/graphql.js.map +2 -2
- package/dist/cjs/experimental/transports/json-rpc-resolver.js +1 -1
- package/dist/cjs/experimental/transports/json-rpc-resolver.js.map +2 -2
- package/dist/cjs/experimental/transports/jsonRPC.js +5 -8
- package/dist/cjs/experimental/transports/jsonRPC.js.map +2 -2
- package/dist/cjs/experimental/types.d.ts +8 -11
- package/dist/cjs/experimental/types.js.map +1 -1
- package/dist/cjs/graphql/generated/latest/tada-env.d.ts +33 -32
- package/dist/cjs/graphql/generated/latest/tada-env.js +38 -39
- package/dist/cjs/graphql/generated/latest/tada-env.js.map +2 -2
- package/dist/cjs/graphql/generated/queries.d.ts +36 -34
- package/dist/cjs/graphql/generated/queries.js +24 -30
- package/dist/cjs/graphql/generated/queries.js.map +2 -2
- package/dist/cjs/transactions/Transaction.d.ts +2 -2
- package/dist/cjs/transactions/Transaction.js +3 -0
- package/dist/cjs/transactions/Transaction.js.map +2 -2
- package/dist/cjs/transactions/TransactionData.d.ts +2 -2
- package/dist/cjs/transactions/resolve.js +3 -6
- package/dist/cjs/transactions/resolve.js.map +2 -2
- package/dist/cjs/version.d.ts +2 -2
- package/dist/cjs/version.js +2 -2
- package/dist/cjs/version.js.map +1 -1
- package/dist/cjs/zklogin/publickey.d.ts +1 -1
- package/dist/cjs/zklogin/publickey.js.map +2 -2
- package/dist/esm/bcs/bcs.d.ts +5 -10
- package/dist/esm/bcs/bcs.js +2 -4
- package/dist/esm/bcs/bcs.js.map +2 -2
- package/dist/esm/bcs/effects.d.ts +30 -60
- package/dist/esm/bcs/index.d.ts +35 -70
- package/dist/esm/client/types/generated.d.ts +22 -14
- package/dist/esm/client/types/params.d.ts +1 -1
- package/dist/esm/experimental/client.d.ts +1 -1
- package/dist/esm/experimental/client.js +6 -2
- package/dist/esm/experimental/client.js.map +2 -2
- package/dist/esm/experimental/core.d.ts +1 -0
- package/dist/esm/experimental/core.js +6 -2
- package/dist/esm/experimental/core.js.map +2 -2
- package/dist/esm/experimental/transports/graphql.js +8 -2
- package/dist/esm/experimental/transports/graphql.js.map +2 -2
- package/dist/esm/experimental/transports/json-rpc-resolver.js +1 -1
- package/dist/esm/experimental/transports/json-rpc-resolver.js.map +2 -2
- package/dist/esm/experimental/transports/jsonRPC.js +5 -8
- package/dist/esm/experimental/transports/jsonRPC.js.map +2 -2
- package/dist/esm/experimental/types.d.ts +8 -11
- package/dist/esm/graphql/generated/latest/tada-env.d.ts +33 -32
- package/dist/esm/graphql/generated/latest/tada-env.js +38 -39
- package/dist/esm/graphql/generated/latest/tada-env.js.map +2 -2
- package/dist/esm/graphql/generated/queries.d.ts +36 -34
- package/dist/esm/graphql/generated/queries.js +24 -30
- package/dist/esm/graphql/generated/queries.js.map +2 -2
- package/dist/esm/transactions/Transaction.d.ts +2 -2
- package/dist/esm/transactions/Transaction.js +3 -0
- package/dist/esm/transactions/Transaction.js.map +2 -2
- package/dist/esm/transactions/TransactionData.d.ts +2 -2
- package/dist/esm/transactions/resolve.js +3 -6
- package/dist/esm/transactions/resolve.js.map +2 -2
- package/dist/esm/version.d.ts +2 -2
- package/dist/esm/version.js +2 -2
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/zklogin/publickey.d.ts +1 -1
- package/dist/esm/zklogin/publickey.js.map +2 -2
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/bcs/bcs.ts +2 -4
- package/src/client/types/generated.ts +23 -13
- package/src/client/types/params.ts +1 -2
- package/src/experimental/client.ts +7 -2
- package/src/experimental/core.ts +12 -2
- package/src/experimental/transports/graphql.ts +8 -2
- package/src/experimental/transports/json-rpc-resolver.ts +6 -2
- package/src/experimental/transports/jsonRPC.ts +5 -8
- package/src/experimental/types.ts +13 -13
- package/src/graphql/generated/latest/schema.graphql +15 -18
- package/src/graphql/generated/latest/tada-env.ts +38 -39
- package/src/graphql/generated/queries.ts +42 -53
- package/src/graphql/queries/objects.graphql +4 -5
- package/src/transactions/Transaction.ts +4 -0
- package/src/transactions/resolve.ts +3 -6
- package/src/version.ts +2 -2
- package/src/zklogin/publickey.ts +1 -3
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mysten/sui",
|
|
3
3
|
"author": "Mysten Labs <build@mystenlabs.com>",
|
|
4
|
-
"description": "Sui TypeScript API
|
|
4
|
+
"description": "Sui TypeScript API",
|
|
5
5
|
"homepage": "https://sdk.mystenlabs.com",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.36.0",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"files": [
|
|
@@ -147,8 +147,8 @@
|
|
|
147
147
|
"graphql": "^16.11.0",
|
|
148
148
|
"poseidon-lite": "^0.2.0",
|
|
149
149
|
"valibot": "^0.36.0",
|
|
150
|
-
"@mysten/bcs": "1.6.
|
|
151
|
-
"@mysten/utils": "0.1.
|
|
150
|
+
"@mysten/bcs": "1.6.4",
|
|
151
|
+
"@mysten/utils": "0.1.1"
|
|
152
152
|
},
|
|
153
153
|
"scripts": {
|
|
154
154
|
"clean": "rm -rf tsconfig.tsbuildinfo ./dist",
|
package/src/bcs/bcs.ts
CHANGED
|
@@ -75,10 +75,8 @@ export const Owner = bcs.enum('Owner', {
|
|
|
75
75
|
initialSharedVersion: bcs.u64(),
|
|
76
76
|
}),
|
|
77
77
|
Immutable: null,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
SingleOwner: Address,
|
|
81
|
-
}),
|
|
78
|
+
ConsensusAddressOwner: bcs.struct('ConsensusAddressOwner', {
|
|
79
|
+
owner: Address,
|
|
82
80
|
startVersion: bcs.u64(),
|
|
83
81
|
}),
|
|
84
82
|
});
|
|
@@ -10,11 +10,6 @@
|
|
|
10
10
|
* /crates/sui-open-rpc/spec/openrpc.json
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export type Authenticator =
|
|
14
|
-
/** The contained SuiAddress exclusively has all permissions: read, write, delete, transfer */
|
|
15
|
-
{
|
|
16
|
-
SingleOwner: string;
|
|
17
|
-
};
|
|
18
13
|
export interface Balance {
|
|
19
14
|
coinObjectCount: number;
|
|
20
15
|
coinType: string;
|
|
@@ -680,15 +675,10 @@ export type ObjectOwner =
|
|
|
680
675
|
initial_shared_version: string;
|
|
681
676
|
};
|
|
682
677
|
}
|
|
683
|
-
| 'Immutable' /**
|
|
684
|
-
* Object is sequenced via consensus. Ownership is managed by the configured authenticator.
|
|
685
|
-
*
|
|
686
|
-
* Note: wondering what happened to `V1`? `Shared` above was the V1 of consensus objects.
|
|
687
|
-
*/
|
|
678
|
+
| 'Immutable' /** Object is exclusively owned by a single address and sequenced via consensus. */
|
|
688
679
|
| {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
authenticator: Authenticator;
|
|
680
|
+
ConsensusAddressOwner: {
|
|
681
|
+
owner: string;
|
|
692
682
|
/**
|
|
693
683
|
* The version at which the object most recently became a consensus object. This serves the same
|
|
694
684
|
* function as `initial_shared_version`, except it may change if the object's Owner type changes.
|
|
@@ -966,6 +956,7 @@ export type SuiEndOfEpochTransactionKind =
|
|
|
966
956
|
| 'RandomnessStateCreate'
|
|
967
957
|
| 'CoinDenyListStateCreate'
|
|
968
958
|
| 'StoreExecutionTimeObservations'
|
|
959
|
+
| 'AccumulatorRootCreate'
|
|
969
960
|
| {
|
|
970
961
|
ChangeEpoch: SuiChangeEpoch;
|
|
971
962
|
}
|
|
@@ -998,6 +989,12 @@ export type SuiMoveAbility = 'Copy' | 'Drop' | 'Store' | 'Key';
|
|
|
998
989
|
export interface SuiMoveAbilitySet {
|
|
999
990
|
abilities: SuiMoveAbility[];
|
|
1000
991
|
}
|
|
992
|
+
export interface SuiMoveAbort {
|
|
993
|
+
error_code?: string | null;
|
|
994
|
+
function?: string | null;
|
|
995
|
+
line?: number | null;
|
|
996
|
+
module_id?: string | null;
|
|
997
|
+
}
|
|
1001
998
|
export interface SuiMoveModuleId {
|
|
1002
999
|
address: string;
|
|
1003
1000
|
name: string;
|
|
@@ -1005,6 +1002,7 @@ export interface SuiMoveModuleId {
|
|
|
1005
1002
|
export interface SuiMoveNormalizedEnum {
|
|
1006
1003
|
abilities: SuiMoveAbilitySet;
|
|
1007
1004
|
typeParameters: SuiMoveStructTypeParameter[];
|
|
1005
|
+
variantDeclarationOrder?: string[] | null;
|
|
1008
1006
|
variants: {
|
|
1009
1007
|
[key: string]: SuiMoveNormalizedField[];
|
|
1010
1008
|
};
|
|
@@ -1365,6 +1363,8 @@ export type TransactionBlockData = {
|
|
|
1365
1363
|
export type TransactionEffects =
|
|
1366
1364
|
/** The response from processing a transaction or a certified transaction */
|
|
1367
1365
|
{
|
|
1366
|
+
/** The abort error populated if the transaction failed with an abort code. */
|
|
1367
|
+
abortError?: SuiMoveAbort | null;
|
|
1368
1368
|
/** ObjectRef and owner of new objects created. */
|
|
1369
1369
|
created?: OwnedObjectRef[];
|
|
1370
1370
|
/** Object Refs of objects now deleted (the old refs). */
|
|
@@ -1486,6 +1486,16 @@ export type SuiTransactionBlockKind =
|
|
|
1486
1486
|
kind: 'ConsensusCommitPrologueV4';
|
|
1487
1487
|
round: string;
|
|
1488
1488
|
sub_dag_index?: string | null;
|
|
1489
|
+
} /** A series of commands where the results of one command can be used in future commands */
|
|
1490
|
+
| {
|
|
1491
|
+
/** Input objects or primitive values */
|
|
1492
|
+
inputs: SuiCallArg[];
|
|
1493
|
+
kind: 'ProgrammableSystemTransaction';
|
|
1494
|
+
/**
|
|
1495
|
+
* The transactions to be executed sequentially. A failure in any transaction will result in the
|
|
1496
|
+
* failure of the entire programmable transaction block.
|
|
1497
|
+
*/
|
|
1498
|
+
transactions: SuiTransaction[];
|
|
1489
1499
|
};
|
|
1490
1500
|
export interface SuiTransactionBlockResponse {
|
|
1491
1501
|
balanceChanges?: BalanceChange[] | null;
|
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
* /crates/sui-open-rpc/spec/openrpc.json
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import type { Transaction } from '../../transactions/index.js';
|
|
14
13
|
import type * as RpcTypes from './generated.js';
|
|
15
|
-
|
|
14
|
+
import type { Transaction } from '../../transactions/index.js';
|
|
16
15
|
/**
|
|
17
16
|
* Runs the transaction in dev-inspect mode. Which allows for nearly any transaction (or Move call)
|
|
18
17
|
* with any arguments. Detailed results are provided, including both the transaction effects and any
|
|
@@ -13,12 +13,17 @@ import type {
|
|
|
13
13
|
|
|
14
14
|
export abstract class Experimental_BaseClient {
|
|
15
15
|
network: Experimental_SuiClientTypes.Network;
|
|
16
|
-
cache
|
|
16
|
+
cache: ClientCache;
|
|
17
17
|
base: Experimental_BaseClient;
|
|
18
18
|
|
|
19
|
-
constructor({
|
|
19
|
+
constructor({
|
|
20
|
+
network,
|
|
21
|
+
base,
|
|
22
|
+
cache = base?.cache ?? new ClientCache(),
|
|
23
|
+
}: Experimental_SuiClientTypes.SuiClientOptions) {
|
|
20
24
|
this.network = network;
|
|
21
25
|
this.base = base ?? this;
|
|
26
|
+
this.cache = cache;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
abstract core: Experimental_CoreClient;
|
package/src/experimental/core.ts
CHANGED
|
@@ -19,6 +19,11 @@ export interface Experimental_CoreClientOptions
|
|
|
19
19
|
mvr?: Experimental_SuiClientTypes.MvrOptions;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
const DEFAULT_MVR_URLS: Record<string, string> = {
|
|
23
|
+
mainnet: 'https://mainnet.mvr.mystenlabs.com',
|
|
24
|
+
testnet: 'https://testnet.mvr.mystenlabs.com',
|
|
25
|
+
};
|
|
26
|
+
|
|
22
27
|
export abstract class Experimental_CoreClient
|
|
23
28
|
extends Experimental_BaseClient
|
|
24
29
|
implements Experimental_SuiClientTypes.TransportMethods
|
|
@@ -28,9 +33,10 @@ export abstract class Experimental_CoreClient
|
|
|
28
33
|
|
|
29
34
|
constructor(options: Experimental_CoreClientOptions) {
|
|
30
35
|
super(options);
|
|
36
|
+
|
|
31
37
|
this.mvr = new MvrClient({
|
|
32
|
-
cache: this.
|
|
33
|
-
url: options.mvr?.url,
|
|
38
|
+
cache: this.cache.scope('core.mvr'),
|
|
39
|
+
url: options.mvr?.url ?? DEFAULT_MVR_URLS[this.network],
|
|
34
40
|
pageSize: options.mvr?.pageSize,
|
|
35
41
|
overrides: options.mvr?.overrides,
|
|
36
42
|
});
|
|
@@ -91,6 +97,10 @@ export abstract class Experimental_CoreClient
|
|
|
91
97
|
|
|
92
98
|
abstract resolveTransactionPlugin(): TransactionPlugin;
|
|
93
99
|
|
|
100
|
+
abstract verifyZkLoginSignature(
|
|
101
|
+
options: Experimental_SuiClientTypes.VerifyZkLoginSignatureOptions,
|
|
102
|
+
): Promise<Experimental_SuiClientTypes.ZkLoginVerifyResponse>;
|
|
103
|
+
|
|
94
104
|
async getDynamicField(
|
|
95
105
|
options: Experimental_SuiClientTypes.GetDynamicFieldOptions,
|
|
96
106
|
): Promise<Experimental_SuiClientTypes.GetDynamicFieldResponse> {
|
|
@@ -413,8 +413,14 @@ function mapOwner(owner: Object_Owner_FieldsFragment): Experimental_SuiClientTyp
|
|
|
413
413
|
switch (owner.__typename) {
|
|
414
414
|
case 'AddressOwner':
|
|
415
415
|
return { $kind: 'AddressOwner', AddressOwner: owner.owner?.asAddress?.address };
|
|
416
|
-
case '
|
|
417
|
-
return {
|
|
416
|
+
case 'ConsensusAddressOwner':
|
|
417
|
+
return {
|
|
418
|
+
$kind: 'ConsensusAddressOwner',
|
|
419
|
+
ConsensusAddressOwner: {
|
|
420
|
+
owner: owner.owner?.address,
|
|
421
|
+
startVersion: owner.startVersion,
|
|
422
|
+
},
|
|
423
|
+
};
|
|
418
424
|
case 'Immutable':
|
|
419
425
|
return { $kind: 'Immutable', Immutable: true };
|
|
420
426
|
case 'Parent':
|
|
@@ -170,8 +170,12 @@ async function resolveObjectReferences(transactionData: TransactionDataBuilder,
|
|
|
170
170
|
}
|
|
171
171
|
const owner = object.data.owner;
|
|
172
172
|
const initialSharedVersion =
|
|
173
|
-
owner && typeof owner === 'object'
|
|
174
|
-
? owner
|
|
173
|
+
owner && typeof owner === 'object'
|
|
174
|
+
? 'Shared' in owner
|
|
175
|
+
? owner.Shared.initial_shared_version
|
|
176
|
+
: 'ConsensusAddressOwner' in owner
|
|
177
|
+
? owner.ConsensusAddressOwner.start_version
|
|
178
|
+
: null
|
|
175
179
|
: null;
|
|
176
180
|
|
|
177
181
|
return {
|
|
@@ -291,15 +291,12 @@ function parseOwner(owner: ObjectOwner): Experimental_SuiClientTypes.ObjectOwner
|
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
if ('
|
|
294
|
+
if ('ConsensusAddressOwner' in owner) {
|
|
295
295
|
return {
|
|
296
|
-
$kind: '
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
SingleOwner: owner.ConsensusV2.authenticator.SingleOwner,
|
|
301
|
-
},
|
|
302
|
-
startVersion: owner.ConsensusV2.start_version,
|
|
296
|
+
$kind: 'ConsensusAddressOwner',
|
|
297
|
+
ConsensusAddressOwner: {
|
|
298
|
+
owner: owner.ConsensusAddressOwner.owner,
|
|
299
|
+
startVersion: owner.ConsensusAddressOwner.start_version,
|
|
303
300
|
},
|
|
304
301
|
};
|
|
305
302
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
4
4
|
|
|
5
5
|
import type { SerializedTransactionDataV2, TransactionPlugin } from '../transactions/index.js';
|
|
6
|
+
import type { ClientCache } from './cache.js';
|
|
6
7
|
import type { Experimental_BaseClient } from './client.js';
|
|
7
8
|
|
|
8
9
|
export type SuiClientRegistration<
|
|
@@ -38,6 +39,7 @@ export namespace Experimental_SuiClientTypes {
|
|
|
38
39
|
export interface SuiClientOptions {
|
|
39
40
|
network: Network;
|
|
40
41
|
base?: Experimental_BaseClient;
|
|
42
|
+
cache?: ClientCache;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
export interface MvrOptions {
|
|
@@ -265,7 +267,7 @@ export namespace Experimental_SuiClientTypes {
|
|
|
265
267
|
}
|
|
266
268
|
|
|
267
269
|
export interface TransportMethods {
|
|
268
|
-
verifyZkLoginSignature
|
|
270
|
+
verifyZkLoginSignature: (
|
|
269
271
|
options: VerifyZkLoginSignatureOptions,
|
|
270
272
|
) => Promise<ZkLoginVerifyResponse>;
|
|
271
273
|
}
|
|
@@ -361,22 +363,20 @@ export namespace Experimental_SuiClientTypes {
|
|
|
361
363
|
Immutable: true;
|
|
362
364
|
}
|
|
363
365
|
|
|
364
|
-
export interface
|
|
365
|
-
$kind: '
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
export interface ConsensusAddressOwner {
|
|
367
|
+
$kind: 'ConsensusAddressOwner';
|
|
368
|
+
ConsensusAddressOwner: {
|
|
369
|
+
owner: string;
|
|
368
370
|
startVersion: string;
|
|
369
371
|
};
|
|
370
372
|
}
|
|
371
373
|
|
|
372
|
-
export
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
export type ObjectOwner = AddressOwner | ParentOwner | SharedOwner | ImmutableOwner | ConsensusV2;
|
|
374
|
+
export type ObjectOwner =
|
|
375
|
+
| AddressOwner
|
|
376
|
+
| ParentOwner
|
|
377
|
+
| SharedOwner
|
|
378
|
+
| ImmutableOwner
|
|
379
|
+
| ConsensusAddressOwner;
|
|
380
380
|
|
|
381
381
|
/** Effects */
|
|
382
382
|
|
|
@@ -174,11 +174,6 @@ enum AddressTransactionBlockRelationship {
|
|
|
174
174
|
AFFECTED
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
"""
|
|
178
|
-
An Authenticator represents the access control rules for a ConsensusV2 object.
|
|
179
|
-
"""
|
|
180
|
-
union Authenticator = Address
|
|
181
|
-
|
|
182
177
|
"""
|
|
183
178
|
System transaction for creating the on-chain state used by zkLogin.
|
|
184
179
|
"""
|
|
@@ -833,6 +828,14 @@ type CoinMetadata implements IMoveObject & IObject & IOwner {
|
|
|
833
828
|
supply: BigInt
|
|
834
829
|
}
|
|
835
830
|
|
|
831
|
+
"""
|
|
832
|
+
Same as AddressOwner, but the object is versioned by consensus.
|
|
833
|
+
"""
|
|
834
|
+
type ConsensusAddressOwner {
|
|
835
|
+
startVersion: UInt53!
|
|
836
|
+
owner: Owner
|
|
837
|
+
}
|
|
838
|
+
|
|
836
839
|
"""
|
|
837
840
|
System transaction that runs at the beginning of a checkpoint, and is responsible for setting
|
|
838
841
|
the current value of the clock, based on the timestamp from consensus.
|
|
@@ -857,16 +860,6 @@ type ConsensusCommitPrologueTransaction {
|
|
|
857
860
|
consensusCommitDigest: String
|
|
858
861
|
}
|
|
859
862
|
|
|
860
|
-
"""
|
|
861
|
-
A ConsensusV2 object is an object that is automatically versioned by the consensus protocol
|
|
862
|
-
and allows different authentication modes based on the chosen authenticator.
|
|
863
|
-
(Initially, only single-owner authentication is supported.)
|
|
864
|
-
"""
|
|
865
|
-
type ConsensusV2 {
|
|
866
|
-
startVersion: UInt53!
|
|
867
|
-
authenticator: Authenticator
|
|
868
|
-
}
|
|
869
|
-
|
|
870
863
|
"""
|
|
871
864
|
ISO-8601 Date and Time: RFC3339 in UTC with format: YYYY-MM-DDTHH:MM:SS.mmmZ. Note that the milliseconds part is optional, and it may be omitted if its value is 0.
|
|
872
865
|
"""
|
|
@@ -2918,9 +2911,9 @@ enum ObjectKind {
|
|
|
2918
2911
|
}
|
|
2919
2912
|
|
|
2920
2913
|
"""
|
|
2921
|
-
The object's owner type: Immutable, Shared, Parent, or
|
|
2914
|
+
The object's owner type: Immutable, Shared, Parent, Address, or ConsensusAddress.
|
|
2922
2915
|
"""
|
|
2923
|
-
union ObjectOwner = Immutable | Shared | Parent | AddressOwner |
|
|
2916
|
+
union ObjectOwner = Immutable | Shared | Parent | AddressOwner | ConsensusAddressOwner
|
|
2924
2917
|
|
|
2925
2918
|
input ObjectRef {
|
|
2926
2919
|
"""
|
|
@@ -4299,6 +4292,10 @@ type TransactionBlockEffects {
|
|
|
4299
4292
|
"""
|
|
4300
4293
|
errors: String
|
|
4301
4294
|
"""
|
|
4295
|
+
The error code of the Move abort, populated if this transaction failed with a Move abort.
|
|
4296
|
+
"""
|
|
4297
|
+
abortCode: BigInt
|
|
4298
|
+
"""
|
|
4302
4299
|
Transactions whose outputs this transaction depends upon.
|
|
4303
4300
|
"""
|
|
4304
4301
|
dependencies(first: Int, after: String, last: Int, before: String): DependencyConnection!
|
|
@@ -4447,7 +4444,7 @@ type TransactionInputEdge {
|
|
|
4447
4444
|
|
|
4448
4445
|
"""
|
|
4449
4446
|
The optional extra data a user can provide to a transaction dry run.
|
|
4450
|
-
`sender` defaults to `0x0`. If gasObjects` is not present, or is an empty list,
|
|
4447
|
+
`sender` defaults to `0x0`. If `gasObjects` is not present, or is an empty list,
|
|
4451
4448
|
it is substituted with a mock Coin object, `gasPrice` defaults to the reference
|
|
4452
4449
|
gas price, `gasBudget` defaults to the max gas budget and `gasSponsor` defaults
|
|
4453
4450
|
to the sender.
|
|
@@ -661,16 +661,6 @@ const introspection = {
|
|
|
661
661
|
}
|
|
662
662
|
]
|
|
663
663
|
},
|
|
664
|
-
{
|
|
665
|
-
"kind": "UNION",
|
|
666
|
-
"name": "Authenticator",
|
|
667
|
-
"possibleTypes": [
|
|
668
|
-
{
|
|
669
|
-
"kind": "OBJECT",
|
|
670
|
-
"name": "Address"
|
|
671
|
-
}
|
|
672
|
-
]
|
|
673
|
-
},
|
|
674
664
|
{
|
|
675
665
|
"kind": "OBJECT",
|
|
676
666
|
"name": "AuthenticatorStateCreateTransaction",
|
|
@@ -2722,6 +2712,34 @@ const introspection = {
|
|
|
2722
2712
|
}
|
|
2723
2713
|
]
|
|
2724
2714
|
},
|
|
2715
|
+
{
|
|
2716
|
+
"kind": "OBJECT",
|
|
2717
|
+
"name": "ConsensusAddressOwner",
|
|
2718
|
+
"fields": [
|
|
2719
|
+
{
|
|
2720
|
+
"name": "owner",
|
|
2721
|
+
"type": {
|
|
2722
|
+
"kind": "OBJECT",
|
|
2723
|
+
"name": "Owner"
|
|
2724
|
+
},
|
|
2725
|
+
"args": [],
|
|
2726
|
+
"isDeprecated": false
|
|
2727
|
+
},
|
|
2728
|
+
{
|
|
2729
|
+
"name": "startVersion",
|
|
2730
|
+
"type": {
|
|
2731
|
+
"kind": "NON_NULL",
|
|
2732
|
+
"ofType": {
|
|
2733
|
+
"kind": "SCALAR",
|
|
2734
|
+
"name": "UInt53"
|
|
2735
|
+
}
|
|
2736
|
+
},
|
|
2737
|
+
"args": [],
|
|
2738
|
+
"isDeprecated": false
|
|
2739
|
+
}
|
|
2740
|
+
],
|
|
2741
|
+
"interfaces": []
|
|
2742
|
+
},
|
|
2725
2743
|
{
|
|
2726
2744
|
"kind": "OBJECT",
|
|
2727
2745
|
"name": "ConsensusCommitPrologueTransaction",
|
|
@@ -2771,34 +2789,6 @@ const introspection = {
|
|
|
2771
2789
|
],
|
|
2772
2790
|
"interfaces": []
|
|
2773
2791
|
},
|
|
2774
|
-
{
|
|
2775
|
-
"kind": "OBJECT",
|
|
2776
|
-
"name": "ConsensusV2",
|
|
2777
|
-
"fields": [
|
|
2778
|
-
{
|
|
2779
|
-
"name": "authenticator",
|
|
2780
|
-
"type": {
|
|
2781
|
-
"kind": "UNION",
|
|
2782
|
-
"name": "Authenticator"
|
|
2783
|
-
},
|
|
2784
|
-
"args": [],
|
|
2785
|
-
"isDeprecated": false
|
|
2786
|
-
},
|
|
2787
|
-
{
|
|
2788
|
-
"name": "startVersion",
|
|
2789
|
-
"type": {
|
|
2790
|
-
"kind": "NON_NULL",
|
|
2791
|
-
"ofType": {
|
|
2792
|
-
"kind": "SCALAR",
|
|
2793
|
-
"name": "UInt53"
|
|
2794
|
-
}
|
|
2795
|
-
},
|
|
2796
|
-
"args": [],
|
|
2797
|
-
"isDeprecated": false
|
|
2798
|
-
}
|
|
2799
|
-
],
|
|
2800
|
-
"interfaces": []
|
|
2801
|
-
},
|
|
2802
2792
|
{
|
|
2803
2793
|
"kind": "SCALAR",
|
|
2804
2794
|
"name": "DateTime"
|
|
@@ -8847,7 +8837,7 @@ const introspection = {
|
|
|
8847
8837
|
},
|
|
8848
8838
|
{
|
|
8849
8839
|
"kind": "OBJECT",
|
|
8850
|
-
"name": "
|
|
8840
|
+
"name": "ConsensusAddressOwner"
|
|
8851
8841
|
},
|
|
8852
8842
|
{
|
|
8853
8843
|
"kind": "OBJECT",
|
|
@@ -13040,6 +13030,15 @@ const introspection = {
|
|
|
13040
13030
|
"kind": "OBJECT",
|
|
13041
13031
|
"name": "TransactionBlockEffects",
|
|
13042
13032
|
"fields": [
|
|
13033
|
+
{
|
|
13034
|
+
"name": "abortCode",
|
|
13035
|
+
"type": {
|
|
13036
|
+
"kind": "SCALAR",
|
|
13037
|
+
"name": "BigInt"
|
|
13038
|
+
},
|
|
13039
|
+
"args": [],
|
|
13040
|
+
"isDeprecated": false
|
|
13041
|
+
},
|
|
13043
13042
|
{
|
|
13044
13043
|
"name": "balanceChanges",
|
|
13045
13044
|
"type": {
|