@eclesia/indexer-engine 2.10.0 → 2.11.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/dist/_virtual/rolldown_runtime.cjs +4 -0
- package/dist/_virtual/rolldown_runtime.mjs +38 -0
- package/dist/constants.cjs +6 -2
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +6 -3
- package/dist/constants.d.cts.map +1 -1
- package/dist/{constants.d.ts → constants.d.mts} +7 -4
- package/dist/constants.d.mts.map +1 -0
- package/dist/{constants.js → constants.mjs} +7 -4
- package/dist/constants.mjs.map +1 -0
- package/dist/emitter/index.cjs +6 -3
- package/dist/emitter/index.cjs.map +1 -1
- package/dist/emitter/index.d.cts.map +1 -1
- package/dist/emitter/{index.d.ts → index.d.mts} +2 -2
- package/dist/emitter/index.d.mts.map +1 -0
- package/dist/emitter/{index.js → index.mjs} +7 -4
- package/dist/emitter/index.mjs.map +1 -0
- package/dist/errors/index.cjs +18 -0
- package/dist/errors/index.cjs.map +1 -1
- package/dist/errors/index.d.cts.map +1 -1
- package/dist/errors/{index.d.ts → index.d.mts} +1 -1
- package/dist/errors/index.d.mts.map +1 -0
- package/dist/errors/{index.js → index.mjs} +19 -1
- package/dist/errors/index.mjs.map +1 -0
- package/dist/index.cjs +10 -2
- package/dist/index.d.cts +6 -5
- package/dist/index.d.mts +11 -0
- package/dist/index.mjs +12 -0
- package/dist/indexer/index.cjs +113 -67
- package/dist/indexer/index.cjs.map +1 -1
- package/dist/indexer/index.d.cts +7 -1
- package/dist/indexer/index.d.cts.map +1 -1
- package/dist/indexer/{index.d.ts → index.d.mts} +11 -5
- package/dist/indexer/index.d.mts.map +1 -0
- package/dist/indexer/{index.js → index.mjs} +121 -75
- package/dist/indexer/index.mjs.map +1 -0
- package/dist/metrics/index.cjs +28 -0
- package/dist/metrics/index.cjs.map +1 -1
- package/dist/metrics/index.d.cts.map +1 -1
- package/dist/metrics/{index.d.ts → index.d.mts} +1 -1
- package/dist/metrics/index.d.mts.map +1 -0
- package/dist/metrics/{index.js → index.mjs} +29 -1
- package/dist/metrics/index.mjs.map +1 -0
- package/dist/mocks/index.cjs +18 -0
- package/dist/mocks/index.cjs.map +1 -0
- package/dist/mocks/index.d.cts +9 -0
- package/dist/mocks/index.d.cts.map +1 -0
- package/dist/mocks/index.d.mts +9 -0
- package/dist/mocks/index.d.mts.map +1 -0
- package/dist/mocks/index.mjs +13 -0
- package/dist/mocks/index.mjs.map +1 -0
- package/dist/mocks/rpc-client.cjs +209 -0
- package/dist/mocks/rpc-client.cjs.map +1 -0
- package/dist/mocks/rpc-client.d.cts +44 -0
- package/dist/mocks/rpc-client.d.cts.map +1 -0
- package/dist/mocks/rpc-client.d.mts +44 -0
- package/dist/mocks/rpc-client.d.mts.map +1 -0
- package/dist/mocks/rpc-client.mjs +208 -0
- package/dist/mocks/rpc-client.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.cjs +32 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.mjs +29 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.cjs +67 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.mjs +64 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.cjs +80 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.mjs +77 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.cjs +33 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.mjs +30 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/index.cjs +106 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/index.mjs +103 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/rfc3339.cjs +52 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/rfc3339.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/rfc3339.mjs +49 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/rfc3339.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/utf8.cjs +31 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/utf8.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/utf8.mjs +28 -0
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/utf8.mjs.map +1 -0
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.cjs +98 -0
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.mjs +95 -0
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.mjs.map +1 -0
- package/dist/promise-queue/index.cjs +34 -5
- package/dist/promise-queue/index.cjs.map +1 -1
- package/dist/promise-queue/index.d.cts.map +1 -1
- package/dist/promise-queue/{index.d.ts → index.d.mts} +1 -1
- package/dist/promise-queue/index.d.mts.map +1 -0
- package/dist/promise-queue/{index.js → index.mjs} +35 -6
- package/dist/promise-queue/index.mjs.map +1 -0
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/{index.d.ts → index.d.mts} +5 -4
- package/dist/types/index.d.mts.map +1 -0
- package/dist/types/{index.js → index.mjs} +1 -1
- package/dist/types/index.mjs.map +1 -0
- package/dist/utils/{bech32.d.ts → bech32.d.mts} +1 -1
- package/dist/utils/bech32.d.mts.map +1 -0
- package/dist/utils/{bech32.js → bech32.mjs} +1 -1
- package/dist/utils/bech32.mjs.map +1 -0
- package/dist/utils/{bigint.d.ts → bigint.d.mts} +1 -1
- package/dist/utils/bigint.d.mts.map +1 -0
- package/dist/utils/{bigint.js → bigint.mjs} +1 -1
- package/dist/utils/bigint.mjs.map +1 -0
- package/dist/utils/{index.d.ts → index.d.mts} +4 -4
- package/dist/utils/index.d.mts.map +1 -0
- package/dist/utils/{index.js → index.mjs} +5 -5
- package/dist/utils/index.mjs.map +1 -0
- package/dist/utils/{text.d.ts → text.d.mts} +1 -1
- package/dist/utils/text.d.mts.map +1 -0
- package/dist/utils/{text.js → text.mjs} +1 -1
- package/dist/utils/text.mjs.map +1 -0
- package/dist/validation/{index.d.ts → index.d.mts} +1 -1
- package/dist/validation/index.d.mts.map +1 -0
- package/dist/validation/{index.js → index.mjs} +3 -3
- package/dist/validation/index.mjs.map +1 -0
- package/package.json +23 -20
- package/dist/_virtual/rolldown_runtime.js +0 -13
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js.map +0 -1
- package/dist/emitter/index.d.ts.map +0 -1
- package/dist/emitter/index.js.map +0 -1
- package/dist/errors/index.d.ts.map +0 -1
- package/dist/errors/index.js.map +0 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -11
- package/dist/indexer/index.d.ts.map +0 -1
- package/dist/indexer/index.js.map +0 -1
- package/dist/metrics/index.d.ts.map +0 -1
- package/dist/metrics/index.js.map +0 -1
- package/dist/promise-queue/index.d.ts.map +0 -1
- package/dist/promise-queue/index.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/utils/bech32.d.ts.map +0 -1
- package/dist/utils/bech32.js.map +0 -1
- package/dist/utils/bigint.d.ts.map +0 -1
- package/dist/utils/bigint.js.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/text.d.ts.map +0 -1
- package/dist/utils/text.js.map +0 -1
- package/dist/validation/index.d.ts.map +0 -1
- package/dist/validation/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc-client.mjs","names":["tx: Tx","txs: Uint8Array[]","results: TxData[]"],"sources":["../../src/mocks/rpc-client.ts"],"sourcesContent":["/**\n * Mock RPC client for benchmarking and testing\n * Generates synthetic blockchain data without requiring an actual RPC node\n */\nimport {\n fromBase64, fromHex,\n} from \"@cosmjs/encoding\";\nimport {\n BlockResponse,\n BlockResultsResponse,\n CometClient,\n fromRfc3339WithNanoseconds,\n StatusResponse,\n TxData,\n} from \"@cosmjs/tendermint-rpc\";\nimport {\n Tx,\n} from \"cosmjs-types/cosmos/tx/v1beta1/tx.js\";\n\n/** Configuration for mock data generation */\nexport interface MockRpcConfig {\n /** Chain ID for generated blocks */\n chainId: string\n /** Number of transactions per block */\n txPerBlock: number\n /** Starting block height */\n startHeight: number\n /** Latest block height available */\n endHeight: number\n}\n/**\n * Generates a synthetic transaction with realistic structure\n */\nfunction generateMockTx(height: number, txIndex: number): Uint8Array {\n const tx: Tx = {\n body: {\n messages: [\n {\n typeUrl: \"/cosmos.bank.v1beta1.MsgSend\",\n value: new Uint8Array([10, 45, 99, 111, 115, 109, 111, 115, 49, 18, 45, 99, 111, 115, 109, 111, 115, 50]),\n },\n ],\n memo: `Mock tx ${height}-${txIndex}`,\n timeoutHeight: BigInt(height + 100),\n extensionOptions: [],\n nonCriticalExtensionOptions: [],\n },\n authInfo: {\n signerInfos: [\n {\n publicKey: {\n typeUrl: \"/cosmos.crypto.secp256k1.PubKey\",\n value: new Uint8Array(33),\n },\n modeInfo: {\n single: {\n mode: 1,\n },\n },\n sequence: BigInt(txIndex),\n },\n ],\n fee: {\n amount: [\n {\n denom: \"uatom\",\n amount: \"5000\",\n },\n ],\n gasLimit: BigInt(200000),\n payer: \"\",\n granter: \"\",\n },\n tip: undefined,\n },\n signatures: [new Uint8Array(64)],\n };\n\n return Tx.encode(tx).finish();\n}\n\nexport class MockRpcClient {\n private chainId: string;\n private startHeight: number;\n private endHeight: number;\n private txPerBlock: number;\n\n constructor({\n chainId,\n startHeight,\n endHeight,\n txPerBlock,\n }: {\n chainId: string\n startHeight: number\n endHeight: number\n txPerBlock: number\n }) {\n this.chainId = chainId;\n this.startHeight = startHeight;\n this.endHeight = endHeight;\n this.txPerBlock = txPerBlock;\n }\n\n async block(height: number): Promise<BlockResponse> {\n const txs: Uint8Array[] = [];\n for (let i = 0; i < this.txPerBlock; i++) {\n txs.push(generateMockTx(height, i));\n }\n return {\n block: {\n header: {\n height: height,\n version: {\n block: 11,\n app: 0,\n },\n time: fromRfc3339WithNanoseconds(new Date().toISOString()),\n chainId: this.chainId,\n lastBlockId: null,\n lastCommitHash: new Uint8Array(),\n dataHash: new Uint8Array(),\n validatorsHash: new Uint8Array(),\n nextValidatorsHash: new Uint8Array(),\n consensusHash: new Uint8Array(),\n appHash: new Uint8Array(),\n lastResultsHash: new Uint8Array(),\n evidenceHash: new Uint8Array(),\n proposerAddress: new Uint8Array(),\n },\n txs: txs,\n evidence: [],\n lastCommit: {\n height: height - 1,\n round: 0,\n blockId: {\n hash: new Uint8Array(),\n parts: {\n total: 0,\n hash: new Uint8Array(),\n },\n },\n signatures: [\n {\n blockIdFlag: 2,\n validatorAddress: fromHex(\"D68EEC0D2E8248F1EC64CDB585EDB61ECA432BD8\"),\n timestamp: fromRfc3339WithNanoseconds(new Date().toISOString()),\n signature: fromBase64(\"Z6d2P35dI6qBzfPdyIZvmZi7Imo2FmQ5kNSnpVb2UvCj0aSjRCtS59BauJFB6FDHPluOUYoz0rJ4jiOnNXh9AA==\"),\n },\n ],\n },\n },\n blockId: {\n hash: new Uint8Array(),\n parts: {\n total: 0,\n hash: new Uint8Array(),\n },\n },\n };\n }\n\n async status(): Promise<StatusResponse> {\n return {\n nodeInfo: {\n protocolVersion: {\n p2p: 8,\n block: 11,\n app: 0,\n },\n id: fromHex(\"d2982128df6a29e700980f325b0444e301c604d7\"),\n listenAddr: \"tcp://0.0.0.0:26656\",\n network: \"atomone-1\",\n version: \"0.37.15\",\n channels: \"40202122233038606100\",\n moniker: \"node\",\n other: new Map([[\"txIndex\", \"on\"], [\"rpcAddress\", \"tcp://0.0.0.0:26657\"]]),\n },\n syncInfo: {\n latestBlockHash: fromHex(\"3F3F7A6F11FA91856BE440F8C78262307CAEAB122720D61CB14B118EF89892B5\"),\n latestAppHash: fromHex(\"FF91D618633BDD5395763F34805E6DACF6BBFB642A2E787677BF28B39427F289\"),\n latestBlockHeight: this.endHeight,\n latestBlockTime: fromRfc3339WithNanoseconds(\"2025-11-06T12:58:21.271608775Z\"),\n earliestBlockHash: fromHex(\"54473B6F28CAA85F5664F7CA3F2EEE49CD9857BDE41E0BF604B1A1DE93CBFEFF\"),\n earliestAppHash: fromHex(\"24DFB6C312A7FD4B753444F5CD5FAC4D239BAEC09B6A79BB3D04B21B0BC1FC53\"),\n earliestBlockHeight: 1,\n earliestBlockTime: fromRfc3339WithNanoseconds(\"2025-05-28T07:58:54.905470438Z\"),\n catchingUp: false,\n },\n validatorInfo: {\n address: fromHex(\"1C7CE0213D96CD5578249740DC31A9D8E4D7A226\"),\n pubkey: {\n algorithm: \"ed25519\",\n data: fromBase64(\"+KoTmCU6lo7NCtsfPCYpdNf0fs3aScZ8CtdgHTR/oGs=\"),\n },\n votingPower: 0n,\n },\n };\n }\n\n subscribeNewBlock() {\n return {\n addListener: (..._args: unknown[]) => {},\n removeListener: (..._args: unknown[]) => {},\n } as ReturnType<CometClient[\"subscribeNewBlock\"]>;\n }\n\n async disconnect(): Promise<void> {\n // No-op for mock\n }\n\n async blockResults(height: number): Promise<BlockResultsResponse> {\n const results: TxData[] = [];\n for (let i = 0; i < this.txPerBlock; i++) {\n results.push({\n code: 0,\n data: Buffer.from(\"success\"),\n log: JSON.stringify([\n {\n msg_index: 0,\n events: [],\n },\n ]),\n gasWanted: BigInt(200000),\n gasUsed: BigInt(150000),\n events: [],\n codespace: \"\",\n });\n }\n return {\n height: height,\n results: results,\n beginBlockEvents: [],\n endBlockEvents: [],\n validatorUpdates: [],\n consensusUpdates: undefined,\n };\n }\n\n async connect(): Promise<void> {\n }\n}\n\n/**\n * Factory function to create a mock RPC client\n */\nexport function createMockRpcClient(config: MockRpcConfig): CometClient {\n return new M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KACjE;IACD,aAAa;IACd;GACF;;CAGH,oBAAoB;AAClB,SAAO;GACL,cAAc,GAAG,UAAqB;GACtC,iBAAiB,GAAG,UAAqB;GAC1C;;CAGH,MAAM,aAA4B;CAIlC,MAAM,aAAa,QAA+C;EAChE,MAAMC,UAAoB,EAAE;AAC5B,OAAK,IAAI,IAAI,GAAG,IAAI,KAAK,YAAY,IACnC,SAAQ,KAAK;GACX,MAAM;GACN,MAAM,OAAO,KAAK,UAAU;GAC5B,KAAK,KAAK,UAAU,CAClB;IACE,WAAW;IACX,QAAQ,EAAE;IACX,CACF,CAAC;GACF,WAAW,OAAO,IAAO;GACzB,SAAS,OAAO,KAAO;GACvB,QAAQ,EAAE;GACV,WAAW;GACZ,CAAC;AAEJ,SAAO;GACG;GACC;GACT,kBAAkB,EAAE;GACpB,gBAAgB,EAAE;GAClB,kBAAkB,EAAE;GACpB,kBAAkB;GACnB;;CAGH,MAAM,UAAyB;;;;;AAOjC,SAAgB,oBAAoB,QAAoC;AACtE,QAAO,IAAI,cAAc,OAAO"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js
|
|
4
|
+
var require_ascii = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js": ((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.toAscii = toAscii;
|
|
7
|
+
exports.fromAscii = fromAscii;
|
|
8
|
+
function toAscii(input) {
|
|
9
|
+
const toNums = (str) => str.split("").map((x) => {
|
|
10
|
+
const charCode = x.charCodeAt(0);
|
|
11
|
+
if (charCode < 32 || charCode > 126) throw new Error(`Cannot encode character that is out of printable ASCII range: ${charCode}`);
|
|
12
|
+
return charCode;
|
|
13
|
+
});
|
|
14
|
+
return Uint8Array.from(toNums(input));
|
|
15
|
+
}
|
|
16
|
+
function fromAscii(data) {
|
|
17
|
+
const fromNums = (listOfNumbers) => listOfNumbers.map((x) => {
|
|
18
|
+
if (x < 32 || x > 126) throw new Error(`Cannot decode character that is out of printable ASCII range: ${x}`);
|
|
19
|
+
return String.fromCharCode(x);
|
|
20
|
+
});
|
|
21
|
+
return fromNums(Array.from(data)).join("");
|
|
22
|
+
}
|
|
23
|
+
}) });
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
Object.defineProperty(exports, 'default', {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () {
|
|
29
|
+
return require_ascii();
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=ascii.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ascii.cjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toAscii = toAscii;\nexports.fromAscii = fromAscii;\nfunction toAscii(input) {\n const toNums = (str) => str.split(\"\").map((x) => {\n const charCode = x.charCodeAt(0);\n // 0x00–0x1F control characters\n // 0x20–0x7E printable characters\n // 0x7F delete character\n // 0x80–0xFF out of 7 bit ascii range\n if (charCode < 0x20 || charCode > 0x7e) {\n throw new Error(`Cannot encode character that is out of printable ASCII range: ${charCode}`);\n }\n return charCode;\n });\n return Uint8Array.from(toNums(input));\n}\nfunction fromAscii(data) {\n const fromNums = (listOfNumbers) => listOfNumbers.map((x) => {\n // 0x00–0x1F control characters\n // 0x20–0x7E printable characters\n // 0x7F delete character\n // 0x80–0xFF out of 7 bit ascii range\n if (x < 0x20 || x > 0x7e) {\n throw new Error(`Cannot decode character that is out of printable ASCII range: ${x}`);\n }\n return String.fromCharCode(x);\n });\n return fromNums(Array.from(data)).join(\"\");\n}\n//# sourceMappingURL=ascii.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,UAAU;AAClB,SAAQ,YAAY;CACpB,SAAS,QAAQ,OAAO;EACpB,MAAM,UAAU,QAAQ,IAAI,MAAM,GAAG,CAAC,KAAK,MAAM;GAC7C,MAAM,WAAW,EAAE,WAAW,EAAE;AAKhC,OAAI,WAAW,MAAQ,WAAW,IAC9B,OAAM,IAAI,MAAM,iEAAiE,WAAW;AAEhG,UAAO;IACT;AACF,SAAO,WAAW,KAAK,OAAO,MAAM,CAAC;;CAEzC,SAAS,UAAU,MAAM;EACrB,MAAM,YAAY,kBAAkB,cAAc,KAAK,MAAM;AAKzD,OAAI,IAAI,MAAQ,IAAI,IAChB,OAAM,IAAI,MAAM,iEAAiE,IAAI;AAEzF,UAAO,OAAO,aAAa,EAAE;IAC/B;AACF,SAAO,SAAS,MAAM,KAAK,KAAK,CAAC,CAAC,KAAK,GAAG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js
|
|
4
|
+
var require_ascii = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js": ((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.toAscii = toAscii;
|
|
7
|
+
exports.fromAscii = fromAscii;
|
|
8
|
+
function toAscii(input) {
|
|
9
|
+
const toNums = (str) => str.split("").map((x) => {
|
|
10
|
+
const charCode = x.charCodeAt(0);
|
|
11
|
+
if (charCode < 32 || charCode > 126) throw new Error(`Cannot encode character that is out of printable ASCII range: ${charCode}`);
|
|
12
|
+
return charCode;
|
|
13
|
+
});
|
|
14
|
+
return Uint8Array.from(toNums(input));
|
|
15
|
+
}
|
|
16
|
+
function fromAscii(data) {
|
|
17
|
+
const fromNums = (listOfNumbers) => listOfNumbers.map((x) => {
|
|
18
|
+
if (x < 32 || x > 126) throw new Error(`Cannot decode character that is out of printable ASCII range: ${x}`);
|
|
19
|
+
return String.fromCharCode(x);
|
|
20
|
+
});
|
|
21
|
+
return fromNums(Array.from(data)).join("");
|
|
22
|
+
}
|
|
23
|
+
}) });
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export default require_ascii();
|
|
27
|
+
|
|
28
|
+
export { require_ascii };
|
|
29
|
+
//# sourceMappingURL=ascii.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ascii.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toAscii = toAscii;\nexports.fromAscii = fromAscii;\nfunction toAscii(input) {\n const toNums = (str) => str.split(\"\").map((x) => {\n const charCode = x.charCodeAt(0);\n // 0x00–0x1F control characters\n // 0x20–0x7E printable characters\n // 0x7F delete character\n // 0x80–0xFF out of 7 bit ascii range\n if (charCode < 0x20 || charCode > 0x7e) {\n throw new Error(`Cannot encode character that is out of printable ASCII range: ${charCode}`);\n }\n return charCode;\n });\n return Uint8Array.from(toNums(input));\n}\nfunction fromAscii(data) {\n const fromNums = (listOfNumbers) => listOfNumbers.map((x) => {\n // 0x00–0x1F control characters\n // 0x20–0x7E printable characters\n // 0x7F delete character\n // 0x80–0xFF out of 7 bit ascii range\n if (x < 0x20 || x > 0x7e) {\n throw new Error(`Cannot decode character that is out of printable ASCII range: ${x}`);\n }\n return String.fromCharCode(x);\n });\n return fromNums(Array.from(data)).join(\"\");\n}\n//# sourceMappingURL=ascii.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,UAAU;AAClB,SAAQ,YAAY;CACpB,SAAS,QAAQ,OAAO;EACpB,MAAM,UAAU,QAAQ,IAAI,MAAM,GAAG,CAAC,KAAK,MAAM;GAC7C,MAAM,WAAW,EAAE,WAAW,EAAE;AAKhC,OAAI,WAAW,MAAQ,WAAW,IAC9B,OAAM,IAAI,MAAM,iEAAiE,WAAW;AAEhG,UAAO;IACT;AACF,SAAO,WAAW,KAAK,OAAO,MAAM,CAAC;;CAEzC,SAAS,UAAU,MAAM;EACrB,MAAM,YAAY,kBAAkB,cAAc,KAAK,MAAM;AAKzD,OAAI,IAAI,MAAQ,IAAI,IAChB,OAAM,IAAI,MAAM,iEAAiE,IAAI;AAEzF,UAAO,OAAO,aAAa,EAAE;IAC/B;AACF,SAAO,SAAS,MAAM,KAAK,KAAK,CAAC,CAAC,KAAK,GAAG"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_index = require('../../../../../base64-js@1.5.1/node_modules/base64-js/index.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js
|
|
5
|
+
var require_base64 = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js": ((exports) => {
|
|
6
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === void 0) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function() {
|
|
12
|
+
return m[k];
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === void 0) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
value: v
|
|
24
|
+
});
|
|
25
|
+
}) : function(o, v) {
|
|
26
|
+
o["default"] = v;
|
|
27
|
+
});
|
|
28
|
+
var __importStar = exports && exports.__importStar || (function() {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function(o$1) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o$1) if (Object.prototype.hasOwnProperty.call(o$1, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function(mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) {
|
|
41
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
}
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.toBase64 = toBase64;
|
|
49
|
+
exports.fromBase64 = fromBase64;
|
|
50
|
+
const base64js = __importStar(require_index.default);
|
|
51
|
+
function toBase64(data) {
|
|
52
|
+
return base64js.fromByteArray(data);
|
|
53
|
+
}
|
|
54
|
+
function fromBase64(base64String) {
|
|
55
|
+
if (!base64String.match(/^[a-zA-Z0-9+/]*={0,2}$/)) throw new Error("Invalid base64 string format");
|
|
56
|
+
return base64js.toByteArray(base64String);
|
|
57
|
+
}
|
|
58
|
+
}) });
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
Object.defineProperty(exports, 'default', {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () {
|
|
64
|
+
return require_base64();
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//# sourceMappingURL=base64.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base64.cjs","names":["o"],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toBase64 = toBase64;\nexports.fromBase64 = fromBase64;\nconst base64js = __importStar(require(\"base64-js\"));\nfunction toBase64(data) {\n return base64js.fromByteArray(data);\n}\nfunction fromBase64(base64String) {\n if (!base64String.match(/^[a-zA-Z0-9+/]*={0,2}$/)) {\n throw new Error(\"Invalid base64 string format\");\n }\n return base64js.toByteArray(base64String);\n}\n//# sourceMappingURL=base64.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;CACA,IAAI,qCAAgC,oBAAqB,OAAO,UAAU,SAAS,GAAG,GAAG,GAAG,IAAI;AAC5F,MAAI,OAAO,OAAW,MAAK;EAC3B,IAAI,OAAO,OAAO,yBAAyB,GAAG,EAAE;AAChD,MAAI,CAAC,SAAS,SAAS,OAAO,CAAC,EAAE,aAAa,KAAK,YAAY,KAAK,cAClE,QAAO;GAAE,YAAY;GAAM,KAAK,WAAW;AAAE,WAAO,EAAE;;GAAO;AAE/D,SAAO,eAAe,GAAG,IAAI,KAAK;OAChC,SAAS,GAAG,GAAG,GAAG,IAAI;AACxB,MAAI,OAAO,OAAW,MAAK;AAC3B,IAAE,MAAM,EAAE;;CAEd,IAAI,wCAAmC,uBAAwB,OAAO,UAAU,SAAS,GAAG,GAAG;AAC3F,SAAO,eAAe,GAAG,WAAW;GAAE,YAAY;GAAM,OAAO;GAAG,CAAC;MAClE,SAAS,GAAG,GAAG;AAChB,IAAE,aAAa;;CAEnB,IAAI,kCAA6B,iBAAkB,WAAY;EAC3D,IAAI,UAAU,SAAS,GAAG;AACtB,aAAU,OAAO,uBAAuB,SAAU,KAAG;IACjD,IAAI,KAAK,EAAE;AACX,SAAK,IAAI,KAAKA,IAAG,KAAI,OAAO,UAAU,eAAe,KAAKA,KAAG,EAAE,CAAE,IAAG,GAAG,UAAU;AACjF,WAAO;;AAEX,UAAO,QAAQ,EAAE;;AAErB,SAAO,SAAU,KAAK;AAClB,OAAI,OAAO,IAAI,WAAY,QAAO;GAClC,IAAI,SAAS,EAAE;AACf,OAAI,OAAO,MAAM;SAAK,IAAI,IAAI,QAAQ,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,IAAK,KAAI,EAAE,OAAO,UAAW,iBAAgB,QAAQ,KAAK,EAAE,GAAG;;AAChI,sBAAmB,QAAQ,IAAI;AAC/B,UAAO;;KAEX;AACJ,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,WAAW;AACnB,SAAQ,aAAa;CACrB,MAAM,WAAW,mCAAkC;CACnD,SAAS,SAAS,MAAM;AACpB,SAAO,SAAS,cAAc,KAAK;;CAEvC,SAAS,WAAW,cAAc;AAC9B,MAAI,CAAC,aAAa,MAAM,yBAAyB,CAC7C,OAAM,IAAI,MAAM,+BAA+B;AAEnD,SAAO,SAAS,YAAY,aAAa"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_base64_js } from "../../../../../base64-js@1.5.1/node_modules/base64-js/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js
|
|
5
|
+
var require_base64 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js": ((exports) => {
|
|
6
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === void 0) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function() {
|
|
12
|
+
return m[k];
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === void 0) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
value: v
|
|
24
|
+
});
|
|
25
|
+
}) : function(o, v) {
|
|
26
|
+
o["default"] = v;
|
|
27
|
+
});
|
|
28
|
+
var __importStar = exports && exports.__importStar || (function() {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function(o$1) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o$1) if (Object.prototype.hasOwnProperty.call(o$1, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function(mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) {
|
|
41
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
}
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.toBase64 = toBase64;
|
|
49
|
+
exports.fromBase64 = fromBase64;
|
|
50
|
+
const base64js = __importStar(require_base64_js());
|
|
51
|
+
function toBase64(data) {
|
|
52
|
+
return base64js.fromByteArray(data);
|
|
53
|
+
}
|
|
54
|
+
function fromBase64(base64String) {
|
|
55
|
+
if (!base64String.match(/^[a-zA-Z0-9+/]*={0,2}$/)) throw new Error("Invalid base64 string format");
|
|
56
|
+
return base64js.toByteArray(base64String);
|
|
57
|
+
}
|
|
58
|
+
}) });
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
export default require_base64();
|
|
62
|
+
|
|
63
|
+
export { require_base64 };
|
|
64
|
+
//# sourceMappingURL=base64.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base64.mjs","names":["o"],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toBase64 = toBase64;\nexports.fromBase64 = fromBase64;\nconst base64js = __importStar(require(\"base64-js\"));\nfunction toBase64(data) {\n return base64js.fromByteArray(data);\n}\nfunction fromBase64(base64String) {\n if (!base64String.match(/^[a-zA-Z0-9+/]*={0,2}$/)) {\n throw new Error(\"Invalid base64 string format\");\n }\n return base64js.toByteArray(base64String);\n}\n//# sourceMappingURL=base64.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;CACA,IAAI,qC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M,WAAW,iCAAkC;CACnD,SAAS,SAAS,MAAM;AACpB,SAAO,SAAS,cAAc,KAAK;;CAEvC,SAAS,WAAW,cAAc;AAC9B,MAAI,CAAC,aAAa,MAAM,yBAAyB,CAC7C,OAAM,IAAI,MAAM,+BAA+B;AAEnD,SAAO,SAAS,YAAY,aAAa"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js
|
|
4
|
+
var require_bech32 = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js": ((exports) => {
|
|
5
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === void 0) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return m[k];
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === void 0) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
20
|
+
Object.defineProperty(o, "default", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
value: v
|
|
23
|
+
});
|
|
24
|
+
}) : function(o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __importStar = exports && exports.__importStar || (function() {
|
|
28
|
+
var ownKeys = function(o) {
|
|
29
|
+
ownKeys = Object.getOwnPropertyNames || function(o$1) {
|
|
30
|
+
var ar = [];
|
|
31
|
+
for (var k in o$1) if (Object.prototype.hasOwnProperty.call(o$1, k)) ar[ar.length] = k;
|
|
32
|
+
return ar;
|
|
33
|
+
};
|
|
34
|
+
return ownKeys(o);
|
|
35
|
+
};
|
|
36
|
+
return function(mod) {
|
|
37
|
+
if (mod && mod.__esModule) return mod;
|
|
38
|
+
var result = {};
|
|
39
|
+
if (mod != null) {
|
|
40
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
}
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.toBech32 = toBech32;
|
|
48
|
+
exports.fromBech32 = fromBech32;
|
|
49
|
+
exports.normalizeBech32 = normalizeBech32;
|
|
50
|
+
const bech32 = __importStar(require("bech32"));
|
|
51
|
+
function toBech32(prefix, data, limit) {
|
|
52
|
+
return bech32.encode(prefix, bech32.toWords(data), limit);
|
|
53
|
+
}
|
|
54
|
+
function fromBech32(address, limit = Infinity) {
|
|
55
|
+
const decodedAddress = bech32.decode(address, limit);
|
|
56
|
+
return {
|
|
57
|
+
prefix: decodedAddress.prefix,
|
|
58
|
+
data: new Uint8Array(bech32.fromWords(decodedAddress.words))
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Takes a bech32 address and returns a normalized (i.e. lower case) representation of it.
|
|
63
|
+
*
|
|
64
|
+
* The input is validated along the way, which makes this significantly safer than
|
|
65
|
+
* using `address.toLowerCase()`.
|
|
66
|
+
*/
|
|
67
|
+
function normalizeBech32(address) {
|
|
68
|
+
const { prefix, data } = fromBech32(address);
|
|
69
|
+
return toBech32(prefix, data);
|
|
70
|
+
}
|
|
71
|
+
}) });
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
Object.defineProperty(exports, 'default', {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () {
|
|
77
|
+
return require_bech32();
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
//# sourceMappingURL=bech32.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bech32.cjs","names":["o"],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toBech32 = toBech32;\nexports.fromBech32 = fromBech32;\nexports.normalizeBech32 = normalizeBech32;\nconst bech32 = __importStar(require(\"bech32\"));\nfunction toBech32(prefix, data, limit) {\n const address = bech32.encode(prefix, bech32.toWords(data), limit);\n return address;\n}\nfunction fromBech32(address, limit = Infinity) {\n const decodedAddress = bech32.decode(address, limit);\n return {\n prefix: decodedAddress.prefix,\n data: new Uint8Array(bech32.fromWords(decodedAddress.words)),\n };\n}\n/**\n * Takes a bech32 address and returns a normalized (i.e. lower case) representation of it.\n *\n * The input is validated along the way, which makes this significantly safer than\n * using `address.toLowerCase()`.\n */\nfunction normalizeBech32(address) {\n const { prefix, data } = fromBech32(address);\n return toBech32(prefix, data);\n}\n//# sourceMappingURL=bech32.js.map"],"x_google_ignoreList":[0],"mappings":";;;;CACA,IAAI,qCAAgC,oBAAqB,OAAO,UAAU,SAAS,GAAG,GAAG,GAAG,IAAI;AAC5F,MAAI,OAAO,OAAW,MAAK;EAC3B,IAAI,OAAO,OAAO,yBAAyB,GAAG,EAAE;AAChD,MAAI,CAAC,SAAS,SAAS,OAAO,CAAC,EAAE,aAAa,KAAK,YAAY,KAAK,cAClE,QAAO;GAAE,YAAY;GAAM,KAAK,WAAW;AAAE,WAAO,EAAE;;GAAO;AAE/D,SAAO,eAAe,GAAG,IAAI,KAAK;OAChC,SAAS,GAAG,GAAG,GAAG,IAAI;AACxB,MAAI,OAAO,OAAW,MAAK;AAC3B,IAAE,MAAM,EAAE;;CAEd,IAAI,wCAAmC,uBAAwB,OAAO,UAAU,SAAS,GAAG,GAAG;AAC3F,SAAO,eAAe,GAAG,WAAW;GAAE,YAAY;GAAM,OAAO;GAAG,CAAC;MAClE,SAAS,GAAG,GAAG;AAChB,IAAE,aAAa;;CAEnB,IAAI,kCAA6B,iBAAkB,WAAY;EAC3D,IAAI,UAAU,SAAS,GAAG;AACtB,aAAU,OAAO,uBAAuB,SAAU,KAAG;IACjD,IAAI,KAAK,EAAE;AACX,SAAK,IAAI,KAAKA,IAAG,KAAI,OAAO,UAAU,eAAe,KAAKA,KAAG,EAAE,CAAE,IAAG,GAAG,UAAU;AACjF,WAAO;;AAEX,UAAO,QAAQ,EAAE;;AAErB,SAAO,SAAU,KAAK;AAClB,OAAI,OAAO,IAAI,WAAY,QAAO;GAClC,IAAI,SAAS,EAAE;AACf,OAAI,OAAO,MAAM;SAAK,IAAI,IAAI,QAAQ,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,IAAK,KAAI,EAAE,OAAO,UAAW,iBAAgB,QAAQ,KAAK,EAAE,GAAG;;AAChI,sBAAmB,QAAQ,IAAI;AAC/B,UAAO;;KAEX;AACJ,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,WAAW;AACnB,SAAQ,aAAa;AACrB,SAAQ,kBAAkB;CAC1B,MAAM,SAAS,aAAa,QAAQ,SAAS,CAAC;CAC9C,SAAS,SAAS,QAAQ,MAAM,OAAO;AAEnC,SADgB,OAAO,OAAO,QAAQ,OAAO,QAAQ,KAAK,EAAE,MAAM;;CAGtE,SAAS,WAAW,SAAS,QAAQ,UAAU;EAC3C,MAAM,iBAAiB,OAAO,OAAO,SAAS,MAAM;AACpD,SAAO;GACH,QAAQ,eAAe;GACvB,MAAM,IAAI,WAAW,OAAO,UAAU,eAAe,MAAM,CAAC;GAC/D;;;;;;;;CAQL,SAAS,gBAAgB,SAAS;EAC9B,MAAM,EAAE,QAAQ,SAAS,WAAW,QAAQ;AAC5C,SAAO,SAAS,QAAQ,KAAK"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { __commonJS, __require } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js
|
|
4
|
+
var require_bech32 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js": ((exports) => {
|
|
5
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === void 0) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return m[k];
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === void 0) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
20
|
+
Object.defineProperty(o, "default", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
value: v
|
|
23
|
+
});
|
|
24
|
+
}) : function(o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __importStar = exports && exports.__importStar || (function() {
|
|
28
|
+
var ownKeys = function(o) {
|
|
29
|
+
ownKeys = Object.getOwnPropertyNames || function(o$1) {
|
|
30
|
+
var ar = [];
|
|
31
|
+
for (var k in o$1) if (Object.prototype.hasOwnProperty.call(o$1, k)) ar[ar.length] = k;
|
|
32
|
+
return ar;
|
|
33
|
+
};
|
|
34
|
+
return ownKeys(o);
|
|
35
|
+
};
|
|
36
|
+
return function(mod) {
|
|
37
|
+
if (mod && mod.__esModule) return mod;
|
|
38
|
+
var result = {};
|
|
39
|
+
if (mod != null) {
|
|
40
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
}
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.toBech32 = toBech32;
|
|
48
|
+
exports.fromBech32 = fromBech32;
|
|
49
|
+
exports.normalizeBech32 = normalizeBech32;
|
|
50
|
+
const bech32 = __importStar(__require("bech32"));
|
|
51
|
+
function toBech32(prefix, data, limit) {
|
|
52
|
+
return bech32.encode(prefix, bech32.toWords(data), limit);
|
|
53
|
+
}
|
|
54
|
+
function fromBech32(address, limit = Infinity) {
|
|
55
|
+
const decodedAddress = bech32.decode(address, limit);
|
|
56
|
+
return {
|
|
57
|
+
prefix: decodedAddress.prefix,
|
|
58
|
+
data: new Uint8Array(bech32.fromWords(decodedAddress.words))
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Takes a bech32 address and returns a normalized (i.e. lower case) representation of it.
|
|
63
|
+
*
|
|
64
|
+
* The input is validated along the way, which makes this significantly safer than
|
|
65
|
+
* using `address.toLowerCase()`.
|
|
66
|
+
*/
|
|
67
|
+
function normalizeBech32(address) {
|
|
68
|
+
const { prefix, data } = fromBech32(address);
|
|
69
|
+
return toBech32(prefix, data);
|
|
70
|
+
}
|
|
71
|
+
}) });
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
export default require_bech32();
|
|
75
|
+
|
|
76
|
+
export { require_bech32 };
|
|
77
|
+
//# sourceMappingURL=bech32.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bech32.mjs","names":["o"],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toBech32 = toBech32;\nexports.fromBech32 = fromBech32;\nexports.normalizeBech32 = normalizeBech32;\nconst bech32 = __importStar(require(\"bech32\"));\nfunction toBech32(prefix, data, limit) {\n const address = bech32.encode(prefix, bech32.toWords(data), limit);\n return address;\n}\nfunction fromBech32(address, limit = Infinity) {\n const decodedAddress = bech32.decode(address, limit);\n return {\n prefix: decodedAddress.prefix,\n data: new Uint8Array(bech32.fromWords(decodedAddress.words)),\n };\n}\n/**\n * Takes a bech32 address and returns a normalized (i.e. lower case) representation of it.\n *\n * The input is validated along the way, which makes this significantly safer than\n * using `address.toLowerCase()`.\n */\nfunction normalizeBech32(address) {\n const { prefix, data } = fromBech32(address);\n return toBech32(prefix, data);\n}\n//# sourceMappingURL=bech32.js.map"],"x_google_ignoreList":[0],"mappings":";;;;CACA,IAAI,qCAAgC,oBAAqB,OAAO,UAAU,SAAS,GAAG,GAAG,GAAG,IAAI;AAC5F,MAAI,OAAO,OAAW,MAAK;EAC3B,IAAI,OAAO,OAAO,yBAAyB,GAAG,EAAE;AAChD,MAAI,CAAC,SAAS,SAAS,OAAO,CAAC,EAAE,aAAa,KAAK,YAAY,KAAK,cAClE,QAAO;GAAE,YAAY;GAAM,KAAK,WAAW;AAAE,WAAO,EAAE;;GAAO;AAE/D,SAAO,eAAe,GAAG,IAAI,KAAK;OAChC,SAAS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C;GAC/D;;;;;;;;CAQL,SAAS,gBAAgB,SAAS;EAC9B,MAAM,EAAE,QAAQ,SAAS,WAAW,QAAQ;AAC5C,SAAO,SAAS,QAAQ,KAAK"}
|
package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.cjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js
|
|
4
|
+
var require_hex = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js": ((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.toHex = toHex;
|
|
7
|
+
exports.fromHex = fromHex;
|
|
8
|
+
function toHex(data) {
|
|
9
|
+
let out = "";
|
|
10
|
+
for (const byte of data) out += ("0" + byte.toString(16)).slice(-2);
|
|
11
|
+
return out;
|
|
12
|
+
}
|
|
13
|
+
function fromHex(hexstring) {
|
|
14
|
+
if (hexstring.length % 2 !== 0) throw new Error("hex string length must be a multiple of 2");
|
|
15
|
+
const out = new Uint8Array(hexstring.length / 2);
|
|
16
|
+
for (let i = 0; i < out.length; i++) {
|
|
17
|
+
const j = 2 * i;
|
|
18
|
+
const hexByteAsString = hexstring.slice(j, j + 2);
|
|
19
|
+
if (!hexByteAsString.match(/[0-9a-f]{2}/i)) throw new Error("hex string contains invalid characters");
|
|
20
|
+
out[i] = parseInt(hexByteAsString, 16);
|
|
21
|
+
}
|
|
22
|
+
return out;
|
|
23
|
+
}
|
|
24
|
+
}) });
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
Object.defineProperty(exports, 'default', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return require_hex();
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=hex.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hex.cjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toHex = toHex;\nexports.fromHex = fromHex;\nfunction toHex(data) {\n let out = \"\";\n for (const byte of data) {\n out += (\"0\" + byte.toString(16)).slice(-2);\n }\n return out;\n}\nfunction fromHex(hexstring) {\n if (hexstring.length % 2 !== 0) {\n throw new Error(\"hex string length must be a multiple of 2\");\n }\n const out = new Uint8Array(hexstring.length / 2);\n for (let i = 0; i < out.length; i++) {\n const j = 2 * i;\n const hexByteAsString = hexstring.slice(j, j + 2);\n if (!hexByteAsString.match(/[0-9a-f]{2}/i)) {\n throw new Error(\"hex string contains invalid characters\");\n }\n out[i] = parseInt(hexByteAsString, 16);\n }\n return out;\n}\n//# sourceMappingURL=hex.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,QAAQ;AAChB,SAAQ,UAAU;CAClB,SAAS,MAAM,MAAM;EACjB,IAAI,MAAM;AACV,OAAK,MAAM,QAAQ,KACf,SAAQ,MAAM,KAAK,SAAS,GAAG,EAAE,MAAM,GAAG;AAE9C,SAAO;;CAEX,SAAS,QAAQ,WAAW;AACxB,MAAI,UAAU,SAAS,MAAM,EACzB,OAAM,IAAI,MAAM,4CAA4C;EAEhE,MAAM,MAAM,IAAI,WAAW,UAAU,SAAS,EAAE;AAChD,OAAK,IAAI,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;GACjC,MAAM,IAAI,IAAI;GACd,MAAM,kBAAkB,UAAU,MAAM,GAAG,IAAI,EAAE;AACjD,OAAI,CAAC,gBAAgB,MAAM,eAAe,CACtC,OAAM,IAAI,MAAM,yCAAyC;AAE7D,OAAI,KAAK,SAAS,iBAAiB,GAAG;;AAE1C,SAAO"}
|
package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.mjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js
|
|
4
|
+
var require_hex = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js": ((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.toHex = toHex;
|
|
7
|
+
exports.fromHex = fromHex;
|
|
8
|
+
function toHex(data) {
|
|
9
|
+
let out = "";
|
|
10
|
+
for (const byte of data) out += ("0" + byte.toString(16)).slice(-2);
|
|
11
|
+
return out;
|
|
12
|
+
}
|
|
13
|
+
function fromHex(hexstring) {
|
|
14
|
+
if (hexstring.length % 2 !== 0) throw new Error("hex string length must be a multiple of 2");
|
|
15
|
+
const out = new Uint8Array(hexstring.length / 2);
|
|
16
|
+
for (let i = 0; i < out.length; i++) {
|
|
17
|
+
const j = 2 * i;
|
|
18
|
+
const hexByteAsString = hexstring.slice(j, j + 2);
|
|
19
|
+
if (!hexByteAsString.match(/[0-9a-f]{2}/i)) throw new Error("hex string contains invalid characters");
|
|
20
|
+
out[i] = parseInt(hexByteAsString, 16);
|
|
21
|
+
}
|
|
22
|
+
return out;
|
|
23
|
+
}
|
|
24
|
+
}) });
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export default require_hex();
|
|
28
|
+
|
|
29
|
+
export { require_hex };
|
|
30
|
+
//# sourceMappingURL=hex.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hex.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toHex = toHex;\nexports.fromHex = fromHex;\nfunction toHex(data) {\n let out = \"\";\n for (const byte of data) {\n out += (\"0\" + byte.toString(16)).slice(-2);\n }\n return out;\n}\nfunction fromHex(hexstring) {\n if (hexstring.length % 2 !== 0) {\n throw new Error(\"hex string length must be a multiple of 2\");\n }\n const out = new Uint8Array(hexstring.length / 2);\n for (let i = 0; i < out.length; i++) {\n const j = 2 * i;\n const hexByteAsString = hexstring.slice(j, j + 2);\n if (!hexByteAsString.match(/[0-9a-f]{2}/i)) {\n throw new Error(\"hex string contains invalid characters\");\n }\n out[i] = parseInt(hexByteAsString, 16);\n }\n return out;\n}\n//# sourceMappingURL=hex.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,QAAQ;AAChB,SAAQ,UAAU;CAClB,SAAS,MAAM,MAAM;EACjB,IAAI,MAAM;AACV,OAAK,MAAM,QAAQ,KACf,SAAQ,MAAM,KAAK,SAAS,GAAG,EAAE,MAAM,GAAG;AAE9C,SAAO;;CAEX,SAAS,QAAQ,WAAW;AACxB,MAAI,UAAU,SAAS,MAAM,EACzB,OAAM,IAAI,MAAM,4CAA4C;EAEhE,MAAM,MAAM,IAAI,WAAW,UAAU,SAAS,EAAE;AAChD,OAAK,IAAI,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;GACjC,MAAM,IAAI,IAAI;GACd,MAAM,kBAAkB,UAAU,MAAM,GAAG,IAAI,EAAE;AACjD,OAAI,CAAC,gBAAgB,MAAM,eAAe,CACtC,OAAM,IAAI,MAAM,yCAAyC;AAE7D,OAAI,KAAK,SAAS,iBAAiB,GAAG;;AAE1C,SAAO"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_ascii$1 = require('./ascii.cjs');
|
|
3
|
+
const require_base64$1 = require('./base64.cjs');
|
|
4
|
+
const require_bech32$1 = require('./bech32.cjs');
|
|
5
|
+
const require_hex$1 = require('./hex.cjs');
|
|
6
|
+
const require_rfc3339$1 = require('./rfc3339.cjs');
|
|
7
|
+
const require_utf8$1 = require('./utf8.cjs');
|
|
8
|
+
|
|
9
|
+
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/index.js
|
|
10
|
+
var require_build = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/index.js": ((exports) => {
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.toUtf8 = exports.fromUtf8 = exports.toRfc3339 = exports.fromRfc3339 = exports.toHex = exports.fromHex = exports.toBech32 = exports.normalizeBech32 = exports.fromBech32 = exports.toBase64 = exports.fromBase64 = exports.toAscii = exports.fromAscii = void 0;
|
|
13
|
+
var ascii_1 = require_ascii$1.default;
|
|
14
|
+
Object.defineProperty(exports, "fromAscii", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function() {
|
|
17
|
+
return ascii_1.fromAscii;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "toAscii", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function() {
|
|
23
|
+
return ascii_1.toAscii;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
var base64_1 = require_base64$1.default;
|
|
27
|
+
Object.defineProperty(exports, "fromBase64", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function() {
|
|
30
|
+
return base64_1.fromBase64;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "toBase64", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function() {
|
|
36
|
+
return base64_1.toBase64;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
var bech32_1 = require_bech32$1.default;
|
|
40
|
+
Object.defineProperty(exports, "fromBech32", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function() {
|
|
43
|
+
return bech32_1.fromBech32;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "normalizeBech32", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function() {
|
|
49
|
+
return bech32_1.normalizeBech32;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "toBech32", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function() {
|
|
55
|
+
return bech32_1.toBech32;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
var hex_1 = require_hex$1.default;
|
|
59
|
+
Object.defineProperty(exports, "fromHex", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function() {
|
|
62
|
+
return hex_1.fromHex;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, "toHex", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function() {
|
|
68
|
+
return hex_1.toHex;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
var rfc3339_1 = require_rfc3339$1.default;
|
|
72
|
+
Object.defineProperty(exports, "fromRfc3339", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function() {
|
|
75
|
+
return rfc3339_1.fromRfc3339;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "toRfc3339", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function() {
|
|
81
|
+
return rfc3339_1.toRfc3339;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
var utf8_1 = require_utf8$1.default;
|
|
85
|
+
Object.defineProperty(exports, "fromUtf8", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: function() {
|
|
88
|
+
return utf8_1.fromUtf8;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(exports, "toUtf8", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: function() {
|
|
94
|
+
return utf8_1.toUtf8;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}) });
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
Object.defineProperty(exports, 'default', {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () {
|
|
103
|
+
return require_build();
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toUtf8 = exports.fromUtf8 = exports.toRfc3339 = exports.fromRfc3339 = exports.toHex = exports.fromHex = exports.toBech32 = exports.normalizeBech32 = exports.fromBech32 = exports.toBase64 = exports.fromBase64 = exports.toAscii = exports.fromAscii = void 0;\nvar ascii_1 = require(\"./ascii\");\nObject.defineProperty(exports, \"fromAscii\", { enumerable: true, get: function () { return ascii_1.fromAscii; } });\nObject.defineProperty(exports, \"toAscii\", { enumerable: true, get: function () { return ascii_1.toAscii; } });\nvar base64_1 = require(\"./base64\");\nObject.defineProperty(exports, \"fromBase64\", { enumerable: true, get: function () { return base64_1.fromBase64; } });\nObject.defineProperty(exports, \"toBase64\", { enumerable: true, get: function () { return base64_1.toBase64; } });\nvar bech32_1 = require(\"./bech32\");\nObject.defineProperty(exports, \"fromBech32\", { enumerable: true, get: function () { return bech32_1.fromBech32; } });\nObject.defineProperty(exports, \"normalizeBech32\", { enumerable: true, get: function () { return bech32_1.normalizeBech32; } });\nObject.defineProperty(exports, \"toBech32\", { enumerable: true, get: function () { return bech32_1.toBech32; } });\nvar hex_1 = require(\"./hex\");\nObject.defineProperty(exports, \"fromHex\", { enumerable: true, get: function () { return hex_1.fromHex; } });\nObject.defineProperty(exports, \"toHex\", { enumerable: true, get: function () { return hex_1.toHex; } });\nvar rfc3339_1 = require(\"./rfc3339\");\nObject.defineProperty(exports, \"fromRfc3339\", { enumerable: true, get: function () { return rfc3339_1.fromRfc3339; } });\nObject.defineProperty(exports, \"toRfc3339\", { enumerable: true, get: function () { return rfc3339_1.toRfc3339; } });\nvar utf8_1 = require(\"./utf8\");\nObject.defineProperty(exports, \"fromUtf8\", { enumerable: true, get: function () { return utf8_1.fromUtf8; } });\nObject.defineProperty(exports, \"toUtf8\", { enumerable: true, get: function () { return utf8_1.toUtf8; } });\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,SAAS,QAAQ,WAAW,QAAQ,YAAY,QAAQ,cAAc,QAAQ,QAAQ,QAAQ,UAAU,QAAQ,WAAW,QAAQ,kBAAkB,QAAQ,aAAa,QAAQ,WAAW,QAAQ,aAAa,QAAQ,UAAU,QAAQ,YAAY,KAAK;CACrQ,IAAI;AACJ,QAAO,eAAe,SAAS,aAAa;EAAE,YAAY;EAAM,KAAK,WAAY;AAAE,UAAO,QAAQ;;EAAc,CAAC;AACjH,QAAO,eAAe,SAAS,WAAW;EAAE,YAAY;EAAM,KAAK,WAAY;AAAE,UAAO,QAAQ;;EAAY,CAAC;CAC7G,IAAI;AACJ,QAAO,eAAe,SAAS,cAAc;EAAE,YAAY;EAAM,KAAK,WAAY;AAAE,UAAO,SAAS;;EAAe,CAAC;AACpH,QAAO,eAAe,SAAS,YAAY;EAAE,YAAY;EAAM,KAAK,WAAY;AAAE,UAAO,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