@did-btcr2/bitcoin 0.5.1 → 0.5.3
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 -4
- package/dist/cjs/client/rest/transaction.js +5 -2
- package/dist/cjs/client/rpc/index.js +16 -13
- 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 +15 -12
- 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 +8 -6
- package/dist/cjs/types.js +5 -3
- package/dist/esm/client/rest/index.js.map +1 -1
- package/dist/esm/client/rpc/json-rpc.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 +3 -3
- package/dist/types/connection.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 +3 -3
- 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 -2
- package/src/client/rest/transaction.ts +4 -4
- package/src/client/rpc/index.ts +4 -4
- 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 +3 -3
- package/src/types.ts +1 -1
- 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","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/networks.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/address.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/crypto.d.ts","../../../node_modules/.pnpm/valibot@0.38.0_typescript@5.7.3/node_modules/valibot/dist/index.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/types.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/payments/embed.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/payments/p2ms.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/payments/p2pk.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/payments/p2pkh.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/payments/p2sh.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/payments/p2wpkh.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/payments/p2wsh.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/payments/p2tr.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/payments/index.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/ops.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/script_number.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/script_signature.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/script.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/transaction.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/block.d.ts","../../../node_modules/.pnpm/bip174@3.0.0/node_modules/bip174/src/esm/lib/interfaces.d.ts","../../../node_modules/.pnpm/bip174@3.0.0/node_modules/bip174/src/esm/lib/utils.d.ts","../../../node_modules/.pnpm/bip174@3.0.0/node_modules/bip174/src/esm/lib/psbt.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/psbt.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/ecc_lib.d.ts","../../../node_modules/.pnpm/bitcoinjs-lib@7.0.0-rc.0_typescript@5.7.3/node_modules/bitcoinjs-lib/src/cjs/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","../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":[[115,164],[115,161,164],[115,163,164],[164],[115,164,169,198],[115,164,165,170,175,183,195,206],[115,164,165,166,175,183],[110,111,112,115,164],[115,164,167,207],[115,164,168,169,176,184],[115,164,169,195,203],[115,164,170,172,175,183],[115,163,164,171],[115,164,172,173],[115,164,174,175],[115,163,164,175],[115,164,175,176,177,195,206],[115,164,175,176,177,190,195,198],[115,157,164,172,175,178,183,195,206],[115,164,175,176,178,179,183,195,203,206],[115,164,178,180,195,203,206],[113,114,115,116,117,118,119,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,206,207,208,209,210,211,212],[115,164,175,181],[115,164,182,206],[115,164,172,175,183,195],[115,164,184],[115,164,185],[115,163,164,186],[115,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,206,207,208,209,210,211,212],[115,164,188],[115,164,189],[115,164,175,190,191],[115,164,190,192,207,209],[115,164,175,195,196,198],[115,164,197,198],[115,164,195,196],[115,164,198],[115,164,199],[115,161,164,195,200],[115,164,175,201,202],[115,164,201,202],[115,164,169,183,195,203],[115,164,204],[115,164,183,205],[115,164,178,189,206],[115,164,169,207],[115,164,195,208],[115,164,182,209],[115,164,210],[115,157,164],[115,164,175,177,186,195,198,206,208,209,211],[115,164,195,212],[87,88,115,164],[87,115,164],[67,115,164],[85,115,164],[71,115,164],[67,68,69,80,81,84,85,86,90,91,115,164],[80,115,164],[67,71,72,73,74,75,76,77,78,79,115,164],[67,85,89,115,164],[80,81,82,83,115,164],[70,115,164],[115,129,133,164,206],[115,129,164,195,206],[115,124,164],[115,126,129,164,203,206],[115,164,183,203],[115,164,213],[115,124,164,213],[115,126,129,164,183,206],[115,121,122,125,128,164,175,195,206],[115,129,136,164],[115,121,127,164],[115,129,150,151,164],[115,125,129,164,198,206,213],[115,150,164,213],[115,123,124,164,213],[115,129,164],[115,123,124,125,126,127,128,129,130,131,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,151,152,153,154,155,156,164],[115,129,144,164],[115,129,136,137,164],[115,127,129,137,138,164],[115,128,164],[115,121,124,129,164],[115,129,133,137,138,164],[115,133,164],[115,127,129,132,164,206],[115,121,126,129,136,164],[115,164,195],[115,124,129,150,164,211,213],[93,94,95,115,164],[93,94,95,97,115,164],[66,93,94,95,96,98,99,115,164],[66,93,94,115,164],[66,93,94,95,115,164],[66,93,94,97,101,104,115,164],[94,115,164],[93,94,97,102,103,115,164],[93,94,97,102,115,164],[66,92,93,94,100,105,106,107,115,164],[93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,115,164],[92,115,164],[66,115,164],[59,115,164],[59,60,61,62,63,64,65,115,164],[58,115,164]],"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":"e9557756a331da85d6ccc8db81fcf48fa5bfe43456584b8fa3e8cc38a346decf","impliedFormat":99},{"version":"3244c1e1f957dda22ae1f0c009fdbd0e9fde00af18be8d8679ad22c7895bfa65","impliedFormat":99},{"version":"f3f8c72d4eb30098e75d229ed45e7206b0e1392faf43c0f8488b15accf40b86c","impliedFormat":99},{"version":"c4970220f6c79afd4b80c1772ce8bf2d8469b552fbd990449fbe6b3efd35bb64","impliedFormat":99},{"version":"e4c698673592ebaa66c16fa3b143fbb9e46f0c9234a799ac1091fb4f9fc6c617","impliedFormat":99},{"version":"b7e109cfda728eb3fd6752844b467073e844a406318b05eba2fb2339722d63de","impliedFormat":99},{"version":"8c9991de9388ae7e30cbbebffcebc2687e52ecb767d0c374499a695179f6acfa","impliedFormat":99},{"version":"7e31182cef7187a46d806dc31ad3fc2514bb91724de4e507536f3e9b0d133709","impliedFormat":99},{"version":"f6d3d2873a1ce1a366866419ef23133ecbeca64d70aa304f9b75a9bcfc9c628a","impliedFormat":99},{"version":"ffec87c153e6d9d3d42bc78dc9104fe56ae3ed996ee2d9c2c50a4c321072ace4","impliedFormat":99},{"version":"1e91079c888c084fcd5fcc0a7ae27eb7d39ce482a5faa4a1cce952c85c58f3d1","impliedFormat":99},{"version":"3297da1024490f45fa295072915c230993e6a5718b9db3120960b0bfef484bc3","impliedFormat":99},{"version":"0e0d42a2088b1e800830f832b4eea540e02851aa594b115641bf9c0a58479fcb","impliedFormat":99},{"version":"9b391104f81d5d6822a38884a4e7f9266c5f5337e02e6a6a5e1900787cac42f6","impliedFormat":99},{"version":"0f3fa7383d3f2ebed173ff59c102b4a68d10acdff5db4a009b73429ddaa15768","impliedFormat":99},{"version":"14187405b8c938d7cc81cb10216eff53f0b3aab2a0e85765109f56b5d6e66879","impliedFormat":99},{"version":"45ed67e0c94c6e7a81becfb6d67841ad7d45a309d12dc1e0e6f098a3082a24fa","impliedFormat":99},{"version":"85df21f77b135dea63f41f5def3483e7dd4747532a0d757f7031c0f13311efb8","impliedFormat":99},{"version":"4446604b96800d7d0250bbfea6b181035af4e77f9803dcc2f66d5d8a4d5add02","impliedFormat":99},{"version":"8efb22896d9b6221415b049c6fe68191df7910ecf6032260c5bdde639600f871","impliedFormat":99},{"version":"1d00e81723e66ba3a0ef5c93dce3519b9f1b6a39bdc19bbea6d566a64ce0b0f5","impliedFormat":99},{"version":"457806b65a4bc7ab1a0df35352ee55977fa3a5266b0e1fd350d826f2cf48b005","impliedFormat":99},{"version":"5a095d501dbe43502bf041399a741b10fc5a2b520b29393a3672ecdbbdc8fa43","impliedFormat":99},{"version":"2052ef6332bb93ef1939355b04425fcb5fda950e81d68a6bb0f73fbea8757fcc","impliedFormat":99},{"version":"d70ab831f399a73284a3c2540d3a4b0f02e96126906228941836be9fb6a7d5f8","impliedFormat":99},{"version":"d2a56d3fbae77af8996f182b8316172d83a9d8d7fac9f565951b22e1745588ca","impliedFormat":99},{"version":"4d564fca67d2b2d1e0ab1be82be54f8cd3b6cd605d2897ad308027cddae14cea","signature":"ef795d09efba70b54dc1a8c858ee11639da381ac57c26e51819cdb342e788cf5","impliedFormat":99},{"version":"de5cd1d9c08666db7c80dca940845e87f100bcc990281d6b5f4394c11a73392e","signature":"4c09fb938d91a1d61c32b742db09fd0e80cc5e76b778c3596041246aa8ce7a43","impliedFormat":99},{"version":"f3a68e4273644b681100b29e22db7396eb81c4eafc29e39e0f9b2869c492df76","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":"e9231376602a02348d59679716b8c75fbc5108e1e59d0b580f0c7f8720cb6e75","signature":"29d884e1420a370a9e34cd5e9e5d6593000967464b4b275555be3e6823168b83","impliedFormat":99},{"version":"a8bd230890c75f106ea5cfef71de52c252e31c23a0bafd2a77679e59f4c9c0f9","signature":"ed209018d3d20f3357c6c0d5f55ee57ee04eb07d6347f2c5b88b426eec402539","impliedFormat":99},{"version":"295ed1500270bb05e894d59811354ba6f9e58679e3004a28a2f04d6b390ee610","signature":"068db5fb639d1643ee2a126ae8fc22338f18c4244418ed017da1f1256000fac6","impliedFormat":99},{"version":"4441ae05272b29965bdb59476af868f82d87c66575709516a333e5b258894003","signature":"04934d55e84d8661b8731898f3323f45f8bc97d51b26829f626f18dacd5c1413","impliedFormat":99},{"version":"cabd4f4d055f7be83006d24938b5b028067faa79ab56c1eb93f867f4df995bbb","signature":"63812435a0cb22401555d05fc89054fdf09c9a9e26d891e4cf37b1848d7239ec","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":[[93,109]],"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":[[58,1],[161,2],[162,2],[163,3],[115,4],[164,5],[165,6],[166,7],[110,1],[113,8],[111,1],[112,1],[167,9],[168,10],[169,11],[170,12],[171,13],[172,14],[173,14],[174,15],[175,16],[176,17],[177,18],[116,1],[114,1],[178,19],[179,20],[180,21],[213,22],[181,23],[182,24],[183,25],[184,26],[185,27],[186,28],[187,29],[188,30],[189,31],[190,32],[191,32],[192,33],[193,1],[194,1],[195,34],[197,35],[196,36],[198,37],[199,38],[200,39],[201,40],[202,41],[203,42],[204,43],[205,44],[206,45],[207,46],[208,47],[209,48],[210,49],[117,1],[118,1],[119,1],[158,50],[159,1],[160,1],[211,51],[212,52],[87,1],[89,53],[88,54],[68,55],[86,56],[69,1],[91,57],[92,58],[67,1],[81,1],[72,59],[80,60],[73,59],[74,59],[75,59],[76,59],[79,59],[77,59],[78,59],[90,61],[84,62],[82,1],[83,1],[85,1],[71,63],[120,1],[56,1],[57,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[20,1],[21,1],[4,1],[22,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[5,1],[30,1],[31,1],[32,1],[33,1],[6,1],[37,1],[34,1],[35,1],[36,1],[38,1],[7,1],[39,1],[44,1],[45,1],[40,1],[41,1],[42,1],[43,1],[8,1],[49,1],[46,1],[47,1],[48,1],[50,1],[9,1],[51,1],[52,1],[53,1],[55,1],[54,1],[1,1],[136,64],[146,65],[135,64],[156,66],[127,67],[126,68],[155,69],[149,70],[154,71],[129,72],[143,73],[128,74],[152,75],[124,76],[123,69],[153,77],[125,78],[130,79],[131,1],[134,79],[121,1],[157,80],[147,81],[138,82],[139,83],[141,84],[137,85],[140,86],[150,69],[132,87],[133,88],[142,89],[122,90],[145,81],[144,79],[148,1],[151,91],[70,1],[93,1],[96,92],[98,93],[100,94],[95,95],[99,96],[105,97],[101,98],[104,99],[103,100],[102,1],[108,101],[107,1],[97,1],[109,102],[106,103],[94,104],[60,105],[61,1],[66,106],[62,105],[59,107],[63,1],[64,105],[65,1]],"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,11 +26,11 @@ 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,
|
|
@@ -126,4 +129,4 @@ export class EsploraProtocol {
|
|
|
126
129
|
return this.get(`/address/${address}/utxo`);
|
|
127
130
|
}
|
|
128
131
|
}
|
|
129
|
-
|
|
132
|
+
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,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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");
|
|
4
7
|
// ── Client ──────────────────────────────────────────────────────────
|
|
5
8
|
/**
|
|
6
9
|
* Bitcoin Core RPC client.
|
|
7
10
|
* @implements {BitcoinRpcClient}
|
|
8
11
|
*/
|
|
9
|
-
|
|
12
|
+
class BitcoinCoreRpcClient {
|
|
10
13
|
#transport;
|
|
11
14
|
#config;
|
|
12
15
|
constructor(config, executor) {
|
|
13
16
|
this.#config = config;
|
|
14
|
-
this.#transport = new JsonRpcTransport(config, executor);
|
|
17
|
+
this.#transport = new json_rpc_js_1.JsonRpcTransport(config, executor);
|
|
15
18
|
}
|
|
16
19
|
get config() {
|
|
17
20
|
return this.#config;
|
|
@@ -25,14 +28,14 @@ export class BitcoinCoreRpcClient {
|
|
|
25
28
|
async executeRpc(method, parameters = []) {
|
|
26
29
|
try {
|
|
27
30
|
const raw = await this.#transport.call(method, parameters);
|
|
28
|
-
const normalized = JSONUtils.isUnprototyped(raw) ? JSONUtils.normalize(raw) : raw;
|
|
31
|
+
const normalized = common_1.JSONUtils.isUnprototyped(raw) ? common_1.JSONUtils.normalize(raw) : raw;
|
|
29
32
|
return normalized;
|
|
30
33
|
}
|
|
31
34
|
catch (err) {
|
|
32
|
-
if (err instanceof BitcoinRpcError)
|
|
35
|
+
if (err instanceof errors_js_1.BitcoinRpcError)
|
|
33
36
|
throw err;
|
|
34
37
|
const cause = err instanceof Error ? err.message : String(err);
|
|
35
|
-
throw new BitcoinRpcError('UNKNOWN_ERROR', 500, `Unknown failure in ${method}: ${cause}`, { method });
|
|
38
|
+
throw new errors_js_1.BitcoinRpcError('UNKNOWN_ERROR', 500, `Unknown failure in ${method}: ${cause}`, { method });
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
/**
|
|
@@ -40,7 +43,7 @@ export class BitcoinCoreRpcClient {
|
|
|
40
43
|
*/
|
|
41
44
|
async getBlock({ blockhash, height, verbosity }) {
|
|
42
45
|
if (!blockhash && height === undefined) {
|
|
43
|
-
throw new BitcoinRpcError('INVALID_PARAMS_GET_BLOCK', 400, 'blockhash or height required', { blockhash, height });
|
|
46
|
+
throw new errors_js_1.BitcoinRpcError('INVALID_PARAMS_GET_BLOCK', 400, 'blockhash or height required', { blockhash, height });
|
|
44
47
|
}
|
|
45
48
|
blockhash ??= await this.getBlockHash(height);
|
|
46
49
|
if (!blockhash || typeof blockhash !== 'string') {
|
|
@@ -79,7 +82,7 @@ export class BitcoinCoreRpcClient {
|
|
|
79
82
|
async signAndSendRawTransaction(hexstring) {
|
|
80
83
|
const signedRawTx = await this.signRawTransaction(hexstring);
|
|
81
84
|
if (!signedRawTx.complete) {
|
|
82
|
-
throw new BitcoinRpcError('SIGNING_INCOMPLETE', 400, 'Transaction signing incomplete', signedRawTx.errors);
|
|
85
|
+
throw new errors_js_1.BitcoinRpcError('SIGNING_INCOMPLETE', 400, 'Transaction signing incomplete', signedRawTx.errors);
|
|
83
86
|
}
|
|
84
87
|
return await this.sendRawTransaction(signedRawTx.hex);
|
|
85
88
|
}
|
|
@@ -88,7 +91,7 @@ export class BitcoinCoreRpcClient {
|
|
|
88
91
|
const rawTx = await this.createRawTransaction(inputs, outputs);
|
|
89
92
|
const signedRawTx = await this.signRawTransaction(rawTx);
|
|
90
93
|
if (!signedRawTx.complete) {
|
|
91
|
-
throw new BitcoinRpcError('SIGNING_INCOMPLETE', 400, 'Transaction signing incomplete', signedRawTx.errors);
|
|
94
|
+
throw new errors_js_1.BitcoinRpcError('SIGNING_INCOMPLETE', 400, 'Transaction signing incomplete', signedRawTx.errors);
|
|
92
95
|
}
|
|
93
96
|
return await this.sendRawTransaction(signedRawTx.hex);
|
|
94
97
|
}
|
|
@@ -162,7 +165,7 @@ export class BitcoinCoreRpcClient {
|
|
|
162
165
|
const v = verbosity ?? 2;
|
|
163
166
|
const results = await this.#transport.batch(txids.map(txid => ({ method: 'getrawtransaction', params: [txid, v] })));
|
|
164
167
|
return results.map(raw => {
|
|
165
|
-
const normalized = JSONUtils.isUnprototyped(raw) ? JSONUtils.normalize(raw) : raw;
|
|
168
|
+
const normalized = common_1.JSONUtils.isUnprototyped(raw) ? common_1.JSONUtils.normalize(raw) : raw;
|
|
166
169
|
switch (v) {
|
|
167
170
|
case 0: return normalized;
|
|
168
171
|
case 1: return normalized;
|
|
@@ -172,4 +175,4 @@ export class BitcoinCoreRpcClient {
|
|
|
172
175
|
});
|
|
173
176
|
}
|
|
174
177
|
}
|
|
175
|
-
|
|
178
|
+
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
|
package/dist/cjs/connection.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BitcoinConnection = void 0;
|
|
4
|
+
const common_1 = require("@did-btcr2/common");
|
|
5
|
+
const index_js_1 = require("./client/rest/index.js");
|
|
6
|
+
const index_js_2 = require("./client/rpc/index.js");
|
|
7
|
+
const network_js_1 = require("./network.js");
|
|
8
|
+
const constants_js_1 = require("./constants.js");
|
|
6
9
|
/**
|
|
7
10
|
* Represents a connection to a single Bitcoin network.
|
|
8
11
|
* Holds the REST and optional RPC clients for that network.
|
|
@@ -32,7 +35,7 @@ import { DEFAULT_BITCOIN_NETWORK_CONFIG } from './constants.js';
|
|
|
32
35
|
* const res = await myHttpClient.execute(req);
|
|
33
36
|
* ```
|
|
34
37
|
*/
|
|
35
|
-
|
|
38
|
+
class BitcoinConnection {
|
|
36
39
|
/** The network this connection targets. */
|
|
37
40
|
name;
|
|
38
41
|
/** REST client (Esplora API). */
|
|
@@ -43,9 +46,9 @@ export class BitcoinConnection {
|
|
|
43
46
|
data;
|
|
44
47
|
constructor(options) {
|
|
45
48
|
this.name = options.network;
|
|
46
|
-
this.rest = new BitcoinRestClient(options.rest, options.executor);
|
|
47
|
-
this.rpc = options.rpc ? new BitcoinCoreRpcClient(options.rpc, options.executor) : undefined;
|
|
48
|
-
this.data = getNetwork(options.network);
|
|
49
|
+
this.rest = new index_js_1.BitcoinRestClient(options.rest, options.executor);
|
|
50
|
+
this.rpc = options.rpc ? new index_js_2.BitcoinCoreRpcClient(options.rpc, options.executor) : undefined;
|
|
51
|
+
this.data = (0, network_js_1.getNetwork)(options.network);
|
|
49
52
|
}
|
|
50
53
|
/**
|
|
51
54
|
* Create a connection for a single network with optional REST/RPC endpoint overrides.
|
|
@@ -57,9 +60,9 @@ export class BitcoinConnection {
|
|
|
57
60
|
* @returns A BitcoinConnection for the requested network.
|
|
58
61
|
*/
|
|
59
62
|
static forNetwork(network, overrides) {
|
|
60
|
-
const defaults = DEFAULT_BITCOIN_NETWORK_CONFIG[network];
|
|
63
|
+
const defaults = constants_js_1.DEFAULT_BITCOIN_NETWORK_CONFIG[network];
|
|
61
64
|
if (!defaults) {
|
|
62
|
-
throw new MethodError(`Unknown network '${network}'. Available: bitcoin, testnet3, testnet4, signet, mutinynet, regtest`, 'UNKNOWN_NETWORK', { network });
|
|
65
|
+
throw new common_1.MethodError(`Unknown network '${network}'. Available: bitcoin, testnet3, testnet4, signet, mutinynet, regtest`, 'UNKNOWN_NETWORK', { network });
|
|
63
66
|
}
|
|
64
67
|
const restCfg = { ...defaults.rest, ...overrides?.rest };
|
|
65
68
|
const hasRpc = defaults.rpc !== undefined || overrides?.rpc !== undefined;
|
|
@@ -101,4 +104,4 @@ export class BitcoinConnection {
|
|
|
101
104
|
return negative ? -result : result;
|
|
102
105
|
}
|
|
103
106
|
}
|
|
104
|
-
|
|
107
|
+
exports.BitcoinConnection = BitcoinConnection;
|