@mysten/sui 2.16.2 → 2.17.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 +31 -0
- package/dist/bcs/bcs.d.mts +6 -6
- package/dist/client/core-resolver.mjs +21 -12
- package/dist/client/core-resolver.mjs.map +1 -1
- package/dist/cryptography/signature.d.mts +6 -6
- package/dist/graphql/generated/queries.d.mts.map +1 -1
- package/dist/graphql/generated/queries.mjs.map +1 -1
- package/dist/graphql/generated/tada-env.d.mts +82 -1
- package/dist/grpc/client.d.mts +2 -0
- package/dist/grpc/client.d.mts.map +1 -1
- package/dist/grpc/client.mjs +2 -0
- package/dist/grpc/client.mjs.map +1 -1
- package/dist/grpc/proto/google/protobuf/struct.mjs +1 -1
- package/dist/grpc/proto/google/protobuf/struct.mjs.map +1 -1
- package/dist/grpc/proto/google/rpc/status.mjs +1 -1
- package/dist/grpc/proto/google/rpc/status.mjs.map +1 -1
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.d.mts +66 -0
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.d.mts.map +1 -0
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.mjs +48 -0
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.mjs.map +1 -0
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.d.mts +135 -0
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.d.mts.map +1 -0
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.mjs +144 -0
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.mjs.map +1 -0
- package/dist/grpc/proto/sui/rpc/v2/checkpoint.mjs +1 -1
- package/dist/grpc/proto/sui/rpc/v2/checkpoint.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/checkpoint_contents.mjs +3 -3
- package/dist/grpc/proto/sui/rpc/v2/checkpoint_contents.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/checkpoint_summary.mjs +3 -3
- package/dist/grpc/proto/sui/rpc/v2/checkpoint_summary.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/effects.d.mts +71 -3
- package/dist/grpc/proto/sui/rpc/v2/effects.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/effects.mjs +71 -5
- package/dist/grpc/proto/sui/rpc/v2/effects.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/event.mjs +1 -1
- package/dist/grpc/proto/sui/rpc/v2/event.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/executed_transaction.mjs +2 -2
- package/dist/grpc/proto/sui/rpc/v2/executed_transaction.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs +3 -3
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/move_package.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/move_package.mjs +13 -13
- package/dist/grpc/proto/sui/rpc/v2/move_package.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/move_package_service.mjs +1 -1
- package/dist/grpc/proto/sui/rpc/v2/move_package_service.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/name_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/object.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/object.mjs +1 -1
- package/dist/grpc/proto/sui/rpc/v2/object.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/signature.mjs +3 -3
- package/dist/grpc/proto/sui/rpc/v2/signature.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/signature_verification_service.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.mjs +1 -1
- package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/state_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/state_service.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/state_service.mjs +3 -3
- package/dist/grpc/proto/sui/rpc/v2/state_service.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/system_state.mjs +2 -2
- package/dist/grpc/proto/sui/rpc/v2/system_state.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction.mjs +16 -16
- package/dist/grpc/proto/sui/rpc/v2/transaction.mjs.map +1 -1
- 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.mjs +4 -4
- package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.mjs.map +1 -1
- package/dist/grpc/proto/types.d.mts +3 -2
- package/dist/grpc/proto/types.mjs +11 -1
- package/dist/grpc/proto/types.mjs.map +1 -1
- package/dist/jsonRpc/types/params.d.mts +5 -5
- package/dist/transactions/Transaction.d.mts +7 -7
- package/dist/transactions/Transaction.d.mts.map +1 -1
- package/dist/transactions/data/internal.d.mts +109 -109
- package/dist/transactions/data/internal.d.mts.map +1 -1
- package/dist/transactions/data/v1.d.mts +220 -220
- 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/version.mjs +1 -1
- package/dist/version.mjs.map +1 -1
- package/dist/zklogin/bcs.d.mts +14 -14
- package/dist/zklogin/bcs.d.mts.map +1 -1
- package/package.json +2 -2
- package/src/client/core-resolver.ts +48 -13
- package/src/graphql/generated/queries.ts +46 -1
- package/src/graphql/generated/schema.graphql +49 -3
- package/src/graphql/generated/tada-env.ts +97 -1
- package/src/grpc/client.ts +3 -0
- package/src/grpc/proto/google/protobuf/struct.ts +1 -1
- package/src/grpc/proto/google/rpc/error_details.ts +4 -4
- package/src/grpc/proto/google/rpc/status.ts +1 -1
- package/src/grpc/proto/sui/forking/v1alpha/forking_service.client.ts +125 -0
- package/src/grpc/proto/sui/forking/v1alpha/forking_service.ts +230 -0
- package/src/grpc/proto/sui/rpc/v2/checkpoint.ts +1 -1
- package/src/grpc/proto/sui/rpc/v2/checkpoint_contents.ts +3 -3
- package/src/grpc/proto/sui/rpc/v2/checkpoint_summary.ts +3 -3
- package/src/grpc/proto/sui/rpc/v2/effects.ts +112 -6
- package/src/grpc/proto/sui/rpc/v2/event.ts +1 -1
- package/src/grpc/proto/sui/rpc/v2/executed_transaction.ts +2 -2
- package/src/grpc/proto/sui/rpc/v2/ledger_service.ts +3 -3
- package/src/grpc/proto/sui/rpc/v2/move_package.ts +19 -13
- package/src/grpc/proto/sui/rpc/v2/move_package_service.ts +1 -1
- package/src/grpc/proto/sui/rpc/v2/object.ts +7 -1
- package/src/grpc/proto/sui/rpc/v2/signature.ts +3 -3
- package/src/grpc/proto/sui/rpc/v2/signature_verification_service.ts +7 -1
- package/src/grpc/proto/sui/rpc/v2/state_service.ts +9 -3
- package/src/grpc/proto/sui/rpc/v2/system_state.ts +2 -2
- package/src/grpc/proto/sui/rpc/v2/transaction.ts +22 -16
- package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.ts +4 -4
- package/src/grpc/proto/types.ts +1 -0
- package/src/jsonRpc/types/params.ts +5 -5
- package/src/version.ts +1 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// Copyright (c) Mysten Labs, Inc.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck
|
|
5
|
+
// @generated from protobuf file "sui/forking/v1alpha/forking_service.proto" (package "sui.forking.v1alpha", syntax proto3)
|
|
6
|
+
// tslint:disable
|
|
7
|
+
// @ts-nocheck
|
|
8
|
+
//
|
|
9
|
+
// Copyright (c) Mysten Labs, Inc.
|
|
10
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
+
//
|
|
12
|
+
import type { RpcTransport } from '@protobuf-ts/runtime-rpc';
|
|
13
|
+
import type { ServiceInfo } from '@protobuf-ts/runtime-rpc';
|
|
14
|
+
import { ForkingService } from './forking_service.js';
|
|
15
|
+
import type { GetStatusResponse } from './forking_service.js';
|
|
16
|
+
import type { GetStatusRequest } from './forking_service.js';
|
|
17
|
+
import type { AdvanceCheckpointResponse } from './forking_service.js';
|
|
18
|
+
import type { AdvanceCheckpointRequest } from './forking_service.js';
|
|
19
|
+
import { stackIntercept } from '@protobuf-ts/runtime-rpc';
|
|
20
|
+
import type { AdvanceClockResponse } from './forking_service.js';
|
|
21
|
+
import type { AdvanceClockRequest } from './forking_service.js';
|
|
22
|
+
import type { UnaryCall } from '@protobuf-ts/runtime-rpc';
|
|
23
|
+
import type { RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
24
|
+
/**
|
|
25
|
+
* Administrative service for controlling a forked Sui network.
|
|
26
|
+
*
|
|
27
|
+
* @generated from protobuf service sui.forking.v1alpha.ForkingService
|
|
28
|
+
*/
|
|
29
|
+
export interface IForkingServiceClient {
|
|
30
|
+
/**
|
|
31
|
+
* Advance the forked network's clock by a given duration.
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf rpc: AdvanceClock(sui.forking.v1alpha.AdvanceClockRequest) returns (sui.forking.v1alpha.AdvanceClockResponse);
|
|
34
|
+
*/
|
|
35
|
+
advanceClock(
|
|
36
|
+
input: AdvanceClockRequest,
|
|
37
|
+
options?: RpcOptions,
|
|
38
|
+
): UnaryCall<AdvanceClockRequest, AdvanceClockResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Seal pending transactions into a new checkpoint.
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf rpc: AdvanceCheckpoint(sui.forking.v1alpha.AdvanceCheckpointRequest) returns (sui.forking.v1alpha.AdvanceCheckpointResponse);
|
|
43
|
+
*/
|
|
44
|
+
advanceCheckpoint(
|
|
45
|
+
input: AdvanceCheckpointRequest,
|
|
46
|
+
options?: RpcOptions,
|
|
47
|
+
): UnaryCall<AdvanceCheckpointRequest, AdvanceCheckpointResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Return the current state of the forked network.
|
|
50
|
+
*
|
|
51
|
+
* @generated from protobuf rpc: GetStatus(sui.forking.v1alpha.GetStatusRequest) returns (sui.forking.v1alpha.GetStatusResponse);
|
|
52
|
+
*/
|
|
53
|
+
getStatus(
|
|
54
|
+
input: GetStatusRequest,
|
|
55
|
+
options?: RpcOptions,
|
|
56
|
+
): UnaryCall<GetStatusRequest, GetStatusResponse>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Administrative service for controlling a forked Sui network.
|
|
60
|
+
*
|
|
61
|
+
* @generated from protobuf service sui.forking.v1alpha.ForkingService
|
|
62
|
+
*/
|
|
63
|
+
export class ForkingServiceClient implements IForkingServiceClient, ServiceInfo {
|
|
64
|
+
typeName = ForkingService.typeName;
|
|
65
|
+
methods = ForkingService.methods;
|
|
66
|
+
options = ForkingService.options;
|
|
67
|
+
constructor(private readonly _transport: RpcTransport) {}
|
|
68
|
+
/**
|
|
69
|
+
* Advance the forked network's clock by a given duration.
|
|
70
|
+
*
|
|
71
|
+
* @generated from protobuf rpc: AdvanceClock(sui.forking.v1alpha.AdvanceClockRequest) returns (sui.forking.v1alpha.AdvanceClockResponse);
|
|
72
|
+
*/
|
|
73
|
+
advanceClock(
|
|
74
|
+
input: AdvanceClockRequest,
|
|
75
|
+
options?: RpcOptions,
|
|
76
|
+
): UnaryCall<AdvanceClockRequest, AdvanceClockResponse> {
|
|
77
|
+
const method = this.methods[0],
|
|
78
|
+
opt = this._transport.mergeOptions(options);
|
|
79
|
+
return stackIntercept<AdvanceClockRequest, AdvanceClockResponse>(
|
|
80
|
+
'unary',
|
|
81
|
+
this._transport,
|
|
82
|
+
method,
|
|
83
|
+
opt,
|
|
84
|
+
input,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Seal pending transactions into a new checkpoint.
|
|
89
|
+
*
|
|
90
|
+
* @generated from protobuf rpc: AdvanceCheckpoint(sui.forking.v1alpha.AdvanceCheckpointRequest) returns (sui.forking.v1alpha.AdvanceCheckpointResponse);
|
|
91
|
+
*/
|
|
92
|
+
advanceCheckpoint(
|
|
93
|
+
input: AdvanceCheckpointRequest,
|
|
94
|
+
options?: RpcOptions,
|
|
95
|
+
): UnaryCall<AdvanceCheckpointRequest, AdvanceCheckpointResponse> {
|
|
96
|
+
const method = this.methods[1],
|
|
97
|
+
opt = this._transport.mergeOptions(options);
|
|
98
|
+
return stackIntercept<AdvanceCheckpointRequest, AdvanceCheckpointResponse>(
|
|
99
|
+
'unary',
|
|
100
|
+
this._transport,
|
|
101
|
+
method,
|
|
102
|
+
opt,
|
|
103
|
+
input,
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Return the current state of the forked network.
|
|
108
|
+
*
|
|
109
|
+
* @generated from protobuf rpc: GetStatus(sui.forking.v1alpha.GetStatusRequest) returns (sui.forking.v1alpha.GetStatusResponse);
|
|
110
|
+
*/
|
|
111
|
+
getStatus(
|
|
112
|
+
input: GetStatusRequest,
|
|
113
|
+
options?: RpcOptions,
|
|
114
|
+
): UnaryCall<GetStatusRequest, GetStatusResponse> {
|
|
115
|
+
const method = this.methods[2],
|
|
116
|
+
opt = this._transport.mergeOptions(options);
|
|
117
|
+
return stackIntercept<GetStatusRequest, GetStatusResponse>(
|
|
118
|
+
'unary',
|
|
119
|
+
this._transport,
|
|
120
|
+
method,
|
|
121
|
+
opt,
|
|
122
|
+
input,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
// Copyright (c) Mysten Labs, Inc.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck
|
|
5
|
+
// @generated from protobuf file "sui/forking/v1alpha/forking_service.proto" (package "sui.forking.v1alpha", syntax proto3)
|
|
6
|
+
// tslint:disable
|
|
7
|
+
// @ts-nocheck
|
|
8
|
+
//
|
|
9
|
+
// Copyright (c) Mysten Labs, Inc.
|
|
10
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
+
//
|
|
12
|
+
import { ServiceType } from '@protobuf-ts/runtime-rpc';
|
|
13
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf message sui.forking.v1alpha.AdvanceClockRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdvanceClockRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Duration in milliseconds to advance the clock. Defaults to 1 if unset.
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf field: optional uint64 duration_ms = 1;
|
|
22
|
+
*/
|
|
23
|
+
durationMs?: bigint;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf message sui.forking.v1alpha.AdvanceClockResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface AdvanceClockResponse {
|
|
29
|
+
/**
|
|
30
|
+
* Clock timestamp after advancing (milliseconds since Unix epoch).
|
|
31
|
+
*
|
|
32
|
+
* @generated from protobuf field: uint64 timestamp_ms = 1;
|
|
33
|
+
*/
|
|
34
|
+
timestampMs: bigint;
|
|
35
|
+
/**
|
|
36
|
+
* Digest of the ConsensusCommitPrologue transaction that advanced the clock.
|
|
37
|
+
*
|
|
38
|
+
* @generated from protobuf field: string tx_digest = 2;
|
|
39
|
+
*/
|
|
40
|
+
txDigest: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf message sui.forking.v1alpha.AdvanceCheckpointRequest
|
|
44
|
+
*/
|
|
45
|
+
export interface AdvanceCheckpointRequest {}
|
|
46
|
+
/**
|
|
47
|
+
* @generated from protobuf message sui.forking.v1alpha.AdvanceCheckpointResponse
|
|
48
|
+
*/
|
|
49
|
+
export interface AdvanceCheckpointResponse {
|
|
50
|
+
/**
|
|
51
|
+
* Sequence number of the newly created checkpoint.
|
|
52
|
+
*
|
|
53
|
+
* @generated from protobuf field: uint64 checkpoint_sequence_number = 1;
|
|
54
|
+
*/
|
|
55
|
+
checkpointSequenceNumber: bigint;
|
|
56
|
+
/**
|
|
57
|
+
* Timestamp embedded in the checkpoint (milliseconds since Unix epoch).
|
|
58
|
+
*
|
|
59
|
+
* @generated from protobuf field: uint64 timestamp_ms = 2;
|
|
60
|
+
*/
|
|
61
|
+
timestampMs: bigint;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf message sui.forking.v1alpha.GetStatusRequest
|
|
65
|
+
*/
|
|
66
|
+
export interface GetStatusRequest {}
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf message sui.forking.v1alpha.GetStatusResponse
|
|
69
|
+
*/
|
|
70
|
+
export interface GetStatusResponse {
|
|
71
|
+
/**
|
|
72
|
+
* Current epoch of the forked network.
|
|
73
|
+
*
|
|
74
|
+
* @generated from protobuf field: uint64 epoch = 1;
|
|
75
|
+
*/
|
|
76
|
+
epoch: bigint;
|
|
77
|
+
/**
|
|
78
|
+
* Latest checkpoint sequence number.
|
|
79
|
+
*
|
|
80
|
+
* @generated from protobuf field: uint64 checkpoint_sequence_number = 2;
|
|
81
|
+
*/
|
|
82
|
+
checkpointSequenceNumber: bigint;
|
|
83
|
+
/**
|
|
84
|
+
* Current clock timestamp (milliseconds since Unix epoch).
|
|
85
|
+
*
|
|
86
|
+
* @generated from protobuf field: uint64 timestamp_ms = 3;
|
|
87
|
+
*/
|
|
88
|
+
timestampMs: bigint;
|
|
89
|
+
/**
|
|
90
|
+
* The upstream checkpoint at which the fork was created.
|
|
91
|
+
*
|
|
92
|
+
* @generated from protobuf field: uint64 forked_at_checkpoint = 4;
|
|
93
|
+
*/
|
|
94
|
+
forkedAtCheckpoint: bigint;
|
|
95
|
+
}
|
|
96
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
97
|
+
class AdvanceClockRequest$Type extends MessageType<AdvanceClockRequest> {
|
|
98
|
+
constructor() {
|
|
99
|
+
super('sui.forking.v1alpha.AdvanceClockRequest', [
|
|
100
|
+
{
|
|
101
|
+
no: 1,
|
|
102
|
+
name: 'duration_ms',
|
|
103
|
+
kind: 'scalar',
|
|
104
|
+
opt: true,
|
|
105
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
106
|
+
L: 0 /*LongType.BIGINT*/,
|
|
107
|
+
},
|
|
108
|
+
]);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @generated MessageType for protobuf message sui.forking.v1alpha.AdvanceClockRequest
|
|
113
|
+
*/
|
|
114
|
+
export const AdvanceClockRequest = new AdvanceClockRequest$Type();
|
|
115
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
116
|
+
class AdvanceClockResponse$Type extends MessageType<AdvanceClockResponse> {
|
|
117
|
+
constructor() {
|
|
118
|
+
super('sui.forking.v1alpha.AdvanceClockResponse', [
|
|
119
|
+
{
|
|
120
|
+
no: 1,
|
|
121
|
+
name: 'timestamp_ms',
|
|
122
|
+
kind: 'scalar',
|
|
123
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
124
|
+
L: 0 /*LongType.BIGINT*/,
|
|
125
|
+
},
|
|
126
|
+
{ no: 2, name: 'tx_digest', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },
|
|
127
|
+
]);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @generated MessageType for protobuf message sui.forking.v1alpha.AdvanceClockResponse
|
|
132
|
+
*/
|
|
133
|
+
export const AdvanceClockResponse = new AdvanceClockResponse$Type();
|
|
134
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
135
|
+
class AdvanceCheckpointRequest$Type extends MessageType<AdvanceCheckpointRequest> {
|
|
136
|
+
constructor() {
|
|
137
|
+
super('sui.forking.v1alpha.AdvanceCheckpointRequest', []);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @generated MessageType for protobuf message sui.forking.v1alpha.AdvanceCheckpointRequest
|
|
142
|
+
*/
|
|
143
|
+
export const AdvanceCheckpointRequest = new AdvanceCheckpointRequest$Type();
|
|
144
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
145
|
+
class AdvanceCheckpointResponse$Type extends MessageType<AdvanceCheckpointResponse> {
|
|
146
|
+
constructor() {
|
|
147
|
+
super('sui.forking.v1alpha.AdvanceCheckpointResponse', [
|
|
148
|
+
{
|
|
149
|
+
no: 1,
|
|
150
|
+
name: 'checkpoint_sequence_number',
|
|
151
|
+
kind: 'scalar',
|
|
152
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
153
|
+
L: 0 /*LongType.BIGINT*/,
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
no: 2,
|
|
157
|
+
name: 'timestamp_ms',
|
|
158
|
+
kind: 'scalar',
|
|
159
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
160
|
+
L: 0 /*LongType.BIGINT*/,
|
|
161
|
+
},
|
|
162
|
+
]);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @generated MessageType for protobuf message sui.forking.v1alpha.AdvanceCheckpointResponse
|
|
167
|
+
*/
|
|
168
|
+
export const AdvanceCheckpointResponse = new AdvanceCheckpointResponse$Type();
|
|
169
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
170
|
+
class GetStatusRequest$Type extends MessageType<GetStatusRequest> {
|
|
171
|
+
constructor() {
|
|
172
|
+
super('sui.forking.v1alpha.GetStatusRequest', []);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @generated MessageType for protobuf message sui.forking.v1alpha.GetStatusRequest
|
|
177
|
+
*/
|
|
178
|
+
export const GetStatusRequest = new GetStatusRequest$Type();
|
|
179
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
180
|
+
class GetStatusResponse$Type extends MessageType<GetStatusResponse> {
|
|
181
|
+
constructor() {
|
|
182
|
+
super('sui.forking.v1alpha.GetStatusResponse', [
|
|
183
|
+
{
|
|
184
|
+
no: 1,
|
|
185
|
+
name: 'epoch',
|
|
186
|
+
kind: 'scalar',
|
|
187
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
188
|
+
L: 0 /*LongType.BIGINT*/,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
no: 2,
|
|
192
|
+
name: 'checkpoint_sequence_number',
|
|
193
|
+
kind: 'scalar',
|
|
194
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
195
|
+
L: 0 /*LongType.BIGINT*/,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
no: 3,
|
|
199
|
+
name: 'timestamp_ms',
|
|
200
|
+
kind: 'scalar',
|
|
201
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
202
|
+
L: 0 /*LongType.BIGINT*/,
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
no: 4,
|
|
206
|
+
name: 'forked_at_checkpoint',
|
|
207
|
+
kind: 'scalar',
|
|
208
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
209
|
+
L: 0 /*LongType.BIGINT*/,
|
|
210
|
+
},
|
|
211
|
+
]);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* @generated MessageType for protobuf message sui.forking.v1alpha.GetStatusResponse
|
|
216
|
+
*/
|
|
217
|
+
export const GetStatusResponse = new GetStatusResponse$Type();
|
|
218
|
+
/**
|
|
219
|
+
* @generated ServiceType for protobuf service sui.forking.v1alpha.ForkingService
|
|
220
|
+
*/
|
|
221
|
+
export const ForkingService = new ServiceType('sui.forking.v1alpha.ForkingService', [
|
|
222
|
+
{ name: 'AdvanceClock', options: {}, I: AdvanceClockRequest, O: AdvanceClockResponse },
|
|
223
|
+
{
|
|
224
|
+
name: 'AdvanceCheckpoint',
|
|
225
|
+
options: {},
|
|
226
|
+
I: AdvanceCheckpointRequest,
|
|
227
|
+
O: AdvanceCheckpointResponse,
|
|
228
|
+
},
|
|
229
|
+
{ name: 'GetStatus', options: {}, I: GetStatusRequest, O: GetStatusResponse },
|
|
230
|
+
]);
|
|
@@ -89,7 +89,7 @@ class Checkpoint$Type extends MessageType<Checkpoint> {
|
|
|
89
89
|
no: 6,
|
|
90
90
|
name: 'transactions',
|
|
91
91
|
kind: 'message',
|
|
92
|
-
repeat:
|
|
92
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
93
93
|
T: () => ExecutedTransaction,
|
|
94
94
|
},
|
|
95
95
|
{ no: 7, name: 'objects', kind: 'message', T: () => ObjectSet },
|
|
@@ -97,7 +97,7 @@ class CheckpointContents$Type extends MessageType<CheckpointContents> {
|
|
|
97
97
|
no: 4,
|
|
98
98
|
name: 'transactions',
|
|
99
99
|
kind: 'message',
|
|
100
|
-
repeat:
|
|
100
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
101
101
|
T: () => CheckpointedTransactionInfo,
|
|
102
102
|
},
|
|
103
103
|
]);
|
|
@@ -117,14 +117,14 @@ class CheckpointedTransactionInfo$Type extends MessageType<CheckpointedTransacti
|
|
|
117
117
|
no: 3,
|
|
118
118
|
name: 'signatures',
|
|
119
119
|
kind: 'message',
|
|
120
|
-
repeat:
|
|
120
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
121
121
|
T: () => UserSignature,
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
no: 4,
|
|
125
125
|
name: 'address_aliases_versions',
|
|
126
126
|
kind: 'message',
|
|
127
|
-
repeat:
|
|
127
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
128
128
|
T: () => AddressAliasesVersion,
|
|
129
129
|
},
|
|
130
130
|
]);
|
|
@@ -220,7 +220,7 @@ class CheckpointSummary$Type extends MessageType<CheckpointSummary> {
|
|
|
220
220
|
no: 10,
|
|
221
221
|
name: 'commitments',
|
|
222
222
|
kind: 'message',
|
|
223
|
-
repeat:
|
|
223
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
224
224
|
T: () => CheckpointCommitment,
|
|
225
225
|
},
|
|
226
226
|
{ no: 11, name: 'end_of_epoch_data', kind: 'message', T: () => EndOfEpochData },
|
|
@@ -246,7 +246,7 @@ class EndOfEpochData$Type extends MessageType<EndOfEpochData> {
|
|
|
246
246
|
no: 1,
|
|
247
247
|
name: 'next_epoch_committee',
|
|
248
248
|
kind: 'message',
|
|
249
|
-
repeat:
|
|
249
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
250
250
|
T: () => ValidatorCommitteeMember,
|
|
251
251
|
},
|
|
252
252
|
{
|
|
@@ -261,7 +261,7 @@ class EndOfEpochData$Type extends MessageType<EndOfEpochData> {
|
|
|
261
261
|
no: 3,
|
|
262
262
|
name: 'epoch_commitments',
|
|
263
263
|
kind: 'message',
|
|
264
|
-
repeat:
|
|
264
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
265
265
|
T: () => CheckpointCommitment,
|
|
266
266
|
},
|
|
267
267
|
]);
|
|
@@ -257,6 +257,25 @@ export enum ChangedObject_IdOperation {
|
|
|
257
257
|
*/
|
|
258
258
|
DELETED = 3,
|
|
259
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* An entry in an event digest accumulator value.
|
|
262
|
+
*
|
|
263
|
+
* @generated from protobuf message sui.rpc.v2.EventDigestEntry
|
|
264
|
+
*/
|
|
265
|
+
export interface EventDigestEntry {
|
|
266
|
+
/**
|
|
267
|
+
* Index of the event within its transaction.
|
|
268
|
+
*
|
|
269
|
+
* @generated from protobuf field: optional uint64 event_index = 1;
|
|
270
|
+
*/
|
|
271
|
+
eventIndex?: bigint;
|
|
272
|
+
/**
|
|
273
|
+
* Digest of the event.
|
|
274
|
+
*
|
|
275
|
+
* @generated from protobuf field: optional string digest = 2;
|
|
276
|
+
*/
|
|
277
|
+
digest?: string;
|
|
278
|
+
}
|
|
260
279
|
/**
|
|
261
280
|
* @generated from protobuf message sui.rpc.v2.AccumulatorWrite
|
|
262
281
|
*/
|
|
@@ -274,9 +293,30 @@ export interface AccumulatorWrite {
|
|
|
274
293
|
*/
|
|
275
294
|
operation?: AccumulatorWrite_AccumulatorOperation;
|
|
276
295
|
/**
|
|
277
|
-
* @generated from protobuf field: optional
|
|
296
|
+
* @generated from protobuf field: optional sui.rpc.v2.AccumulatorWrite.AccumulatorValue value_kind = 4;
|
|
297
|
+
*/
|
|
298
|
+
valueKind?: AccumulatorWrite_AccumulatorValue;
|
|
299
|
+
/**
|
|
300
|
+
* Set when the accumulator value is an integer (value_kind = INTEGER).
|
|
301
|
+
*
|
|
302
|
+
* @generated from protobuf field: optional uint64 integer_value = 5;
|
|
303
|
+
*/
|
|
304
|
+
integerValue?: bigint;
|
|
305
|
+
/**
|
|
306
|
+
* Set, with len 2, when the accumulator value is an integer tuple
|
|
307
|
+
* (value_kind = INTEGER_TUPLE).
|
|
308
|
+
*
|
|
309
|
+
* @generated from protobuf field: repeated uint64 integer_tuple = 6;
|
|
310
|
+
*/
|
|
311
|
+
integerTuple: bigint[];
|
|
312
|
+
/**
|
|
313
|
+
* Set when the accumulator value is an event digest list (value_kind = EVENT_DIGEST).
|
|
314
|
+
* Contains a non-empty list of (event_index, digest) pairs representing
|
|
315
|
+
* authenticated event stream entries within a transaction.
|
|
316
|
+
*
|
|
317
|
+
* @generated from protobuf field: repeated sui.rpc.v2.EventDigestEntry event_digest_value = 7;
|
|
278
318
|
*/
|
|
279
|
-
|
|
319
|
+
eventDigestValue: EventDigestEntry[];
|
|
280
320
|
}
|
|
281
321
|
/**
|
|
282
322
|
* @generated from protobuf enum sui.rpc.v2.AccumulatorWrite.AccumulatorOperation
|
|
@@ -295,6 +335,27 @@ export enum AccumulatorWrite_AccumulatorOperation {
|
|
|
295
335
|
*/
|
|
296
336
|
SPLIT = 2,
|
|
297
337
|
}
|
|
338
|
+
/**
|
|
339
|
+
* @generated from protobuf enum sui.rpc.v2.AccumulatorWrite.AccumulatorValue
|
|
340
|
+
*/
|
|
341
|
+
export enum AccumulatorWrite_AccumulatorValue {
|
|
342
|
+
/**
|
|
343
|
+
* @generated from protobuf enum value: ACCUMULATOR_VALUE_UNKNOWN = 0;
|
|
344
|
+
*/
|
|
345
|
+
ACCUMULATOR_VALUE_UNKNOWN = 0,
|
|
346
|
+
/**
|
|
347
|
+
* @generated from protobuf enum value: INTEGER = 1;
|
|
348
|
+
*/
|
|
349
|
+
INTEGER = 1,
|
|
350
|
+
/**
|
|
351
|
+
* @generated from protobuf enum value: INTEGER_TUPLE = 2;
|
|
352
|
+
*/
|
|
353
|
+
INTEGER_TUPLE = 2,
|
|
354
|
+
/**
|
|
355
|
+
* @generated from protobuf enum value: EVENT_DIGEST = 3;
|
|
356
|
+
*/
|
|
357
|
+
EVENT_DIGEST = 3,
|
|
358
|
+
}
|
|
298
359
|
/**
|
|
299
360
|
* A consensus object that wasn't changed during execution.
|
|
300
361
|
*
|
|
@@ -412,14 +473,14 @@ class TransactionEffects$Type extends MessageType<TransactionEffects> {
|
|
|
412
473
|
no: 12,
|
|
413
474
|
name: 'changed_objects',
|
|
414
475
|
kind: 'message',
|
|
415
|
-
repeat:
|
|
476
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
416
477
|
T: () => ChangedObject,
|
|
417
478
|
},
|
|
418
479
|
{
|
|
419
480
|
no: 13,
|
|
420
481
|
name: 'unchanged_consensus_objects',
|
|
421
482
|
kind: 'message',
|
|
422
|
-
repeat:
|
|
483
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
423
484
|
T: () => UnchangedConsensusObject,
|
|
424
485
|
},
|
|
425
486
|
{
|
|
@@ -433,7 +494,7 @@ class TransactionEffects$Type extends MessageType<TransactionEffects> {
|
|
|
433
494
|
no: 15,
|
|
434
495
|
name: 'unchanged_loaded_runtime_objects',
|
|
435
496
|
kind: 'message',
|
|
436
|
-
repeat:
|
|
497
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
437
498
|
T: () => ObjectReference,
|
|
438
499
|
},
|
|
439
500
|
]);
|
|
@@ -507,6 +568,26 @@ class ChangedObject$Type extends MessageType<ChangedObject> {
|
|
|
507
568
|
*/
|
|
508
569
|
export const ChangedObject = new ChangedObject$Type();
|
|
509
570
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
571
|
+
class EventDigestEntry$Type extends MessageType<EventDigestEntry> {
|
|
572
|
+
constructor() {
|
|
573
|
+
super('sui.rpc.v2.EventDigestEntry', [
|
|
574
|
+
{
|
|
575
|
+
no: 1,
|
|
576
|
+
name: 'event_index',
|
|
577
|
+
kind: 'scalar',
|
|
578
|
+
opt: true,
|
|
579
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
580
|
+
L: 0 /*LongType.BIGINT*/,
|
|
581
|
+
},
|
|
582
|
+
{ no: 2, name: 'digest', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
583
|
+
]);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* @generated MessageType for protobuf message sui.rpc.v2.EventDigestEntry
|
|
588
|
+
*/
|
|
589
|
+
export const EventDigestEntry = new EventDigestEntry$Type();
|
|
590
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
510
591
|
class AccumulatorWrite$Type extends MessageType<AccumulatorWrite> {
|
|
511
592
|
constructor() {
|
|
512
593
|
super('sui.rpc.v2.AccumulatorWrite', [
|
|
@@ -522,14 +603,39 @@ class AccumulatorWrite$Type extends MessageType<AccumulatorWrite> {
|
|
|
522
603
|
AccumulatorWrite_AccumulatorOperation,
|
|
523
604
|
],
|
|
524
605
|
},
|
|
606
|
+
{
|
|
607
|
+
no: 4,
|
|
608
|
+
name: 'value_kind',
|
|
609
|
+
kind: 'enum',
|
|
610
|
+
opt: true,
|
|
611
|
+
T: () => [
|
|
612
|
+
'sui.rpc.v2.AccumulatorWrite.AccumulatorValue',
|
|
613
|
+
AccumulatorWrite_AccumulatorValue,
|
|
614
|
+
],
|
|
615
|
+
},
|
|
525
616
|
{
|
|
526
617
|
no: 5,
|
|
527
|
-
name: '
|
|
618
|
+
name: 'integer_value',
|
|
528
619
|
kind: 'scalar',
|
|
529
620
|
opt: true,
|
|
530
621
|
T: 4 /*ScalarType.UINT64*/,
|
|
531
622
|
L: 0 /*LongType.BIGINT*/,
|
|
532
623
|
},
|
|
624
|
+
{
|
|
625
|
+
no: 6,
|
|
626
|
+
name: 'integer_tuple',
|
|
627
|
+
kind: 'scalar',
|
|
628
|
+
repeat: 1 /*RepeatType.PACKED*/,
|
|
629
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
630
|
+
L: 0 /*LongType.BIGINT*/,
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
no: 7,
|
|
634
|
+
name: 'event_digest_value',
|
|
635
|
+
kind: 'message',
|
|
636
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
637
|
+
T: () => EventDigestEntry,
|
|
638
|
+
},
|
|
533
639
|
]);
|
|
534
640
|
}
|
|
535
641
|
}
|
|
@@ -88,7 +88,7 @@ class TransactionEvents$Type extends MessageType<TransactionEvents> {
|
|
|
88
88
|
super('sui.rpc.v2.TransactionEvents', [
|
|
89
89
|
{ no: 1, name: 'bcs', kind: 'message', T: () => Bcs },
|
|
90
90
|
{ no: 2, name: 'digest', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
91
|
-
{ no: 3, name: 'events', kind: 'message', repeat:
|
|
91
|
+
{ no: 3, name: 'events', kind: 'message', repeat: 2 /*RepeatType.UNPACKED*/, T: () => Event },
|
|
92
92
|
]);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -91,7 +91,7 @@ class ExecutedTransaction$Type extends MessageType<ExecutedTransaction> {
|
|
|
91
91
|
no: 3,
|
|
92
92
|
name: 'signatures',
|
|
93
93
|
kind: 'message',
|
|
94
|
-
repeat:
|
|
94
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
95
95
|
T: () => UserSignature,
|
|
96
96
|
},
|
|
97
97
|
{ no: 4, name: 'effects', kind: 'message', T: () => TransactionEffects },
|
|
@@ -109,7 +109,7 @@ class ExecutedTransaction$Type extends MessageType<ExecutedTransaction> {
|
|
|
109
109
|
no: 8,
|
|
110
110
|
name: 'balance_changes',
|
|
111
111
|
kind: 'message',
|
|
112
|
-
repeat:
|
|
112
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
113
113
|
T: () => BalanceChange,
|
|
114
114
|
},
|
|
115
115
|
{ no: 9, name: 'objects', kind: 'message', T: () => ObjectSet },
|
|
@@ -418,7 +418,7 @@ class BatchGetObjectsRequest$Type extends MessageType<BatchGetObjectsRequest> {
|
|
|
418
418
|
no: 1,
|
|
419
419
|
name: 'requests',
|
|
420
420
|
kind: 'message',
|
|
421
|
-
repeat:
|
|
421
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
422
422
|
T: () => GetObjectRequest,
|
|
423
423
|
},
|
|
424
424
|
{ no: 2, name: 'read_mask', kind: 'message', T: () => FieldMask },
|
|
@@ -437,7 +437,7 @@ class BatchGetObjectsResponse$Type extends MessageType<BatchGetObjectsResponse>
|
|
|
437
437
|
no: 1,
|
|
438
438
|
name: 'objects',
|
|
439
439
|
kind: 'message',
|
|
440
|
-
repeat:
|
|
440
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
441
441
|
T: () => GetObjectResult,
|
|
442
442
|
},
|
|
443
443
|
]);
|
|
@@ -512,7 +512,7 @@ class BatchGetTransactionsResponse$Type extends MessageType<BatchGetTransactions
|
|
|
512
512
|
no: 1,
|
|
513
513
|
name: 'transactions',
|
|
514
514
|
kind: 'message',
|
|
515
|
-
repeat:
|
|
515
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
516
516
|
T: () => GetTransactionResult,
|
|
517
517
|
},
|
|
518
518
|
]);
|