@gnolang/tm2-js-client 2.0.4 → 2.1.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 +430 -0
- package/CONTRIBUTING.md +83 -0
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.cjs +12 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/defineProperty.mjs +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/toPrimitive.cjs +4 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/toPrimitive.mjs +3 -3
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.cjs +9 -0
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/typeof.cjs +2 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0/helpers → _@oxc-project_runtime@0.143.0/helpers/esm}/typeof.mjs +2 -2
- package/dist/_virtual/_rolldown/runtime.cjs +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.mts +5 -0
- package/dist/proto/google/protobuf/any.cjs +3 -4
- package/dist/proto/google/protobuf/any.cjs.map +1 -1
- package/dist/proto/google/protobuf/any.d.cts +3 -4
- package/dist/proto/google/protobuf/any.d.cts.map +1 -1
- package/dist/proto/google/protobuf/any.d.mts +3 -4
- package/dist/proto/google/protobuf/any.d.mts.map +1 -1
- package/dist/proto/google/protobuf/any.mjs +3 -3
- package/dist/proto/google/protobuf/any.mjs.map +1 -1
- package/dist/proto/index.cjs +15 -4
- package/dist/proto/index.d.cts +2 -1
- package/dist/proto/index.d.mts +2 -1
- package/dist/proto/index.mjs +5 -5
- package/dist/proto/tm2/abci.cjs +3 -4
- package/dist/proto/tm2/abci.cjs.map +1 -1
- package/dist/proto/tm2/abci.d.cts +3 -4
- package/dist/proto/tm2/abci.d.cts.map +1 -1
- package/dist/proto/tm2/abci.d.mts +3 -4
- package/dist/proto/tm2/abci.d.mts.map +1 -1
- package/dist/proto/tm2/abci.mjs +3 -3
- package/dist/proto/tm2/abci.mjs.map +1 -1
- package/dist/proto/tm2/multisig.cjs +3 -4
- package/dist/proto/tm2/multisig.cjs.map +1 -1
- package/dist/proto/tm2/multisig.d.cts +3 -4
- package/dist/proto/tm2/multisig.d.cts.map +1 -1
- package/dist/proto/tm2/multisig.d.mts +3 -4
- package/dist/proto/tm2/multisig.d.mts.map +1 -1
- package/dist/proto/tm2/multisig.mjs +3 -3
- package/dist/proto/tm2/multisig.mjs.map +1 -1
- package/dist/proto/tm2/tx.cjs +15 -7
- package/dist/proto/tm2/tx.cjs.map +1 -1
- package/dist/proto/tm2/tx.d.cts +4 -3
- package/dist/proto/tm2/tx.d.cts.map +1 -1
- package/dist/proto/tm2/tx.d.mts +4 -3
- package/dist/proto/tm2/tx.d.mts.map +1 -1
- package/dist/proto/tm2/tx.mjs +15 -6
- package/dist/proto/tm2/tx.mjs.map +1 -1
- package/dist/provider/endpoints.cjs.map +1 -1
- package/dist/provider/endpoints.d.cts.map +1 -1
- package/dist/provider/endpoints.d.mts.map +1 -1
- package/dist/provider/endpoints.mjs.map +1 -1
- package/dist/provider/errors/errors.cjs +2 -2
- package/dist/provider/errors/errors.cjs.map +1 -1
- package/dist/provider/errors/errors.d.cts.map +1 -1
- package/dist/provider/errors/errors.d.mts.map +1 -1
- package/dist/provider/errors/errors.mjs +1 -1
- package/dist/provider/errors/errors.mjs.map +1 -1
- package/dist/provider/errors/index.cjs +20 -1
- package/dist/provider/errors/index.d.cts +2 -1
- package/dist/provider/errors/index.d.mts +2 -1
- package/dist/provider/errors/index.mjs +2 -2
- package/dist/provider/index.cjs +61 -9
- package/dist/provider/index.d.cts +7 -1
- package/dist/provider/index.d.mts +7 -1
- package/dist/provider/index.mjs +10 -10
- package/dist/provider/jsonrpc/index.cjs +2 -1
- package/dist/provider/jsonrpc/index.d.cts +2 -1
- package/dist/provider/jsonrpc/index.d.mts +2 -1
- package/dist/provider/jsonrpc/index.mjs +2 -2
- package/dist/provider/jsonrpc/jsonrpc.cjs +2 -2
- package/dist/provider/jsonrpc/jsonrpc.cjs.map +1 -1
- package/dist/provider/jsonrpc/jsonrpc.d.cts +0 -1
- package/dist/provider/jsonrpc/jsonrpc.d.cts.map +1 -1
- package/dist/provider/jsonrpc/jsonrpc.d.mts +0 -1
- package/dist/provider/jsonrpc/jsonrpc.d.mts.map +1 -1
- package/dist/provider/jsonrpc/jsonrpc.mjs +2 -1
- package/dist/provider/jsonrpc/jsonrpc.mjs.map +1 -1
- package/dist/provider/provider.cjs +8 -9
- package/dist/provider/provider.cjs.map +1 -1
- package/dist/provider/provider.d.cts +2 -1
- package/dist/provider/provider.d.cts.map +1 -1
- package/dist/provider/provider.d.mts +2 -1
- package/dist/provider/provider.d.mts.map +1 -1
- package/dist/provider/provider.mjs +43 -26
- package/dist/provider/provider.mjs.map +1 -1
- package/dist/provider/types/abci.d.cts.map +1 -1
- package/dist/provider/types/abci.d.mts.map +1 -1
- package/dist/provider/types/common.d.cts +1 -2
- package/dist/provider/types/common.d.cts.map +1 -1
- package/dist/provider/types/common.d.mts +1 -2
- package/dist/provider/types/common.d.mts.map +1 -1
- package/dist/provider/types/index.cjs +2 -1
- package/dist/provider/types/index.d.cts +2 -1
- package/dist/provider/types/index.d.mts +2 -1
- package/dist/provider/types/index.mjs +2 -2
- package/dist/provider/types/jsonrpc.d.cts.map +1 -1
- package/dist/provider/types/jsonrpc.d.mts.map +1 -1
- package/dist/provider/utility/adapters.cjs +1 -1
- package/dist/provider/utility/adapters.cjs.map +1 -1
- package/dist/provider/utility/adapters.d.cts +1 -1
- package/dist/provider/utility/adapters.d.cts.map +1 -1
- package/dist/provider/utility/adapters.d.mts +1 -1
- package/dist/provider/utility/adapters.d.mts.map +1 -1
- package/dist/provider/utility/adapters.mjs +1 -1
- package/dist/provider/utility/adapters.mjs.map +1 -1
- package/dist/provider/utility/errors.utility.cjs.map +1 -1
- package/dist/provider/utility/errors.utility.mjs.map +1 -1
- package/dist/provider/utility/index.cjs +27 -3
- package/dist/provider/utility/index.d.cts +2 -1
- package/dist/provider/utility/index.d.mts +2 -1
- package/dist/provider/utility/index.mjs +4 -4
- package/dist/provider/utility/provider.utility.cjs +0 -1
- package/dist/provider/utility/provider.utility.cjs.map +1 -1
- package/dist/provider/utility/provider.utility.d.cts +2 -1
- package/dist/provider/utility/provider.utility.d.cts.map +1 -1
- package/dist/provider/utility/provider.utility.d.mts +2 -1
- package/dist/provider/utility/provider.utility.d.mts.map +1 -1
- package/dist/provider/utility/provider.utility.mjs +2 -1
- package/dist/provider/utility/provider.utility.mjs.map +1 -1
- package/dist/provider/utility/requests.utility.cjs +0 -1
- package/dist/provider/utility/requests.utility.cjs.map +1 -1
- package/dist/provider/utility/requests.utility.d.cts +1 -1
- package/dist/provider/utility/requests.utility.d.cts.map +1 -1
- package/dist/provider/utility/requests.utility.d.mts +1 -1
- package/dist/provider/utility/requests.utility.d.mts.map +1 -1
- package/dist/provider/utility/requests.utility.mjs.map +1 -1
- package/dist/provider/websocket/index.cjs +2 -1
- package/dist/provider/websocket/index.d.cts +2 -1
- package/dist/provider/websocket/index.d.mts +2 -1
- package/dist/provider/websocket/index.mjs +2 -2
- package/dist/provider/websocket/ws.cjs +2 -2
- package/dist/provider/websocket/ws.cjs.map +1 -1
- package/dist/provider/websocket/ws.d.cts +0 -1
- package/dist/provider/websocket/ws.d.cts.map +1 -1
- package/dist/provider/websocket/ws.d.mts +0 -1
- package/dist/provider/websocket/ws.d.mts.map +1 -1
- package/dist/provider/websocket/ws.mjs +2 -1
- package/dist/provider/websocket/ws.mjs.map +1 -1
- package/dist/services/index.cjs +2 -1
- package/dist/services/index.d.cts +2 -1
- package/dist/services/index.d.mts +2 -1
- package/dist/services/index.mjs +2 -2
- package/dist/services/rest/restService.cjs +1 -1
- package/dist/services/rest/restService.cjs.map +1 -1
- package/dist/services/rest/restService.d.cts +0 -1
- package/dist/services/rest/restService.d.cts.map +1 -1
- package/dist/services/rest/restService.d.mts +0 -1
- package/dist/services/rest/restService.d.mts.map +1 -1
- package/dist/services/rest/restService.mjs.map +1 -1
- package/dist/services/rest/restService.types.d.cts +1 -1
- package/dist/services/rest/restService.types.d.cts.map +1 -1
- package/dist/services/rest/restService.types.d.mts +1 -1
- package/dist/services/rest/restService.types.d.mts.map +1 -1
- package/dist/utility/compact-bit-array.cjs +1 -1
- package/dist/utility/compact-bit-array.cjs.map +1 -1
- package/dist/utility/compact-bit-array.d.cts +0 -1
- package/dist/utility/compact-bit-array.d.cts.map +1 -1
- package/dist/utility/compact-bit-array.d.mts +0 -1
- package/dist/utility/compact-bit-array.d.mts.map +1 -1
- package/dist/utility/compact-bit-array.mjs +1 -1
- package/dist/utility/compact-bit-array.mjs.map +1 -1
- package/dist/utility/index.cjs +3 -1
- package/dist/utility/index.d.cts +2 -1
- package/dist/utility/index.d.mts +2 -1
- package/dist/utility/index.mjs +2 -2
- package/dist/wallet/index.cjs +16 -5
- package/dist/wallet/index.d.cts +6 -1
- package/dist/wallet/index.d.mts +6 -1
- package/dist/wallet/index.mjs +6 -6
- package/dist/wallet/key/index.cjs +2 -1
- package/dist/wallet/key/index.d.cts +2 -1
- package/dist/wallet/key/index.d.mts +2 -1
- package/dist/wallet/key/index.mjs +2 -2
- package/dist/wallet/key/key.cjs +9 -10
- package/dist/wallet/key/key.cjs.map +1 -1
- package/dist/wallet/key/key.d.cts +0 -1
- package/dist/wallet/key/key.d.cts.map +1 -1
- package/dist/wallet/key/key.d.mts +0 -1
- package/dist/wallet/key/key.d.mts.map +1 -1
- package/dist/wallet/key/key.mjs +1 -1
- package/dist/wallet/key/key.mjs.map +1 -1
- package/dist/wallet/ledger/index.cjs +2 -1
- package/dist/wallet/ledger/index.d.cts +2 -1
- package/dist/wallet/ledger/index.d.mts +2 -1
- package/dist/wallet/ledger/index.mjs +2 -2
- package/dist/wallet/ledger/ledger.cjs +9 -10
- package/dist/wallet/ledger/ledger.cjs.map +1 -1
- package/dist/wallet/ledger/ledger.d.cts +0 -1
- package/dist/wallet/ledger/ledger.d.cts.map +1 -1
- package/dist/wallet/ledger/ledger.d.mts +0 -1
- package/dist/wallet/ledger/ledger.d.mts.map +1 -1
- package/dist/wallet/ledger/ledger.mjs +3 -2
- package/dist/wallet/ledger/ledger.mjs.map +1 -1
- package/dist/wallet/signer.d.cts.map +1 -1
- package/dist/wallet/signer.d.mts.map +1 -1
- package/dist/wallet/types/index.cjs +2 -1
- package/dist/wallet/types/index.d.cts +2 -1
- package/dist/wallet/types/index.d.mts +2 -1
- package/dist/wallet/types/index.mjs +2 -2
- package/dist/wallet/types/sign.d.cts.map +1 -1
- package/dist/wallet/types/sign.d.mts.map +1 -1
- package/dist/wallet/types/wallet.d.cts.map +1 -1
- package/dist/wallet/types/wallet.d.mts.map +1 -1
- package/dist/wallet/utility/index.cjs +8 -1
- package/dist/wallet/utility/index.d.cts +2 -1
- package/dist/wallet/utility/index.d.mts +2 -1
- package/dist/wallet/utility/index.mjs +2 -2
- package/dist/wallet/utility/utility.cjs +1 -1
- package/dist/wallet/utility/utility.cjs.map +1 -1
- package/dist/wallet/utility/utility.d.cts +0 -1
- package/dist/wallet/utility/utility.d.cts.map +1 -1
- package/dist/wallet/utility/utility.d.mts +0 -1
- package/dist/wallet/utility/utility.d.mts.map +1 -1
- package/dist/wallet/utility/utility.mjs.map +1 -1
- package/dist/wallet/wallet.cjs +18 -18
- package/dist/wallet/wallet.cjs.map +1 -1
- package/dist/wallet/wallet.d.cts +3 -1
- package/dist/wallet/wallet.d.cts.map +1 -1
- package/dist/wallet/wallet.d.mts +3 -1
- package/dist/wallet/wallet.d.mts.map +1 -1
- package/dist/wallet/wallet.mjs +6 -4
- package/dist/wallet/wallet.mjs.map +1 -1
- package/package.json +39 -36
- package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/defineProperty.cjs +0 -12
- package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/toPropertyKey.cjs +0 -9
- package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/toPropertyKey.mjs +0 -9
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,7 @@ import { Any } from "./proto/google/protobuf/any.cjs";
|
|
|
2
2
|
import { ResponseBase, ResponseDeliverTx } from "./proto/tm2/abci.cjs";
|
|
3
3
|
import { CompactBitArray, Multisignature, PubKeyMultisig } from "./proto/tm2/multisig.cjs";
|
|
4
4
|
import { DeepPartial, Exact, MessageFns, PubKeySecp256k1, Tx, TxFee, TxSignature, protobufPackage } from "./proto/tm2/tx.cjs";
|
|
5
|
+
import "./proto/index.cjs";
|
|
5
6
|
import { ABCIEndpoint, BlockEndpoint, CommonEndpoint, ConsensusEndpoint, TransactionEndpoint } from "./provider/endpoints.cjs";
|
|
6
7
|
import { GasOverflowError, InsufficientCoinsError, InsufficientFeeError, InsufficientFundsError, InternalError, InvalidAddressError, InvalidCoinsError, InvalidGasWantedError, InvalidPubKeyError, InvalidSequenceError, MemoTooLargeError, NoSignaturesError, OutOfGasError, TM2Error, TooManySignaturesError, TxDecodeError, UnauthorizedError, UnknownAddressError, UnknownRequestError } from "./provider/errors/errors.cjs";
|
|
7
8
|
import { ABCIAccount, ABCIErrorKey, ABCIResponse, ABCIResponseBase } from "./provider/types/abci.cjs";
|
|
@@ -13,9 +14,12 @@ import { adaptAbciQueryResponse, adaptBlockResponse, adaptBlockResultsResponse,
|
|
|
13
14
|
import { extractAccountFromResponse, extractAccountNumberFromResponse, extractBalanceFromResponse, extractSequenceFromResponse, extractSimulateFromResponse, waitForTransaction } from "./provider/utility/provider.utility.cjs";
|
|
14
15
|
import { base64ToUint8Array, newRequest, newResponse, parseABCI, parseProto, stringToBase64, uint8ArrayToBase64 } from "./provider/utility/requests.utility.cjs";
|
|
15
16
|
import { WSProvider } from "./provider/websocket/ws.cjs";
|
|
17
|
+
import "./provider/index.cjs";
|
|
16
18
|
import { RequestParams } from "./services/rest/restService.types.cjs";
|
|
17
19
|
import { RestService } from "./services/rest/restService.cjs";
|
|
20
|
+
import "./services/index.cjs";
|
|
18
21
|
import { compactBitArrayFromAmino, compactBitArrayToAmino } from "./utility/compact-bit-array.cjs";
|
|
22
|
+
import "./utility/index.cjs";
|
|
19
23
|
import { Signer } from "./wallet/signer.cjs";
|
|
20
24
|
import { KeySigner } from "./wallet/key/key.cjs";
|
|
21
25
|
import { LedgerSigner } from "./wallet/ledger/ledger.cjs";
|
|
@@ -23,4 +27,5 @@ import { Secp256k1PubKeyType, TxSignPayload } from "./wallet/types/sign.cjs";
|
|
|
23
27
|
import { AccountWalletOption, CreateWalletOptions } from "./wallet/types/wallet.cjs";
|
|
24
28
|
import { defaultAddressPrefix, encodeCharacterSet, generateEntropy, generateHDPath, generateKeyPair, sortedJsonStringify, stringToUTF8 } from "./wallet/utility/utility.cjs";
|
|
25
29
|
import { SignTransactionOptions, Wallet } from "./wallet/wallet.cjs";
|
|
30
|
+
import "./wallet/index.cjs";
|
|
26
31
|
export { ABCIAccount, ABCIEndpoint, ABCIErrorKey, ABCIResponse, ABCIResponseBase, AccountWalletOption, Any, BaseTm2Provider, BeginBlock, Block, BlockEndpoint, BlockHeader, BlockID, BlockInfo, BlockMeta, BlockResult, BroadcastAsGeneric, BroadcastTransactionCommit, BroadcastTransactionMap, BroadcastTransactionSync, BroadcastTxCommitResult, BroadcastTxSyncResult, BroadcastType, CommonEndpoint, CompactBitArray, ConsensusEndpoint, ConsensusParams, ConsensusState, CreateWalletOptions, DeepPartial, DeliverTx, EndBlock, Exact, GasOverflowError, InsufficientCoinsError, InsufficientFeeError, InsufficientFundsError, InternalError, InvalidAddressError, InvalidCoinsError, InvalidGasWantedError, InvalidPubKeyError, InvalidSequenceError, JSONRPCProvider, KeySigner, LedgerSigner, MemoTooLargeError, MessageFns, Multisignature, NetworkInfo, NoSignaturesError, OutOfGasError, PrecommitInfo, Provider, PubKeyMultisig, PubKeySecp256k1, RPCError, RPCRequest, RPCResponse, RequestParams, ResponseBase, ResponseDeliverTx, RestService, Secp256k1PubKeyType, SignTransactionOptions, Signer, Status, TM2Error, TooManySignaturesError, TransactionEndpoint, Tx, TxDecodeError, TxFee, TxResult, TxSignPayload, TxSignature, UnauthorizedError, UnknownAddressError, UnknownRequestError, WSProvider, Wallet, adaptAbciQueryResponse, adaptBlockResponse, adaptBlockResultsResponse, adaptBroadcastTxCommitResponse, adaptBroadcastTxSyncResponse, adaptConsensusParamsResponse, adaptNetInfoResponse, adaptStatusResponse, adaptTxResponse, base64ToUint8Array, compactBitArrayFromAmino, compactBitArrayToAmino, defaultAddressPrefix, encodeCharacterSet, extractAccountFromResponse, extractAccountNumberFromResponse, extractBalanceFromResponse, extractSequenceFromResponse, extractSimulateFromResponse, generateEntropy, generateHDPath, generateKeyPair, newRequest, newResponse, parseABCI, parseProto, protobufPackage, sortedJsonStringify, stringToBase64, stringToUTF8, toBase64, toHexString, uint8ArrayToBase64, waitForTransaction };
|
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ import { Any } from "./proto/google/protobuf/any.mjs";
|
|
|
2
2
|
import { ResponseBase, ResponseDeliverTx } from "./proto/tm2/abci.mjs";
|
|
3
3
|
import { CompactBitArray, Multisignature, PubKeyMultisig } from "./proto/tm2/multisig.mjs";
|
|
4
4
|
import { DeepPartial, Exact, MessageFns, PubKeySecp256k1, Tx, TxFee, TxSignature, protobufPackage } from "./proto/tm2/tx.mjs";
|
|
5
|
+
import "./proto/index.mjs";
|
|
5
6
|
import { ABCIEndpoint, BlockEndpoint, CommonEndpoint, ConsensusEndpoint, TransactionEndpoint } from "./provider/endpoints.mjs";
|
|
6
7
|
import { GasOverflowError, InsufficientCoinsError, InsufficientFeeError, InsufficientFundsError, InternalError, InvalidAddressError, InvalidCoinsError, InvalidGasWantedError, InvalidPubKeyError, InvalidSequenceError, MemoTooLargeError, NoSignaturesError, OutOfGasError, TM2Error, TooManySignaturesError, TxDecodeError, UnauthorizedError, UnknownAddressError, UnknownRequestError } from "./provider/errors/errors.mjs";
|
|
7
8
|
import { ABCIAccount, ABCIErrorKey, ABCIResponse, ABCIResponseBase } from "./provider/types/abci.mjs";
|
|
@@ -13,9 +14,12 @@ import { adaptAbciQueryResponse, adaptBlockResponse, adaptBlockResultsResponse,
|
|
|
13
14
|
import { extractAccountFromResponse, extractAccountNumberFromResponse, extractBalanceFromResponse, extractSequenceFromResponse, extractSimulateFromResponse, waitForTransaction } from "./provider/utility/provider.utility.mjs";
|
|
14
15
|
import { base64ToUint8Array, newRequest, newResponse, parseABCI, parseProto, stringToBase64, uint8ArrayToBase64 } from "./provider/utility/requests.utility.mjs";
|
|
15
16
|
import { WSProvider } from "./provider/websocket/ws.mjs";
|
|
17
|
+
import "./provider/index.mjs";
|
|
16
18
|
import { RequestParams } from "./services/rest/restService.types.mjs";
|
|
17
19
|
import { RestService } from "./services/rest/restService.mjs";
|
|
20
|
+
import "./services/index.mjs";
|
|
18
21
|
import { compactBitArrayFromAmino, compactBitArrayToAmino } from "./utility/compact-bit-array.mjs";
|
|
22
|
+
import "./utility/index.mjs";
|
|
19
23
|
import { Signer } from "./wallet/signer.mjs";
|
|
20
24
|
import { KeySigner } from "./wallet/key/key.mjs";
|
|
21
25
|
import { LedgerSigner } from "./wallet/ledger/ledger.mjs";
|
|
@@ -23,4 +27,5 @@ import { Secp256k1PubKeyType, TxSignPayload } from "./wallet/types/sign.mjs";
|
|
|
23
27
|
import { AccountWalletOption, CreateWalletOptions } from "./wallet/types/wallet.mjs";
|
|
24
28
|
import { defaultAddressPrefix, encodeCharacterSet, generateEntropy, generateHDPath, generateKeyPair, sortedJsonStringify, stringToUTF8 } from "./wallet/utility/utility.mjs";
|
|
25
29
|
import { SignTransactionOptions, Wallet } from "./wallet/wallet.mjs";
|
|
30
|
+
import "./wallet/index.mjs";
|
|
26
31
|
export { ABCIAccount, ABCIEndpoint, ABCIErrorKey, ABCIResponse, ABCIResponseBase, AccountWalletOption, Any, BaseTm2Provider, BeginBlock, Block, BlockEndpoint, BlockHeader, BlockID, BlockInfo, BlockMeta, BlockResult, BroadcastAsGeneric, BroadcastTransactionCommit, BroadcastTransactionMap, BroadcastTransactionSync, BroadcastTxCommitResult, BroadcastTxSyncResult, BroadcastType, CommonEndpoint, CompactBitArray, ConsensusEndpoint, ConsensusParams, ConsensusState, CreateWalletOptions, DeepPartial, DeliverTx, EndBlock, Exact, GasOverflowError, InsufficientCoinsError, InsufficientFeeError, InsufficientFundsError, InternalError, InvalidAddressError, InvalidCoinsError, InvalidGasWantedError, InvalidPubKeyError, InvalidSequenceError, JSONRPCProvider, KeySigner, LedgerSigner, MemoTooLargeError, MessageFns, Multisignature, NetworkInfo, NoSignaturesError, OutOfGasError, PrecommitInfo, Provider, PubKeyMultisig, PubKeySecp256k1, RPCError, RPCRequest, RPCResponse, RequestParams, ResponseBase, ResponseDeliverTx, RestService, Secp256k1PubKeyType, SignTransactionOptions, Signer, Status, TM2Error, TooManySignaturesError, TransactionEndpoint, Tx, TxDecodeError, TxFee, TxResult, TxSignPayload, TxSignature, UnauthorizedError, UnknownAddressError, UnknownRequestError, WSProvider, Wallet, adaptAbciQueryResponse, adaptBlockResponse, adaptBlockResultsResponse, adaptBroadcastTxCommitResponse, adaptBroadcastTxSyncResponse, adaptConsensusParamsResponse, adaptNetInfoResponse, adaptStatusResponse, adaptTxResponse, base64ToUint8Array, compactBitArrayFromAmino, compactBitArrayToAmino, defaultAddressPrefix, encodeCharacterSet, extractAccountFromResponse, extractAccountNumberFromResponse, extractBalanceFromResponse, extractSequenceFromResponse, extractSimulateFromResponse, generateEntropy, generateHDPath, generateKeyPair, newRequest, newResponse, parseABCI, parseProto, protobufPackage, sortedJsonStringify, stringToBase64, stringToUTF8, toBase64, toHexString, uint8ArrayToBase64, waitForTransaction };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
let _bufbuild_protobuf_wire = require("@bufbuild/protobuf/wire");
|
|
3
2
|
function createBaseAny() {
|
|
4
3
|
return {
|
|
5
4
|
type_url: "",
|
|
6
|
-
value: new Uint8Array(0)
|
|
5
|
+
value: /* @__PURE__ */ new Uint8Array(0)
|
|
7
6
|
};
|
|
8
7
|
}
|
|
9
8
|
const Any = {
|
|
@@ -36,7 +35,7 @@ const Any = {
|
|
|
36
35
|
fromJSON(object) {
|
|
37
36
|
return {
|
|
38
37
|
type_url: isSet(object.type_url) ? globalThis.String(object.type_url) : "",
|
|
39
|
-
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0)
|
|
38
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : /* @__PURE__ */ new Uint8Array(0)
|
|
40
39
|
};
|
|
41
40
|
},
|
|
42
41
|
toJSON(message) {
|
|
@@ -51,7 +50,7 @@ const Any = {
|
|
|
51
50
|
fromPartial(object) {
|
|
52
51
|
const message = createBaseAny();
|
|
53
52
|
message.type_url = object.type_url ?? "";
|
|
54
|
-
message.value = object.value ?? new Uint8Array(0);
|
|
53
|
+
message.value = object.value ?? /* @__PURE__ */ new Uint8Array(0);
|
|
55
54
|
return message;
|
|
56
55
|
}
|
|
57
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"any.cjs","names":["BinaryWriter","BinaryReader"],"sources":["../../../../src/proto/google/protobuf/any.ts"],"sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.11.6\n// protoc v6.33.4\n// source: google/protobuf/any.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\n\nexport const protobufPackage = \"google.protobuf\";\n\n/**\n * `Any` contains an arbitrary serialized protocol buffer message along with a\n * URL that describes the type of the serialized message.\n *\n * Protobuf library provides support to pack/unpack Any values in the form\n * of utility functions or additional generated methods of the Any type.\n *\n * Example 1: Pack and unpack a message in C++.\n *\n * Foo foo = ...;\n * Any any;\n * any.PackFrom(foo);\n * ...\n * if (any.UnpackTo(&foo)) {\n * ...\n * }\n *\n * Example 2: Pack and unpack a message in Java.\n *\n * Foo foo = ...;\n * Any any = Any.pack(foo);\n * ...\n * if (any.is(Foo.class)) {\n * foo = any.unpack(Foo.class);\n * }\n * // or ...\n * if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n * foo = any.unpack(Foo.getDefaultInstance());\n * }\n *\n * Example 3: Pack and unpack a message in Python.\n *\n * foo = Foo(...)\n * any = Any()\n * any.Pack(foo)\n * ...\n * if any.Is(Foo.DESCRIPTOR):\n * any.Unpack(foo)\n * ...\n *\n * Example 4: Pack and unpack a message in Go\n *\n * foo := &pb.Foo{...}\n * any, err := anypb.New(foo)\n * if err != nil {\n * ...\n * }\n * ...\n * foo := &pb.Foo{}\n * if err := any.UnmarshalTo(foo); err != nil {\n * ...\n * }\n *\n * The pack methods provided by protobuf library will by default use\n * 'type.googleapis.com/full.type.name' as the type URL and the unpack\n * methods only use the fully qualified type name after the last '/'\n * in the type URL, for example \"foo.bar.com/x/y.z\" will yield type\n * name \"y.z\".\n *\n * JSON\n * ====\n * The JSON representation of an `Any` value uses the regular\n * representation of the deserialized, embedded message, with an\n * additional field `@type` which contains the type URL. Example:\n *\n * package google.profile;\n * message Person {\n * string first_name = 1;\n * string last_name = 2;\n * }\n *\n * {\n * \"@type\": \"type.googleapis.com/google.profile.Person\",\n * \"firstName\": <string>,\n * \"lastName\": <string>\n * }\n *\n * If the embedded message type is well-known and has a custom JSON\n * representation, that representation will be embedded adding a field\n * `value` which holds the custom JSON in addition to the `@type`\n * field. Example (for message [google.protobuf.Duration][]):\n *\n * {\n * \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n * \"value\": \"1.212s\"\n * }\n */\nexport interface Any {\n /**\n * A URL/resource name that uniquely identifies the type of the serialized\n * protocol buffer message. This string must contain at least\n * one \"/\" character. The last segment of the URL's path must represent\n * the fully qualified name of the type (as in\n * `path/google.protobuf.Duration`). The name should be in a canonical form\n * (e.g., leading \".\" is not accepted).\n *\n * In practice, teams usually precompile into the binary all types that they\n * expect it to use in the context of Any. However, for URLs which use the\n * scheme `http`, `https`, or no scheme, one can optionally set up a type\n * server that maps type URLs to message definitions as follows:\n *\n * * If no scheme is provided, `https` is assumed.\n * * An HTTP GET on the URL must yield a [google.protobuf.Type][]\n * value in binary format, or produce an error.\n * * Applications are allowed to cache lookup results based on the\n * URL, or have them precompiled into a binary to avoid any\n * lookup. Therefore, binary compatibility needs to be preserved\n * on changes to types. (Use versioned type names to manage\n * breaking changes.)\n *\n * Note: this functionality is not currently available in the official\n * protobuf release, and it is not used for type URLs beginning with\n * type.googleapis.com. As of May 2023, there are no widely used type server\n * implementations and no plans to implement one.\n *\n * Schemes other than `http`, `https` (or the empty scheme) might be\n * used with implementation specific semantics.\n */\n type_url: string;\n /** Must be a valid serialized protocol buffer of the above specified type. */\n value: Uint8Array;\n}\n\nfunction createBaseAny(): Any {\n return { type_url: \"\", value: new Uint8Array(0) };\n}\n\nexport const Any: MessageFns<Any> = {\n encode(message: Any, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.type_url !== \"\") {\n writer.uint32(10).string(message.type_url);\n }\n if (message.value.length !== 0) {\n writer.uint32(18).bytes(message.value);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Any {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseAny();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.type_url = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.value = reader.bytes();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Any {\n return {\n type_url: isSet(object.type_url) ? globalThis.String(object.type_url) : \"\",\n value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),\n };\n },\n\n toJSON(message: Any): unknown {\n const obj: any = {};\n if (message.type_url !== undefined) {\n obj.type_url = message.type_url;\n }\n if (message.value !== undefined) {\n obj.value = base64FromBytes(message.value);\n }\n return obj;\n },\n\n create<I extends Exact<DeepPartial<Any>, I>>(base?: I): Any {\n return Any.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any {\n const message = createBaseAny();\n message.type_url = object.type_url ?? \"\";\n message.value = object.value ?? new Uint8Array(0);\n return message;\n },\n};\n\nfunction bytesFromBase64(b64: string): Uint8Array {\n if ((globalThis as any).Buffer) {\n return Uint8Array.from((globalThis as any).Buffer.from(b64, \"base64\"));\n } else {\n const bin = globalThis.atob(b64);\n const arr = new Uint8Array(bin.length);\n for (let i = 0; i < bin.length; ++i) {\n arr[i] = bin.charCodeAt(i);\n }\n return arr;\n }\n}\n\nfunction base64FromBytes(arr: Uint8Array): string {\n if ((globalThis as any).Buffer) {\n return (globalThis as any).Buffer.from(arr).toString(\"base64\");\n } else {\n const bin: string[] = [];\n arr.forEach((byte) => {\n bin.push(globalThis.String.fromCharCode(byte));\n });\n return globalThis.btoa(bin.join(\"\"));\n }\n}\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;\n\nexport type DeepPartial<T> = T extends Builtin ? T\n : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;\n fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;\n}\n"],"mappings":";;AAsIA,SAAS,gBAAqB;AAC5B,QAAO;EAAE,UAAU;EAAI,OAAO,IAAI,WAAW,EAAE;EAAE;;AAGnD,MAAa,MAAuB;CAClC,OAAO,SAAc,SAAuB,IAAIA,wBAAAA,cAAc,EAAgB;AAC5E,MAAI,QAAQ,aAAa,GACvB,QAAO,OAAO,GAAG,CAAC,OAAO,QAAQ,SAAS;AAE5C,MAAI,QAAQ,MAAM,WAAW,EAC3B,QAAO,OAAO,GAAG,CAAC,MAAM,QAAQ,MAAM;AAExC,SAAO;;CAGT,OAAO,OAAkC,QAAsB;EAC7D,MAAM,SAAS,iBAAiBC,wBAAAA,eAAe,QAAQ,IAAIA,wBAAAA,aAAa,MAAM;EAC9E,MAAM,MAAM,WAAW,SAAY,OAAO,MAAM,OAAO,MAAM;EAC7D,MAAM,UAAU,eAAe;AAC/B,SAAO,OAAO,MAAM,KAAK;GACvB,MAAM,MAAM,OAAO,QAAQ;AAC3B,WAAQ,QAAQ,GAAhB;IACE,KAAK;AACH,SAAI,QAAQ,GACV;AAGF,aAAQ,WAAW,OAAO,QAAQ;AAClC;IAEF,KAAK;AACH,SAAI,QAAQ,GACV;AAGF,aAAQ,QAAQ,OAAO,OAAO;AAC9B;;AAGJ,QAAK,MAAM,OAAO,KAAK,QAAQ,EAC7B;AAEF,UAAO,KAAK,MAAM,EAAE;;AAEtB,SAA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["BinaryWriter","BinaryReader"],"sources":["../../../../src/proto/google/protobuf/any.ts"],"sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.11.6\n// protoc v6.33.4\n// source: google/protobuf/any.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\n\nexport const protobufPackage = \"google.protobuf\";\n\n/**\n * `Any` contains an arbitrary serialized protocol buffer message along with a\n * URL that describes the type of the serialized message.\n *\n * Protobuf library provides support to pack/unpack Any values in the form\n * of utility functions or additional generated methods of the Any type.\n *\n * Example 1: Pack and unpack a message in C++.\n *\n * Foo foo = ...;\n * Any any;\n * any.PackFrom(foo);\n * ...\n * if (any.UnpackTo(&foo)) {\n * ...\n * }\n *\n * Example 2: Pack and unpack a message in Java.\n *\n * Foo foo = ...;\n * Any any = Any.pack(foo);\n * ...\n * if (any.is(Foo.class)) {\n * foo = any.unpack(Foo.class);\n * }\n * // or ...\n * if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n * foo = any.unpack(Foo.getDefaultInstance());\n * }\n *\n * Example 3: Pack and unpack a message in Python.\n *\n * foo = Foo(...)\n * any = Any()\n * any.Pack(foo)\n * ...\n * if any.Is(Foo.DESCRIPTOR):\n * any.Unpack(foo)\n * ...\n *\n * Example 4: Pack and unpack a message in Go\n *\n * foo := &pb.Foo{...}\n * any, err := anypb.New(foo)\n * if err != nil {\n * ...\n * }\n * ...\n * foo := &pb.Foo{}\n * if err := any.UnmarshalTo(foo); err != nil {\n * ...\n * }\n *\n * The pack methods provided by protobuf library will by default use\n * 'type.googleapis.com/full.type.name' as the type URL and the unpack\n * methods only use the fully qualified type name after the last '/'\n * in the type URL, for example \"foo.bar.com/x/y.z\" will yield type\n * name \"y.z\".\n *\n * JSON\n * ====\n * The JSON representation of an `Any` value uses the regular\n * representation of the deserialized, embedded message, with an\n * additional field `@type` which contains the type URL. Example:\n *\n * package google.profile;\n * message Person {\n * string first_name = 1;\n * string last_name = 2;\n * }\n *\n * {\n * \"@type\": \"type.googleapis.com/google.profile.Person\",\n * \"firstName\": <string>,\n * \"lastName\": <string>\n * }\n *\n * If the embedded message type is well-known and has a custom JSON\n * representation, that representation will be embedded adding a field\n * `value` which holds the custom JSON in addition to the `@type`\n * field. Example (for message [google.protobuf.Duration][]):\n *\n * {\n * \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n * \"value\": \"1.212s\"\n * }\n */\nexport interface Any {\n /**\n * A URL/resource name that uniquely identifies the type of the serialized\n * protocol buffer message. This string must contain at least\n * one \"/\" character. The last segment of the URL's path must represent\n * the fully qualified name of the type (as in\n * `path/google.protobuf.Duration`). The name should be in a canonical form\n * (e.g., leading \".\" is not accepted).\n *\n * In practice, teams usually precompile into the binary all types that they\n * expect it to use in the context of Any. However, for URLs which use the\n * scheme `http`, `https`, or no scheme, one can optionally set up a type\n * server that maps type URLs to message definitions as follows:\n *\n * * If no scheme is provided, `https` is assumed.\n * * An HTTP GET on the URL must yield a [google.protobuf.Type][]\n * value in binary format, or produce an error.\n * * Applications are allowed to cache lookup results based on the\n * URL, or have them precompiled into a binary to avoid any\n * lookup. Therefore, binary compatibility needs to be preserved\n * on changes to types. (Use versioned type names to manage\n * breaking changes.)\n *\n * Note: this functionality is not currently available in the official\n * protobuf release, and it is not used for type URLs beginning with\n * type.googleapis.com. As of May 2023, there are no widely used type server\n * implementations and no plans to implement one.\n *\n * Schemes other than `http`, `https` (or the empty scheme) might be\n * used with implementation specific semantics.\n */\n type_url: string;\n /** Must be a valid serialized protocol buffer of the above specified type. */\n value: Uint8Array;\n}\n\nfunction createBaseAny(): Any {\n return { type_url: \"\", value: new Uint8Array(0) };\n}\n\nexport const Any: MessageFns<Any> = {\n encode(message: Any, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.type_url !== \"\") {\n writer.uint32(10).string(message.type_url);\n }\n if (message.value.length !== 0) {\n writer.uint32(18).bytes(message.value);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Any {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseAny();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.type_url = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.value = reader.bytes();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Any {\n return {\n type_url: isSet(object.type_url) ? globalThis.String(object.type_url) : \"\",\n value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),\n };\n },\n\n toJSON(message: Any): unknown {\n const obj: any = {};\n if (message.type_url !== undefined) {\n obj.type_url = message.type_url;\n }\n if (message.value !== undefined) {\n obj.value = base64FromBytes(message.value);\n }\n return obj;\n },\n\n create<I extends Exact<DeepPartial<Any>, I>>(base?: I): Any {\n return Any.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any {\n const message = createBaseAny();\n message.type_url = object.type_url ?? \"\";\n message.value = object.value ?? new Uint8Array(0);\n return message;\n },\n};\n\nfunction bytesFromBase64(b64: string): Uint8Array {\n if ((globalThis as any).Buffer) {\n return Uint8Array.from((globalThis as any).Buffer.from(b64, \"base64\"));\n } else {\n const bin = globalThis.atob(b64);\n const arr = new Uint8Array(bin.length);\n for (let i = 0; i < bin.length; ++i) {\n arr[i] = bin.charCodeAt(i);\n }\n return arr;\n }\n}\n\nfunction base64FromBytes(arr: Uint8Array): string {\n if ((globalThis as any).Buffer) {\n return (globalThis as any).Buffer.from(arr).toString(\"base64\");\n } else {\n const bin: string[] = [];\n arr.forEach((byte) => {\n bin.push(globalThis.String.fromCharCode(byte));\n });\n return globalThis.btoa(bin.join(\"\"));\n }\n}\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;\n\nexport type DeepPartial<T> = T extends Builtin ? T\n : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;\n fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;\n}\n"],"mappings":";AAsIA,SAAS,gBAAqB;CAC5B,OAAO;EAAE,UAAU;EAAI,uBAAO,IAAI,WAAW,CAAC;CAAE;AAClD;AAEA,MAAa,MAAuB;CAClC,OAAO,SAAc,SAAuB,IAAIA,wBAAAA,aAAa,GAAiB;EAC5E,IAAI,QAAQ,aAAa,IACvB,OAAO,OAAO,EAAE,CAAC,CAAC,OAAO,QAAQ,QAAQ;EAE3C,IAAI,QAAQ,MAAM,WAAW,GAC3B,OAAO,OAAO,EAAE,CAAC,CAAC,MAAM,QAAQ,KAAK;EAEvC,OAAO;CACT;CAEA,OAAO,OAAkC,QAAsB;EAC7D,MAAM,SAAS,iBAAiBC,wBAAAA,eAAe,QAAQ,IAAIA,wBAAAA,aAAa,KAAK;EAC7E,MAAM,MAAM,WAAW,SAAY,OAAO,MAAM,OAAO,MAAM;EAC7D,MAAM,UAAU,cAAc;EAC9B,OAAO,OAAO,MAAM,KAAK;GACvB,MAAM,MAAM,OAAO,OAAO;GAC1B,QAAQ,QAAQ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AAK,GAAG,CAAC,CAAC,SAAS,QAAQ;MACxD;EACL,MAAM,MAAgB,CAAC;EACvB,IAAI,SAAS,SAAS;GACpB,IAAI,KAAK,WAAW,OAAO,aAAa,IAAI,CAAC;EAC/C,CAAC;EACD,OAAO,WAAW,KAAK,IAAI,KAAK,EAAE,CAAC;CACrC;AACF;AAcA,SAAS,MAAM,OAAqB;CAClC,OAAO,UAAU,QAAQ,UAAU;AACrC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
|
|
3
2
|
//#region src/proto/google/protobuf/any.d.ts
|
|
4
3
|
declare const protobufPackage = "google.protobuf";
|
|
5
4
|
/**
|
|
@@ -126,9 +125,9 @@ interface Any {
|
|
|
126
125
|
}
|
|
127
126
|
declare const Any: MessageFns<Any>;
|
|
128
127
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
129
|
-
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]
|
|
128
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]>; } : Partial<T>;
|
|
130
129
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
131
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & { [K in keyof P]: Exact<P[K], I[K]
|
|
130
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & { [K in keyof P]: Exact<P[K], I[K]>; } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never; };
|
|
132
131
|
interface MessageFns<T> {
|
|
133
132
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
134
133
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
@@ -138,5 +137,5 @@ interface MessageFns<T> {
|
|
|
138
137
|
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
139
138
|
}
|
|
140
139
|
//#endregion
|
|
141
|
-
export { Any };
|
|
140
|
+
export { Any, DeepPartial, Exact, MessageFns };
|
|
142
141
|
//# sourceMappingURL=any.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"any.d.cts","names":[],"sources":["../../../../src/proto/google/protobuf/any.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"any.d.cts","names":[],"sources":["../../../../src/proto/google/protobuf/any.ts"],"mappings":";;cASa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAyFI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+Bf;;EAEA,OAAO;;cAOI,KAAK,WAAW;KAiGxB,UAAU,OAAO,WAAW;KAErB,YAAY,KAAK,UAAU,UAAU,IAC7C,UAAU,WAAW,YAAY,KAAK,WAAW,MAAM,YAAY,MACnE,UAAU,oBAAoB,KAAK,cAAc,YAAY,MAC7D,kBAAkB,WAAW,KAAK,YAAY,EAAE,SAChD,QAAQ;KAEP,YAAY,KAAK,UAAU,UAAU;KAC9B,MAAM,GAAG,UAAU,KAAK,UAAU,UAAU,IACpD,OAAO,WAAW,IAAI,MAAM,EAAE,IAAI,EAAE,YAAW,KAAK,cAAc,GAAG,YAAY;UAMpE,WAAW;EAC1B,OAAO,SAAS,GAAG,SAAS,eAAe;EAC3C,OAAO,OAAO,eAAe,YAAY,kBAAkB;EAC3D,SAAS,cAAc;EACvB,OAAO,SAAS;EAChB,OAAO,UAAU,MAAM,YAAY,IAAI,IAAI,OAAO,IAAI;EACtD,YAAY,UAAU,MAAM,YAAY,IAAI,IAAI,QAAQ,IAAI"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
|
|
3
2
|
//#region src/proto/google/protobuf/any.d.ts
|
|
4
3
|
declare const protobufPackage = "google.protobuf";
|
|
5
4
|
/**
|
|
@@ -126,9 +125,9 @@ interface Any {
|
|
|
126
125
|
}
|
|
127
126
|
declare const Any: MessageFns<Any>;
|
|
128
127
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
129
|
-
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]
|
|
128
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]>; } : Partial<T>;
|
|
130
129
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
131
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & { [K in keyof P]: Exact<P[K], I[K]
|
|
130
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & { [K in keyof P]: Exact<P[K], I[K]>; } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never; };
|
|
132
131
|
interface MessageFns<T> {
|
|
133
132
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
134
133
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
@@ -138,5 +137,5 @@ interface MessageFns<T> {
|
|
|
138
137
|
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
139
138
|
}
|
|
140
139
|
//#endregion
|
|
141
|
-
export { Any };
|
|
140
|
+
export { Any, DeepPartial, Exact, MessageFns };
|
|
142
141
|
//# sourceMappingURL=any.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"any.d.mts","names":[],"sources":["../../../../src/proto/google/protobuf/any.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"any.d.mts","names":[],"sources":["../../../../src/proto/google/protobuf/any.ts"],"mappings":";;cASa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAyFI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+Bf;;EAEA,OAAO;;cAOI,KAAK,WAAW;KAiGxB,UAAU,OAAO,WAAW;KAErB,YAAY,KAAK,UAAU,UAAU,IAC7C,UAAU,WAAW,YAAY,KAAK,WAAW,MAAM,YAAY,MACnE,UAAU,oBAAoB,KAAK,cAAc,YAAY,MAC7D,kBAAkB,WAAW,KAAK,YAAY,EAAE,SAChD,QAAQ;KAEP,YAAY,KAAK,UAAU,UAAU;KAC9B,MAAM,GAAG,UAAU,KAAK,UAAU,UAAU,IACpD,OAAO,WAAW,IAAI,MAAM,EAAE,IAAI,EAAE,YAAW,KAAK,cAAc,GAAG,YAAY;UAMpE,WAAW;EAC1B,OAAO,SAAS,GAAG,SAAS,eAAe;EAC3C,OAAO,OAAO,eAAe,YAAY,kBAAkB;EAC3D,SAAS,cAAc;EACvB,OAAO,SAAS;EAChB,OAAO,UAAU,MAAM,YAAY,IAAI,IAAI,OAAO,IAAI;EACtD,YAAY,UAAU,MAAM,YAAY,IAAI,IAAI,QAAQ,IAAI"}
|
|
@@ -2,7 +2,7 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
2
2
|
function createBaseAny() {
|
|
3
3
|
return {
|
|
4
4
|
type_url: "",
|
|
5
|
-
value: new Uint8Array(0)
|
|
5
|
+
value: /* @__PURE__ */ new Uint8Array(0)
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
8
|
const Any = {
|
|
@@ -35,7 +35,7 @@ const Any = {
|
|
|
35
35
|
fromJSON(object) {
|
|
36
36
|
return {
|
|
37
37
|
type_url: isSet(object.type_url) ? globalThis.String(object.type_url) : "",
|
|
38
|
-
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0)
|
|
38
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : /* @__PURE__ */ new Uint8Array(0)
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
41
|
toJSON(message) {
|
|
@@ -50,7 +50,7 @@ const Any = {
|
|
|
50
50
|
fromPartial(object) {
|
|
51
51
|
const message = createBaseAny();
|
|
52
52
|
message.type_url = object.type_url ?? "";
|
|
53
|
-
message.value = object.value ?? new Uint8Array(0);
|
|
53
|
+
message.value = object.value ?? /* @__PURE__ */ new Uint8Array(0);
|
|
54
54
|
return message;
|
|
55
55
|
}
|
|
56
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"any.mjs","names":[],"sources":["../../../../src/proto/google/protobuf/any.ts"],"sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.11.6\n// protoc v6.33.4\n// source: google/protobuf/any.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\n\nexport const protobufPackage = \"google.protobuf\";\n\n/**\n * `Any` contains an arbitrary serialized protocol buffer message along with a\n * URL that describes the type of the serialized message.\n *\n * Protobuf library provides support to pack/unpack Any values in the form\n * of utility functions or additional generated methods of the Any type.\n *\n * Example 1: Pack and unpack a message in C++.\n *\n * Foo foo = ...;\n * Any any;\n * any.PackFrom(foo);\n * ...\n * if (any.UnpackTo(&foo)) {\n * ...\n * }\n *\n * Example 2: Pack and unpack a message in Java.\n *\n * Foo foo = ...;\n * Any any = Any.pack(foo);\n * ...\n * if (any.is(Foo.class)) {\n * foo = any.unpack(Foo.class);\n * }\n * // or ...\n * if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n * foo = any.unpack(Foo.getDefaultInstance());\n * }\n *\n * Example 3: Pack and unpack a message in Python.\n *\n * foo = Foo(...)\n * any = Any()\n * any.Pack(foo)\n * ...\n * if any.Is(Foo.DESCRIPTOR):\n * any.Unpack(foo)\n * ...\n *\n * Example 4: Pack and unpack a message in Go\n *\n * foo := &pb.Foo{...}\n * any, err := anypb.New(foo)\n * if err != nil {\n * ...\n * }\n * ...\n * foo := &pb.Foo{}\n * if err := any.UnmarshalTo(foo); err != nil {\n * ...\n * }\n *\n * The pack methods provided by protobuf library will by default use\n * 'type.googleapis.com/full.type.name' as the type URL and the unpack\n * methods only use the fully qualified type name after the last '/'\n * in the type URL, for example \"foo.bar.com/x/y.z\" will yield type\n * name \"y.z\".\n *\n * JSON\n * ====\n * The JSON representation of an `Any` value uses the regular\n * representation of the deserialized, embedded message, with an\n * additional field `@type` which contains the type URL. Example:\n *\n * package google.profile;\n * message Person {\n * string first_name = 1;\n * string last_name = 2;\n * }\n *\n * {\n * \"@type\": \"type.googleapis.com/google.profile.Person\",\n * \"firstName\": <string>,\n * \"lastName\": <string>\n * }\n *\n * If the embedded message type is well-known and has a custom JSON\n * representation, that representation will be embedded adding a field\n * `value` which holds the custom JSON in addition to the `@type`\n * field. Example (for message [google.protobuf.Duration][]):\n *\n * {\n * \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n * \"value\": \"1.212s\"\n * }\n */\nexport interface Any {\n /**\n * A URL/resource name that uniquely identifies the type of the serialized\n * protocol buffer message. This string must contain at least\n * one \"/\" character. The last segment of the URL's path must represent\n * the fully qualified name of the type (as in\n * `path/google.protobuf.Duration`). The name should be in a canonical form\n * (e.g., leading \".\" is not accepted).\n *\n * In practice, teams usually precompile into the binary all types that they\n * expect it to use in the context of Any. However, for URLs which use the\n * scheme `http`, `https`, or no scheme, one can optionally set up a type\n * server that maps type URLs to message definitions as follows:\n *\n * * If no scheme is provided, `https` is assumed.\n * * An HTTP GET on the URL must yield a [google.protobuf.Type][]\n * value in binary format, or produce an error.\n * * Applications are allowed to cache lookup results based on the\n * URL, or have them precompiled into a binary to avoid any\n * lookup. Therefore, binary compatibility needs to be preserved\n * on changes to types. (Use versioned type names to manage\n * breaking changes.)\n *\n * Note: this functionality is not currently available in the official\n * protobuf release, and it is not used for type URLs beginning with\n * type.googleapis.com. As of May 2023, there are no widely used type server\n * implementations and no plans to implement one.\n *\n * Schemes other than `http`, `https` (or the empty scheme) might be\n * used with implementation specific semantics.\n */\n type_url: string;\n /** Must be a valid serialized protocol buffer of the above specified type. */\n value: Uint8Array;\n}\n\nfunction createBaseAny(): Any {\n return { type_url: \"\", value: new Uint8Array(0) };\n}\n\nexport const Any: MessageFns<Any> = {\n encode(message: Any, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.type_url !== \"\") {\n writer.uint32(10).string(message.type_url);\n }\n if (message.value.length !== 0) {\n writer.uint32(18).bytes(message.value);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Any {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseAny();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.type_url = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.value = reader.bytes();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Any {\n return {\n type_url: isSet(object.type_url) ? globalThis.String(object.type_url) : \"\",\n value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),\n };\n },\n\n toJSON(message: Any): unknown {\n const obj: any = {};\n if (message.type_url !== undefined) {\n obj.type_url = message.type_url;\n }\n if (message.value !== undefined) {\n obj.value = base64FromBytes(message.value);\n }\n return obj;\n },\n\n create<I extends Exact<DeepPartial<Any>, I>>(base?: I): Any {\n return Any.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any {\n const message = createBaseAny();\n message.type_url = object.type_url ?? \"\";\n message.value = object.value ?? new Uint8Array(0);\n return message;\n },\n};\n\nfunction bytesFromBase64(b64: string): Uint8Array {\n if ((globalThis as any).Buffer) {\n return Uint8Array.from((globalThis as any).Buffer.from(b64, \"base64\"));\n } else {\n const bin = globalThis.atob(b64);\n const arr = new Uint8Array(bin.length);\n for (let i = 0; i < bin.length; ++i) {\n arr[i] = bin.charCodeAt(i);\n }\n return arr;\n }\n}\n\nfunction base64FromBytes(arr: Uint8Array): string {\n if ((globalThis as any).Buffer) {\n return (globalThis as any).Buffer.from(arr).toString(\"base64\");\n } else {\n const bin: string[] = [];\n arr.forEach((byte) => {\n bin.push(globalThis.String.fromCharCode(byte));\n });\n return globalThis.btoa(bin.join(\"\"));\n }\n}\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;\n\nexport type DeepPartial<T> = T extends Builtin ? T\n : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;\n fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;\n}\n"],"mappings":";AAsIA,SAAS,gBAAqB;AAC5B,QAAO;EAAE,UAAU;EAAI,OAAO,IAAI,W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AAQ,WAAW,OAAO,YAAY;AACtC,UAAQ,QAAQ,OAAO,SAAS,IAAI,WAAW,EAAE;AACjD,SAAO;;CAEV;AAED,SAAS,gBAAgB,KAAyB;AAChD,KAAK,WAAmB,OACtB,QAAO,WAAW,KAAM,WAAmB,OAAO,KAAK,KAAK,SAAS,CAAC;MACjE;EACL,MAAM,MAAM,WAAW,KAAK,IAAI;EAChC,MAAM,MAAM,IAAI,WAAW,IAAI,OAAO;AACtC,OAAK,IAAI,IAAI,GAAG,IAAI,IAAI,QAAQ,EAAE,EAChC,KAAI,KAAK,IAAI,WAAW,EAAE;AAE5B,SAAO;;;AAIX,SAAS,gBAAgB,KAAyB;AAChD,KAAK,WAAmB,OACtB,QAAQ,WAAmB,OAAO,KAAK,IAAI,CAAC,SAAS,SAAS;MACzD;EACL,MAAM,MAAgB,EAAE;AACxB,MAAI,SAAS,SAAS;AACpB,OAAI,KAAK,WAAW,OAAO,aAAa,KAAK,CAAC;IAC9C;AACF,SAAO,WAAW,KAAK,IAAI,KAAK,GAAG,CAAC;;;AAgBxC,SAAS,MAAM,OAAqB;AAClC,QAAO,UAAU,QAAQ,UAAU"}
|
|
1
|
+
{"version":3,"file":"any.mjs","names":[],"sources":["../../../../src/proto/google/protobuf/any.ts"],"sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.11.6\n// protoc v6.33.4\n// source: google/protobuf/any.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\n\nexport const protobufPackage = \"google.protobuf\";\n\n/**\n * `Any` contains an arbitrary serialized protocol buffer message along with a\n * URL that describes the type of the serialized message.\n *\n * Protobuf library provides support to pack/unpack Any values in the form\n * of utility functions or additional generated methods of the Any type.\n *\n * Example 1: Pack and unpack a message in C++.\n *\n * Foo foo = ...;\n * Any any;\n * any.PackFrom(foo);\n * ...\n * if (any.UnpackTo(&foo)) {\n * ...\n * }\n *\n * Example 2: Pack and unpack a message in Java.\n *\n * Foo foo = ...;\n * Any any = Any.pack(foo);\n * ...\n * if (any.is(Foo.class)) {\n * foo = any.unpack(Foo.class);\n * }\n * // or ...\n * if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n * foo = any.unpack(Foo.getDefaultInstance());\n * }\n *\n * Example 3: Pack and unpack a message in Python.\n *\n * foo = Foo(...)\n * any = Any()\n * any.Pack(foo)\n * ...\n * if any.Is(Foo.DESCRIPTOR):\n * any.Unpack(foo)\n * ...\n *\n * Example 4: Pack and unpack a message in Go\n *\n * foo := &pb.Foo{...}\n * any, err := anypb.New(foo)\n * if err != nil {\n * ...\n * }\n * ...\n * foo := &pb.Foo{}\n * if err := any.UnmarshalTo(foo); err != nil {\n * ...\n * }\n *\n * The pack methods provided by protobuf library will by default use\n * 'type.googleapis.com/full.type.name' as the type URL and the unpack\n * methods only use the fully qualified type name after the last '/'\n * in the type URL, for example \"foo.bar.com/x/y.z\" will yield type\n * name \"y.z\".\n *\n * JSON\n * ====\n * The JSON representation of an `Any` value uses the regular\n * representation of the deserialized, embedded message, with an\n * additional field `@type` which contains the type URL. Example:\n *\n * package google.profile;\n * message Person {\n * string first_name = 1;\n * string last_name = 2;\n * }\n *\n * {\n * \"@type\": \"type.googleapis.com/google.profile.Person\",\n * \"firstName\": <string>,\n * \"lastName\": <string>\n * }\n *\n * If the embedded message type is well-known and has a custom JSON\n * representation, that representation will be embedded adding a field\n * `value` which holds the custom JSON in addition to the `@type`\n * field. Example (for message [google.protobuf.Duration][]):\n *\n * {\n * \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n * \"value\": \"1.212s\"\n * }\n */\nexport interface Any {\n /**\n * A URL/resource name that uniquely identifies the type of the serialized\n * protocol buffer message. This string must contain at least\n * one \"/\" character. The last segment of the URL's path must represent\n * the fully qualified name of the type (as in\n * `path/google.protobuf.Duration`). The name should be in a canonical form\n * (e.g., leading \".\" is not accepted).\n *\n * In practice, teams usually precompile into the binary all types that they\n * expect it to use in the context of Any. However, for URLs which use the\n * scheme `http`, `https`, or no scheme, one can optionally set up a type\n * server that maps type URLs to message definitions as follows:\n *\n * * If no scheme is provided, `https` is assumed.\n * * An HTTP GET on the URL must yield a [google.protobuf.Type][]\n * value in binary format, or produce an error.\n * * Applications are allowed to cache lookup results based on the\n * URL, or have them precompiled into a binary to avoid any\n * lookup. Therefore, binary compatibility needs to be preserved\n * on changes to types. (Use versioned type names to manage\n * breaking changes.)\n *\n * Note: this functionality is not currently available in the official\n * protobuf release, and it is not used for type URLs beginning with\n * type.googleapis.com. As of May 2023, there are no widely used type server\n * implementations and no plans to implement one.\n *\n * Schemes other than `http`, `https` (or the empty scheme) might be\n * used with implementation specific semantics.\n */\n type_url: string;\n /** Must be a valid serialized protocol buffer of the above specified type. */\n value: Uint8Array;\n}\n\nfunction createBaseAny(): Any {\n return { type_url: \"\", value: new Uint8Array(0) };\n}\n\nexport const Any: MessageFns<Any> = {\n encode(message: Any, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.type_url !== \"\") {\n writer.uint32(10).string(message.type_url);\n }\n if (message.value.length !== 0) {\n writer.uint32(18).bytes(message.value);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Any {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseAny();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.type_url = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.value = reader.bytes();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Any {\n return {\n type_url: isSet(object.type_url) ? globalThis.String(object.type_url) : \"\",\n value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),\n };\n },\n\n toJSON(message: Any): unknown {\n const obj: any = {};\n if (message.type_url !== undefined) {\n obj.type_url = message.type_url;\n }\n if (message.value !== undefined) {\n obj.value = base64FromBytes(message.value);\n }\n return obj;\n },\n\n create<I extends Exact<DeepPartial<Any>, I>>(base?: I): Any {\n return Any.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any {\n const message = createBaseAny();\n message.type_url = object.type_url ?? \"\";\n message.value = object.value ?? new Uint8Array(0);\n return message;\n },\n};\n\nfunction bytesFromBase64(b64: string): Uint8Array {\n if ((globalThis as any).Buffer) {\n return Uint8Array.from((globalThis as any).Buffer.from(b64, \"base64\"));\n } else {\n const bin = globalThis.atob(b64);\n const arr = new Uint8Array(bin.length);\n for (let i = 0; i < bin.length; ++i) {\n arr[i] = bin.charCodeAt(i);\n }\n return arr;\n }\n}\n\nfunction base64FromBytes(arr: Uint8Array): string {\n if ((globalThis as any).Buffer) {\n return (globalThis as any).Buffer.from(arr).toString(\"base64\");\n } else {\n const bin: string[] = [];\n arr.forEach((byte) => {\n bin.push(globalThis.String.fromCharCode(byte));\n });\n return globalThis.btoa(bin.join(\"\"));\n }\n}\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;\n\nexport type DeepPartial<T> = T extends Builtin ? T\n : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n to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,WAAW,QAAQ;EAEzB,IAAI,QAAQ,UAAU,QACpB,IAAI,QAAQ,gBAAgB,QAAQ,KAAK;EAE3C,OAAO;CACT;CAEA,OAA6C,MAAe;EAC1D,OAAO,IAAI,YAAY,QAAS,CAAC,CAAS;CAC5C;CACA,YAAkD,QAAgB;EAChE,MAAM,UAAU,cAAc;EAC9B,QAAQ,WAAW,OAAO,YAAY;EACtC,QAAQ,QAAQ,OAAO,yBAAS,IAAI,WAAW,CAAC;EAChD,OAAO;CACT;AACF;AAEA,SAAS,gBAAgB,KAAyB;CAChD,IAAK,WAAmB,QACtB,OAAO,WAAW,KAAM,WAAmB,OAAO,KAAK,KAAK,QAAQ,CAAC;MAChE;EACL,MAAM,MAAM,WAAW,KAAK,GAAG;EAC/B,MAAM,MAAM,IAAI,WAAW,IAAI,MAAM;EACrC,KAAK,IAAI,IAAI,GAAG,IAAI,IAAI,QAAQ,EAAE,GAChC,IAAI,KAAK,IAAI,WAAW,CAAC;EAE3B,OAAO;CACT;AACF;AAEA,SAAS,gBAAgB,KAAyB;CAChD,IAAK,WAAmB,QACtB,OAAQ,WAAmB,OAAO,KAAK,GAAG,CAAC,CAAC,SAAS,QAAQ;MACxD;EACL,MAAM,MAAgB,CAAC;EACvB,IAAI,SAAS,SAAS;GACpB,IAAI,KAAK,WAAW,OAAO,aAAa,IAAI,CAAC;EAC/C,CAAC;EACD,OAAO,WAAW,KAAK,IAAI,KAAK,EAAE,CAAC;CACrC;AACF;AAcA,SAAS,MAAM,OAAqB;CAClC,OAAO,UAAU,QAAQ,UAAU;AACrC"}
|
package/dist/proto/index.cjs
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
require("./google/protobuf/any.cjs");
|
|
2
|
-
require("./tm2/abci.cjs");
|
|
3
|
-
require("./tm2/multisig.cjs");
|
|
4
|
-
require("./tm2/tx.cjs");
|
|
1
|
+
const require_any = require("./google/protobuf/any.cjs");
|
|
2
|
+
const require_abci = require("./tm2/abci.cjs");
|
|
3
|
+
const require_multisig = require("./tm2/multisig.cjs");
|
|
4
|
+
const require_tx = require("./tm2/tx.cjs");
|
|
5
|
+
exports.Any = require_any.Any;
|
|
6
|
+
exports.CompactBitArray = require_multisig.CompactBitArray;
|
|
7
|
+
exports.Multisignature = require_multisig.Multisignature;
|
|
8
|
+
exports.PubKeyMultisig = require_multisig.PubKeyMultisig;
|
|
9
|
+
exports.PubKeySecp256k1 = require_tx.PubKeySecp256k1;
|
|
10
|
+
exports.ResponseBase = require_abci.ResponseBase;
|
|
11
|
+
exports.ResponseDeliverTx = require_abci.ResponseDeliverTx;
|
|
12
|
+
exports.Tx = require_tx.Tx;
|
|
13
|
+
exports.TxFee = require_tx.TxFee;
|
|
14
|
+
exports.TxSignature = require_tx.TxSignature;
|
|
15
|
+
exports.protobufPackage = require_tx.protobufPackage;
|
package/dist/proto/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Any } from "./google/protobuf/any.cjs";
|
|
2
2
|
import { ResponseBase, ResponseDeliverTx } from "./tm2/abci.cjs";
|
|
3
3
|
import { CompactBitArray, Multisignature, PubKeyMultisig } from "./tm2/multisig.cjs";
|
|
4
|
-
import { DeepPartial, Exact, MessageFns, PubKeySecp256k1, Tx, TxFee, TxSignature, protobufPackage } from "./tm2/tx.cjs";
|
|
4
|
+
import { DeepPartial, Exact, MessageFns, PubKeySecp256k1, Tx, TxFee, TxSignature, protobufPackage } from "./tm2/tx.cjs";
|
|
5
|
+
export { Any, CompactBitArray, DeepPartial, Exact, MessageFns, Multisignature, PubKeyMultisig, PubKeySecp256k1, ResponseBase, ResponseDeliverTx, Tx, TxFee, TxSignature, protobufPackage };
|
package/dist/proto/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Any } from "./google/protobuf/any.mjs";
|
|
2
2
|
import { ResponseBase, ResponseDeliverTx } from "./tm2/abci.mjs";
|
|
3
3
|
import { CompactBitArray, Multisignature, PubKeyMultisig } from "./tm2/multisig.mjs";
|
|
4
|
-
import { DeepPartial, Exact, MessageFns, PubKeySecp256k1, Tx, TxFee, TxSignature, protobufPackage } from "./tm2/tx.mjs";
|
|
4
|
+
import { DeepPartial, Exact, MessageFns, PubKeySecp256k1, Tx, TxFee, TxSignature, protobufPackage } from "./tm2/tx.mjs";
|
|
5
|
+
export { Any, CompactBitArray, DeepPartial, Exact, MessageFns, Multisignature, PubKeyMultisig, PubKeySecp256k1, ResponseBase, ResponseDeliverTx, Tx, TxFee, TxSignature, protobufPackage };
|
package/dist/proto/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./google/protobuf/any.mjs";
|
|
2
|
-
import "./tm2/abci.mjs";
|
|
3
|
-
import "./tm2/multisig.mjs";
|
|
4
|
-
import "./tm2/tx.mjs";
|
|
5
|
-
export {};
|
|
1
|
+
import { Any } from "./google/protobuf/any.mjs";
|
|
2
|
+
import { ResponseBase, ResponseDeliverTx } from "./tm2/abci.mjs";
|
|
3
|
+
import { CompactBitArray, Multisignature, PubKeyMultisig } from "./tm2/multisig.mjs";
|
|
4
|
+
import { PubKeySecp256k1, Tx, TxFee, TxSignature, protobufPackage } from "./tm2/tx.mjs";
|
|
5
|
+
export { Any, CompactBitArray, Multisignature, PubKeyMultisig, PubKeySecp256k1, ResponseBase, ResponseDeliverTx, Tx, TxFee, TxSignature, protobufPackage };
|
package/dist/proto/tm2/abci.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
const require_any = require("../google/protobuf/any.cjs");
|
|
3
2
|
let _bufbuild_protobuf_wire = require("@bufbuild/protobuf/wire");
|
|
4
3
|
function createBaseResponseDeliverTx() {
|
|
@@ -74,7 +73,7 @@ const ResponseDeliverTx = {
|
|
|
74
73
|
function createBaseResponseBase() {
|
|
75
74
|
return {
|
|
76
75
|
error: void 0,
|
|
77
|
-
data: new Uint8Array(0),
|
|
76
|
+
data: /* @__PURE__ */ new Uint8Array(0),
|
|
78
77
|
events: [],
|
|
79
78
|
log: "",
|
|
80
79
|
info: ""
|
|
@@ -125,7 +124,7 @@ const ResponseBase = {
|
|
|
125
124
|
fromJSON(object) {
|
|
126
125
|
return {
|
|
127
126
|
error: isSet(object.Error) ? require_any.Any.fromJSON(object.Error) : void 0,
|
|
128
|
-
data: isSet(object.Data) ? bytesFromBase64(object.Data) : new Uint8Array(0),
|
|
127
|
+
data: isSet(object.Data) ? bytesFromBase64(object.Data) : /* @__PURE__ */ new Uint8Array(0),
|
|
129
128
|
events: globalThis.Array.isArray(object?.Events) ? object.Events.map((e) => require_any.Any.fromJSON(e)) : [],
|
|
130
129
|
log: isSet(object.Log) ? globalThis.String(object.Log) : "",
|
|
131
130
|
info: isSet(object.Info) ? globalThis.String(object.Info) : ""
|
|
@@ -146,7 +145,7 @@ const ResponseBase = {
|
|
|
146
145
|
fromPartial(object) {
|
|
147
146
|
const message = createBaseResponseBase();
|
|
148
147
|
message.error = object.error !== void 0 && object.error !== null ? require_any.Any.fromPartial(object.error) : void 0;
|
|
149
|
-
message.data = object.data ?? new Uint8Array(0);
|
|
148
|
+
message.data = object.data ?? /* @__PURE__ */ new Uint8Array(0);
|
|
150
149
|
message.events = object.events?.map((e) => require_any.Any.fromPartial(e)) || [];
|
|
151
150
|
message.log = object.log ?? "";
|
|
152
151
|
message.info = object.info ?? "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abci.cjs","names":["BinaryWriter","BinaryReader","Any"],"sources":["../../../src/proto/tm2/abci.ts"],"sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.11.6\n// protoc v6.33.4\n// source: tm2/abci.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport { Any } from \"../google/protobuf/any.js\";\n\nexport const protobufPackage = \"tm2.abci\";\n\nexport interface ResponseDeliverTx {\n response_base?: ResponseBase | undefined;\n gas_wanted: bigint;\n gas_used: bigint;\n}\n\nexport interface ResponseBase {\n error?: Any | undefined;\n data: Uint8Array;\n events: Any[];\n log: string;\n info: string;\n}\n\nfunction createBaseResponseDeliverTx(): ResponseDeliverTx {\n return { response_base: undefined, gas_wanted: 0n, gas_used: 0n };\n}\n\nexport const ResponseDeliverTx: MessageFns<ResponseDeliverTx> = {\n encode(message: ResponseDeliverTx, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.response_base !== undefined) {\n ResponseBase.encode(message.response_base, writer.uint32(10).fork()).join();\n }\n if (message.gas_wanted !== 0n) {\n if (BigInt.asIntN(64, message.gas_wanted) !== message.gas_wanted) {\n throw new globalThis.Error(\"value provided for field message.gas_wanted of type sint64 too large\");\n }\n writer.uint32(16).sint64(message.gas_wanted);\n }\n if (message.gas_used !== 0n) {\n if (BigInt.asIntN(64, message.gas_used) !== message.gas_used) {\n throw new globalThis.Error(\"value provided for field message.gas_used of type sint64 too large\");\n }\n writer.uint32(24).sint64(message.gas_used);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ResponseDeliverTx {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResponseDeliverTx();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.response_base = ResponseBase.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.gas_wanted = reader.sint64() as bigint;\n continue;\n }\n case 3: {\n if (tag !== 24) {\n break;\n }\n\n message.gas_used = reader.sint64() as bigint;\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ResponseDeliverTx {\n return {\n response_base: isSet(object.ResponseBase) ? ResponseBase.fromJSON(object.ResponseBase) : undefined,\n gas_wanted: isSet(object.GasWanted) ? BigInt(object.GasWanted) : 0n,\n gas_used: isSet(object.GasUsed) ? BigInt(object.GasUsed) : 0n,\n };\n },\n\n toJSON(message: ResponseDeliverTx): unknown {\n const obj: any = {};\n if (message.response_base !== undefined) {\n obj.ResponseBase = ResponseBase.toJSON(message.response_base);\n }\n if (message.gas_wanted !== undefined) {\n obj.GasWanted = message.gas_wanted.toString();\n }\n if (message.gas_used !== undefined) {\n obj.GasUsed = message.gas_used.toString();\n }\n return obj;\n },\n\n create<I extends Exact<DeepPartial<ResponseDeliverTx>, I>>(base?: I): ResponseDeliverTx {\n return ResponseDeliverTx.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<ResponseDeliverTx>, I>>(object: I): ResponseDeliverTx {\n const message = createBaseResponseDeliverTx();\n message.response_base = (object.response_base !== undefined && object.response_base !== null)\n ? ResponseBase.fromPartial(object.response_base)\n : undefined;\n message.gas_wanted = object.gas_wanted ?? 0n;\n message.gas_used = object.gas_used ?? 0n;\n return message;\n },\n};\n\nfunction createBaseResponseBase(): ResponseBase {\n return { error: undefined, data: new Uint8Array(0), events: [], log: \"\", info: \"\" };\n}\n\nexport const ResponseBase: MessageFns<ResponseBase> = {\n encode(message: ResponseBase, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.error !== undefined) {\n Any.encode(message.error, writer.uint32(10).fork()).join();\n }\n if (message.data.length !== 0) {\n writer.uint32(18).bytes(message.data);\n }\n for (const v of message.events) {\n Any.encode(v!, writer.uint32(26).fork()).join();\n }\n if (message.log !== \"\") {\n writer.uint32(34).string(message.log);\n }\n if (message.info !== \"\") {\n writer.uint32(42).string(message.info);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ResponseBase {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResponseBase();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.error = Any.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.data = reader.bytes();\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.events.push(Any.decode(reader, reader.uint32()));\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.log = reader.string();\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.info = reader.string();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ResponseBase {\n return {\n error: isSet(object.Error) ? Any.fromJSON(object.Error) : undefined,\n data: isSet(object.Data) ? bytesFromBase64(object.Data) : new Uint8Array(0),\n events: globalThis.Array.isArray(object?.Events) ? object.Events.map((e: any) => Any.fromJSON(e)) : [],\n log: isSet(object.Log) ? globalThis.String(object.Log) : \"\",\n info: isSet(object.Info) ? globalThis.String(object.Info) : \"\",\n };\n },\n\n toJSON(message: ResponseBase): unknown {\n const obj: any = {};\n if (message.error !== undefined) {\n obj.Error = Any.toJSON(message.error);\n }\n if (message.data !== undefined) {\n obj.Data = base64FromBytes(message.data);\n }\n if (message.events?.length) {\n obj.Events = message.events.map((e) => Any.toJSON(e));\n }\n if (message.log !== undefined) {\n obj.Log = message.log;\n }\n if (message.info !== undefined) {\n obj.Info = message.info;\n }\n return obj;\n },\n\n create<I extends Exact<DeepPartial<ResponseBase>, I>>(base?: I): ResponseBase {\n return ResponseBase.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<ResponseBase>, I>>(object: I): ResponseBase {\n const message = createBaseResponseBase();\n message.error = (object.error !== undefined && object.error !== null) ? Any.fromPartial(object.error) : undefined;\n message.data = object.data ?? new Uint8Array(0);\n message.events = object.events?.map((e) => Any.fromPartial(e)) || [];\n message.log = object.log ?? \"\";\n message.info = object.info ?? \"\";\n return message;\n },\n};\n\nfunction bytesFromBase64(b64: string): Uint8Array {\n if ((globalThis as any).Buffer) {\n return Uint8Array.from((globalThis as any).Buffer.from(b64, \"base64\"));\n } else {\n const bin = globalThis.atob(b64);\n const arr = new Uint8Array(bin.length);\n for (let i = 0; i < bin.length; ++i) {\n arr[i] = bin.charCodeAt(i);\n }\n return arr;\n }\n}\n\nfunction base64FromBytes(arr: Uint8Array): string {\n if ((globalThis as any).Buffer) {\n return (globalThis as any).Buffer.from(arr).toString(\"base64\");\n } else {\n const bin: string[] = [];\n arr.forEach((byte) => {\n bin.push(globalThis.String.fromCharCode(byte));\n });\n return globalThis.btoa(bin.join(\"\"));\n }\n}\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;\n\nexport type DeepPartial<T> = T extends Builtin ? T\n : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;\n fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;\n}\n"],"mappings":";;;AA0BA,SAAS,8BAAiD;AACxD,QAAO;EAAE,eAAe;EAAW,YAAY;EAAI,UAAU;EAAI;;AAGnE,MAAa,oBAAmD;CAC9D,OAAO,SAA4B,SAAuB,IAAIA,wBAAAA,cAAc,EAAgB;AAC1F,MAAI,QAAQ,kBAAkB,OA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X,SAAS,gBAAgB,KAAyB;AAChD,KAAK,WAAmB,OACtB,QAAQ,WAAmB,OAAO,KAAK,IAAI,CAAC,SAAS,SAAS;MACzD;EACL,MAAM,MAAgB,EAAE;AACxB,MAAI,SAAS,SAAS;AACpB,OAAI,KAAK,WAAW,OAAO,aAAa,KAAK,CAAC;IAC9C;AACF,SAAO,WAAW,KAAK,IAAI,KAAK,GAAG,CAAC;;;AAgBxC,SAAS,MAAM,OAAqB;AAClC,QAAO,UAAU,QAAQ,UAAU"}
|
|
1
|
+
{"version":3,"file":"abci.cjs","names":["BinaryWriter","BinaryReader","Any"],"sources":["../../../src/proto/tm2/abci.ts"],"sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.11.6\n// protoc v6.33.4\n// source: tm2/abci.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport { Any } from \"../google/protobuf/any.js\";\n\nexport const protobufPackage = \"tm2.abci\";\n\nexport interface ResponseDeliverTx {\n response_base?: ResponseBase | undefined;\n gas_wanted: bigint;\n gas_used: bigint;\n}\n\nexport interface ResponseBase {\n error?: Any | undefined;\n data: Uint8Array;\n events: Any[];\n log: string;\n info: string;\n}\n\nfunction createBaseResponseDeliverTx(): ResponseDeliverTx {\n return { response_base: undefined, gas_wanted: 0n, gas_used: 0n };\n}\n\nexport const ResponseDeliverTx: MessageFns<ResponseDeliverTx> = {\n encode(message: ResponseDeliverTx, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.response_base !== undefined) {\n ResponseBase.encode(message.response_base, writer.uint32(10).fork()).join();\n }\n if (message.gas_wanted !== 0n) {\n if (BigInt.asIntN(64, message.gas_wanted) !== message.gas_wanted) {\n throw new globalThis.Error(\"value provided for field message.gas_wanted of type sint64 too large\");\n }\n writer.uint32(16).sint64(message.gas_wanted);\n }\n if (message.gas_used !== 0n) {\n if (BigInt.asIntN(64, message.gas_used) !== message.gas_used) {\n throw new globalThis.Error(\"value provided for field message.gas_used of type sint64 too large\");\n }\n writer.uint32(24).sint64(message.gas_used);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ResponseDeliverTx {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResponseDeliverTx();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.response_base = ResponseBase.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.gas_wanted = reader.sint64() as bigint;\n continue;\n }\n case 3: {\n if (tag !== 24) {\n break;\n }\n\n message.gas_used = reader.sint64() as bigint;\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ResponseDeliverTx {\n return {\n response_base: isSet(object.ResponseBase) ? ResponseBase.fromJSON(object.ResponseBase) : undefined,\n gas_wanted: isSet(object.GasWanted) ? BigInt(object.GasWanted) : 0n,\n gas_used: isSet(object.GasUsed) ? BigInt(object.GasUsed) : 0n,\n };\n },\n\n toJSON(message: ResponseDeliverTx): unknown {\n const obj: any = {};\n if (message.response_base !== undefined) {\n obj.ResponseBase = ResponseBase.toJSON(message.response_base);\n }\n if (message.gas_wanted !== undefined) {\n obj.GasWanted = message.gas_wanted.toString();\n }\n if (message.gas_used !== undefined) {\n obj.GasUsed = message.gas_used.toString();\n }\n return obj;\n },\n\n create<I extends Exact<DeepPartial<ResponseDeliverTx>, I>>(base?: I): ResponseDeliverTx {\n return ResponseDeliverTx.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<ResponseDeliverTx>, I>>(object: I): ResponseDeliverTx {\n const message = createBaseResponseDeliverTx();\n message.response_base = (object.response_base !== undefined && object.response_base !== null)\n ? ResponseBase.fromPartial(object.response_base)\n : undefined;\n message.gas_wanted = object.gas_wanted ?? 0n;\n message.gas_used = object.gas_used ?? 0n;\n return message;\n },\n};\n\nfunction createBaseResponseBase(): ResponseBase {\n return { error: undefined, data: new Uint8Array(0), events: [], log: \"\", info: \"\" };\n}\n\nexport const ResponseBase: MessageFns<ResponseBase> = {\n encode(message: ResponseBase, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.error !== undefined) {\n Any.encode(message.error, writer.uint32(10).fork()).join();\n }\n if (message.data.length !== 0) {\n writer.uint32(18).bytes(message.data);\n }\n for (const v of message.events) {\n Any.encode(v!, writer.uint32(26).fork()).join();\n }\n if (message.log !== \"\") {\n writer.uint32(34).string(message.log);\n }\n if (message.info !== \"\") {\n writer.uint32(42).string(message.info);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ResponseBase {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseResponseBase();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.error = Any.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.data = reader.bytes();\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.events.push(Any.decode(reader, reader.uint32()));\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.log = reader.string();\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.info = reader.string();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ResponseBase {\n return {\n error: isSet(object.Error) ? Any.fromJSON(object.Error) : undefined,\n data: isSet(object.Data) ? bytesFromBase64(object.Data) : new Uint8Array(0),\n events: globalThis.Array.isArray(object?.Events) ? object.Events.map((e: any) => Any.fromJSON(e)) : [],\n log: isSet(object.Log) ? globalThis.String(object.Log) : \"\",\n info: isSet(object.Info) ? globalThis.String(object.Info) : \"\",\n };\n },\n\n toJSON(message: ResponseBase): unknown {\n const obj: any = {};\n if (message.error !== undefined) {\n obj.Error = Any.toJSON(message.error);\n }\n if (message.data !== undefined) {\n obj.Data = base64FromBytes(message.data);\n }\n if (message.events?.length) {\n obj.Events = message.events.map((e) => Any.toJSON(e));\n }\n if (message.log !== undefined) {\n obj.Log = message.log;\n }\n if (message.info !== undefined) {\n obj.Info = message.info;\n }\n return obj;\n },\n\n create<I extends Exact<DeepPartial<ResponseBase>, I>>(base?: I): ResponseBase {\n return ResponseBase.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<ResponseBase>, I>>(object: I): ResponseBase {\n const message = createBaseResponseBase();\n message.error = (object.error !== undefined && object.error !== null) ? Any.fromPartial(object.error) : undefined;\n message.data = object.data ?? new Uint8Array(0);\n message.events = object.events?.map((e) => Any.fromPartial(e)) || [];\n message.log = object.log ?? \"\";\n message.info = object.info ?? \"\";\n return message;\n },\n};\n\nfunction bytesFromBase64(b64: string): Uint8Array {\n if ((globalThis as any).Buffer) {\n return Uint8Array.from((globalThis as any).Buffer.from(b64, \"base64\"));\n } else {\n const bin = globalThis.atob(b64);\n const arr = new Uint8Array(bin.length);\n for (let i = 0; i < bin.length; ++i) {\n arr[i] = bin.charCodeAt(i);\n }\n return arr;\n }\n}\n\nfunction base64FromBytes(arr: Uint8Array): string {\n if ((globalThis as any).Buffer) {\n return (globalThis as any).Buffer.from(arr).toString(\"base64\");\n } else {\n const bin: string[] = [];\n arr.forEach((byte) => {\n bin.push(globalThis.String.fromCharCode(byte));\n });\n return globalThis.btoa(bin.join(\"\"));\n }\n}\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;\n\nexport type DeepPartial<T> = T extends Builtin ? T\n : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;\n fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;\n}\n"],"mappings":";;AA0BA,SAAS,8BAAiD;CACxD,OAAO;EAAE,eAAe;EAAW,YAAY;EAAI,UAAU;CAAG;AAClE;AAEA,MAAa,oBAAmD;CAC9D,OAAO,SAA4B,SAAuB,IAAIA,wBAAAA,aAAa,GAAiB;EAC1F,IAAI,QAAQ,kBAAkB,QAC5B,aAAa,OAAO,QAAQ,eAAe,OAAO,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK;EAE5E,IAAI,QAAQ,eAAe,IAAI;GAC7B,IAAI,OAAO,OAAO,IAAI,QAAQ,UAAU,MAAM,QAAQ,YACpD,MAAM,IAAI,WAAW,MAAM,sEAAsE;GAEnG,OAAO,OAAO,EAAE,CAAC,CAAC,OAAO,QAAQ,UAAU;EAC7C;EACA,IAAI,QAAQ,aAAa,IAAI;GAC3B,IAAI,OAAO,OAAO,IAAI,QAAQ,QAAQ,MAAM,QAAQ,UAClD,MAAM,IAAI,WAAW,MAAM,oEAAoE;GAEjG,OAAO,OAAO,EAAE,CAAC,CAAC,OAAO,QAAQ,QAAQ;EAC3C;EACA,OAAO;CACT;CAEA,OAAO,OAAkC,QAAoC;EAC3E,MAAM,SAAS,iBAAiBC,wBAAAA,eAAe,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BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
|
-
|
|
4
3
|
//#region src/proto/tm2/abci.d.ts
|
|
5
4
|
declare const protobufPackage = "tm2.abci";
|
|
6
5
|
interface ResponseDeliverTx {
|
|
@@ -18,9 +17,9 @@ interface ResponseBase {
|
|
|
18
17
|
declare const ResponseDeliverTx: MessageFns<ResponseDeliverTx>;
|
|
19
18
|
declare const ResponseBase: MessageFns<ResponseBase>;
|
|
20
19
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
21
|
-
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]
|
|
20
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]>; } : Partial<T>;
|
|
22
21
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
23
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & { [K in keyof P]: Exact<P[K], I[K]
|
|
22
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & { [K in keyof P]: Exact<P[K], I[K]>; } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never; };
|
|
24
23
|
interface MessageFns<T> {
|
|
25
24
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
26
25
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
@@ -30,5 +29,5 @@ interface MessageFns<T> {
|
|
|
30
29
|
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
31
30
|
}
|
|
32
31
|
//#endregion
|
|
33
|
-
export { ResponseBase, ResponseDeliverTx };
|
|
32
|
+
export { DeepPartial, Exact, MessageFns, ResponseBase, ResponseDeliverTx };
|
|
34
33
|
//# sourceMappingURL=abci.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abci.d.cts","names":[],"sources":["../../../src/proto/tm2/abci.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"abci.d.cts","names":[],"sources":["../../../src/proto/tm2/abci.ts"],"mappings":";;;cAUa;UAEI;EACf,gBAAgB;EAChB;EACA;;UAGe;EACf,QAAQ;EACR,MAAM;EACN,QAAQ;EACR;EACA;;cAOW,mBAAmB,WAAW;cAoG9B,cAAc,WAAW;KAiJjC,UAAU,OAAO,WAAW;KAErB,YAAY,KAAK,UAAU,UAAU,IAC7C,UAAU,WAAW,YAAY,KAAK,WAAW,MAAM,YAAY,MACnE,UAAU,oBAAoB,KAAK,cAAc,YAAY,MAC7D,kBAAkB,WAAW,KAAK,YAAY,EAAE,SAChD,QAAQ;KAEP,YAAY,KAAK,UAAU,UAAU;KAC9B,MAAM,GAAG,UAAU,KAAK,UAAU,UAAU,IACpD,OAAO,WAAW,IAAI,MAAM,EAAE,IAAI,EAAE,YAAW,KAAK,cAAc,GAAG,YAAY;UAMpE,WAAW;EAC1B,OAAO,SAAS,GAAG,SAAS,eAAe;EAC3C,OAAO,OAAO,eAAe,YAAY,kBAAkB;EAC3D,SAAS,cAAc;EACvB,OAAO,SAAS;EAChB,OAAO,UAAU,MAAM,YAAY,IAAI,IAAI,OAAO,IAAI;EACtD,YAAY,UAAU,MAAM,YAAY,IAAI,IAAI,QAAQ,IAAI"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Any } from "../google/protobuf/any.mjs";
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
|
-
|
|
4
3
|
//#region src/proto/tm2/abci.d.ts
|
|
5
4
|
declare const protobufPackage = "tm2.abci";
|
|
6
5
|
interface ResponseDeliverTx {
|
|
@@ -18,9 +17,9 @@ interface ResponseBase {
|
|
|
18
17
|
declare const ResponseDeliverTx: MessageFns<ResponseDeliverTx>;
|
|
19
18
|
declare const ResponseBase: MessageFns<ResponseBase>;
|
|
20
19
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
21
|
-
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]
|
|
20
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]>; } : Partial<T>;
|
|
22
21
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
23
|
-
type Exact<P, I extends P> = P extends Builtin ? P : P & { [K in keyof P]: Exact<P[K], I[K]
|
|
22
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & { [K in keyof P]: Exact<P[K], I[K]>; } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never; };
|
|
24
23
|
interface MessageFns<T> {
|
|
25
24
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
26
25
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
@@ -30,5 +29,5 @@ interface MessageFns<T> {
|
|
|
30
29
|
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
31
30
|
}
|
|
32
31
|
//#endregion
|
|
33
|
-
export { ResponseBase, ResponseDeliverTx };
|
|
32
|
+
export { DeepPartial, Exact, MessageFns, ResponseBase, ResponseDeliverTx };
|
|
34
33
|
//# sourceMappingURL=abci.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abci.d.mts","names":[],"sources":["../../../src/proto/tm2/abci.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"abci.d.mts","names":[],"sources":["../../../src/proto/tm2/abci.ts"],"mappings":";;;cAUa;UAEI;EACf,gBAAgB;EAChB;EACA;;UAGe;EACf,QAAQ;EACR,MAAM;EACN,QAAQ;EACR;EACA;;cAOW,mBAAmB,WAAW;cAoG9B,cAAc,WAAW;KAiJjC,UAAU,OAAO,WAAW;KAErB,YAAY,KAAK,UAAU,UAAU,IAC7C,UAAU,WAAW,YAAY,KAAK,WAAW,MAAM,YAAY,MACnE,UAAU,oBAAoB,KAAK,cAAc,YAAY,MAC7D,kBAAkB,WAAW,KAAK,YAAY,EAAE,SAChD,QAAQ;KAEP,YAAY,KAAK,UAAU,UAAU;KAC9B,MAAM,GAAG,UAAU,KAAK,UAAU,UAAU,IACpD,OAAO,WAAW,IAAI,MAAM,EAAE,IAAI,EAAE,YAAW,KAAK,cAAc,GAAG,YAAY;UAMpE,WAAW;EAC1B,OAAO,SAAS,GAAG,SAAS,eAAe;EAC3C,OAAO,OAAO,eAAe,YAAY,kBAAkB;EAC3D,SAAS,cAAc;EACvB,OAAO,SAAS;EAChB,OAAO,UAAU,MAAM,YAAY,IAAI,IAAI,OAAO,IAAI;EACtD,YAAY,UAAU,MAAM,YAAY,IAAI,IAAI,QAAQ,IAAI"}
|
package/dist/proto/tm2/abci.mjs
CHANGED
|
@@ -73,7 +73,7 @@ const ResponseDeliverTx = {
|
|
|
73
73
|
function createBaseResponseBase() {
|
|
74
74
|
return {
|
|
75
75
|
error: void 0,
|
|
76
|
-
data: new Uint8Array(0),
|
|
76
|
+
data: /* @__PURE__ */ new Uint8Array(0),
|
|
77
77
|
events: [],
|
|
78
78
|
log: "",
|
|
79
79
|
info: ""
|
|
@@ -124,7 +124,7 @@ const ResponseBase = {
|
|
|
124
124
|
fromJSON(object) {
|
|
125
125
|
return {
|
|
126
126
|
error: isSet(object.Error) ? Any.fromJSON(object.Error) : void 0,
|
|
127
|
-
data: isSet(object.Data) ? bytesFromBase64(object.Data) : new Uint8Array(0),
|
|
127
|
+
data: isSet(object.Data) ? bytesFromBase64(object.Data) : /* @__PURE__ */ new Uint8Array(0),
|
|
128
128
|
events: globalThis.Array.isArray(object?.Events) ? object.Events.map((e) => Any.fromJSON(e)) : [],
|
|
129
129
|
log: isSet(object.Log) ? globalThis.String(object.Log) : "",
|
|
130
130
|
info: isSet(object.Info) ? globalThis.String(object.Info) : ""
|
|
@@ -145,7 +145,7 @@ const ResponseBase = {
|
|
|
145
145
|
fromPartial(object) {
|
|
146
146
|
const message = createBaseResponseBase();
|
|
147
147
|
message.error = object.error !== void 0 && object.error !== null ? Any.fromPartial(object.error) : void 0;
|
|
148
|
-
message.data = object.data ?? new Uint8Array(0);
|
|
148
|
+
message.data = object.data ?? /* @__PURE__ */ new Uint8Array(0);
|
|
149
149
|
message.events = object.events?.map((e) => Any.fromPartial(e)) || [];
|
|
150
150
|
message.log = object.log ?? "";
|
|
151
151
|
message.info = object.info ?? "";
|