@did-btcr2/bitcoin 0.5.2 → 0.6.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/.tsbuildinfo +1 -0
- package/dist/cjs/client/http.js +5 -2
- package/dist/cjs/client/rest/address.js +5 -2
- package/dist/cjs/client/rest/block.js +7 -4
- package/dist/cjs/client/rest/index.js +17 -14
- package/dist/cjs/client/rest/protocol.js +7 -9
- package/dist/cjs/client/rest/transaction.js +5 -2
- package/dist/cjs/client/rpc/index.js +16 -14
- package/dist/cjs/client/rpc/interface.js +2 -2
- package/dist/cjs/client/rpc/json-rpc.js +15 -12
- package/dist/cjs/client/rpc/protocol.js +11 -8
- package/dist/cjs/client/utils.js +6 -3
- package/dist/cjs/connection.js +16 -13
- package/dist/cjs/constants.js +10 -8
- package/dist/cjs/errors.js +7 -3
- package/dist/cjs/index.js +41 -16
- package/dist/cjs/network.js +20 -6
- package/dist/cjs/types.js +5 -3
- package/dist/esm/client/rest/index.js.map +1 -1
- package/dist/esm/client/rest/protocol.js +0 -5
- package/dist/esm/client/rest/protocol.js.map +1 -1
- package/dist/esm/client/rpc/index.js +0 -1
- package/dist/esm/client/rpc/index.js.map +1 -1
- package/dist/esm/client/rpc/json-rpc.js.map +1 -1
- package/dist/esm/connection.js +1 -1
- package/dist/esm/connection.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/network.js +16 -4
- package/dist/esm/network.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/types/client/rest/address.d.ts +3 -3
- package/dist/types/client/rest/address.d.ts.map +1 -1
- package/dist/types/client/rest/block.d.ts +3 -3
- package/dist/types/client/rest/block.d.ts.map +1 -1
- package/dist/types/client/rest/index.d.ts +2 -2
- package/dist/types/client/rest/index.d.ts.map +1 -1
- package/dist/types/client/rest/protocol.d.ts +2 -2
- package/dist/types/client/rest/protocol.d.ts.map +1 -1
- package/dist/types/client/rest/transaction.d.ts +4 -4
- package/dist/types/client/rest/transaction.d.ts.map +1 -1
- package/dist/types/client/rpc/index.d.ts +4 -4
- package/dist/types/client/rpc/index.d.ts.map +1 -1
- package/dist/types/client/rpc/interface.d.ts +1 -1
- package/dist/types/client/rpc/interface.d.ts.map +1 -1
- package/dist/types/client/rpc/json-rpc.d.ts +2 -2
- package/dist/types/client/rpc/json-rpc.d.ts.map +1 -1
- package/dist/types/client/rpc/protocol.d.ts +2 -2
- package/dist/types/client/rpc/protocol.d.ts.map +1 -1
- package/dist/types/connection.d.ts +5 -5
- package/dist/types/connection.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/network.d.ts +12 -2
- package/dist/types/network.d.ts.map +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +4 -5
- package/src/client/rest/address.ts +3 -3
- package/src/client/rest/block.ts +3 -3
- package/src/client/rest/index.ts +3 -2
- package/src/client/rest/protocol.ts +2 -12
- package/src/client/rest/transaction.ts +4 -4
- package/src/client/rpc/index.ts +4 -8
- package/src/client/rpc/interface.ts +1 -1
- package/src/client/rpc/json-rpc.ts +3 -2
- package/src/client/rpc/protocol.ts +2 -2
- package/src/connection.ts +5 -5
- package/src/index.ts +1 -0
- package/src/network.ts +25 -5
- package/src/types.ts +2 -9
- package/dist/cjs/client/http.js.map +0 -1
- package/dist/cjs/client/rest/address.js.map +0 -1
- package/dist/cjs/client/rest/block.js.map +0 -1
- package/dist/cjs/client/rest/index.js.map +0 -1
- package/dist/cjs/client/rest/protocol.js.map +0 -1
- package/dist/cjs/client/rest/transaction.js.map +0 -1
- package/dist/cjs/client/rpc/index.js.map +0 -1
- package/dist/cjs/client/rpc/interface.js.map +0 -1
- package/dist/cjs/client/rpc/json-rpc.js.map +0 -1
- package/dist/cjs/client/rpc/protocol.js.map +0 -1
- package/dist/cjs/client/utils.js.map +0 -1
- package/dist/cjs/connection.js.map +0 -1
- package/dist/cjs/constants.js.map +0 -1
- package/dist/cjs/errors.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/network.js.map +0 -1
- package/dist/cjs/types.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/@scure+bip32@1.7.0/node_modules/@scure/bip32/lib/esm/index.d.ts","../../common/dist/types/types.d.ts","../../common/dist/types/canonicalization.d.ts","../../common/dist/types/errors.d.ts","../../common/dist/types/json-patch.d.ts","../../common/dist/types/utils/date.d.ts","../../common/dist/types/utils/json.d.ts","../../common/dist/types/utils/string.d.ts","../../common/dist/types/index.d.ts","../src/client/http.ts","../src/types.ts","../src/client/rest/protocol.ts","../src/client/rest/address.ts","../src/errors.ts","../src/client/rest/block.ts","../src/client/rest/transaction.ts","../src/client/rest/index.ts","../src/client/rpc/interface.ts","../src/client/utils.ts","../src/client/rpc/protocol.ts","../src/client/rpc/json-rpc.ts","../src/client/rpc/index.ts","../../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.d.ts","../../../node_modules/.pnpm/@noble+curves@1.9.7/node_modules/@noble/curves/esm/utils.d.ts","../../../node_modules/.pnpm/@noble+curves@1.9.7/node_modules/@noble/curves/esm/abstract/modular.d.ts","../../../node_modules/.pnpm/@noble+curves@1.9.7/node_modules/@noble/curves/esm/abstract/curve.d.ts","../../../node_modules/.pnpm/@noble+curves@1.9.7/node_modules/@noble/curves/esm/abstract/weierstrass.d.ts","../../../node_modules/.pnpm/@noble+curves@1.9.7/node_modules/@noble/curves/esm/_shortw_utils.d.ts","../../../node_modules/.pnpm/@noble+curves@1.9.7/node_modules/@noble/curves/esm/abstract/hash-to-curve.d.ts","../../../node_modules/.pnpm/@noble+curves@1.9.7/node_modules/@noble/curves/esm/secp256k1.d.ts","../../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.d.ts","../../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha2.d.ts","../../../node_modules/.pnpm/@scure+btc-signer@1.8.1/node_modules/@scure/btc-signer/esm/utils.d.ts","../../../node_modules/.pnpm/@scure+base@1.2.6/node_modules/@scure/base/lib/esm/index.d.ts","../../../node_modules/.pnpm/micro-packed@0.7.3/node_modules/micro-packed/lib/esm/index.d.ts","../../../node_modules/.pnpm/@scure+btc-signer@1.8.1/node_modules/@scure/btc-signer/esm/psbt.d.ts","../../../node_modules/.pnpm/@scure+btc-signer@1.8.1/node_modules/@scure/btc-signer/esm/script.d.ts","../../../node_modules/.pnpm/@scure+btc-signer@1.8.1/node_modules/@scure/btc-signer/esm/payment.d.ts","../../../node_modules/.pnpm/@scure+btc-signer@1.8.1/node_modules/@scure/btc-signer/esm/transaction.d.ts","../../../node_modules/.pnpm/@scure+btc-signer@1.8.1/node_modules/@scure/btc-signer/esm/utxo.d.ts","../../../node_modules/.pnpm/@scure+btc-signer@1.8.1/node_modules/@scure/btc-signer/esm/index.d.ts","../src/network.ts","../src/constants.ts","../src/connection.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.18.4/node_modules/@types/node/index.d.ts"],"fileIdsList":[[81,84,108,157],[82,108,157],[81,82,83,108,157],[108,157],[81,82,83,84,85,86,108,157],[80,108,157],[80,88,108,157],[90,93,94,95,96,97,108,157],[90,91,92,93,94,108,157],[90,92,108,157],[92,108,157],[90,92,93,94,95,108,157],[87,89,108,157],[90,92,93,96,108,157],[108,154,157],[108,156,157],[157],[108,157,162,191],[108,157,158,163,168,176,188,199],[108,157,158,159,168,176],[103,104,105,108,157],[108,157,160,200],[108,157,161,162,169,177],[108,157,162,188,196],[108,157,163,165,168,176],[108,156,157,164],[108,157,165,166],[108,157,167,168],[108,156,157,168],[108,157,168,169,170,188,199],[108,157,168,169,170,183,188,191],[108,150,157,165,168,171,176,188,199],[108,157,168,169,171,172,176,188,196,199],[108,157,171,173,188,196,199],[106,107,108,109,110,111,112,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205],[108,157,168,174],[108,157,175,199],[108,157,165,168,176,188],[108,157,177],[108,157,178],[108,156,157,179],[108,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205],[108,157,181],[108,157,182],[108,157,168,183,184],[108,157,183,185,200,202],[108,157,168,188,189,191],[108,157,190,191],[108,157,188,189],[108,157,191],[108,157,192],[108,154,157,188,193],[108,157,168,194,195],[108,157,194,195],[108,157,162,176,188,196],[108,157,197],[108,157,176,198],[108,157,171,182,199],[108,157,162,200],[108,157,188,201],[108,157,175,202],[108,157,203],[108,150,157],[108,157,168,170,179,188,191,199,201,202,204],[108,157,188,205],[91,108,157],[108,122,126,157,199],[108,122,157,188,199],[108,117,157],[108,119,122,157,196,199],[108,157,176,196],[108,157,206],[108,117,157,206],[108,119,122,157,176,199],[108,114,115,118,121,157,168,188,199],[108,122,129,157],[108,114,120,157],[108,122,143,144,157],[108,118,122,157,191,199,206],[108,143,157,206],[108,116,117,157,206],[108,122,157],[108,116,117,118,119,120,121,122,123,124,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,144,145,146,147,148,149,157],[108,122,137,157],[108,122,129,130,157],[108,120,122,130,131,157],[108,121,157],[108,114,117,122,157],[108,122,126,130,131,157],[108,126,157],[108,120,122,125,157,199],[108,114,119,122,129,157],[108,157,188],[108,117,122,143,157,204,206],[67,68,69,108,157],[67,68,69,71,108,157],[66,67,68,69,70,72,73,108,157],[66,67,68,108,157],[66,67,68,69,108,157],[66,67,68,71,75,78,108,157],[68,108,157],[67,68,71,76,77,108,157],[67,68,71,76,108,157],[66,67,68,74,79,99,100,108,157],[67,68,69,70,71,72,73,74,75,76,77,78,79,99,100,101,108,157],[90,98,108,157],[66,108,157],[59,108,157],[59,60,61,62,63,64,65,108,157],[58,108,157]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ddd1ca692a6c656ade0a85c9a722b3679b3d0bf113b699908e0325cf3537dbe","impliedFormat":99},{"version":"1c45c0cd36427144bf788de5e5047825f4b33007ccf2842ba8f071f88c65745a","impliedFormat":99},{"version":"b5c4e5828cb4824e1ccb6cc77133f8978f1ff309f7432d47a8a9e0a475ce430f","impliedFormat":99},{"version":"8d6915f6a04d1de1afb7898d90eb57615ab9a16c46e5b3cf07c32394b3f2a012","impliedFormat":99},{"version":"893a3b3ac940daab19293ab7c263b0c9dab255d5a38e525c99876d089829514e","impliedFormat":99},{"version":"13b5d7c6770d510c0ce592f49e483dde921a581113d9b5ee72c04fdd213f9f3f","impliedFormat":99},{"version":"3f69d48f94aed50fa95537d3d6ef8ef209277e39473d084d6d8225d6d8a06343","impliedFormat":99},{"version":"4267e8deaca127eb366458660b2b02ea4bb7423a11b1fe4b602286f18a9c3e62","impliedFormat":99},{"version":"08fbbaf139bf1c22b44183f82578d25dfdd1b8f1b40040c67e24eec9e2d50e7b","impliedFormat":99},{"version":"4d564fca67d2b2d1e0ab1be82be54f8cd3b6cd605d2897ad308027cddae14cea","signature":"ef795d09efba70b54dc1a8c858ee11639da381ac57c26e51819cdb342e788cf5","impliedFormat":99},{"version":"dba2f72fcdff129183e0038fc24b0f85a1be907b9c733ee0df39cfcb39684149","signature":"4c09fb938d91a1d61c32b742db09fd0e80cc5e76b778c3596041246aa8ce7a43","impliedFormat":99},{"version":"7aa184416ddbd1fb15f1802c56a652abbbbeb7410342ff961c7a6ccd650532fd","signature":"29a96b60314b83ab031c67a27e3049c8e6606981c9b8e8f373f4b4e535095aea","impliedFormat":99},{"version":"0432dd25990832acd8f908ed610f2616f7c7950a6b19950cf83fef2819c914f6","signature":"95c7128d61ed7686df76fb6a9e59fe43c727567584c798e58687aff3be4d5dce","impliedFormat":99},{"version":"79f34c3c9dab23de4476b2aa4d0d6214a34318af7f6881a6a087ffce53148648","signature":"96ff73cfdaac7e88e18cdf40ca658e8ecc5d5252416f431793210fb7396bced4","impliedFormat":99},{"version":"ae3887d31059b48e3e79458897eeb5570a5df1792b5b2f05e2e6f2cc046a900e","signature":"fa5c042cbf8efb51df4747e553dd337ff6d70fa5912dc06b939403148a88b1b4","impliedFormat":99},{"version":"07703e6203fc801c0d39c7c3368fe093298cbb536102dd03205348b58ea39394","signature":"f595d3e777b6d71a798a4d157c095fb8ad2869f3f462f81ab8c463979381467b","impliedFormat":99},{"version":"be74f54bd9bd7516cc0c95f13c49c2090fdae29fcc60dcb3d03feb0439858d95","signature":"447a3e44902cfddbd3e2486c1c1ddec1b86711591d71525bda3fc330850cf830","impliedFormat":99},{"version":"31e9ffedb885ce5b52bbba7e083e7a58852b0fd2f21237f2be73fffb267f4a0a","signature":"5fa3b696036cb52ef64a9d3cb3a13d19750fdbe2d443c0a052a596f60b21a429","impliedFormat":99},{"version":"aafc9a6b6e426d1e00782f3d0f5865b16560b22b14d036a798e5c0bfe1e70257","signature":"fbfad1d6b9d361cde11f8fb1ddc8c4bb2683e0dc3008586f4dd0f5165e726774","impliedFormat":99},{"version":"04c0804520b6ac963ca42a8ad24c51ffb7ffd095b2d941d8d6bb698410f10f15","signature":"0ac3b4b898bc801dae41b57783445c675a06655a8d0d2cdc4730f4b6c812e6c8","impliedFormat":99},{"version":"4c62f0c0eb6d3328b67186343b59e216dc7fa5b45057dc590d2376235d02d402","signature":"2bd794d3e74c8f6034fadbc42fef6a10572ac8355e3fe34f338fb45e4d8f4550","impliedFormat":99},{"version":"88a9831e89466aeb700f1554a5cd7e455962f090ed9e936ce44f8d58a3944dca","signature":"29d884e1420a370a9e34cd5e9e5d6593000967464b4b275555be3e6823168b83","impliedFormat":99},{"version":"b0bf8f866d3c05dce6c2778455252391bbc3fa0e8c1675e78dcee8fab2e1dd96","impliedFormat":99},{"version":"cdb9aa7409622f2b54fbaa4c05badf6c18a4d6efa79883928f0c312d81844e0a","impliedFormat":99},{"version":"5d82e1ce7f42896df4695ef76ef13e1dce77507450134dbec4178e486929566e","impliedFormat":99},{"version":"0488374d4c4109d628436e850b24615bb321e737f642c81fde5f832e16461148","impliedFormat":99},{"version":"908901f3b23c77da2470d9081b1deb16f6dcc01cad792a0f91ba99e3eeb152cd","impliedFormat":99},{"version":"458f61b038ce1d3db7fc917139fb53e6037f6ab86bbecb3927afc2de60afcc2a","impliedFormat":99},{"version":"48f7bf3b39f234811d4b60817abf3fb4c056e6dd65a0293646afdec16bdc5df1","impliedFormat":99},{"version":"fdf613a6dbd67a2074a6812cc6042dd504bd95362a2baf37c3e217bf3a884418","impliedFormat":99},{"version":"675058f412cecd4e2c028e1a74aa34d5510ab03ed78dae712437890bb0aba6ba","impliedFormat":99},{"version":"cf6dc97686cc424e560bc9938f79964cccecd270ad144ac0ba85f2d8caa1115d","impliedFormat":99},{"version":"96a90b9e5a3b7f3bbd502d727c567fb79812882cead99f3d40bdec5e606aea4b","impliedFormat":99},{"version":"400bb49269c73740c04418c3739ddab3675428d51b203fc187c3fbf278511f24","impliedFormat":99},{"version":"600b2a7ea7d4c4d5b46a1ed665b06acb4826f53d8b84a65bb465a19555abe82b","impliedFormat":99},{"version":"0e73bd8526a821d92fcc9028bd8db6735a3505e3893dc1d5d2f3b64e91f6caf3","impliedFormat":99},{"version":"2d4b8aa99365233b93e768ca5d25b230577c0f058d3c563875d47248563a575d","impliedFormat":99},{"version":"c581b951e95ca0048794ccf228be5391c5de15d030b7484b8a49675aea856963","impliedFormat":99},{"version":"d0b265d94707b6415bd31f9cbef5df48f23be45a2db6372e6fbf3909586820f9","impliedFormat":99},{"version":"737c24c848da99ebdd63fd0894997d143adf0e6378f4abb802833d73cb7c99e5","impliedFormat":99},{"version":"ef1e1c11cfd5efaac8ce706dafe9ba7a6aedc6ae4ac4b04297eac7db6e91679a","impliedFormat":99},{"version":"ebc41d029e3d9ed7fdb5acaa525233c7e6ec5128cf13e484d7a120809bdbe2f8","signature":"a73a69fccd8d33732f9404f7d560867d7cc8008b8fae50ec0381ae54104108cb","impliedFormat":99},{"version":"295ed1500270bb05e894d59811354ba6f9e58679e3004a28a2f04d6b390ee610","signature":"068db5fb639d1643ee2a126ae8fc22338f18c4244418ed017da1f1256000fac6","impliedFormat":99},{"version":"e13c7806693770c87cdc57b14d58d871e16029ebe74e18e4105c6c81e3ceaebd","signature":"1e45e66031f254f05859ea181592b54547e8cd88a519410916b25192ca9cc39c","impliedFormat":99},{"version":"5ce93b3e7a52bed03aad9ea3ea0861a2853e43faae28c023b8f6571417364ddd","signature":"ea9459d6fa3db5fb87094a79b1527a76b14c612507aebd19e2d1ff1f1a9f074a","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"d802f0e6b5188646d307f070d83512e8eb94651858de8a82d1e47f60fb6da4e2","affectsGlobalScope":true,"impliedFormat":1},{"version":"17bb4105d0ea2ab2bfcb4f77ff8585691d5569c90ae15f4fa8d5ff9fb42b910b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"456fa0c0ab68731564917642b977c71c3b7682240685b118652fb9253c9a6429","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"2cbe0621042e2a68c7cbce5dfed3906a1862a16a7d496010636cdbdb91341c0f","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"a38efe83ff77c34e0f418a806a01ca3910c02ee7d64212a59d59bca6c2c38fa1","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"7b988bc259155186e6b09dd8b32856d9e45c8d261e63c19abaf590bb6550f922","affectsGlobalScope":true,"impliedFormat":1},{"version":"fe7b52f993f9336b595190f3c1fcc259bb2cf6dcb4ac8fdb1e0454cc5df7301e","impliedFormat":1},{"version":"e9b97d69510658d2f4199b7d384326b7c4053b9e6645f5c19e1c2a54ede427fc","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"81711af669f63d43ccb4c08e15beda796656dd46673d0def001c7055db53852d","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"bdba81959361810be44bcfdd283f4d601e406ab5ad1d2bdff0ed480cf983c9d7","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"b326f4813b90d230ec3950f66bd5b5ce3971aac5fac67cfafc54aa07b39fd07f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c8420c7c2b778b334587a4c0311833b5212ff2f684ea37b2f0e2b117f1d7210d","impliedFormat":1},{"version":"b6b08215821c9833b0e8e30ea1ed178009f2f3ff5d7fae3865ee42f97cc87784","impliedFormat":1},{"version":"9757d0daeeb72efec2c546ddcf6a237a821e57eb61c72e5bc8e6c22e968de63c","impliedFormat":1},{"version":"73cf6cc19f16c0191e4e9d497ab0c11c7b38f1ca3f01ad0f09a3a5a971aac4b8","impliedFormat":1},{"version":"528b62e4272e3ddfb50e8eed9e359dedea0a4d171c3eb8f337f4892aac37b24b","impliedFormat":1},{"version":"ed58b9974bb3114f39806c9c2c6258c4ffa6a255921976a7c53dfa94bf178f42","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"f72bc8fe16da67e4e3268599295797b202b95e54bd215a03f97e925dd1502a36","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"915e18c559321c0afaa8d34674d3eb77e1ded12c3e85bf2a9891ec48b07a1ca5","affectsGlobalScope":true,"impliedFormat":1},{"version":"e9727a118ce60808e62457c89762fe5a4e2be8e9fd0112d12432d1bafdba942f","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"70b57b5529051497e9f6482b76d91c0dcbb103d9ead8a0549f5bab8f65e5d031","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"3a90b9beac4c2bfdf6517faae0940a042b81652badf747df0a7c7593456f6ebe","impliedFormat":1},{"version":"8302157cd431b3943eed09ad439b4441826c673d9f870dcb0e1f48e891a4211e","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"dba28a419aec76ed864ef43e5f577a5c99a010c32e5949fe4e17a4d57c58dd11","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"a5890565ed564c7b29eb1b1038d4e10c03a3f5231b0a8d48fea4b41ab19f4f46","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"98ffdf93dfdd206516971d28e3e473f417a5cfd41172e46b4ce45008f640588e","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"cee74f5970ffc01041e5bffc3f324c20450534af4054d2c043cb49dbbd4ec8f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a654e0d950353614ba4637a8de4f9d367903a0692b748e11fccf8c880c99735","affectsGlobalScope":true,"impliedFormat":1},{"version":"42da246c46ca3fd421b6fd88bb4466cda7137cf33e87ba5ceeded30219c428bd","impliedFormat":1},{"version":"3a051941721a7f905544732b0eb819c8d88333a96576b13af08b82c4f17581e4","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"3006130eae582d9bc732ab302ac25bbd86777dbac3a9eece81a2c77570f65e9b","affectsGlobalScope":true,"impliedFormat":1},{"version":"db3d77167a7da6c5ba0c51c5b654820e3464093f21724ccd774c0b9bc3f81bc0","impliedFormat":1},{"version":"bdf1feb266c87edbee61f12ceaaef60ab0e2e5dba70ca19360b6448911c53d52","impliedFormat":1}],"root":[[67,79],[99,102]],"options":{"composite":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"esModuleInterop":true,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"outDir":"./esm","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[85,1],[83,2],[86,3],[82,4],[84,3],[87,5],[81,6],[88,6],[89,7],[80,4],[91,4],[58,4],[98,8],[95,9],[93,10],[94,11],[96,12],[90,13],[97,14],[154,15],[155,15],[156,16],[108,17],[157,18],[158,19],[159,20],[103,4],[106,21],[104,4],[105,4],[160,22],[161,23],[162,24],[163,25],[164,26],[165,27],[166,27],[167,28],[168,29],[169,30],[170,31],[109,4],[107,4],[171,32],[172,33],[173,34],[206,35],[174,36],[175,37],[176,38],[177,39],[178,40],[179,41],[180,42],[181,43],[182,44],[183,45],[184,45],[185,46],[186,4],[187,4],[188,47],[190,48],[189,49],[191,50],[192,51],[193,52],[194,53],[195,54],[196,55],[197,56],[198,57],[199,58],[200,59],[201,60],[202,61],[203,62],[110,4],[111,4],[112,4],[151,63],[152,4],[153,4],[204,64],[205,65],[113,4],[92,66],[56,4],[57,4],[11,4],[10,4],[2,4],[12,4],[13,4],[14,4],[15,4],[16,4],[17,4],[18,4],[19,4],[3,4],[20,4],[21,4],[4,4],[22,4],[26,4],[23,4],[24,4],[25,4],[27,4],[28,4],[29,4],[5,4],[30,4],[31,4],[32,4],[33,4],[6,4],[37,4],[34,4],[35,4],[36,4],[38,4],[7,4],[39,4],[44,4],[45,4],[40,4],[41,4],[42,4],[43,4],[8,4],[49,4],[46,4],[47,4],[48,4],[50,4],[9,4],[51,4],[52,4],[53,4],[55,4],[54,4],[1,4],[129,67],[139,68],[128,67],[149,69],[120,70],[119,71],[148,72],[142,73],[147,74],[122,75],[136,76],[121,77],[145,78],[117,79],[116,72],[146,80],[118,81],[123,82],[124,4],[127,82],[114,4],[150,83],[140,84],[131,85],[132,86],[134,87],[130,88],[133,89],[143,72],[125,90],[126,91],[135,92],[115,93],[138,84],[137,82],[141,4],[144,94],[67,4],[70,95],[72,96],[74,97],[69,98],[73,99],[79,100],[75,101],[78,102],[77,103],[76,4],[101,104],[100,4],[71,4],[102,105],[99,106],[68,107],[60,108],[61,4],[66,109],[62,108],[59,110],[63,4],[64,108],[65,4]],"latestChangedDtsFile":"./types/index.d.ts","version":"5.7.3"}
|
package/dist/cjs/client/http.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultHttpExecutor = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* Default executor backed by the global `fetch` function.
|
|
3
6
|
*/
|
|
4
|
-
|
|
7
|
+
const defaultHttpExecutor = (req) => fetch(req.url, {
|
|
5
8
|
method: req.method,
|
|
6
9
|
headers: req.headers,
|
|
7
10
|
body: req.body,
|
|
8
11
|
});
|
|
9
|
-
|
|
12
|
+
exports.defaultHttpExecutor = defaultHttpExecutor;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BitcoinAddress = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* Address-related Esplora REST API operations.
|
|
3
6
|
*/
|
|
4
|
-
|
|
7
|
+
class BitcoinAddress {
|
|
5
8
|
protocol;
|
|
6
9
|
exec;
|
|
7
10
|
constructor(protocol, exec) {
|
|
@@ -65,4 +68,4 @@ export class BitcoinAddress {
|
|
|
65
68
|
return await this.exec(this.protocol.getAddressUtxos(addressOrScripthash));
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
|
-
|
|
71
|
+
exports.BitcoinAddress = BitcoinAddress;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BitcoinBlock = void 0;
|
|
4
|
+
const errors_js_1 = require("../../errors.js");
|
|
2
5
|
/**
|
|
3
6
|
* Block-related Esplora REST API operations.
|
|
4
7
|
*
|
|
@@ -6,7 +9,7 @@ import { BitcoinRestError } from '../../errors.js';
|
|
|
6
9
|
* of any "verbosity" setting (unlike Bitcoin Core RPC). Use the RPC
|
|
7
10
|
* client if you need verbosity-controlled block responses.
|
|
8
11
|
*/
|
|
9
|
-
|
|
12
|
+
class BitcoinBlock {
|
|
10
13
|
protocol;
|
|
11
14
|
exec;
|
|
12
15
|
constructor(protocol, exec) {
|
|
@@ -30,7 +33,7 @@ export class BitcoinBlock {
|
|
|
30
33
|
*/
|
|
31
34
|
async get({ blockhash, height }) {
|
|
32
35
|
if (!blockhash && height === undefined) {
|
|
33
|
-
throw new BitcoinRestError('blockhash or height required', { blockhash, height });
|
|
36
|
+
throw new errors_js_1.BitcoinRestError('blockhash or height required', { blockhash, height });
|
|
34
37
|
}
|
|
35
38
|
blockhash ??= await this.getHash(height);
|
|
36
39
|
if (!blockhash || typeof blockhash !== 'string') {
|
|
@@ -48,4 +51,4 @@ export class BitcoinBlock {
|
|
|
48
51
|
return await this.exec(this.protocol.getBlockHeight(height));
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
|
-
|
|
54
|
+
exports.BitcoinBlock = BitcoinBlock;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BitcoinRestClient = void 0;
|
|
4
|
+
const common_1 = require("@did-btcr2/common");
|
|
5
|
+
const address_js_1 = require("./address.js");
|
|
6
|
+
const block_js_1 = require("./block.js");
|
|
7
|
+
const transaction_js_1 = require("./transaction.js");
|
|
8
|
+
const protocol_js_1 = require("./protocol.js");
|
|
9
|
+
const http_js_1 = require("../http.js");
|
|
7
10
|
/**
|
|
8
11
|
* Esplora REST API client for Bitcoin.
|
|
9
12
|
*
|
|
@@ -11,7 +14,7 @@ import { defaultHttpExecutor } from '../http.js';
|
|
|
11
14
|
* for convenience. Users who want full control over I/O can access the
|
|
12
15
|
* protocol layer directly via the {@link protocol} property.
|
|
13
16
|
*/
|
|
14
|
-
|
|
17
|
+
class BitcoinRestClient {
|
|
15
18
|
_config;
|
|
16
19
|
/**
|
|
17
20
|
* The sans-I/O protocol layer. Use this to build {@link HttpRequest}
|
|
@@ -27,12 +30,12 @@ export class BitcoinRestClient {
|
|
|
27
30
|
address;
|
|
28
31
|
constructor(config, executor) {
|
|
29
32
|
this._config = config;
|
|
30
|
-
this.protocol = new EsploraProtocol(config);
|
|
31
|
-
this.executor = executor ?? defaultHttpExecutor;
|
|
33
|
+
this.protocol = new protocol_js_1.EsploraProtocol(config);
|
|
34
|
+
this.executor = executor ?? http_js_1.defaultHttpExecutor;
|
|
32
35
|
const exec = this.executeRequest.bind(this);
|
|
33
|
-
this.transaction = new BitcoinTransaction(this.protocol, exec);
|
|
34
|
-
this.block = new BitcoinBlock(this.protocol, exec);
|
|
35
|
-
this.address = new BitcoinAddress(this.protocol, exec);
|
|
36
|
+
this.transaction = new transaction_js_1.BitcoinTransaction(this.protocol, exec);
|
|
37
|
+
this.block = new block_js_1.BitcoinBlock(this.protocol, exec);
|
|
38
|
+
this.address = new address_js_1.BitcoinAddress(this.protocol, exec);
|
|
36
39
|
}
|
|
37
40
|
get config() {
|
|
38
41
|
return this._config;
|
|
@@ -48,9 +51,9 @@ export class BitcoinRestClient {
|
|
|
48
51
|
? await response.text()
|
|
49
52
|
: await response.json();
|
|
50
53
|
if (!response.ok) {
|
|
51
|
-
throw new MethodError(`Request to ${request.url} failed: ${response.status} - ${response.statusText}`, 'FAILED_HTTP_REQUEST', { data });
|
|
54
|
+
throw new common_1.MethodError(`Request to ${request.url} failed: ${response.status} - ${response.statusText}`, 'FAILED_HTTP_REQUEST', { data });
|
|
52
55
|
}
|
|
53
56
|
return data;
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
|
-
|
|
59
|
+
exports.BitcoinRestClient = BitcoinRestClient;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EsploraProtocol = void 0;
|
|
4
|
+
const common_1 = require("@did-btcr2/common");
|
|
2
5
|
const HEX64_RE = /^[0-9a-f]{64}$/i;
|
|
3
6
|
/**
|
|
4
7
|
* Sans-I/O Esplora REST API protocol.
|
|
@@ -23,17 +26,16 @@ const HEX64_RE = /^[0-9a-f]{64}$/i;
|
|
|
23
26
|
* const tx: RawTransactionRest = await res.json();
|
|
24
27
|
* ```
|
|
25
28
|
*/
|
|
26
|
-
|
|
29
|
+
class EsploraProtocol {
|
|
27
30
|
baseUrl;
|
|
28
31
|
defaultHeaders;
|
|
29
32
|
constructor(config) {
|
|
30
|
-
this.baseUrl = StringUtils.replaceEnd(config.host, '/');
|
|
33
|
+
this.baseUrl = common_1.StringUtils.replaceEnd(config.host, '/');
|
|
31
34
|
this.defaultHeaders = {
|
|
32
35
|
'Content-Type': 'application/json',
|
|
33
36
|
...config.headers,
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
|
-
// ── validation ─────────────────────────────────────────────────────
|
|
37
39
|
static assertHex64(value, label) {
|
|
38
40
|
if (!HEX64_RE.test(value)) {
|
|
39
41
|
throw new Error(`Invalid ${label}: expected 64-char hex string`);
|
|
@@ -44,7 +46,6 @@ export class EsploraProtocol {
|
|
|
44
46
|
throw new Error('Invalid address: contains illegal characters');
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
|
-
// ── helpers ──────────────────────────────────────────────────────────
|
|
48
49
|
get(path) {
|
|
49
50
|
return {
|
|
50
51
|
url: `${this.baseUrl}${path}`,
|
|
@@ -60,7 +61,6 @@ export class EsploraProtocol {
|
|
|
60
61
|
body,
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
|
-
// ── Transaction ──────────────────────────────────────────────────────
|
|
64
64
|
/** GET /tx/:txid */
|
|
65
65
|
getTx(txid) {
|
|
66
66
|
EsploraProtocol.assertHex64(txid, 'txid');
|
|
@@ -80,7 +80,6 @@ export class EsploraProtocol {
|
|
|
80
80
|
postTx(hex) {
|
|
81
81
|
return this.post('/tx', hex, { 'Content-Type': 'text/plain' });
|
|
82
82
|
}
|
|
83
|
-
// ── Block ────────────────────────────────────────────────────────────
|
|
84
83
|
/** GET /blocks/tip/height */
|
|
85
84
|
getBlockTipHeight() {
|
|
86
85
|
return this.get('/blocks/tip/height');
|
|
@@ -94,7 +93,6 @@ export class EsploraProtocol {
|
|
|
94
93
|
getBlockHeight(height) {
|
|
95
94
|
return this.get(`/block-height/${height}`);
|
|
96
95
|
}
|
|
97
|
-
// ── Address ──────────────────────────────────────────────────────────
|
|
98
96
|
/** GET /address/:address/txs */
|
|
99
97
|
getAddressTxs(address) {
|
|
100
98
|
EsploraProtocol.assertAddress(address);
|
|
@@ -126,4 +124,4 @@ export class EsploraProtocol {
|
|
|
126
124
|
return this.get(`/address/${address}/utxo`);
|
|
127
125
|
}
|
|
128
126
|
}
|
|
129
|
-
|
|
127
|
+
exports.EsploraProtocol = EsploraProtocol;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BitcoinTransaction = void 0;
|
|
4
|
+
class BitcoinTransaction {
|
|
2
5
|
protocol;
|
|
3
6
|
exec;
|
|
4
7
|
constructor(protocol, exec) {
|
|
@@ -51,4 +54,4 @@ export class BitcoinTransaction {
|
|
|
51
54
|
return await this.exec(this.protocol.postTx(tx));
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
|
-
|
|
57
|
+
exports.BitcoinTransaction = BitcoinTransaction;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BitcoinCoreRpcClient = void 0;
|
|
4
|
+
const common_1 = require("@did-btcr2/common");
|
|
5
|
+
const errors_js_1 = require("../../errors.js");
|
|
6
|
+
const json_rpc_js_1 = require("./json-rpc.js");
|
|
5
7
|
/**
|
|
6
8
|
* Bitcoin Core RPC client.
|
|
7
9
|
* @implements {BitcoinRpcClient}
|
|
8
10
|
*/
|
|
9
|
-
|
|
11
|
+
class BitcoinCoreRpcClient {
|
|
10
12
|
#transport;
|
|
11
13
|
#config;
|
|
12
14
|
constructor(config, executor) {
|
|
13
15
|
this.#config = config;
|
|
14
|
-
this.#transport = new JsonRpcTransport(config, executor);
|
|
16
|
+
this.#transport = new json_rpc_js_1.JsonRpcTransport(config, executor);
|
|
15
17
|
}
|
|
16
18
|
get config() {
|
|
17
19
|
return this.#config;
|
|
@@ -25,14 +27,14 @@ export class BitcoinCoreRpcClient {
|
|
|
25
27
|
async executeRpc(method, parameters = []) {
|
|
26
28
|
try {
|
|
27
29
|
const raw = await this.#transport.call(method, parameters);
|
|
28
|
-
const normalized = JSONUtils.isUnprototyped(raw) ? JSONUtils.normalize(raw) : raw;
|
|
30
|
+
const normalized = common_1.JSONUtils.isUnprototyped(raw) ? common_1.JSONUtils.normalize(raw) : raw;
|
|
29
31
|
return normalized;
|
|
30
32
|
}
|
|
31
33
|
catch (err) {
|
|
32
|
-
if (err instanceof BitcoinRpcError)
|
|
34
|
+
if (err instanceof errors_js_1.BitcoinRpcError)
|
|
33
35
|
throw err;
|
|
34
36
|
const cause = err instanceof Error ? err.message : String(err);
|
|
35
|
-
throw new BitcoinRpcError('UNKNOWN_ERROR', 500, `Unknown failure in ${method}: ${cause}`, { method });
|
|
37
|
+
throw new errors_js_1.BitcoinRpcError('UNKNOWN_ERROR', 500, `Unknown failure in ${method}: ${cause}`, { method });
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
@@ -40,7 +42,7 @@ export class BitcoinCoreRpcClient {
|
|
|
40
42
|
*/
|
|
41
43
|
async getBlock({ blockhash, height, verbosity }) {
|
|
42
44
|
if (!blockhash && height === undefined) {
|
|
43
|
-
throw new BitcoinRpcError('INVALID_PARAMS_GET_BLOCK', 400, 'blockhash or height required', { blockhash, height });
|
|
45
|
+
throw new errors_js_1.BitcoinRpcError('INVALID_PARAMS_GET_BLOCK', 400, 'blockhash or height required', { blockhash, height });
|
|
44
46
|
}
|
|
45
47
|
blockhash ??= await this.getBlockHash(height);
|
|
46
48
|
if (!blockhash || typeof blockhash !== 'string') {
|
|
@@ -79,7 +81,7 @@ export class BitcoinCoreRpcClient {
|
|
|
79
81
|
async signAndSendRawTransaction(hexstring) {
|
|
80
82
|
const signedRawTx = await this.signRawTransaction(hexstring);
|
|
81
83
|
if (!signedRawTx.complete) {
|
|
82
|
-
throw new BitcoinRpcError('SIGNING_INCOMPLETE', 400, 'Transaction signing incomplete', signedRawTx.errors);
|
|
84
|
+
throw new errors_js_1.BitcoinRpcError('SIGNING_INCOMPLETE', 400, 'Transaction signing incomplete', signedRawTx.errors);
|
|
83
85
|
}
|
|
84
86
|
return await this.sendRawTransaction(signedRawTx.hex);
|
|
85
87
|
}
|
|
@@ -88,7 +90,7 @@ export class BitcoinCoreRpcClient {
|
|
|
88
90
|
const rawTx = await this.createRawTransaction(inputs, outputs);
|
|
89
91
|
const signedRawTx = await this.signRawTransaction(rawTx);
|
|
90
92
|
if (!signedRawTx.complete) {
|
|
91
|
-
throw new BitcoinRpcError('SIGNING_INCOMPLETE', 400, 'Transaction signing incomplete', signedRawTx.errors);
|
|
93
|
+
throw new errors_js_1.BitcoinRpcError('SIGNING_INCOMPLETE', 400, 'Transaction signing incomplete', signedRawTx.errors);
|
|
92
94
|
}
|
|
93
95
|
return await this.sendRawTransaction(signedRawTx.hex);
|
|
94
96
|
}
|
|
@@ -162,7 +164,7 @@ export class BitcoinCoreRpcClient {
|
|
|
162
164
|
const v = verbosity ?? 2;
|
|
163
165
|
const results = await this.#transport.batch(txids.map(txid => ({ method: 'getrawtransaction', params: [txid, v] })));
|
|
164
166
|
return results.map(raw => {
|
|
165
|
-
const normalized = JSONUtils.isUnprototyped(raw) ? JSONUtils.normalize(raw) : raw;
|
|
167
|
+
const normalized = common_1.JSONUtils.isUnprototyped(raw) ? common_1.JSONUtils.normalize(raw) : raw;
|
|
166
168
|
switch (v) {
|
|
167
169
|
case 0: return normalized;
|
|
168
170
|
case 1: return normalized;
|
|
@@ -172,4 +174,4 @@ export class BitcoinCoreRpcClient {
|
|
|
172
174
|
});
|
|
173
175
|
}
|
|
174
176
|
}
|
|
175
|
-
|
|
177
|
+
exports.BitcoinCoreRpcClient = BitcoinCoreRpcClient;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JsonRpcTransport = void 0;
|
|
4
|
+
const errors_js_1 = require("../../errors.js");
|
|
5
|
+
const http_js_1 = require("../http.js");
|
|
6
|
+
const utils_js_1 = require("../utils.js");
|
|
7
|
+
const protocol_js_1 = require("./protocol.js");
|
|
8
|
+
class JsonRpcTransport {
|
|
6
9
|
/**
|
|
7
10
|
* The sans-I/O protocol layer. Use this to build {@link HttpRequest}
|
|
8
11
|
* descriptors without performing any I/O.
|
|
@@ -10,8 +13,8 @@ export class JsonRpcTransport {
|
|
|
10
13
|
protocol;
|
|
11
14
|
execute;
|
|
12
15
|
constructor(cfg, executor) {
|
|
13
|
-
this.protocol = new JsonRpcProtocol(cfg);
|
|
14
|
-
this.execute = executor ?? defaultHttpExecutor;
|
|
16
|
+
this.protocol = new protocol_js_1.JsonRpcProtocol(cfg);
|
|
17
|
+
this.execute = executor ?? http_js_1.defaultHttpExecutor;
|
|
15
18
|
}
|
|
16
19
|
/** @internal Expose URL for tests that inspect transport state. */
|
|
17
20
|
get url() {
|
|
@@ -24,8 +27,8 @@ export class JsonRpcTransport {
|
|
|
24
27
|
const request = this.protocol.buildRequest(method, params);
|
|
25
28
|
const res = await this.execute(request);
|
|
26
29
|
if (!res.ok) {
|
|
27
|
-
const text = await safeText(res);
|
|
28
|
-
throw new BitcoinRpcError('HTTP_ERROR', res.status, text || `${res.status} ${res.statusText}`, { method });
|
|
30
|
+
const text = await (0, utils_js_1.safeText)(res);
|
|
31
|
+
throw new errors_js_1.BitcoinRpcError('HTTP_ERROR', res.status, text || `${res.status} ${res.statusText}`, { method });
|
|
29
32
|
}
|
|
30
33
|
const payload = await res.json();
|
|
31
34
|
return this.protocol.parseResponse(payload, method);
|
|
@@ -44,11 +47,11 @@ export class JsonRpcTransport {
|
|
|
44
47
|
const request = this.protocol.buildBatchRequest(calls);
|
|
45
48
|
const res = await this.execute(request);
|
|
46
49
|
if (!res.ok) {
|
|
47
|
-
const text = await safeText(res);
|
|
48
|
-
throw new BitcoinRpcError('HTTP_ERROR', res.status, text || `${res.status} ${res.statusText}`, { methods: calls.map(c => c.method) });
|
|
50
|
+
const text = await (0, utils_js_1.safeText)(res);
|
|
51
|
+
throw new errors_js_1.BitcoinRpcError('HTTP_ERROR', res.status, text || `${res.status} ${res.statusText}`, { methods: calls.map(c => c.method) });
|
|
49
52
|
}
|
|
50
53
|
const payloads = await res.json();
|
|
51
54
|
return this.protocol.parseBatchResponse(payloads, calls);
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
|
-
|
|
57
|
+
exports.JsonRpcTransport = JsonRpcTransport;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JsonRpcProtocol = void 0;
|
|
4
|
+
const errors_js_1 = require("../../errors.js");
|
|
5
|
+
const utils_js_1 = require("../utils.js");
|
|
3
6
|
/**
|
|
4
7
|
* Sans-I/O JSON-RPC protocol for Bitcoin Core.
|
|
5
8
|
*
|
|
@@ -29,7 +32,7 @@ import { toBase64 } from '../utils.js';
|
|
|
29
32
|
* const blockCount = protocol.parseResponse(json, 'getblockcount', []);
|
|
30
33
|
* ```
|
|
31
34
|
*/
|
|
32
|
-
|
|
35
|
+
class JsonRpcProtocol {
|
|
33
36
|
url;
|
|
34
37
|
/** Whether this protocol instance has credentials configured. */
|
|
35
38
|
hasAuth;
|
|
@@ -39,13 +42,13 @@ export class JsonRpcProtocol {
|
|
|
39
42
|
let url = (cfg.host || 'http://127.0.0.1:8332').replace(/\/+$/, '');
|
|
40
43
|
let authHeader;
|
|
41
44
|
if (cfg.username && cfg.password) {
|
|
42
|
-
authHeader = `Basic ${toBase64(`${cfg.username}:${cfg.password}`)}`;
|
|
45
|
+
authHeader = `Basic ${(0, utils_js_1.toBase64)(`${cfg.username}:${cfg.password}`)}`;
|
|
43
46
|
}
|
|
44
47
|
else {
|
|
45
48
|
try {
|
|
46
49
|
const u = new URL(url);
|
|
47
50
|
if (u.username || u.password) {
|
|
48
|
-
authHeader = `Basic ${toBase64(`${decodeURIComponent(u.username)}:${decodeURIComponent(u.password)}`)}`;
|
|
51
|
+
authHeader = `Basic ${(0, utils_js_1.toBase64)(`${decodeURIComponent(u.username)}:${decodeURIComponent(u.password)}`)}`;
|
|
49
52
|
u.username = '';
|
|
50
53
|
u.password = '';
|
|
51
54
|
url = u.toString().replace(/\/+$/, '');
|
|
@@ -98,7 +101,7 @@ export class JsonRpcProtocol {
|
|
|
98
101
|
*/
|
|
99
102
|
parseResponse(payload, method) {
|
|
100
103
|
if (payload.error) {
|
|
101
|
-
throw new BitcoinRpcError('RPC_ERROR', payload.error.code, payload.error.message, { method });
|
|
104
|
+
throw new errors_js_1.BitcoinRpcError('RPC_ERROR', payload.error.code, payload.error.message, { method });
|
|
102
105
|
}
|
|
103
106
|
return payload.result;
|
|
104
107
|
}
|
|
@@ -114,7 +117,7 @@ export class JsonRpcProtocol {
|
|
|
114
117
|
return calls.map((call, i) => {
|
|
115
118
|
const payload = byId.get(startId + i);
|
|
116
119
|
if (!payload) {
|
|
117
|
-
throw new BitcoinRpcError('RPC_ERROR', -1, `Missing response for batch call ${call.method} (id ${startId + i})`, { method: call.method });
|
|
120
|
+
throw new errors_js_1.BitcoinRpcError('RPC_ERROR', -1, `Missing response for batch call ${call.method} (id ${startId + i})`, { method: call.method });
|
|
118
121
|
}
|
|
119
122
|
return this.parseResponse(payload, call.method);
|
|
120
123
|
});
|
|
@@ -131,4 +134,4 @@ export class JsonRpcProtocol {
|
|
|
131
134
|
return copy;
|
|
132
135
|
}
|
|
133
136
|
}
|
|
134
|
-
|
|
137
|
+
exports.JsonRpcProtocol = JsonRpcProtocol;
|
package/dist/cjs/client/utils.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toBase64 = toBase64;
|
|
4
|
+
exports.safeText = safeText;
|
|
1
5
|
/**
|
|
2
6
|
* Encode a string to base64
|
|
3
7
|
* @param {string} s The string to encode
|
|
4
8
|
* @returns {string} The base64 encoded string
|
|
5
9
|
*/
|
|
6
|
-
|
|
10
|
+
function toBase64(s) {
|
|
7
11
|
// Node >= 18 and browser-safe
|
|
8
12
|
if (typeof Buffer !== 'undefined')
|
|
9
13
|
return Buffer.from(s, 'utf8').toString('base64');
|
|
@@ -17,7 +21,7 @@ export function toBase64(s) {
|
|
|
17
21
|
* @param {Response} res The Response object
|
|
18
22
|
* @returns {Promise<string>} The text content or empty string on failure
|
|
19
23
|
*/
|
|
20
|
-
|
|
24
|
+
async function safeText(res) {
|
|
21
25
|
try {
|
|
22
26
|
return await res.text();
|
|
23
27
|
}
|
|
@@ -25,4 +29,3 @@ export async function safeText(res) {
|
|
|
25
29
|
return '';
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
|
-
//# sourceMappingURL=utils.js.map
|