@mysten/sui 2.20.4 → 2.22.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 +14 -0
- package/dist/bcs/bcs.d.mts +6 -6
- package/dist/bcs/index.d.mts +20 -20
- package/dist/cryptography/signature.d.mts +8 -8
- package/dist/grpc/client.d.mts +46 -6
- package/dist/grpc/client.d.mts.map +1 -1
- package/dist/grpc/client.mjs.map +1 -1
- package/dist/grpc/core.d.mts +9 -1
- package/dist/grpc/core.d.mts.map +1 -1
- package/dist/grpc/core.mjs +54 -67
- package/dist/grpc/core.mjs.map +1 -1
- package/dist/grpc/index.d.mts +3 -3
- package/dist/grpc/index.mjs +2 -2
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/effects.d.mts +1 -1
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/move_package_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/name_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/object.d.mts +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/transaction.d.mts +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.d.mts +1 -1
- package/dist/grpc/proto/types.d.mts +2 -2
- package/dist/transactions/Transaction.d.mts +9 -9
- package/dist/transactions/Transaction.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 +3 -3
- package/src/grpc/client.ts +92 -20
- package/src/grpc/core.ts +119 -121
- package/src/grpc/index.ts +19 -2
- package/src/version.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LookupNameRequest, LookupNameResponse, ReverseLookupNameRequest, ReverseLookupNameResponse } from "./name_service.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _protobuf_ts_runtime5 from "@protobuf-ts/runtime";
|
|
3
|
+
import * as _protobuf_ts_runtime_rpc5 from "@protobuf-ts/runtime-rpc";
|
|
4
4
|
import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
|
|
6
6
|
//#region src/grpc/proto/sui/rpc/v2/name_service.client.d.ts
|
|
@@ -23,9 +23,9 @@ interface INameServiceClient {
|
|
|
23
23
|
declare class NameServiceClient implements INameServiceClient, ServiceInfo {
|
|
24
24
|
private readonly _transport;
|
|
25
25
|
typeName: string;
|
|
26
|
-
methods:
|
|
26
|
+
methods: _protobuf_ts_runtime_rpc5.MethodInfo<any, any>[];
|
|
27
27
|
options: {
|
|
28
|
-
[extensionName: string]:
|
|
28
|
+
[extensionName: string]: _protobuf_ts_runtime5.JsonValue;
|
|
29
29
|
};
|
|
30
30
|
constructor(_transport: RpcTransport);
|
|
31
31
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Value } from "../../../google/protobuf/struct.mjs";
|
|
2
|
-
import { Bcs } from "./bcs.mjs";
|
|
3
2
|
import { Package } from "./move_package.mjs";
|
|
4
3
|
import { Owner } from "./owner.mjs";
|
|
4
|
+
import { Bcs } from "./bcs.mjs";
|
|
5
5
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/grpc/proto/sui/rpc/v2/object.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VerifySignatureRequest, VerifySignatureResponse } from "./signature_verification_service.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _protobuf_ts_runtime2 from "@protobuf-ts/runtime";
|
|
3
|
+
import * as _protobuf_ts_runtime_rpc2 from "@protobuf-ts/runtime-rpc";
|
|
4
4
|
import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
|
|
6
6
|
//#region src/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts
|
|
@@ -21,9 +21,9 @@ interface ISignatureVerificationServiceClient {
|
|
|
21
21
|
declare class SignatureVerificationServiceClient implements ISignatureVerificationServiceClient, ServiceInfo {
|
|
22
22
|
private readonly _transport;
|
|
23
23
|
typeName: string;
|
|
24
|
-
methods:
|
|
24
|
+
methods: _protobuf_ts_runtime_rpc2.MethodInfo<any, any>[];
|
|
25
25
|
options: {
|
|
26
|
-
[extensionName: string]:
|
|
26
|
+
[extensionName: string]: _protobuf_ts_runtime2.JsonValue;
|
|
27
27
|
};
|
|
28
28
|
constructor(_transport: RpcTransport);
|
|
29
29
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetBalanceRequest, GetBalanceResponse, GetCoinInfoRequest, GetCoinInfoResponse, ListBalancesRequest, ListBalancesResponse, ListDynamicFieldsRequest, ListDynamicFieldsResponse, ListOwnedObjectsRequest, ListOwnedObjectsResponse } from "./state_service.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _protobuf_ts_runtime3 from "@protobuf-ts/runtime";
|
|
3
|
+
import * as _protobuf_ts_runtime_rpc3 from "@protobuf-ts/runtime-rpc";
|
|
4
4
|
import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
|
|
6
6
|
//#region src/grpc/proto/sui/rpc/v2/state_service.client.d.ts
|
|
@@ -35,9 +35,9 @@ interface IStateServiceClient {
|
|
|
35
35
|
declare class StateServiceClient implements IStateServiceClient, ServiceInfo {
|
|
36
36
|
private readonly _transport;
|
|
37
37
|
typeName: string;
|
|
38
|
-
methods:
|
|
38
|
+
methods: _protobuf_ts_runtime_rpc3.MethodInfo<any, any>[];
|
|
39
39
|
options: {
|
|
40
|
-
[extensionName: string]:
|
|
40
|
+
[extensionName: string]: _protobuf_ts_runtime3.JsonValue;
|
|
41
41
|
};
|
|
42
42
|
constructor(_transport: RpcTransport);
|
|
43
43
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Bcs } from "./bcs.mjs";
|
|
2
|
-
import { Argument } from "./argument.mjs";
|
|
3
2
|
import { Object as Object$1 } from "./object.mjs";
|
|
4
3
|
import { Timestamp } from "../../../google/protobuf/timestamp.mjs";
|
|
5
4
|
import { ObjectReference } from "./object_reference.mjs";
|
|
6
5
|
import { Jwk, JwkId } from "./jwk.mjs";
|
|
7
6
|
import { Duration } from "../../../google/protobuf/duration.mjs";
|
|
7
|
+
import { Argument } from "./argument.mjs";
|
|
8
8
|
import { Input } from "./input.mjs";
|
|
9
9
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExecuteTransactionRequest, ExecuteTransactionResponse, SimulateTransactionRequest, SimulateTransactionResponse } from "./transaction_execution_service.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _protobuf_ts_runtime0 from "@protobuf-ts/runtime";
|
|
3
|
+
import * as _protobuf_ts_runtime_rpc0 from "@protobuf-ts/runtime-rpc";
|
|
4
4
|
import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
|
|
6
6
|
//#region src/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts
|
|
@@ -23,9 +23,9 @@ interface ITransactionExecutionServiceClient {
|
|
|
23
23
|
declare class TransactionExecutionServiceClient implements ITransactionExecutionServiceClient, ServiceInfo {
|
|
24
24
|
private readonly _transport;
|
|
25
25
|
typeName: string;
|
|
26
|
-
methods:
|
|
26
|
+
methods: _protobuf_ts_runtime_rpc0.MethodInfo<any, any>[];
|
|
27
27
|
options: {
|
|
28
|
-
[extensionName: string]:
|
|
28
|
+
[extensionName: string]: _protobuf_ts_runtime0.JsonValue;
|
|
29
29
|
};
|
|
30
30
|
constructor(_transport: RpcTransport);
|
|
31
31
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Value } from "../../../google/protobuf/struct.mjs";
|
|
2
2
|
import { Bcs } from "./bcs.mjs";
|
|
3
|
-
import { Argument } from "./argument.mjs";
|
|
4
3
|
import { UserSignature } from "./signature.mjs";
|
|
4
|
+
import { Argument } from "./argument.mjs";
|
|
5
5
|
import { Transaction } from "./transaction.mjs";
|
|
6
6
|
import { ExecutedTransaction } from "./executed_transaction.mjs";
|
|
7
7
|
import { FieldMask } from "../../../google/protobuf/field_mask.mjs";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Bcs } from "./sui/rpc/v2/bcs.mjs";
|
|
2
|
-
import { Argument, Argument_ArgumentKind } from "./sui/rpc/v2/argument.mjs";
|
|
3
1
|
import { Ability, DatatypeDescriptor, DatatypeDescriptor_DatatypeKind, FieldDescriptor, FunctionDescriptor, FunctionDescriptor_Visibility, Linkage, Module, OpenSignature, OpenSignatureBody, OpenSignatureBody_Type, OpenSignature_Reference, Package, TypeOrigin, TypeParameter, VariantDescriptor } from "./sui/rpc/v2/move_package.mjs";
|
|
4
2
|
import { Owner, Owner_OwnerKind } from "./sui/rpc/v2/owner.mjs";
|
|
3
|
+
import { Bcs } from "./sui/rpc/v2/bcs.mjs";
|
|
5
4
|
import { Display, Object as Object$1, ObjectSet } from "./sui/rpc/v2/object.mjs";
|
|
6
5
|
import { BalanceChange } from "./sui/rpc/v2/balance_change.mjs";
|
|
7
6
|
import { Event, TransactionEvents } from "./sui/rpc/v2/event.mjs";
|
|
@@ -12,6 +11,7 @@ import { AccumulatorWrite, AccumulatorWrite_AccumulatorOperation, AccumulatorWri
|
|
|
12
11
|
import { Jwk, JwkId } from "./sui/rpc/v2/jwk.mjs";
|
|
13
12
|
import { SignatureScheme } from "./sui/rpc/v2/signature_scheme.mjs";
|
|
14
13
|
import { CircomG1, CircomG2, MultisigAggregatedSignature, MultisigCommittee, MultisigMember, MultisigMemberPublicKey, MultisigMemberSignature, PasskeyAuthenticator, SimpleSignature, UserSignature, ValidatorAggregatedSignature, ValidatorCommittee, ValidatorCommitteeMember, ZkLoginAuthenticator, ZkLoginClaim, ZkLoginInputs, ZkLoginProof, ZkLoginPublicIdentifier } from "./sui/rpc/v2/signature.mjs";
|
|
14
|
+
import { Argument, Argument_ArgumentKind } from "./sui/rpc/v2/argument.mjs";
|
|
15
15
|
import { FundsWithdrawal, FundsWithdrawal_Source, Input, Input_InputKind, Input_Mutability } from "./sui/rpc/v2/input.mjs";
|
|
16
16
|
import { ActiveJwk, AuthenticatorStateExpire, AuthenticatorStateUpdate, CanceledTransaction, ChangeEpoch, Command, ConsensusCommitPrologue, ConsensusDeterminedVersionAssignments, EndOfEpochTransaction, EndOfEpochTransactionKind, EndOfEpochTransactionKind_Kind, ExecutionTimeObservation, ExecutionTimeObservation_ExecutionTimeObservationKind, ExecutionTimeObservations, GasPayment, GenesisTransaction, MakeMoveVector, MergeCoins, MoveCall, ProgrammableTransaction, Publish, RandomnessStateUpdate, SplitCoins, SystemPackage, Transaction, TransactionExpiration, TransactionExpiration_TransactionExpirationKind, TransactionKind, TransactionKind_Kind, TransferObjects, Upgrade, ValidatorExecutionTimeObservation, VersionAssignment } from "./sui/rpc/v2/transaction.mjs";
|
|
17
17
|
import { ExecutedTransaction } from "./sui/rpc/v2/executed_transaction.mjs";
|
|
@@ -8,7 +8,7 @@ import { createPure } from "./pure.mjs";
|
|
|
8
8
|
import { SignatureWithBytes, Signer } from "../cryptography/keypair.mjs";
|
|
9
9
|
import "../cryptography/index.mjs";
|
|
10
10
|
import { ClientWithCoreApi } from "../client/core.mjs";
|
|
11
|
-
import * as
|
|
11
|
+
import * as _mysten_bcs810 from "@mysten/bcs";
|
|
12
12
|
import { SerializedBcs } from "@mysten/bcs";
|
|
13
13
|
import { InferInput } from "valibot";
|
|
14
14
|
|
|
@@ -91,7 +91,7 @@ declare class Transaction {
|
|
|
91
91
|
getData(): {
|
|
92
92
|
version: 2;
|
|
93
93
|
sender?: string | null | undefined;
|
|
94
|
-
expiration?:
|
|
94
|
+
expiration?: _mysten_bcs810.EnumOutputShapeWithKeys<{
|
|
95
95
|
None: true;
|
|
96
96
|
Epoch: string | number;
|
|
97
97
|
ValidDuring: {
|
|
@@ -102,7 +102,7 @@ declare class Transaction {
|
|
|
102
102
|
chain: string;
|
|
103
103
|
nonce: number;
|
|
104
104
|
};
|
|
105
|
-
}, "
|
|
105
|
+
}, "None" | "Epoch" | "ValidDuring"> | null | undefined;
|
|
106
106
|
gasData: {
|
|
107
107
|
budget: string | number | null;
|
|
108
108
|
price: string | number | null;
|
|
@@ -113,8 +113,8 @@ declare class Transaction {
|
|
|
113
113
|
digest: string;
|
|
114
114
|
}[] | null;
|
|
115
115
|
};
|
|
116
|
-
inputs:
|
|
117
|
-
Object:
|
|
116
|
+
inputs: _mysten_bcs810.EnumOutputShapeWithKeys<{
|
|
117
|
+
Object: _mysten_bcs810.EnumOutputShapeWithKeys<{
|
|
118
118
|
ImmOrOwnedObject: {
|
|
119
119
|
objectId: string;
|
|
120
120
|
version: string | number;
|
|
@@ -130,7 +130,7 @@ declare class Transaction {
|
|
|
130
130
|
version: string | number;
|
|
131
131
|
digest: string;
|
|
132
132
|
};
|
|
133
|
-
}, "
|
|
133
|
+
}, "ImmOrOwnedObject" | "SharedObject" | "Receiving">;
|
|
134
134
|
Pure: {
|
|
135
135
|
bytes: string;
|
|
136
136
|
};
|
|
@@ -153,13 +153,13 @@ declare class Transaction {
|
|
|
153
153
|
Balance: string;
|
|
154
154
|
$kind: "Balance";
|
|
155
155
|
};
|
|
156
|
-
withdrawFrom:
|
|
156
|
+
withdrawFrom: _mysten_bcs810.EnumOutputShapeWithKeys<{
|
|
157
157
|
Sender: true;
|
|
158
158
|
Sponsor: true;
|
|
159
159
|
}, "Sender" | "Sponsor">;
|
|
160
160
|
};
|
|
161
|
-
}, "
|
|
162
|
-
commands:
|
|
161
|
+
}, "Pure" | "Object" | "FundsWithdrawal" | "UnresolvedPure" | "UnresolvedObject">[];
|
|
162
|
+
commands: _mysten_bcs810.EnumOutputShapeWithKeys<{
|
|
163
163
|
MoveCall: {
|
|
164
164
|
package: string;
|
|
165
165
|
module: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.mts","names":[],"sources":["../../src/transactions/Transaction.ts"],"mappings":";;;;;;;;;;;;;;;KAyCY,yBAAA,GACT,OAAA,CAAQ,UAAA,QAAkB,cAAA;EAAmB,KAAA;EAAgB,IAAA;AAAA,OAE7D,EAAA,EAAI,WAAA,KACC,OAAA,CAAQ,UAAA,QAAkB,cAAA;EAAmB,KAAA;EAAgB,IAAA;AAAA,MAClE,qBAAA,CAAsB,yBAAA;AAAA,KAEb,iBAAA,GAAoB,OAAA,CAAQ,QAAA;EAAY,MAAA;AAAA,KACnD,OAAA,CAAQ,QAAA;EAAY,YAAA;AAAA;AAAA,KAET,yBAAA,GACT,OAAA,CAAQ,QAAA;EAAY,MAAA;AAAA,cACX,OAAA,CAAQ,QAAA;EAAY,YAAA;AAAA;AAAA,KAEpB,qBAAA,WACD,yBAAA,UAAmC,yBAAA,YACzC,EAAA,EAAI,WAAA,KAAgB,OAAA,CAAQ,CAAA;AAAA,cAiE3B,iBAAA;AAAA,UAEI,WAAA,SAAoB,uBAAA;EAC7B,MAAA,EAAQ,MAAA;AAAA;AAAA,iBAGO,aAAA,CAAc,GAAA,YAAe,GAAA,IAAO,eAAA;AAAA,KAIxC,sBAAA,YAAkC,OAAA,GAAU,yBAAA;AAAA,KAKnD,eAAA;EACJ,OAAA;AAAA;AAAA,UAGgB,sBAAA;EAhGoC;;;;;;AAGrD;EAqGC,eAAA,GAAkB,MAAA,SAAe,iBA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AA;AAAA"}
|
package/dist/version.mjs
CHANGED
package/dist/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","names":[],"sources":["../src/version.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// This file is generated by genversion.mjs. Do not edit it directly.\n\nexport const PACKAGE_VERSION = '2.
|
|
1
|
+
{"version":3,"file":"version.mjs","names":[],"sources":["../src/version.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// This file is generated by genversion.mjs. Do not edit it directly.\n\nexport const PACKAGE_VERSION = '2.22.0';\n"],"mappings":";AAKA,MAAa,kBAAkB"}
|
package/dist/zklogin/bcs.d.mts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _mysten_bcs1118 from "@mysten/bcs";
|
|
2
2
|
import { InferBcsInput } from "@mysten/bcs";
|
|
3
3
|
|
|
4
4
|
//#region src/zklogin/bcs.d.ts
|
|
5
|
-
declare const zkLoginSignature:
|
|
6
|
-
inputs:
|
|
7
|
-
proofPoints:
|
|
8
|
-
a:
|
|
5
|
+
declare const zkLoginSignature: _mysten_bcs1118.BcsStruct<{
|
|
6
|
+
inputs: _mysten_bcs1118.BcsStruct<{
|
|
7
|
+
proofPoints: _mysten_bcs1118.BcsStruct<{
|
|
8
|
+
a: _mysten_bcs1118.BcsType<string[], Iterable<string> & {
|
|
9
9
|
length: number;
|
|
10
10
|
}, string>;
|
|
11
|
-
b:
|
|
11
|
+
b: _mysten_bcs1118.BcsType<string[][], Iterable<Iterable<string> & {
|
|
12
12
|
length: number;
|
|
13
13
|
}> & {
|
|
14
14
|
length: number;
|
|
15
15
|
}, string>;
|
|
16
|
-
c:
|
|
16
|
+
c: _mysten_bcs1118.BcsType<string[], Iterable<string> & {
|
|
17
17
|
length: number;
|
|
18
18
|
}, string>;
|
|
19
19
|
}, string>;
|
|
20
|
-
issBase64Details:
|
|
21
|
-
value:
|
|
22
|
-
indexMod4:
|
|
20
|
+
issBase64Details: _mysten_bcs1118.BcsStruct<{
|
|
21
|
+
value: _mysten_bcs1118.BcsType<string, string, "string">;
|
|
22
|
+
indexMod4: _mysten_bcs1118.BcsType<number, number, "u8">;
|
|
23
23
|
}, string>;
|
|
24
|
-
headerBase64:
|
|
25
|
-
addressSeed:
|
|
24
|
+
headerBase64: _mysten_bcs1118.BcsType<string, string, "string">;
|
|
25
|
+
addressSeed: _mysten_bcs1118.BcsType<string, string, "string">;
|
|
26
26
|
}, string>;
|
|
27
|
-
maxEpoch:
|
|
28
|
-
userSignature:
|
|
27
|
+
maxEpoch: _mysten_bcs1118.BcsType<string, string | number | bigint, "u64">;
|
|
28
|
+
userSignature: _mysten_bcs1118.BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>, "vector<u8>">;
|
|
29
29
|
}, string>;
|
|
30
30
|
type ZkLoginSignature = InferBcsInput<typeof zkLoginSignature>;
|
|
31
31
|
type ZkLoginSignatureInputs = ZkLoginSignature['inputs'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bcs.d.mts","names":[],"sources":["../../src/zklogin/bcs.ts"],"mappings":";;;;cAMa,gBAAA,
|
|
1
|
+
{"version":3,"file":"bcs.d.mts","names":[],"sources":["../../src/zklogin/bcs.ts"],"mappings":";;;;cAMa,gBAAA,kBAAgB,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAkBjB,gBAAA,GAAmB,aAAA,QAAqB,gBAAA;AAAA,KACxC,sBAAA,GAAyB,gBAAA"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"author": "Mysten Labs <build@mystenlabs.com>",
|
|
4
4
|
"description": "Sui TypeScript API",
|
|
5
5
|
"homepage": "https://sdk.mystenlabs.com",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.22.0",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"files": [
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
"graphql": "^16.14.2",
|
|
169
169
|
"poseidon-lite": "0.2.1",
|
|
170
170
|
"valibot": "^1.4.1",
|
|
171
|
-
"@mysten/
|
|
172
|
-
"@mysten/
|
|
171
|
+
"@mysten/bcs": "^2.1.0",
|
|
172
|
+
"@mysten/utils": "^0.4.0"
|
|
173
173
|
},
|
|
174
174
|
"scripts": {
|
|
175
175
|
"clean": "rm -rf tsconfig.tsbuildinfo ./dist",
|
package/src/grpc/client.ts
CHANGED
|
@@ -57,6 +57,78 @@ export interface ListDynamicFieldsWithValueResponse<Include extends DynamicField
|
|
|
57
57
|
dynamicFields: DynamicFieldEntryWithValue<Include>[];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
export interface GrpcTransactionInclude extends SuiClientTypes.TransactionInclude {
|
|
61
|
+
/** Include the parsed protobuf JSON value for the gRPC transaction response. */
|
|
62
|
+
protoJson?: boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface GrpcSimulateTransactionInclude extends SuiClientTypes.SimulateTransactionInclude {
|
|
66
|
+
/** Include the parsed protobuf JSON value for the gRPC simulation response. */
|
|
67
|
+
protoJson?: boolean;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GrpcTransactionProtoJson = ReturnType<
|
|
71
|
+
typeof import('./proto/sui/rpc/v2/executed_transaction.js').ExecutedTransaction.toJson
|
|
72
|
+
>;
|
|
73
|
+
|
|
74
|
+
export type GrpcSimulateTransactionProtoJson = ReturnType<
|
|
75
|
+
typeof import('./proto/sui/rpc/v2/transaction_execution_service.js').SimulateTransactionResponse.toJson
|
|
76
|
+
>;
|
|
77
|
+
|
|
78
|
+
type ProtoJson<Include extends { protoJson?: boolean }, Json> = Include['protoJson'] extends true
|
|
79
|
+
? Json
|
|
80
|
+
: undefined;
|
|
81
|
+
|
|
82
|
+
export type GrpcTransactionResult<Include extends GrpcTransactionInclude = {}> =
|
|
83
|
+
SuiClientTypes.TransactionResult<Include> & {
|
|
84
|
+
protoJson: ProtoJson<Include, GrpcTransactionProtoJson>;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type GrpcSimulateTransactionResult<Include extends GrpcSimulateTransactionInclude = {}> =
|
|
88
|
+
SuiClientTypes.SimulateTransactionResult<Include> & {
|
|
89
|
+
protoJson: ProtoJson<Include, GrpcSimulateTransactionProtoJson>;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export interface GrpcGetTransactionOptions<
|
|
93
|
+
Include extends GrpcTransactionInclude = {},
|
|
94
|
+
> extends SuiClientTypes.GetTransactionOptions<Include> {
|
|
95
|
+
include?: Include & GrpcTransactionInclude;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface GrpcWaitForTransactionByDigest<
|
|
99
|
+
Include extends GrpcTransactionInclude = {},
|
|
100
|
+
> extends SuiClientTypes.WaitForTransactionByDigest<Include> {
|
|
101
|
+
include?: Include & GrpcTransactionInclude;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface GrpcWaitForTransactionByResult<
|
|
105
|
+
Include extends GrpcTransactionInclude = {},
|
|
106
|
+
> extends SuiClientTypes.WaitForTransactionByResult<Include> {
|
|
107
|
+
include?: Include & GrpcTransactionInclude;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type GrpcWaitForTransactionOptions<Include extends GrpcTransactionInclude = {}> =
|
|
111
|
+
| GrpcWaitForTransactionByDigest<Include>
|
|
112
|
+
| GrpcWaitForTransactionByResult<Include>;
|
|
113
|
+
|
|
114
|
+
export interface GrpcExecuteTransactionOptions<
|
|
115
|
+
Include extends GrpcTransactionInclude = {},
|
|
116
|
+
> extends SuiClientTypes.ExecuteTransactionOptions<Include> {
|
|
117
|
+
include?: Include & GrpcTransactionInclude;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface GrpcSignAndExecuteTransactionOptions<
|
|
121
|
+
Include extends GrpcTransactionInclude = {},
|
|
122
|
+
> extends SuiClientTypes.SignAndExecuteTransactionOptions<Include> {
|
|
123
|
+
include?: Include & GrpcTransactionInclude;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface GrpcSimulateTransactionOptions<
|
|
127
|
+
Include extends GrpcSimulateTransactionInclude = {},
|
|
128
|
+
> extends SuiClientTypes.SimulateTransactionOptions<Include> {
|
|
129
|
+
include?: Include & GrpcSimulateTransactionInclude;
|
|
130
|
+
}
|
|
131
|
+
|
|
60
132
|
export class SuiGrpcClient extends BaseClient implements SuiClientTypes.TransportMethods {
|
|
61
133
|
core: GrpcCoreClient;
|
|
62
134
|
get mvr(): SuiClientTypes.MvrMethods {
|
|
@@ -135,34 +207,34 @@ export class SuiGrpcClient extends BaseClient implements SuiClientTypes.Transpor
|
|
|
135
207
|
return this.core.getCoinMetadata(input);
|
|
136
208
|
}
|
|
137
209
|
|
|
138
|
-
getTransaction<Include extends
|
|
139
|
-
input:
|
|
140
|
-
): Promise<
|
|
141
|
-
return this.core.getTransaction(input)
|
|
210
|
+
getTransaction<Include extends GrpcTransactionInclude = {}>(
|
|
211
|
+
input: GrpcGetTransactionOptions<Include>,
|
|
212
|
+
): Promise<GrpcTransactionResult<Include>> {
|
|
213
|
+
return this.core.getTransaction(input) as Promise<GrpcTransactionResult<Include>>;
|
|
142
214
|
}
|
|
143
215
|
|
|
144
|
-
executeTransaction<Include extends
|
|
145
|
-
input:
|
|
146
|
-
): Promise<
|
|
147
|
-
return this.core.executeTransaction(input)
|
|
216
|
+
executeTransaction<Include extends GrpcTransactionInclude = {}>(
|
|
217
|
+
input: GrpcExecuteTransactionOptions<Include>,
|
|
218
|
+
): Promise<GrpcTransactionResult<Include>> {
|
|
219
|
+
return this.core.executeTransaction(input) as Promise<GrpcTransactionResult<Include>>;
|
|
148
220
|
}
|
|
149
221
|
|
|
150
|
-
signAndExecuteTransaction<Include extends
|
|
151
|
-
input:
|
|
152
|
-
): Promise<
|
|
153
|
-
return this.core.signAndExecuteTransaction(input)
|
|
222
|
+
signAndExecuteTransaction<Include extends GrpcTransactionInclude = {}>(
|
|
223
|
+
input: GrpcSignAndExecuteTransactionOptions<Include>,
|
|
224
|
+
): Promise<GrpcTransactionResult<Include>> {
|
|
225
|
+
return this.core.signAndExecuteTransaction(input) as Promise<GrpcTransactionResult<Include>>;
|
|
154
226
|
}
|
|
155
227
|
|
|
156
|
-
waitForTransaction<Include extends
|
|
157
|
-
input:
|
|
158
|
-
): Promise<
|
|
159
|
-
return this.core.waitForTransaction(input)
|
|
228
|
+
waitForTransaction<Include extends GrpcTransactionInclude = {}>(
|
|
229
|
+
input: GrpcWaitForTransactionOptions<Include>,
|
|
230
|
+
): Promise<GrpcTransactionResult<Include>> {
|
|
231
|
+
return this.core.waitForTransaction(input) as Promise<GrpcTransactionResult<Include>>;
|
|
160
232
|
}
|
|
161
233
|
|
|
162
|
-
simulateTransaction<Include extends
|
|
163
|
-
input:
|
|
164
|
-
): Promise<
|
|
165
|
-
return this.core.simulateTransaction(input)
|
|
234
|
+
simulateTransaction<Include extends GrpcSimulateTransactionInclude = {}>(
|
|
235
|
+
input: GrpcSimulateTransactionOptions<Include>,
|
|
236
|
+
): Promise<GrpcSimulateTransactionResult<Include>> {
|
|
237
|
+
return this.core.simulateTransaction(input) as Promise<GrpcSimulateTransactionResult<Include>>;
|
|
166
238
|
}
|
|
167
239
|
|
|
168
240
|
getReferenceGasPrice(): Promise<SuiClientTypes.GetReferenceGasPriceResponse> {
|