@mysten/sui 2.27.1 → 2.28.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/bcs.d.mts.map +1 -1
- package/dist/bcs/bcs.mjs +29 -2
- package/dist/bcs/bcs.mjs.map +1 -1
- package/dist/bcs/effects.mjs +2 -1
- package/dist/bcs/effects.mjs.map +1 -1
- package/dist/bcs/index.d.mts +137 -41
- package/dist/bcs/index.d.mts.map +1 -1
- package/dist/bcs/transactions.mjs +2 -1
- package/dist/bcs/transactions.mjs.map +1 -1
- package/dist/client/transaction-resolver.mjs +45 -9
- package/dist/client/transaction-resolver.mjs.map +1 -1
- package/dist/cryptography/signature.d.mts +14 -14
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/execution_status.d.mts +9 -1
- package/dist/grpc/proto/sui/rpc/v2/execution_status.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/execution_status.mjs +8 -0
- package/dist/grpc/proto/sui/rpc/v2/execution_status.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/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/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.d.mts +50 -2
- package/dist/grpc/proto/sui/rpc/v2/transaction.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction.mjs +36 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction.mjs.map +1 -1
- package/dist/grpc/proto/types.d.mts +2 -2
- package/dist/grpc/proto/types.mjs +2 -1
- package/dist/transactions/Transaction.d.mts +21 -9
- package/dist/transactions/Transaction.d.mts.map +1 -1
- package/dist/transactions/data/internal.d.mts +133 -109
- package/dist/transactions/data/internal.d.mts.map +1 -1
- package/dist/transactions/data/internal.mjs +11 -2
- package/dist/transactions/data/internal.mjs.map +1 -1
- package/dist/transactions/data/v1.d.mts +242 -220
- package/dist/transactions/data/v1.d.mts.map +1 -1
- package/dist/transactions/data/v1.mjs +27 -4
- package/dist/transactions/data/v1.mjs.map +1 -1
- package/dist/transactions/data/v2.d.mts +28 -16
- package/dist/transactions/data/v2.d.mts.map +1 -1
- package/dist/transactions/data/v2.mjs +3 -2
- package/dist/transactions/data/v2.mjs.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/package.json +1 -1
- package/src/bcs/bcs.ts +45 -0
- package/src/bcs/effects.ts +3 -0
- package/src/bcs/transactions.ts +1 -0
- package/src/bcs/types.ts +10 -1
- package/src/client/transaction-resolver.ts +79 -9
- package/src/grpc/proto/sui/rpc/v2/execution_status.ts +8 -0
- package/src/grpc/proto/sui/rpc/v2/transaction.ts +68 -0
- package/src/transactions/data/internal.ts +19 -0
- package/src/transactions/data/v1.ts +51 -12
- package/src/transactions/data/v2.ts +2 -0
- package/src/version.ts +1 -1
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
import { assertAllowedProposersNotEmpty, assertAllowedProposersStrictlyIncreasing } from "../bcs/bcs.mjs";
|
|
1
2
|
import { Argument_ArgumentKind } from "../grpc/proto/sui/rpc/v2/argument.mjs";
|
|
2
3
|
import { FundsWithdrawal_Source, Input_InputKind } from "../grpc/proto/sui/rpc/v2/input.mjs";
|
|
3
4
|
import { Transaction, TransactionExpiration_TransactionExpirationKind } from "../grpc/proto/sui/rpc/v2/transaction.mjs";
|
|
4
5
|
import { fromBase64, toBase64 } from "@mysten/bcs";
|
|
5
6
|
|
|
6
7
|
//#region src/client/transaction-resolver.ts
|
|
8
|
+
function millisecondsToGrpcTimestamp(value) {
|
|
9
|
+
const milliseconds = BigInt(value);
|
|
10
|
+
return {
|
|
11
|
+
seconds: milliseconds / 1000n,
|
|
12
|
+
nanos: Number(milliseconds % 1000n) * 1e6
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function grpcTimestampToMilliseconds(timestamp) {
|
|
16
|
+
return (timestamp.seconds * 1000n + BigInt(Math.floor(timestamp.nanos / 1e6))).toString();
|
|
17
|
+
}
|
|
7
18
|
/**
|
|
8
19
|
* Converts CallArg (TypeScript internal format) to gRPC Input format
|
|
9
20
|
*/
|
|
@@ -167,14 +178,21 @@ function transactionDataToGrpcTransaction(data) {
|
|
|
167
178
|
kind: TransactionExpiration_TransactionExpirationKind.EPOCH,
|
|
168
179
|
epoch: BigInt(data.expiration.Epoch)
|
|
169
180
|
};
|
|
170
|
-
else if (data.expiration.$kind === "ValidDuring") {
|
|
171
|
-
const
|
|
181
|
+
else if (data.expiration.$kind === "ValidDuring" || data.expiration.$kind === "Validity") {
|
|
182
|
+
const validity = data.expiration.$kind === "ValidDuring" ? data.expiration.ValidDuring : data.expiration.Validity;
|
|
183
|
+
const allowedProposers = data.expiration.$kind === "Validity" ? data.expiration.Validity.allowedProposers : null;
|
|
172
184
|
transaction.expiration = {
|
|
173
|
-
kind: TransactionExpiration_TransactionExpirationKind.VALID_DURING,
|
|
174
|
-
minEpoch:
|
|
175
|
-
epoch:
|
|
176
|
-
|
|
177
|
-
|
|
185
|
+
kind: data.expiration.$kind === "ValidDuring" ? TransactionExpiration_TransactionExpirationKind.VALID_DURING : TransactionExpiration_TransactionExpirationKind.VALIDITY,
|
|
186
|
+
minEpoch: validity.minEpoch != null ? BigInt(validity.minEpoch) : void 0,
|
|
187
|
+
epoch: validity.maxEpoch != null ? BigInt(validity.maxEpoch) : void 0,
|
|
188
|
+
minTimestamp: validity.minTimestamp != null ? millisecondsToGrpcTimestamp(validity.minTimestamp) : void 0,
|
|
189
|
+
maxTimestamp: validity.maxTimestamp != null ? millisecondsToGrpcTimestamp(validity.maxTimestamp) : void 0,
|
|
190
|
+
chain: validity.chain,
|
|
191
|
+
nonce: validity.nonce,
|
|
192
|
+
allowedProposers: allowedProposers ? {
|
|
193
|
+
epoch: BigInt(allowedProposers.epoch),
|
|
194
|
+
proposers: assertAllowedProposersStrictlyIncreasing(allowedProposers.proposers)
|
|
195
|
+
} : void 0
|
|
178
196
|
};
|
|
179
197
|
}
|
|
180
198
|
}
|
|
@@ -374,13 +392,31 @@ function grpcTransactionToTransactionData(grpcTx) {
|
|
|
374
392
|
ValidDuring: {
|
|
375
393
|
minEpoch: grpcTx.expiration.minEpoch?.toString() ?? null,
|
|
376
394
|
maxEpoch: grpcTx.expiration.epoch?.toString() ?? null,
|
|
377
|
-
minTimestamp: null,
|
|
378
|
-
maxTimestamp: null,
|
|
395
|
+
minTimestamp: grpcTx.expiration.minTimestamp ? grpcTimestampToMilliseconds(grpcTx.expiration.minTimestamp) : null,
|
|
396
|
+
maxTimestamp: grpcTx.expiration.maxTimestamp ? grpcTimestampToMilliseconds(grpcTx.expiration.maxTimestamp) : null,
|
|
379
397
|
chain: grpcTx.expiration.chain ?? "",
|
|
380
398
|
nonce: grpcTx.expiration.nonce ?? 0
|
|
381
399
|
}
|
|
382
400
|
};
|
|
383
401
|
break;
|
|
402
|
+
case TransactionExpiration_TransactionExpirationKind.VALIDITY:
|
|
403
|
+
expiration = {
|
|
404
|
+
$kind: "Validity",
|
|
405
|
+
Validity: {
|
|
406
|
+
minEpoch: grpcTx.expiration.minEpoch?.toString() ?? null,
|
|
407
|
+
maxEpoch: grpcTx.expiration.epoch?.toString() ?? null,
|
|
408
|
+
minTimestamp: grpcTx.expiration.minTimestamp ? grpcTimestampToMilliseconds(grpcTx.expiration.minTimestamp) : null,
|
|
409
|
+
maxTimestamp: grpcTx.expiration.maxTimestamp ? grpcTimestampToMilliseconds(grpcTx.expiration.maxTimestamp) : null,
|
|
410
|
+
chain: grpcTx.expiration.chain ?? "",
|
|
411
|
+
nonce: grpcTx.expiration.nonce ?? 0,
|
|
412
|
+
allowedProposers: grpcTx.expiration.allowedProposers ? {
|
|
413
|
+
epoch: grpcTx.expiration.allowedProposers.epoch?.toString() ?? "0",
|
|
414
|
+
proposers: assertAllowedProposersNotEmpty(grpcTx.expiration.allowedProposers.proposers)
|
|
415
|
+
} : null
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
break;
|
|
419
|
+
default: throw new Error(`Unknown transaction expiration kind: ${grpcTx.expiration.kind}`);
|
|
384
420
|
}
|
|
385
421
|
return {
|
|
386
422
|
version: 2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-resolver.mjs","names":["GrpcTransactionType"],"sources":["../../src/client/transaction-resolver.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { fromBase64, toBase64 } from '@mysten/bcs';\n\nimport type { bcs } from '../bcs/index.js';\nimport { TransactionDataBuilder } from '../transactions/TransactionData.js';\nimport type {\n\tCallArg,\n\tCommand as BcsCommand,\n\tTransactionData,\n} from '../transactions/data/internal.js';\nimport type { Transaction as GrpcTransaction } from '../grpc/proto/sui/rpc/v2/transaction.js';\nimport {\n\tTransaction as GrpcTransactionType,\n\tTransactionExpiration_TransactionExpirationKind,\n} from '../grpc/proto/sui/rpc/v2/transaction.js';\nimport type { ObjectReference } from '../grpc/proto/sui/rpc/v2/object_reference.js';\nimport type { Input } from '../grpc/proto/sui/rpc/v2/input.js';\nimport { FundsWithdrawal_Source, Input_InputKind } from '../grpc/proto/sui/rpc/v2/input.js';\nimport type { Command } from '../grpc/proto/sui/rpc/v2/transaction.js';\nimport type { Argument } from '../grpc/proto/sui/rpc/v2/argument.js';\nimport { Argument_ArgumentKind } from '../grpc/proto/sui/rpc/v2/argument.js';\nimport { Transaction } from '../transactions/Transaction.js';\n\n/**\n * Converts CallArg (TypeScript internal format) to gRPC Input format\n */\nfunction callArgToGrpcInput(arg: CallArg): Input {\n\tswitch (arg.$kind) {\n\t\tcase 'Pure':\n\t\t\t// Pure.bytes is a base64-encoded string that needs to be decoded\n\t\t\treturn {\n\t\t\t\tkind: Input_InputKind.PURE,\n\t\t\t\tpure: fromBase64(arg.Pure.bytes),\n\t\t\t};\n\n\t\tcase 'Object':\n\t\t\tif (arg.Object.$kind === 'ImmOrOwnedObject') {\n\t\t\t\treturn {\n\t\t\t\t\tkind: Input_InputKind.IMMUTABLE_OR_OWNED,\n\t\t\t\t\tobjectId: arg.Object.ImmOrOwnedObject.objectId,\n\t\t\t\t\tversion: BigInt(arg.Object.ImmOrOwnedObject.version),\n\t\t\t\t\tdigest: arg.Object.ImmOrOwnedObject.digest,\n\t\t\t\t};\n\t\t\t} else if (arg.Object.$kind === 'SharedObject') {\n\t\t\t\treturn {\n\t\t\t\t\tkind: Input_InputKind.SHARED,\n\t\t\t\t\tobjectId: arg.Object.SharedObject.objectId,\n\t\t\t\t\tversion: BigInt(arg.Object.SharedObject.initialSharedVersion),\n\t\t\t\t\tmutable: arg.Object.SharedObject.mutable,\n\t\t\t\t};\n\t\t\t} else if (arg.Object.$kind === 'Receiving') {\n\t\t\t\treturn {\n\t\t\t\t\tkind: Input_InputKind.RECEIVING,\n\t\t\t\t\tobjectId: arg.Object.Receiving.objectId,\n\t\t\t\t\tversion: BigInt(arg.Object.Receiving.version),\n\t\t\t\t\tdigest: arg.Object.Receiving.digest,\n\t\t\t\t};\n\t\t\t}\n\t\t\tthrow new Error(`Unknown Object kind: ${JSON.stringify(arg.Object)}`);\n\n\t\tcase 'UnresolvedObject':\n\t\t\tconst unresolved = arg.UnresolvedObject;\n\t\t\treturn {\n\t\t\t\tobjectId: unresolved.objectId,\n\t\t\t\tversion: unresolved.version\n\t\t\t\t\t? BigInt(unresolved.version)\n\t\t\t\t\t: unresolved.initialSharedVersion\n\t\t\t\t\t\t? BigInt(unresolved.initialSharedVersion)\n\t\t\t\t\t\t: undefined,\n\t\t\t\tdigest: unresolved.digest ?? undefined,\n\t\t\t\tmutable: unresolved.mutable ?? undefined,\n\t\t\t};\n\n\t\tcase 'UnresolvedPure':\n\t\t\tthrow new Error('UnresolvedPure arguments must be resolved before converting to gRPC format');\n\n\t\tcase 'FundsWithdrawal': {\n\t\t\tconst withdrawal = arg.FundsWithdrawal;\n\t\t\treturn {\n\t\t\t\tkind: Input_InputKind.FUNDS_WITHDRAWAL,\n\t\t\t\tfundsWithdrawal: {\n\t\t\t\t\tamount:\n\t\t\t\t\t\twithdrawal.reservation.$kind === 'MaxAmountU64'\n\t\t\t\t\t\t\t? BigInt(withdrawal.reservation.MaxAmountU64)\n\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\tcoinType: withdrawal.typeArg.$kind === 'Balance' ? withdrawal.typeArg.Balance : undefined,\n\t\t\t\t\tsource:\n\t\t\t\t\t\twithdrawal.withdrawFrom.$kind === 'Sponsor'\n\t\t\t\t\t\t\t? FundsWithdrawal_Source.SPONSOR\n\t\t\t\t\t\t\t: FundsWithdrawal_Source.SENDER,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown CallArg kind: ${JSON.stringify(arg)}`);\n\t}\n}\n\n/**\n * Converts a TypeScript Argument to gRPC Argument\n */\nfunction tsArgumentToGrpcArgument(arg: typeof bcs.Argument.$inferInput): Argument {\n\tif ('GasCoin' in arg) {\n\t\treturn { kind: Argument_ArgumentKind.GAS };\n\t} else if ('Input' in arg) {\n\t\treturn { kind: Argument_ArgumentKind.INPUT, input: arg.Input };\n\t} else if ('Result' in arg) {\n\t\treturn { kind: Argument_ArgumentKind.RESULT, result: arg.Result };\n\t} else if ('NestedResult' in arg) {\n\t\treturn {\n\t\t\tkind: Argument_ArgumentKind.RESULT,\n\t\t\tresult: arg.NestedResult[0],\n\t\t\tsubresult: arg.NestedResult[1],\n\t\t};\n\t}\n\tthrow new Error(`Unknown Argument: ${JSON.stringify(arg)}`);\n}\n\n/**\n * Converts TypeScript Command to gRPC Command\n */\nfunction tsCommandToGrpcCommand(cmd: BcsCommand): Command {\n\tswitch (cmd.$kind) {\n\t\tcase 'MoveCall':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'moveCall',\n\t\t\t\t\tmoveCall: {\n\t\t\t\t\t\tpackage: cmd.MoveCall.package,\n\t\t\t\t\t\tmodule: cmd.MoveCall.module,\n\t\t\t\t\t\tfunction: cmd.MoveCall.function,\n\t\t\t\t\t\ttypeArguments: cmd.MoveCall.typeArguments,\n\t\t\t\t\t\targuments: cmd.MoveCall.arguments.map(tsArgumentToGrpcArgument),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'TransferObjects':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'transferObjects',\n\t\t\t\t\ttransferObjects: {\n\t\t\t\t\t\tobjects: cmd.TransferObjects.objects.map(tsArgumentToGrpcArgument),\n\t\t\t\t\t\taddress: tsArgumentToGrpcArgument(cmd.TransferObjects.address),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'SplitCoins':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'splitCoins',\n\t\t\t\t\tsplitCoins: {\n\t\t\t\t\t\tcoin: tsArgumentToGrpcArgument(cmd.SplitCoins.coin),\n\t\t\t\t\t\tamounts: cmd.SplitCoins.amounts.map(tsArgumentToGrpcArgument),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'MergeCoins':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'mergeCoins',\n\t\t\t\t\tmergeCoins: {\n\t\t\t\t\t\tcoin: tsArgumentToGrpcArgument(cmd.MergeCoins.destination),\n\t\t\t\t\t\tcoinsToMerge: cmd.MergeCoins.sources.map(tsArgumentToGrpcArgument),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'Publish':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'publish',\n\t\t\t\t\tpublish: {\n\t\t\t\t\t\t// modules are base64-encoded strings in internal format\n\t\t\t\t\t\tmodules: cmd.Publish.modules.map((m) => fromBase64(m)),\n\t\t\t\t\t\tdependencies: cmd.Publish.dependencies,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'MakeMoveVec':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'makeMoveVector',\n\t\t\t\t\tmakeMoveVector: {\n\t\t\t\t\t\telementType: cmd.MakeMoveVec.type ?? undefined,\n\t\t\t\t\t\telements: cmd.MakeMoveVec.elements.map(tsArgumentToGrpcArgument),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'Upgrade':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'upgrade',\n\t\t\t\t\tupgrade: {\n\t\t\t\t\t\t// modules are base64-encoded strings in internal format\n\t\t\t\t\t\tmodules: cmd.Upgrade.modules.map((m) => fromBase64(m)),\n\t\t\t\t\t\tdependencies: cmd.Upgrade.dependencies,\n\t\t\t\t\t\tpackage: cmd.Upgrade.package,\n\t\t\t\t\t\tticket: tsArgumentToGrpcArgument(cmd.Upgrade.ticket),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown Command kind: ${JSON.stringify(cmd)}`);\n\t}\n}\n\nexport function transactionDataToGrpcTransaction(data: TransactionData): GrpcTransaction {\n\tconst grpcInputs = data.inputs.map(callArgToGrpcInput);\n\n\tconst grpcCommands = data.commands.map(tsCommandToGrpcCommand);\n\n\tconst transaction: GrpcTransaction = {\n\t\tversion: 1,\n\t\tkind: {\n\t\t\tdata: {\n\t\t\t\toneofKind: 'programmableTransaction',\n\t\t\t\tprogrammableTransaction: {\n\t\t\t\t\tinputs: grpcInputs,\n\t\t\t\t\tcommands: grpcCommands,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t};\n\n\tif (data.sender) {\n\t\ttransaction.sender = data.sender;\n\t}\n\n\tconst gasOwner = data.gasData.owner ?? data.sender;\n\n\ttransaction.gasPayment = {\n\t\tobjects: data.gasData.payment\n\t\t\t? data.gasData.payment.map((ref) => ({\n\t\t\t\t\tobjectId: ref.objectId,\n\t\t\t\t\tversion: BigInt(ref.version),\n\t\t\t\t\tdigest: ref.digest,\n\t\t\t\t}))\n\t\t\t: [],\n\t\tprice: data.gasData.price ? BigInt(data.gasData.price) : undefined,\n\t\tbudget: data.gasData.budget ? BigInt(data.gasData.budget) : undefined,\n\t};\n\n\tif (gasOwner) {\n\t\ttransaction.gasPayment.owner = gasOwner;\n\t}\n\n\tif (data.expiration) {\n\t\tif ('None' in data.expiration) {\n\t\t\ttransaction.expiration = {\n\t\t\t\tkind: TransactionExpiration_TransactionExpirationKind.NONE,\n\t\t\t};\n\t\t} else if (data.expiration.$kind === 'Epoch') {\n\t\t\ttransaction.expiration = {\n\t\t\t\tkind: TransactionExpiration_TransactionExpirationKind.EPOCH,\n\t\t\t\tepoch: BigInt(data.expiration.Epoch),\n\t\t\t};\n\t\t} else if (data.expiration.$kind === 'ValidDuring') {\n\t\t\tconst validDuring = data.expiration.ValidDuring;\n\t\t\ttransaction.expiration = {\n\t\t\t\tkind: TransactionExpiration_TransactionExpirationKind.VALID_DURING,\n\t\t\t\tminEpoch: validDuring.minEpoch != null ? BigInt(validDuring.minEpoch) : undefined,\n\t\t\t\tepoch: validDuring.maxEpoch != null ? BigInt(validDuring.maxEpoch) : undefined,\n\t\t\t\tchain: validDuring.chain,\n\t\t\t\tnonce: validDuring.nonce,\n\t\t\t};\n\t\t}\n\t}\n\n\treturn transaction;\n}\n\nexport function applyGrpcResolvedTransaction(\n\ttransactionData: TransactionDataBuilder,\n\tresolvedTransaction: GrpcTransaction,\n\toptions?: { onlyTransactionKind?: boolean },\n): void {\n\tconst resolved = grpcTransactionToTransactionData(resolvedTransaction);\n\n\tif (options?.onlyTransactionKind) {\n\t\ttransactionData.applyResolvedData({\n\t\t\t...resolved,\n\t\t\tsender: null,\n\t\t\tgasData: {\n\t\t\t\tbudget: null,\n\t\t\t\towner: null,\n\t\t\t\tpayment: null,\n\t\t\t\tprice: null,\n\t\t\t},\n\t\t\texpiration: null,\n\t\t});\n\t} else {\n\t\ttransactionData.applyResolvedData(resolved);\n\t}\n}\n\n/**\n * Converts an array of ObjectReferences from gRPC format to TypeScript SuiObjectRef format\n */\nexport function grpcObjectReferencesToBcs(refs: ObjectReference[]): {\n\tobjectId: string;\n\tversion: string;\n\tdigest: string;\n}[] {\n\treturn refs.map((ref) => ({\n\t\tobjectId: ref.objectId!,\n\t\tversion: ref.version?.toString()!,\n\t\tdigest: ref.digest!,\n\t}));\n}\n\nexport function transactionToGrpcTransaction(transaction: Transaction) {\n\tconst snapshot = transaction.getData();\n\n\tif (!snapshot.sender) {\n\t\tsnapshot.sender = '0x0000000000000000000000000000000000000000000000000000000000000000';\n\t}\n\n\treturn transactionDataToGrpcTransaction(snapshot);\n}\n\nexport function transactionToGrpcJson(transaction: Transaction): unknown {\n\tconst grpcTransaction = transactionToGrpcTransaction(transaction);\n\treturn GrpcTransactionType.toJson(grpcTransaction);\n}\n\nfunction grpcInputToCallArg(input: Input): CallArg {\n\tswitch (input.kind) {\n\t\tcase Input_InputKind.PURE:\n\t\t\treturn {\n\t\t\t\t$kind: 'Pure',\n\t\t\t\tPure: { bytes: toBase64(input.pure!) },\n\t\t\t};\n\n\t\tcase Input_InputKind.IMMUTABLE_OR_OWNED:\n\t\t\treturn {\n\t\t\t\t$kind: 'Object',\n\t\t\t\tObject: {\n\t\t\t\t\t$kind: 'ImmOrOwnedObject',\n\t\t\t\t\tImmOrOwnedObject: {\n\t\t\t\t\t\tobjectId: input.objectId!,\n\t\t\t\t\t\tversion: input.version!.toString(),\n\t\t\t\t\t\tdigest: input.digest!,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase Input_InputKind.SHARED:\n\t\t\treturn {\n\t\t\t\t$kind: 'Object',\n\t\t\t\tObject: {\n\t\t\t\t\t$kind: 'SharedObject',\n\t\t\t\t\tSharedObject: {\n\t\t\t\t\t\tobjectId: input.objectId!,\n\t\t\t\t\t\tinitialSharedVersion: input.version!.toString(),\n\t\t\t\t\t\tmutable: input.mutable ?? false,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase Input_InputKind.RECEIVING:\n\t\t\treturn {\n\t\t\t\t$kind: 'Object',\n\t\t\t\tObject: {\n\t\t\t\t\t$kind: 'Receiving',\n\t\t\t\t\tReceiving: {\n\t\t\t\t\t\tobjectId: input.objectId!,\n\t\t\t\t\t\tversion: input.version!.toString(),\n\t\t\t\t\t\tdigest: input.digest!,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase Input_InputKind.FUNDS_WITHDRAWAL:\n\t\t\treturn {\n\t\t\t\t$kind: 'FundsWithdrawal',\n\t\t\t\tFundsWithdrawal: {\n\t\t\t\t\treservation: {\n\t\t\t\t\t\t$kind: 'MaxAmountU64' as const,\n\t\t\t\t\t\tMaxAmountU64: input.fundsWithdrawal?.amount?.toString() ?? '0',\n\t\t\t\t\t},\n\t\t\t\t\ttypeArg: {\n\t\t\t\t\t\t$kind: 'Balance' as const,\n\t\t\t\t\t\tBalance: input.fundsWithdrawal?.coinType ?? '0x2::sui::SUI',\n\t\t\t\t\t},\n\t\t\t\t\twithdrawFrom:\n\t\t\t\t\t\tinput.fundsWithdrawal?.source === FundsWithdrawal_Source.SPONSOR\n\t\t\t\t\t\t\t? { $kind: 'Sponsor' as const, Sponsor: true as const }\n\t\t\t\t\t\t\t: { $kind: 'Sender' as const, Sender: true as const },\n\t\t\t\t},\n\t\t\t};\n\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown Input kind: ${JSON.stringify(input)}`);\n\t}\n}\n\nfunction grpcArgumentToTsArgument(\n\targ: Argument,\n):\n\t| { $kind: 'GasCoin'; GasCoin: true }\n\t| { $kind: 'Input'; Input: number }\n\t| { $kind: 'Result'; Result: number }\n\t| { $kind: 'NestedResult'; NestedResult: [number, number] } {\n\tswitch (arg.kind) {\n\t\tcase Argument_ArgumentKind.GAS:\n\t\t\treturn { $kind: 'GasCoin', GasCoin: true };\n\t\tcase Argument_ArgumentKind.INPUT:\n\t\t\treturn { $kind: 'Input', Input: arg.input! };\n\t\tcase Argument_ArgumentKind.RESULT:\n\t\t\tif (arg.subresult != null) {\n\t\t\t\treturn { $kind: 'NestedResult', NestedResult: [arg.result!, arg.subresult] };\n\t\t\t}\n\t\t\treturn { $kind: 'Result', Result: arg.result! };\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown Argument kind: ${JSON.stringify(arg)}`);\n\t}\n}\n\nfunction grpcCommandToTsCommand(cmd: Command): BcsCommand {\n\tconst command = cmd.command;\n\tif (!command) {\n\t\tthrow new Error('Command is missing');\n\t}\n\n\tswitch (command.oneofKind) {\n\t\tcase 'moveCall':\n\t\t\treturn {\n\t\t\t\t$kind: 'MoveCall',\n\t\t\t\tMoveCall: {\n\t\t\t\t\tpackage: command.moveCall.package!,\n\t\t\t\t\tmodule: command.moveCall.module!,\n\t\t\t\t\tfunction: command.moveCall.function!,\n\t\t\t\t\ttypeArguments: command.moveCall.typeArguments ?? [],\n\t\t\t\t\targuments: command.moveCall.arguments.map(grpcArgumentToTsArgument),\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'transferObjects':\n\t\t\treturn {\n\t\t\t\t$kind: 'TransferObjects',\n\t\t\t\tTransferObjects: {\n\t\t\t\t\tobjects: command.transferObjects.objects.map(grpcArgumentToTsArgument),\n\t\t\t\t\taddress: grpcArgumentToTsArgument(command.transferObjects.address!),\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'splitCoins':\n\t\t\treturn {\n\t\t\t\t$kind: 'SplitCoins',\n\t\t\t\tSplitCoins: {\n\t\t\t\t\tcoin: grpcArgumentToTsArgument(command.splitCoins.coin!),\n\t\t\t\t\tamounts: command.splitCoins.amounts.map(grpcArgumentToTsArgument),\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'mergeCoins':\n\t\t\treturn {\n\t\t\t\t$kind: 'MergeCoins',\n\t\t\t\tMergeCoins: {\n\t\t\t\t\tdestination: grpcArgumentToTsArgument(command.mergeCoins.coin!),\n\t\t\t\t\tsources: command.mergeCoins.coinsToMerge.map(grpcArgumentToTsArgument),\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'publish':\n\t\t\treturn {\n\t\t\t\t$kind: 'Publish',\n\t\t\t\tPublish: {\n\t\t\t\t\tmodules: command.publish.modules.map((m) => toBase64(m)),\n\t\t\t\t\tdependencies: command.publish.dependencies ?? [],\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'makeMoveVector':\n\t\t\treturn {\n\t\t\t\t$kind: 'MakeMoveVec',\n\t\t\t\tMakeMoveVec: {\n\t\t\t\t\ttype: command.makeMoveVector.elementType ?? null,\n\t\t\t\t\telements: command.makeMoveVector.elements.map(grpcArgumentToTsArgument),\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'upgrade':\n\t\t\treturn {\n\t\t\t\t$kind: 'Upgrade',\n\t\t\t\tUpgrade: {\n\t\t\t\t\tmodules: command.upgrade.modules.map((m) => toBase64(m)),\n\t\t\t\t\tdependencies: command.upgrade.dependencies ?? [],\n\t\t\t\t\tpackage: command.upgrade.package!,\n\t\t\t\t\tticket: grpcArgumentToTsArgument(command.upgrade.ticket!),\n\t\t\t\t},\n\t\t\t};\n\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown Command kind: ${JSON.stringify(command)}`);\n\t}\n}\n\nexport function grpcTransactionToTransactionData(grpcTx: GrpcTransaction): TransactionData {\n\tconst programmableTx = grpcTx.kind?.data;\n\tif (programmableTx?.oneofKind !== 'programmableTransaction') {\n\t\tthrow new Error('Only programmable transactions are supported');\n\t}\n\n\tconst inputs = programmableTx.programmableTransaction.inputs.map(grpcInputToCallArg);\n\tconst commands = programmableTx.programmableTransaction.commands.map(grpcCommandToTsCommand);\n\n\tlet expiration: TransactionData['expiration'] = null;\n\tif (grpcTx.expiration) {\n\t\tswitch (grpcTx.expiration.kind) {\n\t\t\tcase TransactionExpiration_TransactionExpirationKind.NONE:\n\t\t\t\texpiration = { $kind: 'None', None: true };\n\t\t\t\tbreak;\n\t\t\tcase TransactionExpiration_TransactionExpirationKind.EPOCH:\n\t\t\t\texpiration = { $kind: 'Epoch', Epoch: grpcTx.expiration.epoch!.toString() };\n\t\t\t\tbreak;\n\t\t\tcase TransactionExpiration_TransactionExpirationKind.VALID_DURING:\n\t\t\t\texpiration = {\n\t\t\t\t\t$kind: 'ValidDuring',\n\t\t\t\t\tValidDuring: {\n\t\t\t\t\t\tminEpoch: grpcTx.expiration.minEpoch?.toString() ?? null,\n\t\t\t\t\t\tmaxEpoch: grpcTx.expiration.epoch?.toString() ?? null,\n\t\t\t\t\t\tminTimestamp: null,\n\t\t\t\t\t\tmaxTimestamp: null,\n\t\t\t\t\t\tchain: grpcTx.expiration.chain ?? '',\n\t\t\t\t\t\tnonce: grpcTx.expiration.nonce ?? 0,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn {\n\t\tversion: 2 as const,\n\t\tsender: grpcTx.sender ?? null,\n\t\texpiration,\n\t\tgasData: {\n\t\t\tbudget: grpcTx.gasPayment?.budget?.toString() ?? null,\n\t\t\towner: grpcTx.gasPayment?.owner ?? null,\n\t\t\tpayment:\n\t\t\t\tgrpcTx.gasPayment?.objects?.map((obj) => ({\n\t\t\t\t\tobjectId: obj.objectId!,\n\t\t\t\t\tversion: obj.version!.toString(),\n\t\t\t\t\tdigest: obj.digest!,\n\t\t\t\t})) ?? null,\n\t\t\tprice: grpcTx.gasPayment?.price?.to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["GrpcTransactionType"],"sources":["../../src/client/transaction-resolver.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { fromBase64, toBase64 } from '@mysten/bcs';\n\nimport type { bcs } from '../bcs/index.js';\nimport {\n\tassertAllowedProposersNotEmpty,\n\tassertAllowedProposersStrictlyIncreasing,\n} from '../bcs/bcs.js';\nimport { TransactionDataBuilder } from '../transactions/TransactionData.js';\nimport type {\n\tCallArg,\n\tCommand as BcsCommand,\n\tTransactionData,\n} from '../transactions/data/internal.js';\nimport type { Transaction as GrpcTransaction } from '../grpc/proto/sui/rpc/v2/transaction.js';\nimport {\n\tTransaction as GrpcTransactionType,\n\tTransactionExpiration_TransactionExpirationKind,\n} from '../grpc/proto/sui/rpc/v2/transaction.js';\nimport type { ObjectReference } from '../grpc/proto/sui/rpc/v2/object_reference.js';\nimport type { Input } from '../grpc/proto/sui/rpc/v2/input.js';\nimport { FundsWithdrawal_Source, Input_InputKind } from '../grpc/proto/sui/rpc/v2/input.js';\nimport type { Command } from '../grpc/proto/sui/rpc/v2/transaction.js';\nimport type { Argument } from '../grpc/proto/sui/rpc/v2/argument.js';\nimport { Argument_ArgumentKind } from '../grpc/proto/sui/rpc/v2/argument.js';\nimport { Transaction } from '../transactions/Transaction.js';\n\nfunction millisecondsToGrpcTimestamp(value: string | number) {\n\tconst milliseconds = BigInt(value);\n\treturn {\n\t\tseconds: milliseconds / 1000n,\n\t\tnanos: Number(milliseconds % 1000n) * 1_000_000,\n\t};\n}\n\nfunction grpcTimestampToMilliseconds(timestamp: { seconds: bigint; nanos: number }) {\n\treturn (timestamp.seconds * 1000n + BigInt(Math.floor(timestamp.nanos / 1_000_000))).toString();\n}\n\n/**\n * Converts CallArg (TypeScript internal format) to gRPC Input format\n */\nfunction callArgToGrpcInput(arg: CallArg): Input {\n\tswitch (arg.$kind) {\n\t\tcase 'Pure':\n\t\t\t// Pure.bytes is a base64-encoded string that needs to be decoded\n\t\t\treturn {\n\t\t\t\tkind: Input_InputKind.PURE,\n\t\t\t\tpure: fromBase64(arg.Pure.bytes),\n\t\t\t};\n\n\t\tcase 'Object':\n\t\t\tif (arg.Object.$kind === 'ImmOrOwnedObject') {\n\t\t\t\treturn {\n\t\t\t\t\tkind: Input_InputKind.IMMUTABLE_OR_OWNED,\n\t\t\t\t\tobjectId: arg.Object.ImmOrOwnedObject.objectId,\n\t\t\t\t\tversion: BigInt(arg.Object.ImmOrOwnedObject.version),\n\t\t\t\t\tdigest: arg.Object.ImmOrOwnedObject.digest,\n\t\t\t\t};\n\t\t\t} else if (arg.Object.$kind === 'SharedObject') {\n\t\t\t\treturn {\n\t\t\t\t\tkind: Input_InputKind.SHARED,\n\t\t\t\t\tobjectId: arg.Object.SharedObject.objectId,\n\t\t\t\t\tversion: BigInt(arg.Object.SharedObject.initialSharedVersion),\n\t\t\t\t\tmutable: arg.Object.SharedObject.mutable,\n\t\t\t\t};\n\t\t\t} else if (arg.Object.$kind === 'Receiving') {\n\t\t\t\treturn {\n\t\t\t\t\tkind: Input_InputKind.RECEIVING,\n\t\t\t\t\tobjectId: arg.Object.Receiving.objectId,\n\t\t\t\t\tversion: BigInt(arg.Object.Receiving.version),\n\t\t\t\t\tdigest: arg.Object.Receiving.digest,\n\t\t\t\t};\n\t\t\t}\n\t\t\tthrow new Error(`Unknown Object kind: ${JSON.stringify(arg.Object)}`);\n\n\t\tcase 'UnresolvedObject':\n\t\t\tconst unresolved = arg.UnresolvedObject;\n\t\t\treturn {\n\t\t\t\tobjectId: unresolved.objectId,\n\t\t\t\tversion: unresolved.version\n\t\t\t\t\t? BigInt(unresolved.version)\n\t\t\t\t\t: unresolved.initialSharedVersion\n\t\t\t\t\t\t? BigInt(unresolved.initialSharedVersion)\n\t\t\t\t\t\t: undefined,\n\t\t\t\tdigest: unresolved.digest ?? undefined,\n\t\t\t\tmutable: unresolved.mutable ?? undefined,\n\t\t\t};\n\n\t\tcase 'UnresolvedPure':\n\t\t\tthrow new Error('UnresolvedPure arguments must be resolved before converting to gRPC format');\n\n\t\tcase 'FundsWithdrawal': {\n\t\t\tconst withdrawal = arg.FundsWithdrawal;\n\t\t\treturn {\n\t\t\t\tkind: Input_InputKind.FUNDS_WITHDRAWAL,\n\t\t\t\tfundsWithdrawal: {\n\t\t\t\t\tamount:\n\t\t\t\t\t\twithdrawal.reservation.$kind === 'MaxAmountU64'\n\t\t\t\t\t\t\t? BigInt(withdrawal.reservation.MaxAmountU64)\n\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\tcoinType: withdrawal.typeArg.$kind === 'Balance' ? withdrawal.typeArg.Balance : undefined,\n\t\t\t\t\tsource:\n\t\t\t\t\t\twithdrawal.withdrawFrom.$kind === 'Sponsor'\n\t\t\t\t\t\t\t? FundsWithdrawal_Source.SPONSOR\n\t\t\t\t\t\t\t: FundsWithdrawal_Source.SENDER,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown CallArg kind: ${JSON.stringify(arg)}`);\n\t}\n}\n\n/**\n * Converts a TypeScript Argument to gRPC Argument\n */\nfunction tsArgumentToGrpcArgument(arg: typeof bcs.Argument.$inferInput): Argument {\n\tif ('GasCoin' in arg) {\n\t\treturn { kind: Argument_ArgumentKind.GAS };\n\t} else if ('Input' in arg) {\n\t\treturn { kind: Argument_ArgumentKind.INPUT, input: arg.Input };\n\t} else if ('Result' in arg) {\n\t\treturn { kind: Argument_ArgumentKind.RESULT, result: arg.Result };\n\t} else if ('NestedResult' in arg) {\n\t\treturn {\n\t\t\tkind: Argument_ArgumentKind.RESULT,\n\t\t\tresult: arg.NestedResult[0],\n\t\t\tsubresult: arg.NestedResult[1],\n\t\t};\n\t}\n\tthrow new Error(`Unknown Argument: ${JSON.stringify(arg)}`);\n}\n\n/**\n * Converts TypeScript Command to gRPC Command\n */\nfunction tsCommandToGrpcCommand(cmd: BcsCommand): Command {\n\tswitch (cmd.$kind) {\n\t\tcase 'MoveCall':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'moveCall',\n\t\t\t\t\tmoveCall: {\n\t\t\t\t\t\tpackage: cmd.MoveCall.package,\n\t\t\t\t\t\tmodule: cmd.MoveCall.module,\n\t\t\t\t\t\tfunction: cmd.MoveCall.function,\n\t\t\t\t\t\ttypeArguments: cmd.MoveCall.typeArguments,\n\t\t\t\t\t\targuments: cmd.MoveCall.arguments.map(tsArgumentToGrpcArgument),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'TransferObjects':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'transferObjects',\n\t\t\t\t\ttransferObjects: {\n\t\t\t\t\t\tobjects: cmd.TransferObjects.objects.map(tsArgumentToGrpcArgument),\n\t\t\t\t\t\taddress: tsArgumentToGrpcArgument(cmd.TransferObjects.address),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'SplitCoins':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'splitCoins',\n\t\t\t\t\tsplitCoins: {\n\t\t\t\t\t\tcoin: tsArgumentToGrpcArgument(cmd.SplitCoins.coin),\n\t\t\t\t\t\tamounts: cmd.SplitCoins.amounts.map(tsArgumentToGrpcArgument),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'MergeCoins':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'mergeCoins',\n\t\t\t\t\tmergeCoins: {\n\t\t\t\t\t\tcoin: tsArgumentToGrpcArgument(cmd.MergeCoins.destination),\n\t\t\t\t\t\tcoinsToMerge: cmd.MergeCoins.sources.map(tsArgumentToGrpcArgument),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'Publish':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'publish',\n\t\t\t\t\tpublish: {\n\t\t\t\t\t\t// modules are base64-encoded strings in internal format\n\t\t\t\t\t\tmodules: cmd.Publish.modules.map((m) => fromBase64(m)),\n\t\t\t\t\t\tdependencies: cmd.Publish.dependencies,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'MakeMoveVec':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'makeMoveVector',\n\t\t\t\t\tmakeMoveVector: {\n\t\t\t\t\t\telementType: cmd.MakeMoveVec.type ?? undefined,\n\t\t\t\t\t\telements: cmd.MakeMoveVec.elements.map(tsArgumentToGrpcArgument),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'Upgrade':\n\t\t\treturn {\n\t\t\t\tcommand: {\n\t\t\t\t\toneofKind: 'upgrade',\n\t\t\t\t\tupgrade: {\n\t\t\t\t\t\t// modules are base64-encoded strings in internal format\n\t\t\t\t\t\tmodules: cmd.Upgrade.modules.map((m) => fromBase64(m)),\n\t\t\t\t\t\tdependencies: cmd.Upgrade.dependencies,\n\t\t\t\t\t\tpackage: cmd.Upgrade.package,\n\t\t\t\t\t\tticket: tsArgumentToGrpcArgument(cmd.Upgrade.ticket),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown Command kind: ${JSON.stringify(cmd)}`);\n\t}\n}\n\nexport function transactionDataToGrpcTransaction(data: TransactionData): GrpcTransaction {\n\tconst grpcInputs = data.inputs.map(callArgToGrpcInput);\n\n\tconst grpcCommands = data.commands.map(tsCommandToGrpcCommand);\n\n\tconst transaction: GrpcTransaction = {\n\t\tversion: 1,\n\t\tkind: {\n\t\t\tdata: {\n\t\t\t\toneofKind: 'programmableTransaction',\n\t\t\t\tprogrammableTransaction: {\n\t\t\t\t\tinputs: grpcInputs,\n\t\t\t\t\tcommands: grpcCommands,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t};\n\n\tif (data.sender) {\n\t\ttransaction.sender = data.sender;\n\t}\n\n\tconst gasOwner = data.gasData.owner ?? data.sender;\n\n\ttransaction.gasPayment = {\n\t\tobjects: data.gasData.payment\n\t\t\t? data.gasData.payment.map((ref) => ({\n\t\t\t\t\tobjectId: ref.objectId,\n\t\t\t\t\tversion: BigInt(ref.version),\n\t\t\t\t\tdigest: ref.digest,\n\t\t\t\t}))\n\t\t\t: [],\n\t\tprice: data.gasData.price ? BigInt(data.gasData.price) : undefined,\n\t\tbudget: data.gasData.budget ? BigInt(data.gasData.budget) : undefined,\n\t};\n\n\tif (gasOwner) {\n\t\ttransaction.gasPayment.owner = gasOwner;\n\t}\n\n\tif (data.expiration) {\n\t\tif ('None' in data.expiration) {\n\t\t\ttransaction.expiration = {\n\t\t\t\tkind: TransactionExpiration_TransactionExpirationKind.NONE,\n\t\t\t};\n\t\t} else if (data.expiration.$kind === 'Epoch') {\n\t\t\ttransaction.expiration = {\n\t\t\t\tkind: TransactionExpiration_TransactionExpirationKind.EPOCH,\n\t\t\t\tepoch: BigInt(data.expiration.Epoch),\n\t\t\t};\n\t\t} else if (data.expiration.$kind === 'ValidDuring' || data.expiration.$kind === 'Validity') {\n\t\t\tconst validity =\n\t\t\t\tdata.expiration.$kind === 'ValidDuring'\n\t\t\t\t\t? data.expiration.ValidDuring\n\t\t\t\t\t: data.expiration.Validity;\n\t\t\tconst allowedProposers =\n\t\t\t\tdata.expiration.$kind === 'Validity' ? data.expiration.Validity.allowedProposers : null;\n\t\t\ttransaction.expiration = {\n\t\t\t\tkind:\n\t\t\t\t\tdata.expiration.$kind === 'ValidDuring'\n\t\t\t\t\t\t? TransactionExpiration_TransactionExpirationKind.VALID_DURING\n\t\t\t\t\t\t: TransactionExpiration_TransactionExpirationKind.VALIDITY,\n\t\t\t\tminEpoch: validity.minEpoch != null ? BigInt(validity.minEpoch) : undefined,\n\t\t\t\tepoch: validity.maxEpoch != null ? BigInt(validity.maxEpoch) : undefined,\n\t\t\t\tminTimestamp:\n\t\t\t\t\tvalidity.minTimestamp != null\n\t\t\t\t\t\t? millisecondsToGrpcTimestamp(validity.minTimestamp)\n\t\t\t\t\t\t: undefined,\n\t\t\t\tmaxTimestamp:\n\t\t\t\t\tvalidity.maxTimestamp != null\n\t\t\t\t\t\t? millisecondsToGrpcTimestamp(validity.maxTimestamp)\n\t\t\t\t\t\t: undefined,\n\t\t\t\tchain: validity.chain,\n\t\t\t\tnonce: validity.nonce,\n\t\t\t\tallowedProposers: allowedProposers\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tepoch: BigInt(allowedProposers.epoch),\n\t\t\t\t\t\t\tproposers: assertAllowedProposersStrictlyIncreasing(allowedProposers.proposers),\n\t\t\t\t\t\t}\n\t\t\t\t\t: undefined,\n\t\t\t};\n\t\t}\n\t}\n\n\treturn transaction;\n}\n\nexport function applyGrpcResolvedTransaction(\n\ttransactionData: TransactionDataBuilder,\n\tresolvedTransaction: GrpcTransaction,\n\toptions?: { onlyTransactionKind?: boolean },\n): void {\n\tconst resolved = grpcTransactionToTransactionData(resolvedTransaction);\n\n\tif (options?.onlyTransactionKind) {\n\t\ttransactionData.applyResolvedData({\n\t\t\t...resolved,\n\t\t\tsender: null,\n\t\t\tgasData: {\n\t\t\t\tbudget: null,\n\t\t\t\towner: null,\n\t\t\t\tpayment: null,\n\t\t\t\tprice: null,\n\t\t\t},\n\t\t\texpiration: null,\n\t\t});\n\t} else {\n\t\ttransactionData.applyResolvedData(resolved);\n\t}\n}\n\n/**\n * Converts an array of ObjectReferences from gRPC format to TypeScript SuiObjectRef format\n */\nexport function grpcObjectReferencesToBcs(refs: ObjectReference[]): {\n\tobjectId: string;\n\tversion: string;\n\tdigest: string;\n}[] {\n\treturn refs.map((ref) => ({\n\t\tobjectId: ref.objectId!,\n\t\tversion: ref.version?.toString()!,\n\t\tdigest: ref.digest!,\n\t}));\n}\n\nexport function transactionToGrpcTransaction(transaction: Transaction) {\n\tconst snapshot = transaction.getData();\n\n\tif (!snapshot.sender) {\n\t\tsnapshot.sender = '0x0000000000000000000000000000000000000000000000000000000000000000';\n\t}\n\n\treturn transactionDataToGrpcTransaction(snapshot);\n}\n\nexport function transactionToGrpcJson(transaction: Transaction): unknown {\n\tconst grpcTransaction = transactionToGrpcTransaction(transaction);\n\treturn GrpcTransactionType.toJson(grpcTransaction);\n}\n\nfunction grpcInputToCallArg(input: Input): CallArg {\n\tswitch (input.kind) {\n\t\tcase Input_InputKind.PURE:\n\t\t\treturn {\n\t\t\t\t$kind: 'Pure',\n\t\t\t\tPure: { bytes: toBase64(input.pure!) },\n\t\t\t};\n\n\t\tcase Input_InputKind.IMMUTABLE_OR_OWNED:\n\t\t\treturn {\n\t\t\t\t$kind: 'Object',\n\t\t\t\tObject: {\n\t\t\t\t\t$kind: 'ImmOrOwnedObject',\n\t\t\t\t\tImmOrOwnedObject: {\n\t\t\t\t\t\tobjectId: input.objectId!,\n\t\t\t\t\t\tversion: input.version!.toString(),\n\t\t\t\t\t\tdigest: input.digest!,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase Input_InputKind.SHARED:\n\t\t\treturn {\n\t\t\t\t$kind: 'Object',\n\t\t\t\tObject: {\n\t\t\t\t\t$kind: 'SharedObject',\n\t\t\t\t\tSharedObject: {\n\t\t\t\t\t\tobjectId: input.objectId!,\n\t\t\t\t\t\tinitialSharedVersion: input.version!.toString(),\n\t\t\t\t\t\tmutable: input.mutable ?? false,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase Input_InputKind.RECEIVING:\n\t\t\treturn {\n\t\t\t\t$kind: 'Object',\n\t\t\t\tObject: {\n\t\t\t\t\t$kind: 'Receiving',\n\t\t\t\t\tReceiving: {\n\t\t\t\t\t\tobjectId: input.objectId!,\n\t\t\t\t\t\tversion: input.version!.toString(),\n\t\t\t\t\t\tdigest: input.digest!,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase Input_InputKind.FUNDS_WITHDRAWAL:\n\t\t\treturn {\n\t\t\t\t$kind: 'FundsWithdrawal',\n\t\t\t\tFundsWithdrawal: {\n\t\t\t\t\treservation: {\n\t\t\t\t\t\t$kind: 'MaxAmountU64' as const,\n\t\t\t\t\t\tMaxAmountU64: input.fundsWithdrawal?.amount?.toString() ?? '0',\n\t\t\t\t\t},\n\t\t\t\t\ttypeArg: {\n\t\t\t\t\t\t$kind: 'Balance' as const,\n\t\t\t\t\t\tBalance: input.fundsWithdrawal?.coinType ?? '0x2::sui::SUI',\n\t\t\t\t\t},\n\t\t\t\t\twithdrawFrom:\n\t\t\t\t\t\tinput.fundsWithdrawal?.source === FundsWithdrawal_Source.SPONSOR\n\t\t\t\t\t\t\t? { $kind: 'Sponsor' as const, Sponsor: true as const }\n\t\t\t\t\t\t\t: { $kind: 'Sender' as const, Sender: true as const },\n\t\t\t\t},\n\t\t\t};\n\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown Input kind: ${JSON.stringify(input)}`);\n\t}\n}\n\nfunction grpcArgumentToTsArgument(\n\targ: Argument,\n):\n\t| { $kind: 'GasCoin'; GasCoin: true }\n\t| { $kind: 'Input'; Input: number }\n\t| { $kind: 'Result'; Result: number }\n\t| { $kind: 'NestedResult'; NestedResult: [number, number] } {\n\tswitch (arg.kind) {\n\t\tcase Argument_ArgumentKind.GAS:\n\t\t\treturn { $kind: 'GasCoin', GasCoin: true };\n\t\tcase Argument_ArgumentKind.INPUT:\n\t\t\treturn { $kind: 'Input', Input: arg.input! };\n\t\tcase Argument_ArgumentKind.RESULT:\n\t\t\tif (arg.subresult != null) {\n\t\t\t\treturn { $kind: 'NestedResult', NestedResult: [arg.result!, arg.subresult] };\n\t\t\t}\n\t\t\treturn { $kind: 'Result', Result: arg.result! };\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown Argument kind: ${JSON.stringify(arg)}`);\n\t}\n}\n\nfunction grpcCommandToTsCommand(cmd: Command): BcsCommand {\n\tconst command = cmd.command;\n\tif (!command) {\n\t\tthrow new Error('Command is missing');\n\t}\n\n\tswitch (command.oneofKind) {\n\t\tcase 'moveCall':\n\t\t\treturn {\n\t\t\t\t$kind: 'MoveCall',\n\t\t\t\tMoveCall: {\n\t\t\t\t\tpackage: command.moveCall.package!,\n\t\t\t\t\tmodule: command.moveCall.module!,\n\t\t\t\t\tfunction: command.moveCall.function!,\n\t\t\t\t\ttypeArguments: command.moveCall.typeArguments ?? [],\n\t\t\t\t\targuments: command.moveCall.arguments.map(grpcArgumentToTsArgument),\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'transferObjects':\n\t\t\treturn {\n\t\t\t\t$kind: 'TransferObjects',\n\t\t\t\tTransferObjects: {\n\t\t\t\t\tobjects: command.transferObjects.objects.map(grpcArgumentToTsArgument),\n\t\t\t\t\taddress: grpcArgumentToTsArgument(command.transferObjects.address!),\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'splitCoins':\n\t\t\treturn {\n\t\t\t\t$kind: 'SplitCoins',\n\t\t\t\tSplitCoins: {\n\t\t\t\t\tcoin: grpcArgumentToTsArgument(command.splitCoins.coin!),\n\t\t\t\t\tamounts: command.splitCoins.amounts.map(grpcArgumentToTsArgument),\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'mergeCoins':\n\t\t\treturn {\n\t\t\t\t$kind: 'MergeCoins',\n\t\t\t\tMergeCoins: {\n\t\t\t\t\tdestination: grpcArgumentToTsArgument(command.mergeCoins.coin!),\n\t\t\t\t\tsources: command.mergeCoins.coinsToMerge.map(grpcArgumentToTsArgument),\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'publish':\n\t\t\treturn {\n\t\t\t\t$kind: 'Publish',\n\t\t\t\tPublish: {\n\t\t\t\t\tmodules: command.publish.modules.map((m) => toBase64(m)),\n\t\t\t\t\tdependencies: command.publish.dependencies ?? [],\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'makeMoveVector':\n\t\t\treturn {\n\t\t\t\t$kind: 'MakeMoveVec',\n\t\t\t\tMakeMoveVec: {\n\t\t\t\t\ttype: command.makeMoveVector.elementType ?? null,\n\t\t\t\t\telements: command.makeMoveVector.elements.map(grpcArgumentToTsArgument),\n\t\t\t\t},\n\t\t\t};\n\n\t\tcase 'upgrade':\n\t\t\treturn {\n\t\t\t\t$kind: 'Upgrade',\n\t\t\t\tUpgrade: {\n\t\t\t\t\tmodules: command.upgrade.modules.map((m) => toBase64(m)),\n\t\t\t\t\tdependencies: command.upgrade.dependencies ?? [],\n\t\t\t\t\tpackage: command.upgrade.package!,\n\t\t\t\t\tticket: grpcArgumentToTsArgument(command.upgrade.ticket!),\n\t\t\t\t},\n\t\t\t};\n\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown Command kind: ${JSON.stringify(command)}`);\n\t}\n}\n\nexport function grpcTransactionToTransactionData(grpcTx: GrpcTransaction): TransactionData {\n\tconst programmableTx = grpcTx.kind?.data;\n\tif (programmableTx?.oneofKind !== 'programmableTransaction') {\n\t\tthrow new Error('Only programmable transactions are supported');\n\t}\n\n\tconst inputs = programmableTx.programmableTransaction.inputs.map(grpcInputToCallArg);\n\tconst commands = programmableTx.programmableTransaction.commands.map(grpcCommandToTsCommand);\n\n\tlet expiration: TransactionData['expiration'] = null;\n\tif (grpcTx.expiration) {\n\t\tswitch (grpcTx.expiration.kind) {\n\t\t\tcase TransactionExpiration_TransactionExpirationKind.NONE:\n\t\t\t\texpiration = { $kind: 'None', None: true };\n\t\t\t\tbreak;\n\t\t\tcase TransactionExpiration_TransactionExpirationKind.EPOCH:\n\t\t\t\texpiration = { $kind: 'Epoch', Epoch: grpcTx.expiration.epoch!.toString() };\n\t\t\t\tbreak;\n\t\t\tcase TransactionExpiration_TransactionExpirationKind.VALID_DURING:\n\t\t\t\texpiration = {\n\t\t\t\t\t$kind: 'ValidDuring',\n\t\t\t\t\tValidDuring: {\n\t\t\t\t\t\tminEpoch: grpcTx.expiration.minEpoch?.toString() ?? null,\n\t\t\t\t\t\tmaxEpoch: grpcTx.expiration.epoch?.toString() ?? null,\n\t\t\t\t\t\tminTimestamp: grpcTx.expiration.minTimestamp\n\t\t\t\t\t\t\t? grpcTimestampToMilliseconds(grpcTx.expiration.minTimestamp)\n\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\tmaxTimestamp: grpcTx.expiration.maxTimestamp\n\t\t\t\t\t\t\t? grpcTimestampToMilliseconds(grpcTx.expiration.maxTimestamp)\n\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\tchain: grpcTx.expiration.chain ?? '',\n\t\t\t\t\t\tnonce: grpcTx.expiration.nonce ?? 0,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase TransactionExpiration_TransactionExpirationKind.VALIDITY:\n\t\t\t\texpiration = {\n\t\t\t\t\t$kind: 'Validity',\n\t\t\t\t\tValidity: {\n\t\t\t\t\t\tminEpoch: grpcTx.expiration.minEpoch?.toString() ?? null,\n\t\t\t\t\t\tmaxEpoch: grpcTx.expiration.epoch?.toString() ?? null,\n\t\t\t\t\t\tminTimestamp: grpcTx.expiration.minTimestamp\n\t\t\t\t\t\t\t? grpcTimestampToMilliseconds(grpcTx.expiration.minTimestamp)\n\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\tmaxTimestamp: grpcTx.expiration.maxTimestamp\n\t\t\t\t\t\t\t? grpcTimestampToMilliseconds(grpcTx.expiration.maxTimestamp)\n\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\tchain: grpcTx.expiration.chain ?? '',\n\t\t\t\t\t\tnonce: grpcTx.expiration.nonce ?? 0,\n\t\t\t\t\t\tallowedProposers: grpcTx.expiration.allowedProposers\n\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\tepoch: grpcTx.expiration.allowedProposers.epoch?.toString() ?? '0',\n\t\t\t\t\t\t\t\t\tproposers: assertAllowedProposersNotEmpty(\n\t\t\t\t\t\t\t\t\t\tgrpcTx.expiration.allowedProposers.proposers,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t: null,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// Leaving `expiration` null here would drop a restriction the server did send.\n\t\t\t\tthrow new Error(`Unknown transaction expiration kind: ${grpcTx.expiration.kind}`);\n\t\t}\n\t}\n\n\treturn {\n\t\tversion: 2 as const,\n\t\tsender: grpcTx.sender ?? null,\n\t\texpiration,\n\t\tgasData: {\n\t\t\tbudget: grpcTx.gasPayment?.budget?.toString() ?? null,\n\t\t\towner: grpcTx.gasPayment?.owner ?? null,\n\t\t\tpayment:\n\t\t\t\tgrpcTx.gasPayment?.objects?.map((obj) => ({\n\t\t\t\t\tobjectId: obj.objectId!,\n\t\t\t\t\tversion: obj.version!.toString(),\n\t\t\t\t\tdigest: obj.digest!,\n\t\t\t\t})) ?? null,\n\t\t\tprice: grpcTx.gasPayment?.price?.toString() ?? null,\n\t\t},\n\t\tinputs,\n\t\tcommands,\n\t};\n}\n"],"mappings":";;;;;;;AA6BA,SAAS,4BAA4B,OAAwB;CAC5D,MAAM,eAAe,OAAO,MAAM;AAClC,QAAO;EACN,SAAS,eAAe;EACxB,OAAO,OAAO,eAAe,MAAM,GAAG;EACtC;;AAGF,SAAS,4BAA4B,WAA+C;AACnF,SAAQ,UAAU,UAAU,QAAQ,OAAO,KAAK,MAAM,UAAU,QAAQ,IAAU,CAAC,EAAE,UAAU;;;;;AAMhG,SAAS,mBAAmB,KAAqB;AAChD,SAAQ,IAAI,OAAZ;EACC,KAAK,OAEJ,QAAO;GACN,MAAM,gBAAgB;GACtB,MAAM,WAAW,IAAI,KAAK,MAAM;GAChC;EAEF,KAAK;AACJ,OAAI,IAAI,OAAO,UAAU,mBACxB,QAAO;IACN,MAAM,gBAAgB;IACtB,UAAU,IAAI,OAAO,iBAAiB;IACtC,SAAS,OAAO,IAAI,OAAO,iBAAiB,QAAQ;IACpD,QAAQ,IAAI,OAAO,iBAAiB;IACpC;YACS,IAAI,OAAO,UAAU,eAC/B,QA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AO,WAAW,SAAS;KAClC,kBAAkB,OAAO,WAAW,mBACjC;MACA,OAAO,OAAO,WAAW,iBAAiB,OAAO,UAAU,IAAI;MAC/D,WAAW,+BACV,OAAO,WAAW,iBAAiB,UACnC;MACD,GACA;KACH;IACD;AACD;EACD,QAEC,OAAM,IAAI,MAAM,wCAAwC,OAAO,WAAW,OAAO;;AAIpF,QAAO;EACN,SAAS;EACT,QAAQ,OAAO,UAAU;EACzB;EACA,SAAS;GACR,QAAQ,OAAO,YAAY,QAAQ,UAAU,IAAI;GACjD,OAAO,OAAO,YAAY,SAAS;GACnC,SACC,OAAO,YAAY,SAAS,KAAK,SAAS;IACzC,UAAU,IAAI;IACd,SAAS,IAAI,QAAS,UAAU;IAChC,QAAQ,IAAI;IACZ,EAAE,IAAI;GACR,OAAO,OAAO,YAAY,OAAO,UAAU,IAAI;GAC/C;EACD;EACA;EACA"}
|
|
@@ -23,20 +23,6 @@ declare function toSerializedSignature({
|
|
|
23
23
|
* Decodes a serialized signature into its constituent components: the signature scheme, the actual signature, and the public key
|
|
24
24
|
*/
|
|
25
25
|
declare function parseSerializedSignature(serializedSignature: string): {
|
|
26
|
-
signatureScheme: "Passkey";
|
|
27
|
-
serializedSignature: string;
|
|
28
|
-
signature: Uint8Array<ArrayBufferLike>;
|
|
29
|
-
authenticatorData: Uint8Array<ArrayBufferLike>;
|
|
30
|
-
clientDataJson: string;
|
|
31
|
-
userSignature: Uint8Array<ArrayBuffer>;
|
|
32
|
-
publicKey: Uint8Array<ArrayBuffer>;
|
|
33
|
-
} | {
|
|
34
|
-
serializedSignature: string;
|
|
35
|
-
signatureScheme: "ED25519" | "Secp256k1" | "Secp256r1";
|
|
36
|
-
signature: Uint8Array<ArrayBuffer>;
|
|
37
|
-
publicKey: Uint8Array<ArrayBuffer>;
|
|
38
|
-
bytes: Uint8Array<ArrayBuffer>;
|
|
39
|
-
} | {
|
|
40
26
|
serializedSignature: string;
|
|
41
27
|
signatureScheme: "ZkLogin";
|
|
42
28
|
zkLogin: {
|
|
@@ -60,6 +46,20 @@ declare function parseSerializedSignature(serializedSignature: string): {
|
|
|
60
46
|
};
|
|
61
47
|
signature: Uint8Array<ArrayBufferLike>;
|
|
62
48
|
publicKey: Uint8Array<ArrayBuffer>;
|
|
49
|
+
} | {
|
|
50
|
+
serializedSignature: string;
|
|
51
|
+
signatureScheme: "ED25519" | "Secp256k1" | "Secp256r1";
|
|
52
|
+
signature: Uint8Array<ArrayBuffer>;
|
|
53
|
+
publicKey: Uint8Array<ArrayBuffer>;
|
|
54
|
+
bytes: Uint8Array<ArrayBuffer>;
|
|
55
|
+
} | {
|
|
56
|
+
signatureScheme: "Passkey";
|
|
57
|
+
serializedSignature: string;
|
|
58
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
59
|
+
authenticatorData: Uint8Array<ArrayBufferLike>;
|
|
60
|
+
clientDataJson: string;
|
|
61
|
+
userSignature: Uint8Array<ArrayBuffer>;
|
|
62
|
+
publicKey: Uint8Array<ArrayBuffer>;
|
|
63
63
|
} | {
|
|
64
64
|
serializedSignature: string;
|
|
65
65
|
signatureScheme: "MultiSig";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdvanceCheckpointRequest, AdvanceCheckpointResponse, AdvanceClockRequest, AdvanceClockResponse, GetStatusRequest, GetStatusResponse } from "./forking_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/forking/v1alpha/forking_service.client.d.ts
|
|
@@ -37,9 +37,9 @@ interface IForkingServiceClient {
|
|
|
37
37
|
declare class ForkingServiceClient implements IForkingServiceClient, ServiceInfo {
|
|
38
38
|
private readonly _transport;
|
|
39
39
|
typeName: string;
|
|
40
|
-
methods:
|
|
40
|
+
methods: _protobuf_ts_runtime_rpc5.MethodInfo<any, any>[];
|
|
41
41
|
options: {
|
|
42
|
-
[extensionName: string]:
|
|
42
|
+
[extensionName: string]: _protobuf_ts_runtime5.JsonValue;
|
|
43
43
|
};
|
|
44
44
|
constructor(_transport: RpcTransport);
|
|
45
45
|
/**
|
|
@@ -704,7 +704,15 @@ declare enum CommandArgumentError_CommandArgumentErrorKind {
|
|
|
704
704
|
*
|
|
705
705
|
* @generated from protobuf enum value: INVALID_REFERENCE_ARGUMENT = 19;
|
|
706
706
|
*/
|
|
707
|
-
INVALID_REFERENCE_ARGUMENT = 19
|
|
707
|
+
INVALID_REFERENCE_ARGUMENT = 19,
|
|
708
|
+
/**
|
|
709
|
+
* Invalid usage of TxContext in the function signature. TxContext can only be used by
|
|
710
|
+
* reference, `&TxContext` or `&mut TxContext`. If used mutably, it must be the only
|
|
711
|
+
* TxContext parameter, and TxContext can never be returned from a Move call.
|
|
712
|
+
*
|
|
713
|
+
* @generated from protobuf enum value: INVALID_TX_CONTEXT = 20;
|
|
714
|
+
*/
|
|
715
|
+
INVALID_TX_CONTEXT = 20
|
|
708
716
|
}
|
|
709
717
|
/**
|
|
710
718
|
* An error with upgrading a package.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution_status.d.mts","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/execution_status.ts"],"mappings":";;;;;AAiBA;;;UAAiB,eAAA;EAMhB;;;;;EAAA,OAAA;EAa8B;;;;;EAP9B,KAAA,GAAQ,cAAA;AAAA;;;;;;UAOQ,cAAA;EAMhB;;;;;EAAA,WAAA;EAoBG;;;;;EAdH,OAAA;EA4BG;;;EAxBH,IAAA,GAAO,iCAAA;EA+Be;;;EA3BtB,YAAA;IAEG,SAAA;IAuCA;;;IAnCA,KAAA,EAAO,SAAA;EAAA;IAGP,SAAA;IA8CmB;;;IA1CnB,SAAA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AA,CAAY,SAAA;;;;;;cAmB5B,SAAA,EAAS,cAAA;AAAA,cAEhB,iBAAA,SAA0B,WAAA,CAAY,YAAA;;;;;;cAc/B,YAAA,EAAY,iBAAA;AAAA,cAEnB,gBAAA,SAAyB,WAAA,CAAY,WAAA;;;;;;cA6B9B,WAAA,EAAW,gBAAA;AAAA,cAElB,cAAA,SAAuB,WAAA,CAAY,SAAA;;;;;;cAyB5B,SAAA,EAAS,cAAA;AAAA,cAEhB,eAAA,SAAwB,WAAA,CAAY,UAAA;;;;;;cAW7B,UAAA,EAAU,eAAA;AAAA,cAEjB,sBAAA,SAA+B,WAAA,CAAY,iBAAA;;;;;;cAWpC,iBAAA,EAAiB,sBAAA;AAAA,cAExB,qBAAA,SAA8B,WAAA,CAAY,gBAAA;;;;;;cAgBnC,gBAAA,EAAgB,qBAAA;AAAA,cAEvB,yBAAA,SAAkC,WAAA,CAAY,oBAAA;;;;;;cAqBvC,oBAAA,EAAoB,yBAAA;AAAA,cAE3B,wBAAA,SAAiC,WAAA,CAAY,mBAAA;;;;;;cAuBtC,mBAAA,EAAmB,wBAAA;AAAA,cAE1B,sBAAA,SAA+B,WAAA,CAAY,iBAAA;;;;;;cAoBpC,iBAAA,EAAiB,sBAAA"}
|
|
@@ -420,6 +420,14 @@ let CommandArgumentError_CommandArgumentErrorKind = /* @__PURE__ */ function(Com
|
|
|
420
420
|
* @generated from protobuf enum value: INVALID_REFERENCE_ARGUMENT = 19;
|
|
421
421
|
*/
|
|
422
422
|
CommandArgumentError_CommandArgumentErrorKind$1[CommandArgumentError_CommandArgumentErrorKind$1["INVALID_REFERENCE_ARGUMENT"] = 19] = "INVALID_REFERENCE_ARGUMENT";
|
|
423
|
+
/**
|
|
424
|
+
* Invalid usage of TxContext in the function signature. TxContext can only be used by
|
|
425
|
+
* reference, `&TxContext` or `&mut TxContext`. If used mutably, it must be the only
|
|
426
|
+
* TxContext parameter, and TxContext can never be returned from a Move call.
|
|
427
|
+
*
|
|
428
|
+
* @generated from protobuf enum value: INVALID_TX_CONTEXT = 20;
|
|
429
|
+
*/
|
|
430
|
+
CommandArgumentError_CommandArgumentErrorKind$1[CommandArgumentError_CommandArgumentErrorKind$1["INVALID_TX_CONTEXT"] = 20] = "INVALID_TX_CONTEXT";
|
|
423
431
|
return CommandArgumentError_CommandArgumentErrorKind$1;
|
|
424
432
|
}({});
|
|
425
433
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution_status.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/execution_status.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"sui/rpc/v2/execution_status.proto\" (package \"sui.rpc.v2\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n//\nimport { MessageType } from '@protobuf-ts/runtime';\n/**\n * The status of an executed transaction.\n *\n * @generated from protobuf message sui.rpc.v2.ExecutionStatus\n */\nexport interface ExecutionStatus {\n\t/**\n\t * Indicates if the transaction was successful or not.\n\t *\n\t * @generated from protobuf field: optional bool success = 1;\n\t */\n\tsuccess?: boolean;\n\t/**\n\t * The error if `success` is false.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.ExecutionError error = 2;\n\t */\n\terror?: ExecutionError;\n}\n/**\n * An error that can occur during the execution of a transaction.\n *\n * @generated from protobuf message sui.rpc.v2.ExecutionError\n */\nexport interface ExecutionError {\n\t/**\n\t * A human readable description of the error\n\t *\n\t * @generated from protobuf field: optional string description = 1;\n\t */\n\tdescription?: string;\n\t/**\n\t * The command, if any, during which the error occurred.\n\t *\n\t * @generated from protobuf field: optional uint64 command = 2;\n\t */\n\tcommand?: bigint;\n\t/**\n\t * @generated from protobuf field: optional sui.rpc.v2.ExecutionError.ExecutionErrorKind kind = 3;\n\t */\n\tkind?: ExecutionError_ExecutionErrorKind;\n\t/**\n\t * @generated from protobuf oneof: error_details\n\t */\n\terrorDetails:\n\t\t| {\n\t\t\t\toneofKind: 'abort';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.MoveAbort abort = 4;\n\t\t\t\t */\n\t\t\t\tabort: MoveAbort;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'sizeError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.SizeError size_error = 5;\n\t\t\t\t */\n\t\t\t\tsizeError: SizeError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'commandArgumentError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.CommandArgumentError command_argument_error = 6;\n\t\t\t\t */\n\t\t\t\tcommandArgumentError: CommandArgumentError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'typeArgumentError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.TypeArgumentError type_argument_error = 7;\n\t\t\t\t */\n\t\t\t\ttypeArgumentError: TypeArgumentError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'packageUpgradeError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.PackageUpgradeError package_upgrade_error = 8;\n\t\t\t\t */\n\t\t\t\tpackageUpgradeError: PackageUpgradeError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'indexError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.IndexError index_error = 9;\n\t\t\t\t */\n\t\t\t\tindexError: IndexError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'objectId';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: string object_id = 10;\n\t\t\t\t */\n\t\t\t\tobjectId: string;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'coinDenyListError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.CoinDenyListError coin_deny_list_error = 11;\n\t\t\t\t */\n\t\t\t\tcoinDenyListError: CoinDenyListError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'congestedObjects';\n\t\t\t\t/**\n\t\t\t\t * Set of objects that were congested, leading to the transaction's cancellation.\n\t\t\t\t *\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.CongestedObjects congested_objects = 12;\n\t\t\t\t */\n\t\t\t\tcongestedObjects: CongestedObjects;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: undefined;\n\t\t };\n}\n/**\n * @generated from protobuf enum sui.rpc.v2.ExecutionError.ExecutionErrorKind\n */\nexport enum ExecutionError_ExecutionErrorKind {\n\t/**\n\t * @generated from protobuf enum value: EXECUTION_ERROR_KIND_UNKNOWN = 0;\n\t */\n\tEXECUTION_ERROR_KIND_UNKNOWN = 0,\n\t/**\n\t * Insufficient gas.\n\t *\n\t * @generated from protobuf enum value: INSUFFICIENT_GAS = 1;\n\t */\n\tINSUFFICIENT_GAS = 1,\n\t/**\n\t * Invalid `Gas` object.\n\t *\n\t * @generated from protobuf enum value: INVALID_GAS_OBJECT = 2;\n\t */\n\tINVALID_GAS_OBJECT = 2,\n\t/**\n\t * Invariant violation.\n\t *\n\t * @generated from protobuf enum value: INVARIANT_VIOLATION = 3;\n\t */\n\tINVARIANT_VIOLATION = 3,\n\t/**\n\t * Attempted to use feature that is not supported yet.\n\t *\n\t * @generated from protobuf enum value: FEATURE_NOT_YET_SUPPORTED = 4;\n\t */\n\tFEATURE_NOT_YET_SUPPORTED = 4,\n\t/**\n\t * Move object is larger than the maximum allowed size.\n\t *\n\t * @generated from protobuf enum value: OBJECT_TOO_BIG = 5;\n\t */\n\tOBJECT_TOO_BIG = 5,\n\t/**\n\t * Package is larger than the maximum allowed size.\n\t *\n\t * @generated from protobuf enum value: PACKAGE_TOO_BIG = 6;\n\t */\n\tPACKAGE_TOO_BIG = 6,\n\t/**\n\t * Circular object ownership.\n\t *\n\t * @generated from protobuf enum value: CIRCULAR_OBJECT_OWNERSHIP = 7;\n\t */\n\tCIRCULAR_OBJECT_OWNERSHIP = 7,\n\t/**\n\t * Insufficient coin balance for requested operation.\n\t *\n\t * @generated from protobuf enum value: INSUFFICIENT_COIN_BALANCE = 8;\n\t */\n\tINSUFFICIENT_COIN_BALANCE = 8,\n\t/**\n\t * Coin balance overflowed an u64.\n\t *\n\t * @generated from protobuf enum value: COIN_BALANCE_OVERFLOW = 9;\n\t */\n\tCOIN_BALANCE_OVERFLOW = 9,\n\t/**\n\t * Publish error, non-zero address.\n\t * The modules in the package must have their self-addresses set to zero.\n\t *\n\t * @generated from protobuf enum value: PUBLISH_ERROR_NON_ZERO_ADDRESS = 10;\n\t */\n\tPUBLISH_ERROR_NON_ZERO_ADDRESS = 10,\n\t/**\n\t * Sui Move bytecode verification error.\n\t *\n\t * @generated from protobuf enum value: SUI_MOVE_VERIFICATION_ERROR = 11;\n\t */\n\tSUI_MOVE_VERIFICATION_ERROR = 11,\n\t/**\n\t * Error from a non-abort instruction.\n\t * Possible causes:\n\t * Arithmetic error, stack overflow, max value depth, or similar.\n\t *\n\t * @generated from protobuf enum value: MOVE_PRIMITIVE_RUNTIME_ERROR = 12;\n\t */\n\tMOVE_PRIMITIVE_RUNTIME_ERROR = 12,\n\t/**\n\t * Move runtime abort.\n\t *\n\t * @generated from protobuf enum value: MOVE_ABORT = 13;\n\t */\n\tMOVE_ABORT = 13,\n\t/**\n\t * Bytecode verification error.\n\t *\n\t * @generated from protobuf enum value: VM_VERIFICATION_OR_DESERIALIZATION_ERROR = 14;\n\t */\n\tVM_VERIFICATION_OR_DESERIALIZATION_ERROR = 14,\n\t/**\n\t * MoveVm invariant violation.\n\t *\n\t * @generated from protobuf enum value: VM_INVARIANT_VIOLATION = 15;\n\t */\n\tVM_INVARIANT_VIOLATION = 15,\n\t/**\n\t * Function not found.\n\t *\n\t * @generated from protobuf enum value: FUNCTION_NOT_FOUND = 16;\n\t */\n\tFUNCTION_NOT_FOUND = 16,\n\t/**\n\t * Parity mismatch for Move function.\n\t * The number of arguments does not match the number of parameters.\n\t *\n\t * @generated from protobuf enum value: ARITY_MISMATCH = 17;\n\t */\n\tARITY_MISMATCH = 17,\n\t/**\n\t * Type parity mismatch for Move function.\n\t * Mismatch between the number of actual versus expected type arguments.\n\t *\n\t * @generated from protobuf enum value: TYPE_ARITY_MISMATCH = 18;\n\t */\n\tTYPE_ARITY_MISMATCH = 18,\n\t/**\n\t * Non-entry function invoked. Move Call must start with an entry function.\n\t *\n\t * @generated from protobuf enum value: NON_ENTRY_FUNCTION_INVOKED = 19;\n\t */\n\tNON_ENTRY_FUNCTION_INVOKED = 19,\n\t/**\n\t * Invalid command argument.\n\t *\n\t * @generated from protobuf enum value: COMMAND_ARGUMENT_ERROR = 20;\n\t */\n\tCOMMAND_ARGUMENT_ERROR = 20,\n\t/**\n\t * Type argument error.\n\t *\n\t * @generated from protobuf enum value: TYPE_ARGUMENT_ERROR = 21;\n\t */\n\tTYPE_ARGUMENT_ERROR = 21,\n\t/**\n\t * Unused result without the drop ability.\n\t *\n\t * @generated from protobuf enum value: UNUSED_VALUE_WITHOUT_DROP = 22;\n\t */\n\tUNUSED_VALUE_WITHOUT_DROP = 22,\n\t/**\n\t * Invalid public Move function signature.\n\t * Unsupported return type for return value.\n\t *\n\t * @generated from protobuf enum value: INVALID_PUBLIC_FUNCTION_RETURN_TYPE = 23;\n\t */\n\tINVALID_PUBLIC_FUNCTION_RETURN_TYPE = 23,\n\t/**\n\t * Invalid transfer object, object does not have public transfer.\n\t *\n\t * @generated from protobuf enum value: INVALID_TRANSFER_OBJECT = 24;\n\t */\n\tINVALID_TRANSFER_OBJECT = 24,\n\t/**\n\t * Effects from the transaction are too large.\n\t *\n\t * @generated from protobuf enum value: EFFECTS_TOO_LARGE = 25;\n\t */\n\tEFFECTS_TOO_LARGE = 25,\n\t/**\n\t * Publish or Upgrade is missing dependency.\n\t *\n\t * @generated from protobuf enum value: PUBLISH_UPGRADE_MISSING_DEPENDENCY = 26;\n\t */\n\tPUBLISH_UPGRADE_MISSING_DEPENDENCY = 26,\n\t/**\n\t * Publish or upgrade dependency downgrade.\n\t *\n\t * Indirect (transitive) dependency of published or upgraded package has been assigned an\n\t * on-chain version that is less than the version required by one of the package's\n\t * transitive dependencies.\n\t *\n\t * @generated from protobuf enum value: PUBLISH_UPGRADE_DEPENDENCY_DOWNGRADE = 27;\n\t */\n\tPUBLISH_UPGRADE_DEPENDENCY_DOWNGRADE = 27,\n\t/**\n\t * Invalid package upgrade.\n\t *\n\t * @generated from protobuf enum value: PACKAGE_UPGRADE_ERROR = 28;\n\t */\n\tPACKAGE_UPGRADE_ERROR = 28,\n\t/**\n\t * Indicates the transaction tried to write objects too large to storage.\n\t *\n\t * @generated from protobuf enum value: WRITTEN_OBJECTS_TOO_LARGE = 29;\n\t */\n\tWRITTEN_OBJECTS_TOO_LARGE = 29,\n\t/**\n\t * Certificate is on the deny list.\n\t *\n\t * @generated from protobuf enum value: CERTIFICATE_DENIED = 30;\n\t */\n\tCERTIFICATE_DENIED = 30,\n\t/**\n\t * Sui Move bytecode verification timed out.\n\t *\n\t * @generated from protobuf enum value: SUI_MOVE_VERIFICATION_TIMEDOUT = 31;\n\t */\n\tSUI_MOVE_VERIFICATION_TIMEDOUT = 31,\n\t/**\n\t * The requested consensus object operation is not allowed.\n\t *\n\t * @generated from protobuf enum value: CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED = 32;\n\t */\n\tCONSENSUS_OBJECT_OPERATION_NOT_ALLOWED = 32,\n\t/**\n\t * Requested consensus object has been deleted.\n\t *\n\t * @generated from protobuf enum value: INPUT_OBJECT_DELETED = 33;\n\t */\n\tINPUT_OBJECT_DELETED = 33,\n\t/**\n\t * Certificate is canceled due to congestion on consensus objects.\n\t *\n\t * @generated from protobuf enum value: EXECUTION_CANCELED_DUE_TO_CONSENSUS_OBJECT_CONGESTION = 34;\n\t */\n\tEXECUTION_CANCELED_DUE_TO_CONSENSUS_OBJECT_CONGESTION = 34,\n\t/**\n\t * Address is denied for this coin type.\n\t *\n\t * @generated from protobuf enum value: ADDRESS_DENIED_FOR_COIN = 35;\n\t */\n\tADDRESS_DENIED_FOR_COIN = 35,\n\t/**\n\t * Coin type is globally paused for use.\n\t *\n\t * @generated from protobuf enum value: COIN_TYPE_GLOBAL_PAUSE = 36;\n\t */\n\tCOIN_TYPE_GLOBAL_PAUSE = 36,\n\t/**\n\t * Certificate is canceled because randomness could not be generated this epoch.\n\t *\n\t * @generated from protobuf enum value: EXECUTION_CANCELED_DUE_TO_RANDOMNESS_UNAVAILABLE = 37;\n\t */\n\tEXECUTION_CANCELED_DUE_TO_RANDOMNESS_UNAVAILABLE = 37,\n\t/**\n\t * Move vector element (passed to MakeMoveVec) with size {value_size} is larger \\\n\t * than the maximum size {max_scaled_size}. Note that this maximum is scaled based on the \\\n\t * type of the vector element.\n\t *\n\t * @generated from protobuf enum value: MOVE_VECTOR_ELEM_TOO_BIG = 38;\n\t */\n\tMOVE_VECTOR_ELEM_TOO_BIG = 38,\n\t/**\n\t * Move value (possibly an upgrade ticket or a dev-inspect value) with size {value_size} \\\n\t * is larger than the maximum size {max_scaled_size}. Note that this maximum is scaled based \\\n\t * on the type of the value.\n\t *\n\t * @generated from protobuf enum value: MOVE_RAW_VALUE_TOO_BIG = 39;\n\t */\n\tMOVE_RAW_VALUE_TOO_BIG = 39,\n\t/**\n\t * A valid linkage was unable to be determined for the transaction or one of its commands.\n\t *\n\t * @generated from protobuf enum value: INVALID_LINKAGE = 40;\n\t */\n\tINVALID_LINKAGE = 40,\n\t/**\n\t * Insufficient funds for transaction withdrawal\n\t *\n\t * @generated from protobuf enum value: INSUFFICIENT_FUNDS_FOR_WITHDRAW = 41;\n\t */\n\tINSUFFICIENT_FUNDS_FOR_WITHDRAW = 41,\n\t/**\n\t * An input object with non-exclusive write mutability was modified\n\t *\n\t * @generated from protobuf enum value: NON_EXCLUSIVE_WRITE_INPUT_OBJECT_MODIFIED = 42;\n\t */\n\tNON_EXCLUSIVE_WRITE_INPUT_OBJECT_MODIFIED = 42,\n}\n/**\n * @generated from protobuf message sui.rpc.v2.MoveAbort\n */\nexport interface MoveAbort {\n\t/**\n\t * @generated from protobuf field: optional uint64 abort_code = 1;\n\t */\n\tabortCode?: bigint;\n\t/**\n\t * Location in Move where the error occurred.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.MoveLocation location = 2;\n\t */\n\tlocation?: MoveLocation;\n\t/**\n\t * Extra error information if abort code is a \"Clever Error\"\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.CleverError clever_error = 3;\n\t */\n\tcleverError?: CleverError;\n}\n/**\n * Location in Move bytecode where an error occurred.\n *\n * @generated from protobuf message sui.rpc.v2.MoveLocation\n */\nexport interface MoveLocation {\n\t/**\n\t * The package ID.\n\t *\n\t * @generated from protobuf field: optional string package = 1;\n\t */\n\tpackage?: string;\n\t/**\n\t * The module name.\n\t *\n\t * @generated from protobuf field: optional string module = 2;\n\t */\n\tmodule?: string;\n\t/**\n\t * The function index.\n\t *\n\t * @generated from protobuf field: optional uint32 function = 3;\n\t */\n\tfunction?: number;\n\t/**\n\t * Offset of the instruction where the error occurred.\n\t *\n\t * @generated from protobuf field: optional uint32 instruction = 4;\n\t */\n\tinstruction?: number;\n\t/**\n\t * The name of the function, if available.\n\t *\n\t * @generated from protobuf field: optional string function_name = 5;\n\t */\n\tfunctionName?: string;\n}\n/**\n * @generated from protobuf message sui.rpc.v2.CleverError\n */\nexport interface CleverError {\n\t/**\n\t * @generated from protobuf field: optional uint64 error_code = 1;\n\t */\n\terrorCode?: bigint;\n\t/**\n\t * @generated from protobuf field: optional uint64 line_number = 2;\n\t */\n\tlineNumber?: bigint;\n\t/**\n\t * @generated from protobuf field: optional string constant_name = 3;\n\t */\n\tconstantName?: string;\n\t/**\n\t * @generated from protobuf field: optional string constant_type = 4;\n\t */\n\tconstantType?: string;\n\t/**\n\t * @generated from protobuf oneof: value\n\t */\n\tvalue:\n\t\t| {\n\t\t\t\toneofKind: 'rendered';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: string rendered = 5;\n\t\t\t\t */\n\t\t\t\trendered: string;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'raw';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: bytes raw = 6;\n\t\t\t\t */\n\t\t\t\traw: Uint8Array;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: undefined;\n\t\t };\n}\n/**\n * A size error.\n *\n * @generated from protobuf message sui.rpc.v2.SizeError\n */\nexport interface SizeError {\n\t/**\n\t * The offending size.\n\t *\n\t * @generated from protobuf field: optional uint64 size = 1;\n\t */\n\tsize?: bigint;\n\t/**\n\t * The maximum allowable size.\n\t *\n\t * @generated from protobuf field: optional uint64 max_size = 2;\n\t */\n\tmaxSize?: bigint;\n}\n/**\n * @generated from protobuf message sui.rpc.v2.IndexError\n */\nexport interface IndexError {\n\t/**\n\t * Index of an input or result.\n\t *\n\t * @generated from protobuf field: optional uint32 index = 1;\n\t */\n\tindex?: number;\n\t/**\n\t * Index of a subresult.\n\t *\n\t * @generated from protobuf field: optional uint32 subresult = 2;\n\t */\n\tsubresult?: number;\n}\n/**\n * @generated from protobuf message sui.rpc.v2.CoinDenyListError\n */\nexport interface CoinDenyListError {\n\t/**\n\t * Denied address.\n\t *\n\t * @generated from protobuf field: optional string address = 1;\n\t */\n\taddress?: string;\n\t/**\n\t * Coin type.\n\t *\n\t * @generated from protobuf field: optional string coin_type = 2;\n\t */\n\tcoinType?: string;\n}\n/**\n * Set of objects that were congested, leading to the transaction's cancellation.\n *\n * @generated from protobuf message sui.rpc.v2.CongestedObjects\n */\nexport interface CongestedObjects {\n\t/**\n\t * @generated from protobuf field: repeated string objects = 1;\n\t */\n\tobjects: string[];\n}\n/**\n * An error with an argument to a command.\n *\n * @generated from protobuf message sui.rpc.v2.CommandArgumentError\n */\nexport interface CommandArgumentError {\n\t/**\n\t * Position of the problematic argument.\n\t *\n\t * @generated from protobuf field: optional uint32 argument = 1;\n\t */\n\targument?: number;\n\t/**\n\t * @generated from protobuf field: optional sui.rpc.v2.CommandArgumentError.CommandArgumentErrorKind kind = 2;\n\t */\n\tkind?: CommandArgumentError_CommandArgumentErrorKind;\n\t/**\n\t * @generated from protobuf field: optional sui.rpc.v2.IndexError index_error = 3;\n\t */\n\tindexError?: IndexError;\n}\n/**\n * @generated from protobuf enum sui.rpc.v2.CommandArgumentError.CommandArgumentErrorKind\n */\nexport enum CommandArgumentError_CommandArgumentErrorKind {\n\t/**\n\t * @generated from protobuf enum value: COMMAND_ARGUMENT_ERROR_KIND_UNKNOWN = 0;\n\t */\n\tCOMMAND_ARGUMENT_ERROR_KIND_UNKNOWN = 0,\n\t/**\n\t * The type of the value does not match the expected type.\n\t *\n\t * @generated from protobuf enum value: TYPE_MISMATCH = 1;\n\t */\n\tTYPE_MISMATCH = 1,\n\t/**\n\t * The argument cannot be deserialized into a value of the specified type.\n\t *\n\t * @generated from protobuf enum value: INVALID_BCS_BYTES = 2;\n\t */\n\tINVALID_BCS_BYTES = 2,\n\t/**\n\t * The argument cannot be instantiated from raw bytes.\n\t *\n\t * @generated from protobuf enum value: INVALID_USAGE_OF_PURE_ARGUMENT = 3;\n\t */\n\tINVALID_USAGE_OF_PURE_ARGUMENT = 3,\n\t/**\n\t * Invalid argument to private entry function.\n\t * Private entry functions cannot take arguments from other Move functions.\n\t *\n\t * @generated from protobuf enum value: INVALID_ARGUMENT_TO_PRIVATE_ENTRY_FUNCTION = 4;\n\t */\n\tINVALID_ARGUMENT_TO_PRIVATE_ENTRY_FUNCTION = 4,\n\t/**\n\t * Out of bounds access to input or results.\n\t *\n\t * `index` field will be set indicating the invalid index value.\n\t *\n\t * @generated from protobuf enum value: INDEX_OUT_OF_BOUNDS = 5;\n\t */\n\tINDEX_OUT_OF_BOUNDS = 5,\n\t/**\n\t * Out of bounds access to subresult.\n\t *\n\t * `index` and `subresult` fields will be set indicating the invalid index value.\n\t *\n\t * @generated from protobuf enum value: SECONDARY_INDEX_OUT_OF_BOUNDS = 6;\n\t */\n\tSECONDARY_INDEX_OUT_OF_BOUNDS = 6,\n\t/**\n\t * Invalid usage of result.\n\t * Expected a single result but found either no return value or multiple.\n\t * `index` field will be set indicating the invalid index value.\n\t *\n\t * @generated from protobuf enum value: INVALID_RESULT_ARITY = 7;\n\t */\n\tINVALID_RESULT_ARITY = 7,\n\t/**\n\t * Invalid usage of gas coin.\n\t * The gas coin can only be used by-value with a `TransferObject` command.\n\t *\n\t * @generated from protobuf enum value: INVALID_GAS_COIN_USAGE = 8;\n\t */\n\tINVALID_GAS_COIN_USAGE = 8,\n\t/**\n\t * Invalid usage of Move value.\n\t * - Mutably borrowed values require unique usage.\n\t * - Immutably borrowed values cannot be taken or borrowed mutably.\n\t * - Taken values cannot be used again.\n\t *\n\t * @generated from protobuf enum value: INVALID_VALUE_USAGE = 9;\n\t */\n\tINVALID_VALUE_USAGE = 9,\n\t/**\n\t * Immutable objects cannot be passed by-value.\n\t *\n\t * @generated from protobuf enum value: INVALID_OBJECT_BY_VALUE = 10;\n\t */\n\tINVALID_OBJECT_BY_VALUE = 10,\n\t/**\n\t * Immutable objects cannot be passed by mutable reference, `&mut`.\n\t *\n\t * @generated from protobuf enum value: INVALID_OBJECT_BY_MUT_REF = 11;\n\t */\n\tINVALID_OBJECT_BY_MUT_REF = 11,\n\t/**\n\t * Consensus object operations such as wrapping, freezing, or converting to owned are not\n\t * allowed.\n\t *\n\t * @generated from protobuf enum value: CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED = 12;\n\t */\n\tCONSENSUS_OBJECT_OPERATION_NOT_ALLOWED = 12,\n\t/**\n\t * Invalid argument arity. Expected a single argument but found a result that expanded to\n\t * multiple arguments.\n\t *\n\t * @generated from protobuf enum value: INVALID_ARGUMENT_ARITY = 13;\n\t */\n\tINVALID_ARGUMENT_ARITY = 13,\n\t/**\n\t * Object passed to TransferObject does not have public transfer, i.e. the `store` ability\n\t *\n\t * @generated from protobuf enum value: INVALID_TRANSFER_OBJECT = 14;\n\t */\n\tINVALID_TRANSFER_OBJECT = 14,\n\t/**\n\t * First argument to MakeMoveVec is not an object. If no type is specified for MakeMoveVec,\n\t * all arguments must be the same object type.\n\t *\n\t * @generated from protobuf enum value: INVALID_MAKE_MOVE_VEC_NON_OBJECT_ARGUMENT = 15;\n\t */\n\tINVALID_MAKE_MOVE_VEC_NON_OBJECT_ARGUMENT = 15,\n\t/**\n\t * Specified argument location does not have a value and cannot be used\n\t *\n\t * @generated from protobuf enum value: ARGUMENT_WITHOUT_VALUE = 16;\n\t */\n\tARGUMENT_WITHOUT_VALUE = 16,\n\t/**\n\t * Cannot move a borrowed value. The value's type does resulted in this argument usage being\n\t * inferred as a move. This is likely due to the type not having the `copy` ability; although\n\t * in rare cases, it could also be this is the last usage of a value without the `drop`\n\t * ability.\n\t *\n\t * @generated from protobuf enum value: CANNOT_MOVE_BORROWED_VALUE = 17;\n\t */\n\tCANNOT_MOVE_BORROWED_VALUE = 17,\n\t/**\n\t * Cannot write to an argument location that is still borrowed, and where that borrow is an\n\t * extension of that reference. This is likely due to this argument being used in a Move call\n\t * that returns a reference, and that reference is used in a later command.\n\t *\n\t * @generated from protobuf enum value: CANNOT_WRITE_TO_EXTENDED_REFERENCE = 18;\n\t */\n\tCANNOT_WRITE_TO_EXTENDED_REFERENCE = 18,\n\t/**\n\t * The argument specified cannot be used as a reference argument in the Move call. Either the\n\t * argument is a mutable reference and it conflicts with another argument to the call, or the\n\t * argument is mutable and another reference extends it and will be used in a later command.\n\t *\n\t * @generated from protobuf enum value: INVALID_REFERENCE_ARGUMENT = 19;\n\t */\n\tINVALID_REFERENCE_ARGUMENT = 19,\n}\n/**\n * An error with upgrading a package.\n *\n * @generated from protobuf message sui.rpc.v2.PackageUpgradeError\n */\nexport interface PackageUpgradeError {\n\t/**\n\t * @generated from protobuf field: optional sui.rpc.v2.PackageUpgradeError.PackageUpgradeErrorKind kind = 1;\n\t */\n\tkind?: PackageUpgradeError_PackageUpgradeErrorKind;\n\t/**\n\t * The Package Id.\n\t *\n\t * @generated from protobuf field: optional string package_id = 2;\n\t */\n\tpackageId?: string;\n\t/**\n\t * A digest.\n\t *\n\t * @generated from protobuf field: optional string digest = 3;\n\t */\n\tdigest?: string;\n\t/**\n\t * The policy.\n\t *\n\t * @generated from protobuf field: optional uint32 policy = 4;\n\t */\n\tpolicy?: number;\n\t/**\n\t * The ticket Id.\n\t *\n\t * @generated from protobuf field: optional string ticket_id = 5;\n\t */\n\tticketId?: string;\n}\n/**\n * @generated from protobuf enum sui.rpc.v2.PackageUpgradeError.PackageUpgradeErrorKind\n */\nexport enum PackageUpgradeError_PackageUpgradeErrorKind {\n\t/**\n\t * @generated from protobuf enum value: PACKAGE_UPGRADE_ERROR_KIND_UNKNOWN = 0;\n\t */\n\tPACKAGE_UPGRADE_ERROR_KIND_UNKNOWN = 0,\n\t/**\n\t * Unable to fetch package.\n\t *\n\t * @generated from protobuf enum value: UNABLE_TO_FETCH_PACKAGE = 1;\n\t */\n\tUNABLE_TO_FETCH_PACKAGE = 1,\n\t/**\n\t * Object is not a package.\n\t *\n\t * @generated from protobuf enum value: NOT_A_PACKAGE = 2;\n\t */\n\tNOT_A_PACKAGE = 2,\n\t/**\n\t * Package upgrade is incompatible with previous version.\n\t *\n\t * @generated from protobuf enum value: INCOMPATIBLE_UPGRADE = 3;\n\t */\n\tINCOMPATIBLE_UPGRADE = 3,\n\t/**\n\t * Digest in upgrade ticket and computed digest differ.\n\t *\n\t * @generated from protobuf enum value: DIGEST_DOES_NOT_MATCH = 4;\n\t */\n\tDIGEST_DOES_NOT_MATCH = 4,\n\t/**\n\t * Upgrade policy is not valid.\n\t *\n\t * @generated from protobuf enum value: UNKNOWN_UPGRADE_POLICY = 5;\n\t */\n\tUNKNOWN_UPGRADE_POLICY = 5,\n\t/**\n\t * Package ID does not match `PackageId` in upgrade ticket.\n\t *\n\t * @generated from protobuf enum value: PACKAGE_ID_DOES_NOT_MATCH = 6;\n\t */\n\tPACKAGE_ID_DOES_NOT_MATCH = 6,\n}\n/**\n * Type argument error.\n *\n * @generated from protobuf message sui.rpc.v2.TypeArgumentError\n */\nexport interface TypeArgumentError {\n\t/**\n\t * Index of the problematic type argument.\n\t *\n\t * @generated from protobuf field: optional uint32 type_argument = 1;\n\t */\n\ttypeArgument?: number;\n\t/**\n\t * @generated from protobuf field: optional sui.rpc.v2.TypeArgumentError.TypeArgumentErrorKind kind = 2;\n\t */\n\tkind?: TypeArgumentError_TypeArgumentErrorKind;\n}\n/**\n * @generated from protobuf enum sui.rpc.v2.TypeArgumentError.TypeArgumentErrorKind\n */\nexport enum TypeArgumentError_TypeArgumentErrorKind {\n\t/**\n\t * @generated from protobuf enum value: TYPE_ARGUMENT_ERROR_KIND_UNKNOWN = 0;\n\t */\n\tTYPE_ARGUMENT_ERROR_KIND_UNKNOWN = 0,\n\t/**\n\t * A type was not found in the module specified.\n\t *\n\t * @generated from protobuf enum value: TYPE_NOT_FOUND = 1;\n\t */\n\tTYPE_NOT_FOUND = 1,\n\t/**\n\t * A type provided did not match the specified constraint.\n\t *\n\t * @generated from protobuf enum value: CONSTRAINT_NOT_SATISFIED = 2;\n\t */\n\tCONSTRAINT_NOT_SATISFIED = 2,\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass ExecutionStatus$Type extends MessageType<ExecutionStatus> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.ExecutionStatus', [\n\t\t\t{ no: 1, name: 'success', kind: 'scalar', opt: true, T: 8 /*ScalarType.BOOL*/ },\n\t\t\t{ no: 2, name: 'error', kind: 'message', T: () => ExecutionError },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.ExecutionStatus\n */\nexport const ExecutionStatus = new ExecutionStatus$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ExecutionError$Type extends MessageType<ExecutionError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.ExecutionError', [\n\t\t\t{ no: 1, name: 'description', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{\n\t\t\t\tno: 2,\n\t\t\t\tname: 'command',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 3,\n\t\t\t\tname: 'kind',\n\t\t\t\tkind: 'enum',\n\t\t\t\topt: true,\n\t\t\t\tT: () => [\n\t\t\t\t\t'sui.rpc.v2.ExecutionError.ExecutionErrorKind',\n\t\t\t\t\tExecutionError_ExecutionErrorKind,\n\t\t\t\t],\n\t\t\t},\n\t\t\t{ no: 4, name: 'abort', kind: 'message', oneof: 'errorDetails', T: () => MoveAbort },\n\t\t\t{ no: 5, name: 'size_error', kind: 'message', oneof: 'errorDetails', T: () => SizeError },\n\t\t\t{\n\t\t\t\tno: 6,\n\t\t\t\tname: 'command_argument_error',\n\t\t\t\tkind: 'message',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: () => CommandArgumentError,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 7,\n\t\t\t\tname: 'type_argument_error',\n\t\t\t\tkind: 'message',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: () => TypeArgumentError,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 8,\n\t\t\t\tname: 'package_upgrade_error',\n\t\t\t\tkind: 'message',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: () => PackageUpgradeError,\n\t\t\t},\n\t\t\t{ no: 9, name: 'index_error', kind: 'message', oneof: 'errorDetails', T: () => IndexError },\n\t\t\t{\n\t\t\t\tno: 10,\n\t\t\t\tname: 'object_id',\n\t\t\t\tkind: 'scalar',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: 9 /*ScalarType.STRING*/,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 11,\n\t\t\t\tname: 'coin_deny_list_error',\n\t\t\t\tkind: 'message',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: () => CoinDenyListError,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 12,\n\t\t\t\tname: 'congested_objects',\n\t\t\t\tkind: 'message',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: () => CongestedObjects,\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.ExecutionError\n */\nexport const ExecutionError = new ExecutionError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass MoveAbort$Type extends MessageType<MoveAbort> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.MoveAbort', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'abort_code',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 2, name: 'location', kind: 'message', T: () => MoveLocation },\n\t\t\t{ no: 3, name: 'clever_error', kind: 'message', T: () => CleverError },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.MoveAbort\n */\nexport const MoveAbort = new MoveAbort$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass MoveLocation$Type extends MessageType<MoveLocation> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.MoveLocation', [\n\t\t\t{ no: 1, name: 'package', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'module', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 3, name: 'function', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{ no: 4, name: 'instruction', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{ no: 5, name: 'function_name', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.MoveLocation\n */\nexport const MoveLocation = new MoveLocation$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass CleverError$Type extends MessageType<CleverError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.CleverError', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'error_code',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 2,\n\t\t\t\tname: 'line_number',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 3, name: 'constant_name', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 4, name: 'constant_type', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 5, name: 'rendered', kind: 'scalar', oneof: 'value', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 6, name: 'raw', kind: 'scalar', oneof: 'value', T: 12 /*ScalarType.BYTES*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.CleverError\n */\nexport const CleverError = new CleverError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass SizeError$Type extends MessageType<SizeError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.SizeError', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'size',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 2,\n\t\t\t\tname: 'max_size',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.SizeError\n */\nexport const SizeError = new SizeError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass IndexError$Type extends MessageType<IndexError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.IndexError', [\n\t\t\t{ no: 1, name: 'index', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{ no: 2, name: 'subresult', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.IndexError\n */\nexport const IndexError = new IndexError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass CoinDenyListError$Type extends MessageType<CoinDenyListError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.CoinDenyListError', [\n\t\t\t{ no: 1, name: 'address', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'coin_type', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.CoinDenyListError\n */\nexport const CoinDenyListError = new CoinDenyListError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass CongestedObjects$Type extends MessageType<CongestedObjects> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.CongestedObjects', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'objects',\n\t\t\t\tkind: 'scalar',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: 9 /*ScalarType.STRING*/,\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.CongestedObjects\n */\nexport const CongestedObjects = new CongestedObjects$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass CommandArgumentError$Type extends MessageType<CommandArgumentError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.CommandArgumentError', [\n\t\t\t{ no: 1, name: 'argument', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{\n\t\t\t\tno: 2,\n\t\t\t\tname: 'kind',\n\t\t\t\tkind: 'enum',\n\t\t\t\topt: true,\n\t\t\t\tT: () => [\n\t\t\t\t\t'sui.rpc.v2.CommandArgumentError.CommandArgumentErrorKind',\n\t\t\t\t\tCommandArgumentError_CommandArgumentErrorKind,\n\t\t\t\t],\n\t\t\t},\n\t\t\t{ no: 3, name: 'index_error', kind: 'message', T: () => IndexError },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.CommandArgumentError\n */\nexport const CommandArgumentError = new CommandArgumentError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PackageUpgradeError$Type extends MessageType<PackageUpgradeError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.PackageUpgradeError', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'kind',\n\t\t\t\tkind: 'enum',\n\t\t\t\topt: true,\n\t\t\t\tT: () => [\n\t\t\t\t\t'sui.rpc.v2.PackageUpgradeError.PackageUpgradeErrorKind',\n\t\t\t\t\tPackageUpgradeError_PackageUpgradeErrorKind,\n\t\t\t\t],\n\t\t\t},\n\t\t\t{ no: 2, name: 'package_id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 3, name: 'digest', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 4, name: 'policy', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{ no: 5, name: 'ticket_id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.PackageUpgradeError\n */\nexport const PackageUpgradeError = new PackageUpgradeError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass TypeArgumentError$Type extends MessageType<TypeArgumentError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.TypeArgumentError', [\n\t\t\t{ no: 1, name: 'type_argument', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{\n\t\t\t\tno: 2,\n\t\t\t\tname: 'kind',\n\t\t\t\tkind: 'enum',\n\t\t\t\topt: true,\n\t\t\t\tT: () => [\n\t\t\t\t\t'sui.rpc.v2.TypeArgumentError.TypeArgumentErrorKind',\n\t\t\t\t\tTypeArgumentError_TypeArgumentErrorKind,\n\t\t\t\t],\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.TypeArgumentError\n */\nexport const TypeArgumentError = new TypeArgumentError$Type();\n"],"mappings":";;;;;;AAiIA,IAAY,kGAAL;;;;AAIN;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;;AAOA;;;;;;AAMA;;;;;;;;AAQA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;;AAOA;;;;;;;AAOA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;;AAOA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;;;;;AAUA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;;;AAQA;;;;;;;;AAQA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AA8LD,IAAY,0HAAL;;;;AAIN;;;;;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iB,MAAM;GAAU,KAAK;GAAM,GAAG;GAA0B,EACxF;GACC,IAAI;GACJ,MAAM;GACN,MAAM;GACN,KAAK;GACL,SAAS,CACR,sDACA,wCACA;GACD,CACD,CAAC;;;;;;AAMJ,MAAa,oBAAoB,IAAI,wBAAwB"}
|
|
1
|
+
{"version":3,"file":"execution_status.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/execution_status.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"sui/rpc/v2/execution_status.proto\" (package \"sui.rpc.v2\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n//\nimport { MessageType } from '@protobuf-ts/runtime';\n/**\n * The status of an executed transaction.\n *\n * @generated from protobuf message sui.rpc.v2.ExecutionStatus\n */\nexport interface ExecutionStatus {\n\t/**\n\t * Indicates if the transaction was successful or not.\n\t *\n\t * @generated from protobuf field: optional bool success = 1;\n\t */\n\tsuccess?: boolean;\n\t/**\n\t * The error if `success` is false.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.ExecutionError error = 2;\n\t */\n\terror?: ExecutionError;\n}\n/**\n * An error that can occur during the execution of a transaction.\n *\n * @generated from protobuf message sui.rpc.v2.ExecutionError\n */\nexport interface ExecutionError {\n\t/**\n\t * A human readable description of the error\n\t *\n\t * @generated from protobuf field: optional string description = 1;\n\t */\n\tdescription?: string;\n\t/**\n\t * The command, if any, during which the error occurred.\n\t *\n\t * @generated from protobuf field: optional uint64 command = 2;\n\t */\n\tcommand?: bigint;\n\t/**\n\t * @generated from protobuf field: optional sui.rpc.v2.ExecutionError.ExecutionErrorKind kind = 3;\n\t */\n\tkind?: ExecutionError_ExecutionErrorKind;\n\t/**\n\t * @generated from protobuf oneof: error_details\n\t */\n\terrorDetails:\n\t\t| {\n\t\t\t\toneofKind: 'abort';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.MoveAbort abort = 4;\n\t\t\t\t */\n\t\t\t\tabort: MoveAbort;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'sizeError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.SizeError size_error = 5;\n\t\t\t\t */\n\t\t\t\tsizeError: SizeError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'commandArgumentError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.CommandArgumentError command_argument_error = 6;\n\t\t\t\t */\n\t\t\t\tcommandArgumentError: CommandArgumentError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'typeArgumentError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.TypeArgumentError type_argument_error = 7;\n\t\t\t\t */\n\t\t\t\ttypeArgumentError: TypeArgumentError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'packageUpgradeError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.PackageUpgradeError package_upgrade_error = 8;\n\t\t\t\t */\n\t\t\t\tpackageUpgradeError: PackageUpgradeError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'indexError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.IndexError index_error = 9;\n\t\t\t\t */\n\t\t\t\tindexError: IndexError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'objectId';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: string object_id = 10;\n\t\t\t\t */\n\t\t\t\tobjectId: string;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'coinDenyListError';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.CoinDenyListError coin_deny_list_error = 11;\n\t\t\t\t */\n\t\t\t\tcoinDenyListError: CoinDenyListError;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'congestedObjects';\n\t\t\t\t/**\n\t\t\t\t * Set of objects that were congested, leading to the transaction's cancellation.\n\t\t\t\t *\n\t\t\t\t * @generated from protobuf field: sui.rpc.v2.CongestedObjects congested_objects = 12;\n\t\t\t\t */\n\t\t\t\tcongestedObjects: CongestedObjects;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: undefined;\n\t\t };\n}\n/**\n * @generated from protobuf enum sui.rpc.v2.ExecutionError.ExecutionErrorKind\n */\nexport enum ExecutionError_ExecutionErrorKind {\n\t/**\n\t * @generated from protobuf enum value: EXECUTION_ERROR_KIND_UNKNOWN = 0;\n\t */\n\tEXECUTION_ERROR_KIND_UNKNOWN = 0,\n\t/**\n\t * Insufficient gas.\n\t *\n\t * @generated from protobuf enum value: INSUFFICIENT_GAS = 1;\n\t */\n\tINSUFFICIENT_GAS = 1,\n\t/**\n\t * Invalid `Gas` object.\n\t *\n\t * @generated from protobuf enum value: INVALID_GAS_OBJECT = 2;\n\t */\n\tINVALID_GAS_OBJECT = 2,\n\t/**\n\t * Invariant violation.\n\t *\n\t * @generated from protobuf enum value: INVARIANT_VIOLATION = 3;\n\t */\n\tINVARIANT_VIOLATION = 3,\n\t/**\n\t * Attempted to use feature that is not supported yet.\n\t *\n\t * @generated from protobuf enum value: FEATURE_NOT_YET_SUPPORTED = 4;\n\t */\n\tFEATURE_NOT_YET_SUPPORTED = 4,\n\t/**\n\t * Move object is larger than the maximum allowed size.\n\t *\n\t * @generated from protobuf enum value: OBJECT_TOO_BIG = 5;\n\t */\n\tOBJECT_TOO_BIG = 5,\n\t/**\n\t * Package is larger than the maximum allowed size.\n\t *\n\t * @generated from protobuf enum value: PACKAGE_TOO_BIG = 6;\n\t */\n\tPACKAGE_TOO_BIG = 6,\n\t/**\n\t * Circular object ownership.\n\t *\n\t * @generated from protobuf enum value: CIRCULAR_OBJECT_OWNERSHIP = 7;\n\t */\n\tCIRCULAR_OBJECT_OWNERSHIP = 7,\n\t/**\n\t * Insufficient coin balance for requested operation.\n\t *\n\t * @generated from protobuf enum value: INSUFFICIENT_COIN_BALANCE = 8;\n\t */\n\tINSUFFICIENT_COIN_BALANCE = 8,\n\t/**\n\t * Coin balance overflowed an u64.\n\t *\n\t * @generated from protobuf enum value: COIN_BALANCE_OVERFLOW = 9;\n\t */\n\tCOIN_BALANCE_OVERFLOW = 9,\n\t/**\n\t * Publish error, non-zero address.\n\t * The modules in the package must have their self-addresses set to zero.\n\t *\n\t * @generated from protobuf enum value: PUBLISH_ERROR_NON_ZERO_ADDRESS = 10;\n\t */\n\tPUBLISH_ERROR_NON_ZERO_ADDRESS = 10,\n\t/**\n\t * Sui Move bytecode verification error.\n\t *\n\t * @generated from protobuf enum value: SUI_MOVE_VERIFICATION_ERROR = 11;\n\t */\n\tSUI_MOVE_VERIFICATION_ERROR = 11,\n\t/**\n\t * Error from a non-abort instruction.\n\t * Possible causes:\n\t * Arithmetic error, stack overflow, max value depth, or similar.\n\t *\n\t * @generated from protobuf enum value: MOVE_PRIMITIVE_RUNTIME_ERROR = 12;\n\t */\n\tMOVE_PRIMITIVE_RUNTIME_ERROR = 12,\n\t/**\n\t * Move runtime abort.\n\t *\n\t * @generated from protobuf enum value: MOVE_ABORT = 13;\n\t */\n\tMOVE_ABORT = 13,\n\t/**\n\t * Bytecode verification error.\n\t *\n\t * @generated from protobuf enum value: VM_VERIFICATION_OR_DESERIALIZATION_ERROR = 14;\n\t */\n\tVM_VERIFICATION_OR_DESERIALIZATION_ERROR = 14,\n\t/**\n\t * MoveVm invariant violation.\n\t *\n\t * @generated from protobuf enum value: VM_INVARIANT_VIOLATION = 15;\n\t */\n\tVM_INVARIANT_VIOLATION = 15,\n\t/**\n\t * Function not found.\n\t *\n\t * @generated from protobuf enum value: FUNCTION_NOT_FOUND = 16;\n\t */\n\tFUNCTION_NOT_FOUND = 16,\n\t/**\n\t * Parity mismatch for Move function.\n\t * The number of arguments does not match the number of parameters.\n\t *\n\t * @generated from protobuf enum value: ARITY_MISMATCH = 17;\n\t */\n\tARITY_MISMATCH = 17,\n\t/**\n\t * Type parity mismatch for Move function.\n\t * Mismatch between the number of actual versus expected type arguments.\n\t *\n\t * @generated from protobuf enum value: TYPE_ARITY_MISMATCH = 18;\n\t */\n\tTYPE_ARITY_MISMATCH = 18,\n\t/**\n\t * Non-entry function invoked. Move Call must start with an entry function.\n\t *\n\t * @generated from protobuf enum value: NON_ENTRY_FUNCTION_INVOKED = 19;\n\t */\n\tNON_ENTRY_FUNCTION_INVOKED = 19,\n\t/**\n\t * Invalid command argument.\n\t *\n\t * @generated from protobuf enum value: COMMAND_ARGUMENT_ERROR = 20;\n\t */\n\tCOMMAND_ARGUMENT_ERROR = 20,\n\t/**\n\t * Type argument error.\n\t *\n\t * @generated from protobuf enum value: TYPE_ARGUMENT_ERROR = 21;\n\t */\n\tTYPE_ARGUMENT_ERROR = 21,\n\t/**\n\t * Unused result without the drop ability.\n\t *\n\t * @generated from protobuf enum value: UNUSED_VALUE_WITHOUT_DROP = 22;\n\t */\n\tUNUSED_VALUE_WITHOUT_DROP = 22,\n\t/**\n\t * Invalid public Move function signature.\n\t * Unsupported return type for return value.\n\t *\n\t * @generated from protobuf enum value: INVALID_PUBLIC_FUNCTION_RETURN_TYPE = 23;\n\t */\n\tINVALID_PUBLIC_FUNCTION_RETURN_TYPE = 23,\n\t/**\n\t * Invalid transfer object, object does not have public transfer.\n\t *\n\t * @generated from protobuf enum value: INVALID_TRANSFER_OBJECT = 24;\n\t */\n\tINVALID_TRANSFER_OBJECT = 24,\n\t/**\n\t * Effects from the transaction are too large.\n\t *\n\t * @generated from protobuf enum value: EFFECTS_TOO_LARGE = 25;\n\t */\n\tEFFECTS_TOO_LARGE = 25,\n\t/**\n\t * Publish or Upgrade is missing dependency.\n\t *\n\t * @generated from protobuf enum value: PUBLISH_UPGRADE_MISSING_DEPENDENCY = 26;\n\t */\n\tPUBLISH_UPGRADE_MISSING_DEPENDENCY = 26,\n\t/**\n\t * Publish or upgrade dependency downgrade.\n\t *\n\t * Indirect (transitive) dependency of published or upgraded package has been assigned an\n\t * on-chain version that is less than the version required by one of the package's\n\t * transitive dependencies.\n\t *\n\t * @generated from protobuf enum value: PUBLISH_UPGRADE_DEPENDENCY_DOWNGRADE = 27;\n\t */\n\tPUBLISH_UPGRADE_DEPENDENCY_DOWNGRADE = 27,\n\t/**\n\t * Invalid package upgrade.\n\t *\n\t * @generated from protobuf enum value: PACKAGE_UPGRADE_ERROR = 28;\n\t */\n\tPACKAGE_UPGRADE_ERROR = 28,\n\t/**\n\t * Indicates the transaction tried to write objects too large to storage.\n\t *\n\t * @generated from protobuf enum value: WRITTEN_OBJECTS_TOO_LARGE = 29;\n\t */\n\tWRITTEN_OBJECTS_TOO_LARGE = 29,\n\t/**\n\t * Certificate is on the deny list.\n\t *\n\t * @generated from protobuf enum value: CERTIFICATE_DENIED = 30;\n\t */\n\tCERTIFICATE_DENIED = 30,\n\t/**\n\t * Sui Move bytecode verification timed out.\n\t *\n\t * @generated from protobuf enum value: SUI_MOVE_VERIFICATION_TIMEDOUT = 31;\n\t */\n\tSUI_MOVE_VERIFICATION_TIMEDOUT = 31,\n\t/**\n\t * The requested consensus object operation is not allowed.\n\t *\n\t * @generated from protobuf enum value: CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED = 32;\n\t */\n\tCONSENSUS_OBJECT_OPERATION_NOT_ALLOWED = 32,\n\t/**\n\t * Requested consensus object has been deleted.\n\t *\n\t * @generated from protobuf enum value: INPUT_OBJECT_DELETED = 33;\n\t */\n\tINPUT_OBJECT_DELETED = 33,\n\t/**\n\t * Certificate is canceled due to congestion on consensus objects.\n\t *\n\t * @generated from protobuf enum value: EXECUTION_CANCELED_DUE_TO_CONSENSUS_OBJECT_CONGESTION = 34;\n\t */\n\tEXECUTION_CANCELED_DUE_TO_CONSENSUS_OBJECT_CONGESTION = 34,\n\t/**\n\t * Address is denied for this coin type.\n\t *\n\t * @generated from protobuf enum value: ADDRESS_DENIED_FOR_COIN = 35;\n\t */\n\tADDRESS_DENIED_FOR_COIN = 35,\n\t/**\n\t * Coin type is globally paused for use.\n\t *\n\t * @generated from protobuf enum value: COIN_TYPE_GLOBAL_PAUSE = 36;\n\t */\n\tCOIN_TYPE_GLOBAL_PAUSE = 36,\n\t/**\n\t * Certificate is canceled because randomness could not be generated this epoch.\n\t *\n\t * @generated from protobuf enum value: EXECUTION_CANCELED_DUE_TO_RANDOMNESS_UNAVAILABLE = 37;\n\t */\n\tEXECUTION_CANCELED_DUE_TO_RANDOMNESS_UNAVAILABLE = 37,\n\t/**\n\t * Move vector element (passed to MakeMoveVec) with size {value_size} is larger \\\n\t * than the maximum size {max_scaled_size}. Note that this maximum is scaled based on the \\\n\t * type of the vector element.\n\t *\n\t * @generated from protobuf enum value: MOVE_VECTOR_ELEM_TOO_BIG = 38;\n\t */\n\tMOVE_VECTOR_ELEM_TOO_BIG = 38,\n\t/**\n\t * Move value (possibly an upgrade ticket or a dev-inspect value) with size {value_size} \\\n\t * is larger than the maximum size {max_scaled_size}. Note that this maximum is scaled based \\\n\t * on the type of the value.\n\t *\n\t * @generated from protobuf enum value: MOVE_RAW_VALUE_TOO_BIG = 39;\n\t */\n\tMOVE_RAW_VALUE_TOO_BIG = 39,\n\t/**\n\t * A valid linkage was unable to be determined for the transaction or one of its commands.\n\t *\n\t * @generated from protobuf enum value: INVALID_LINKAGE = 40;\n\t */\n\tINVALID_LINKAGE = 40,\n\t/**\n\t * Insufficient funds for transaction withdrawal\n\t *\n\t * @generated from protobuf enum value: INSUFFICIENT_FUNDS_FOR_WITHDRAW = 41;\n\t */\n\tINSUFFICIENT_FUNDS_FOR_WITHDRAW = 41,\n\t/**\n\t * An input object with non-exclusive write mutability was modified\n\t *\n\t * @generated from protobuf enum value: NON_EXCLUSIVE_WRITE_INPUT_OBJECT_MODIFIED = 42;\n\t */\n\tNON_EXCLUSIVE_WRITE_INPUT_OBJECT_MODIFIED = 42,\n}\n/**\n * @generated from protobuf message sui.rpc.v2.MoveAbort\n */\nexport interface MoveAbort {\n\t/**\n\t * @generated from protobuf field: optional uint64 abort_code = 1;\n\t */\n\tabortCode?: bigint;\n\t/**\n\t * Location in Move where the error occurred.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.MoveLocation location = 2;\n\t */\n\tlocation?: MoveLocation;\n\t/**\n\t * Extra error information if abort code is a \"Clever Error\"\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.CleverError clever_error = 3;\n\t */\n\tcleverError?: CleverError;\n}\n/**\n * Location in Move bytecode where an error occurred.\n *\n * @generated from protobuf message sui.rpc.v2.MoveLocation\n */\nexport interface MoveLocation {\n\t/**\n\t * The package ID.\n\t *\n\t * @generated from protobuf field: optional string package = 1;\n\t */\n\tpackage?: string;\n\t/**\n\t * The module name.\n\t *\n\t * @generated from protobuf field: optional string module = 2;\n\t */\n\tmodule?: string;\n\t/**\n\t * The function index.\n\t *\n\t * @generated from protobuf field: optional uint32 function = 3;\n\t */\n\tfunction?: number;\n\t/**\n\t * Offset of the instruction where the error occurred.\n\t *\n\t * @generated from protobuf field: optional uint32 instruction = 4;\n\t */\n\tinstruction?: number;\n\t/**\n\t * The name of the function, if available.\n\t *\n\t * @generated from protobuf field: optional string function_name = 5;\n\t */\n\tfunctionName?: string;\n}\n/**\n * @generated from protobuf message sui.rpc.v2.CleverError\n */\nexport interface CleverError {\n\t/**\n\t * @generated from protobuf field: optional uint64 error_code = 1;\n\t */\n\terrorCode?: bigint;\n\t/**\n\t * @generated from protobuf field: optional uint64 line_number = 2;\n\t */\n\tlineNumber?: bigint;\n\t/**\n\t * @generated from protobuf field: optional string constant_name = 3;\n\t */\n\tconstantName?: string;\n\t/**\n\t * @generated from protobuf field: optional string constant_type = 4;\n\t */\n\tconstantType?: string;\n\t/**\n\t * @generated from protobuf oneof: value\n\t */\n\tvalue:\n\t\t| {\n\t\t\t\toneofKind: 'rendered';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: string rendered = 5;\n\t\t\t\t */\n\t\t\t\trendered: string;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: 'raw';\n\t\t\t\t/**\n\t\t\t\t * @generated from protobuf field: bytes raw = 6;\n\t\t\t\t */\n\t\t\t\traw: Uint8Array;\n\t\t }\n\t\t| {\n\t\t\t\toneofKind: undefined;\n\t\t };\n}\n/**\n * A size error.\n *\n * @generated from protobuf message sui.rpc.v2.SizeError\n */\nexport interface SizeError {\n\t/**\n\t * The offending size.\n\t *\n\t * @generated from protobuf field: optional uint64 size = 1;\n\t */\n\tsize?: bigint;\n\t/**\n\t * The maximum allowable size.\n\t *\n\t * @generated from protobuf field: optional uint64 max_size = 2;\n\t */\n\tmaxSize?: bigint;\n}\n/**\n * @generated from protobuf message sui.rpc.v2.IndexError\n */\nexport interface IndexError {\n\t/**\n\t * Index of an input or result.\n\t *\n\t * @generated from protobuf field: optional uint32 index = 1;\n\t */\n\tindex?: number;\n\t/**\n\t * Index of a subresult.\n\t *\n\t * @generated from protobuf field: optional uint32 subresult = 2;\n\t */\n\tsubresult?: number;\n}\n/**\n * @generated from protobuf message sui.rpc.v2.CoinDenyListError\n */\nexport interface CoinDenyListError {\n\t/**\n\t * Denied address.\n\t *\n\t * @generated from protobuf field: optional string address = 1;\n\t */\n\taddress?: string;\n\t/**\n\t * Coin type.\n\t *\n\t * @generated from protobuf field: optional string coin_type = 2;\n\t */\n\tcoinType?: string;\n}\n/**\n * Set of objects that were congested, leading to the transaction's cancellation.\n *\n * @generated from protobuf message sui.rpc.v2.CongestedObjects\n */\nexport interface CongestedObjects {\n\t/**\n\t * @generated from protobuf field: repeated string objects = 1;\n\t */\n\tobjects: string[];\n}\n/**\n * An error with an argument to a command.\n *\n * @generated from protobuf message sui.rpc.v2.CommandArgumentError\n */\nexport interface CommandArgumentError {\n\t/**\n\t * Position of the problematic argument.\n\t *\n\t * @generated from protobuf field: optional uint32 argument = 1;\n\t */\n\targument?: number;\n\t/**\n\t * @generated from protobuf field: optional sui.rpc.v2.CommandArgumentError.CommandArgumentErrorKind kind = 2;\n\t */\n\tkind?: CommandArgumentError_CommandArgumentErrorKind;\n\t/**\n\t * @generated from protobuf field: optional sui.rpc.v2.IndexError index_error = 3;\n\t */\n\tindexError?: IndexError;\n}\n/**\n * @generated from protobuf enum sui.rpc.v2.CommandArgumentError.CommandArgumentErrorKind\n */\nexport enum CommandArgumentError_CommandArgumentErrorKind {\n\t/**\n\t * @generated from protobuf enum value: COMMAND_ARGUMENT_ERROR_KIND_UNKNOWN = 0;\n\t */\n\tCOMMAND_ARGUMENT_ERROR_KIND_UNKNOWN = 0,\n\t/**\n\t * The type of the value does not match the expected type.\n\t *\n\t * @generated from protobuf enum value: TYPE_MISMATCH = 1;\n\t */\n\tTYPE_MISMATCH = 1,\n\t/**\n\t * The argument cannot be deserialized into a value of the specified type.\n\t *\n\t * @generated from protobuf enum value: INVALID_BCS_BYTES = 2;\n\t */\n\tINVALID_BCS_BYTES = 2,\n\t/**\n\t * The argument cannot be instantiated from raw bytes.\n\t *\n\t * @generated from protobuf enum value: INVALID_USAGE_OF_PURE_ARGUMENT = 3;\n\t */\n\tINVALID_USAGE_OF_PURE_ARGUMENT = 3,\n\t/**\n\t * Invalid argument to private entry function.\n\t * Private entry functions cannot take arguments from other Move functions.\n\t *\n\t * @generated from protobuf enum value: INVALID_ARGUMENT_TO_PRIVATE_ENTRY_FUNCTION = 4;\n\t */\n\tINVALID_ARGUMENT_TO_PRIVATE_ENTRY_FUNCTION = 4,\n\t/**\n\t * Out of bounds access to input or results.\n\t *\n\t * `index` field will be set indicating the invalid index value.\n\t *\n\t * @generated from protobuf enum value: INDEX_OUT_OF_BOUNDS = 5;\n\t */\n\tINDEX_OUT_OF_BOUNDS = 5,\n\t/**\n\t * Out of bounds access to subresult.\n\t *\n\t * `index` and `subresult` fields will be set indicating the invalid index value.\n\t *\n\t * @generated from protobuf enum value: SECONDARY_INDEX_OUT_OF_BOUNDS = 6;\n\t */\n\tSECONDARY_INDEX_OUT_OF_BOUNDS = 6,\n\t/**\n\t * Invalid usage of result.\n\t * Expected a single result but found either no return value or multiple.\n\t * `index` field will be set indicating the invalid index value.\n\t *\n\t * @generated from protobuf enum value: INVALID_RESULT_ARITY = 7;\n\t */\n\tINVALID_RESULT_ARITY = 7,\n\t/**\n\t * Invalid usage of gas coin.\n\t * The gas coin can only be used by-value with a `TransferObject` command.\n\t *\n\t * @generated from protobuf enum value: INVALID_GAS_COIN_USAGE = 8;\n\t */\n\tINVALID_GAS_COIN_USAGE = 8,\n\t/**\n\t * Invalid usage of Move value.\n\t * - Mutably borrowed values require unique usage.\n\t * - Immutably borrowed values cannot be taken or borrowed mutably.\n\t * - Taken values cannot be used again.\n\t *\n\t * @generated from protobuf enum value: INVALID_VALUE_USAGE = 9;\n\t */\n\tINVALID_VALUE_USAGE = 9,\n\t/**\n\t * Immutable objects cannot be passed by-value.\n\t *\n\t * @generated from protobuf enum value: INVALID_OBJECT_BY_VALUE = 10;\n\t */\n\tINVALID_OBJECT_BY_VALUE = 10,\n\t/**\n\t * Immutable objects cannot be passed by mutable reference, `&mut`.\n\t *\n\t * @generated from protobuf enum value: INVALID_OBJECT_BY_MUT_REF = 11;\n\t */\n\tINVALID_OBJECT_BY_MUT_REF = 11,\n\t/**\n\t * Consensus object operations such as wrapping, freezing, or converting to owned are not\n\t * allowed.\n\t *\n\t * @generated from protobuf enum value: CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED = 12;\n\t */\n\tCONSENSUS_OBJECT_OPERATION_NOT_ALLOWED = 12,\n\t/**\n\t * Invalid argument arity. Expected a single argument but found a result that expanded to\n\t * multiple arguments.\n\t *\n\t * @generated from protobuf enum value: INVALID_ARGUMENT_ARITY = 13;\n\t */\n\tINVALID_ARGUMENT_ARITY = 13,\n\t/**\n\t * Object passed to TransferObject does not have public transfer, i.e. the `store` ability\n\t *\n\t * @generated from protobuf enum value: INVALID_TRANSFER_OBJECT = 14;\n\t */\n\tINVALID_TRANSFER_OBJECT = 14,\n\t/**\n\t * First argument to MakeMoveVec is not an object. If no type is specified for MakeMoveVec,\n\t * all arguments must be the same object type.\n\t *\n\t * @generated from protobuf enum value: INVALID_MAKE_MOVE_VEC_NON_OBJECT_ARGUMENT = 15;\n\t */\n\tINVALID_MAKE_MOVE_VEC_NON_OBJECT_ARGUMENT = 15,\n\t/**\n\t * Specified argument location does not have a value and cannot be used\n\t *\n\t * @generated from protobuf enum value: ARGUMENT_WITHOUT_VALUE = 16;\n\t */\n\tARGUMENT_WITHOUT_VALUE = 16,\n\t/**\n\t * Cannot move a borrowed value. The value's type does resulted in this argument usage being\n\t * inferred as a move. This is likely due to the type not having the `copy` ability; although\n\t * in rare cases, it could also be this is the last usage of a value without the `drop`\n\t * ability.\n\t *\n\t * @generated from protobuf enum value: CANNOT_MOVE_BORROWED_VALUE = 17;\n\t */\n\tCANNOT_MOVE_BORROWED_VALUE = 17,\n\t/**\n\t * Cannot write to an argument location that is still borrowed, and where that borrow is an\n\t * extension of that reference. This is likely due to this argument being used in a Move call\n\t * that returns a reference, and that reference is used in a later command.\n\t *\n\t * @generated from protobuf enum value: CANNOT_WRITE_TO_EXTENDED_REFERENCE = 18;\n\t */\n\tCANNOT_WRITE_TO_EXTENDED_REFERENCE = 18,\n\t/**\n\t * The argument specified cannot be used as a reference argument in the Move call. Either the\n\t * argument is a mutable reference and it conflicts with another argument to the call, or the\n\t * argument is mutable and another reference extends it and will be used in a later command.\n\t *\n\t * @generated from protobuf enum value: INVALID_REFERENCE_ARGUMENT = 19;\n\t */\n\tINVALID_REFERENCE_ARGUMENT = 19,\n\t/**\n\t * Invalid usage of TxContext in the function signature. TxContext can only be used by\n\t * reference, `&TxContext` or `&mut TxContext`. If used mutably, it must be the only\n\t * TxContext parameter, and TxContext can never be returned from a Move call.\n\t *\n\t * @generated from protobuf enum value: INVALID_TX_CONTEXT = 20;\n\t */\n\tINVALID_TX_CONTEXT = 20,\n}\n/**\n * An error with upgrading a package.\n *\n * @generated from protobuf message sui.rpc.v2.PackageUpgradeError\n */\nexport interface PackageUpgradeError {\n\t/**\n\t * @generated from protobuf field: optional sui.rpc.v2.PackageUpgradeError.PackageUpgradeErrorKind kind = 1;\n\t */\n\tkind?: PackageUpgradeError_PackageUpgradeErrorKind;\n\t/**\n\t * The Package Id.\n\t *\n\t * @generated from protobuf field: optional string package_id = 2;\n\t */\n\tpackageId?: string;\n\t/**\n\t * A digest.\n\t *\n\t * @generated from protobuf field: optional string digest = 3;\n\t */\n\tdigest?: string;\n\t/**\n\t * The policy.\n\t *\n\t * @generated from protobuf field: optional uint32 policy = 4;\n\t */\n\tpolicy?: number;\n\t/**\n\t * The ticket Id.\n\t *\n\t * @generated from protobuf field: optional string ticket_id = 5;\n\t */\n\tticketId?: string;\n}\n/**\n * @generated from protobuf enum sui.rpc.v2.PackageUpgradeError.PackageUpgradeErrorKind\n */\nexport enum PackageUpgradeError_PackageUpgradeErrorKind {\n\t/**\n\t * @generated from protobuf enum value: PACKAGE_UPGRADE_ERROR_KIND_UNKNOWN = 0;\n\t */\n\tPACKAGE_UPGRADE_ERROR_KIND_UNKNOWN = 0,\n\t/**\n\t * Unable to fetch package.\n\t *\n\t * @generated from protobuf enum value: UNABLE_TO_FETCH_PACKAGE = 1;\n\t */\n\tUNABLE_TO_FETCH_PACKAGE = 1,\n\t/**\n\t * Object is not a package.\n\t *\n\t * @generated from protobuf enum value: NOT_A_PACKAGE = 2;\n\t */\n\tNOT_A_PACKAGE = 2,\n\t/**\n\t * Package upgrade is incompatible with previous version.\n\t *\n\t * @generated from protobuf enum value: INCOMPATIBLE_UPGRADE = 3;\n\t */\n\tINCOMPATIBLE_UPGRADE = 3,\n\t/**\n\t * Digest in upgrade ticket and computed digest differ.\n\t *\n\t * @generated from protobuf enum value: DIGEST_DOES_NOT_MATCH = 4;\n\t */\n\tDIGEST_DOES_NOT_MATCH = 4,\n\t/**\n\t * Upgrade policy is not valid.\n\t *\n\t * @generated from protobuf enum value: UNKNOWN_UPGRADE_POLICY = 5;\n\t */\n\tUNKNOWN_UPGRADE_POLICY = 5,\n\t/**\n\t * Package ID does not match `PackageId` in upgrade ticket.\n\t *\n\t * @generated from protobuf enum value: PACKAGE_ID_DOES_NOT_MATCH = 6;\n\t */\n\tPACKAGE_ID_DOES_NOT_MATCH = 6,\n}\n/**\n * Type argument error.\n *\n * @generated from protobuf message sui.rpc.v2.TypeArgumentError\n */\nexport interface TypeArgumentError {\n\t/**\n\t * Index of the problematic type argument.\n\t *\n\t * @generated from protobuf field: optional uint32 type_argument = 1;\n\t */\n\ttypeArgument?: number;\n\t/**\n\t * @generated from protobuf field: optional sui.rpc.v2.TypeArgumentError.TypeArgumentErrorKind kind = 2;\n\t */\n\tkind?: TypeArgumentError_TypeArgumentErrorKind;\n}\n/**\n * @generated from protobuf enum sui.rpc.v2.TypeArgumentError.TypeArgumentErrorKind\n */\nexport enum TypeArgumentError_TypeArgumentErrorKind {\n\t/**\n\t * @generated from protobuf enum value: TYPE_ARGUMENT_ERROR_KIND_UNKNOWN = 0;\n\t */\n\tTYPE_ARGUMENT_ERROR_KIND_UNKNOWN = 0,\n\t/**\n\t * A type was not found in the module specified.\n\t *\n\t * @generated from protobuf enum value: TYPE_NOT_FOUND = 1;\n\t */\n\tTYPE_NOT_FOUND = 1,\n\t/**\n\t * A type provided did not match the specified constraint.\n\t *\n\t * @generated from protobuf enum value: CONSTRAINT_NOT_SATISFIED = 2;\n\t */\n\tCONSTRAINT_NOT_SATISFIED = 2,\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass ExecutionStatus$Type extends MessageType<ExecutionStatus> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.ExecutionStatus', [\n\t\t\t{ no: 1, name: 'success', kind: 'scalar', opt: true, T: 8 /*ScalarType.BOOL*/ },\n\t\t\t{ no: 2, name: 'error', kind: 'message', T: () => ExecutionError },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.ExecutionStatus\n */\nexport const ExecutionStatus = new ExecutionStatus$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ExecutionError$Type extends MessageType<ExecutionError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.ExecutionError', [\n\t\t\t{ no: 1, name: 'description', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{\n\t\t\t\tno: 2,\n\t\t\t\tname: 'command',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 3,\n\t\t\t\tname: 'kind',\n\t\t\t\tkind: 'enum',\n\t\t\t\topt: true,\n\t\t\t\tT: () => [\n\t\t\t\t\t'sui.rpc.v2.ExecutionError.ExecutionErrorKind',\n\t\t\t\t\tExecutionError_ExecutionErrorKind,\n\t\t\t\t],\n\t\t\t},\n\t\t\t{ no: 4, name: 'abort', kind: 'message', oneof: 'errorDetails', T: () => MoveAbort },\n\t\t\t{ no: 5, name: 'size_error', kind: 'message', oneof: 'errorDetails', T: () => SizeError },\n\t\t\t{\n\t\t\t\tno: 6,\n\t\t\t\tname: 'command_argument_error',\n\t\t\t\tkind: 'message',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: () => CommandArgumentError,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 7,\n\t\t\t\tname: 'type_argument_error',\n\t\t\t\tkind: 'message',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: () => TypeArgumentError,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 8,\n\t\t\t\tname: 'package_upgrade_error',\n\t\t\t\tkind: 'message',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: () => PackageUpgradeError,\n\t\t\t},\n\t\t\t{ no: 9, name: 'index_error', kind: 'message', oneof: 'errorDetails', T: () => IndexError },\n\t\t\t{\n\t\t\t\tno: 10,\n\t\t\t\tname: 'object_id',\n\t\t\t\tkind: 'scalar',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: 9 /*ScalarType.STRING*/,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 11,\n\t\t\t\tname: 'coin_deny_list_error',\n\t\t\t\tkind: 'message',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: () => CoinDenyListError,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 12,\n\t\t\t\tname: 'congested_objects',\n\t\t\t\tkind: 'message',\n\t\t\t\toneof: 'errorDetails',\n\t\t\t\tT: () => CongestedObjects,\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.ExecutionError\n */\nexport const ExecutionError = new ExecutionError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass MoveAbort$Type extends MessageType<MoveAbort> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.MoveAbort', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'abort_code',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 2, name: 'location', kind: 'message', T: () => MoveLocation },\n\t\t\t{ no: 3, name: 'clever_error', kind: 'message', T: () => CleverError },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.MoveAbort\n */\nexport const MoveAbort = new MoveAbort$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass MoveLocation$Type extends MessageType<MoveLocation> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.MoveLocation', [\n\t\t\t{ no: 1, name: 'package', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'module', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 3, name: 'function', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{ no: 4, name: 'instruction', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{ no: 5, name: 'function_name', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.MoveLocation\n */\nexport const MoveLocation = new MoveLocation$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass CleverError$Type extends MessageType<CleverError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.CleverError', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'error_code',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 2,\n\t\t\t\tname: 'line_number',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 3, name: 'constant_name', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 4, name: 'constant_type', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 5, name: 'rendered', kind: 'scalar', oneof: 'value', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 6, name: 'raw', kind: 'scalar', oneof: 'value', T: 12 /*ScalarType.BYTES*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.CleverError\n */\nexport const CleverError = new CleverError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass SizeError$Type extends MessageType<SizeError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.SizeError', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'size',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{\n\t\t\t\tno: 2,\n\t\t\t\tname: 'max_size',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.SizeError\n */\nexport const SizeError = new SizeError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass IndexError$Type extends MessageType<IndexError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.IndexError', [\n\t\t\t{ no: 1, name: 'index', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{ no: 2, name: 'subresult', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.IndexError\n */\nexport const IndexError = new IndexError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass CoinDenyListError$Type extends MessageType<CoinDenyListError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.CoinDenyListError', [\n\t\t\t{ no: 1, name: 'address', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'coin_type', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.CoinDenyListError\n */\nexport const CoinDenyListError = new CoinDenyListError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass CongestedObjects$Type extends MessageType<CongestedObjects> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.CongestedObjects', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'objects',\n\t\t\t\tkind: 'scalar',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: 9 /*ScalarType.STRING*/,\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.CongestedObjects\n */\nexport const CongestedObjects = new CongestedObjects$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass CommandArgumentError$Type extends MessageType<CommandArgumentError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.CommandArgumentError', [\n\t\t\t{ no: 1, name: 'argument', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{\n\t\t\t\tno: 2,\n\t\t\t\tname: 'kind',\n\t\t\t\tkind: 'enum',\n\t\t\t\topt: true,\n\t\t\t\tT: () => [\n\t\t\t\t\t'sui.rpc.v2.CommandArgumentError.CommandArgumentErrorKind',\n\t\t\t\t\tCommandArgumentError_CommandArgumentErrorKind,\n\t\t\t\t],\n\t\t\t},\n\t\t\t{ no: 3, name: 'index_error', kind: 'message', T: () => IndexError },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.CommandArgumentError\n */\nexport const CommandArgumentError = new CommandArgumentError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PackageUpgradeError$Type extends MessageType<PackageUpgradeError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.PackageUpgradeError', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'kind',\n\t\t\t\tkind: 'enum',\n\t\t\t\topt: true,\n\t\t\t\tT: () => [\n\t\t\t\t\t'sui.rpc.v2.PackageUpgradeError.PackageUpgradeErrorKind',\n\t\t\t\t\tPackageUpgradeError_PackageUpgradeErrorKind,\n\t\t\t\t],\n\t\t\t},\n\t\t\t{ no: 2, name: 'package_id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 3, name: 'digest', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 4, name: 'policy', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{ no: 5, name: 'ticket_id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.PackageUpgradeError\n */\nexport const PackageUpgradeError = new PackageUpgradeError$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass TypeArgumentError$Type extends MessageType<TypeArgumentError> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.TypeArgumentError', [\n\t\t\t{ no: 1, name: 'type_argument', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t\t{\n\t\t\t\tno: 2,\n\t\t\t\tname: 'kind',\n\t\t\t\tkind: 'enum',\n\t\t\t\topt: true,\n\t\t\t\tT: () => [\n\t\t\t\t\t'sui.rpc.v2.TypeArgumentError.TypeArgumentErrorKind',\n\t\t\t\t\tTypeArgumentError_TypeArgumentErrorKind,\n\t\t\t\t],\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.TypeArgumentError\n */\nexport const TypeArgumentError = new TypeArgumentError$Type();\n"],"mappings":";;;;;;AAiIA,IAAY,kGAAL;;;;AAIN;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;;AAOA;;;;;;AAMA;;;;;;;;AAQA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;;AAOA;;;;;;;AAOA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;;AAOA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;;;;;AAUA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA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MJ,MAAa,sBAAsB,IAAI,0BAA0B;AAEjE,IAAM,yBAAN,cAAqC,YAA+B;CACnE,cAAc;AACb,QAAM,gCAAgC,CACrC;GAAE,IAAI;GAAG,MAAM;GAAiB,MAAM;GAAU,KAAK;GAAM,GAAG;GAA0B,EACxF;GACC,IAAI;GACJ,MAAM;GACN,MAAM;GACN,KAAK;GACL,SAAS,CACR,sDACA,wCACA;GACD,CACD,CAAC;;;;;;AAMJ,MAAa,oBAAoB,IAAI,wBAAwB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BatchGetObjectsRequest, BatchGetObjectsResponse, BatchGetTransactionsRequest, BatchGetTransactionsResponse, GetCheckpointRequest, GetCheckpointResponse, GetEpochRequest, GetEpochResponse, GetObjectRequest, GetObjectResponse, GetServiceInfoRequest, GetServiceInfoResponse, GetTransactionRequest, GetTransactionResponse, ListCheckpointsRequest, ListCheckpointsResponse, ListEventsRequest, ListEventsResponse, ListTransactionsRequest, ListTransactionsResponse } from "./ledger_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, ServerStreamingCall, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
|
|
6
6
|
//#region src/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts
|
|
@@ -73,9 +73,9 @@ interface ILedgerServiceClient {
|
|
|
73
73
|
declare class LedgerServiceClient implements ILedgerServiceClient, ServiceInfo {
|
|
74
74
|
private readonly _transport;
|
|
75
75
|
typeName: string;
|
|
76
|
-
methods:
|
|
76
|
+
methods: _protobuf_ts_runtime_rpc0.MethodInfo<any, any>[];
|
|
77
77
|
options: {
|
|
78
|
-
[extensionName: string]:
|
|
78
|
+
[extensionName: string]: _protobuf_ts_runtime0.JsonValue;
|
|
79
79
|
};
|
|
80
80
|
constructor(_transport: RpcTransport);
|
|
81
81
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetDatatypeRequest, GetDatatypeResponse, GetFunctionRequest, GetFunctionResponse, GetPackageRequest, GetPackageResponse, ListPackageVersionsRequest, ListPackageVersionsResponse } from "./move_package_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/move_package_service.client.d.ts
|
|
@@ -31,9 +31,9 @@ interface IMovePackageServiceClient {
|
|
|
31
31
|
declare class MovePackageServiceClient implements IMovePackageServiceClient, ServiceInfo {
|
|
32
32
|
private readonly _transport;
|
|
33
33
|
typeName: string;
|
|
34
|
-
methods:
|
|
34
|
+
methods: _protobuf_ts_runtime_rpc2.MethodInfo<any, any>[];
|
|
35
35
|
options: {
|
|
36
|
-
[extensionName: string]:
|
|
36
|
+
[extensionName: string]: _protobuf_ts_runtime2.JsonValue;
|
|
37
37
|
};
|
|
38
38
|
constructor(_transport: RpcTransport);
|
|
39
39
|
/**
|