@hyperbridge/sdk 2.8.5 → 2.8.7
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/browser/index.d.ts +3 -0
- package/dist/browser/index.js +9 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +9 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +2 -2
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +9 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/{intents-helpers-Cf0-Odlu.d.cts → intents-helpers-BFc6YnD3.d.cts} +3 -0
- package/dist/node/{intents-helpers-Cf0-Odlu.d.ts → intents-helpers-BFc6YnD3.d.ts} +3 -0
- package/dist/node/intents-helpers.cjs.map +1 -1
- package/dist/node/intents-helpers.d.cts +1 -1
- package/dist/node/intents-helpers.d.ts +1 -1
- package/dist/node/intents-helpers.js.map +1 -1
- package/package.json +6 -37
package/dist/browser/index.d.ts
CHANGED
|
@@ -3866,6 +3866,9 @@ interface SigningAccount {
|
|
|
3866
3866
|
*
|
|
3867
3867
|
* No chain id parameter: EIP-712 carries it in `domain.chainId`, which is what
|
|
3868
3868
|
* the digest covers and what a backend scoping the request to a chain reads.
|
|
3869
|
+
*
|
|
3870
|
+
* Returns the 65-byte `r ‖ s ‖ v` signature as 0x-hex, `v` 27 or 28 — the
|
|
3871
|
+
* `eth_signTypedData_v4` form. Bid validation recovers against exactly this.
|
|
3869
3872
|
*/
|
|
3870
3873
|
signTypedData: (typedData: unknown) => Promise<HexString$1>;
|
|
3871
3874
|
}
|
package/dist/browser/index.js
CHANGED
|
@@ -8041,7 +8041,15 @@ var IntentsCoprocessor = class _IntentsCoprocessor {
|
|
|
8041
8041
|
if (!this.httpApi) {
|
|
8042
8042
|
const httpUrl = deriveHttpUrl(this.wsEndpoint());
|
|
8043
8043
|
const api = new ApiPromise({
|
|
8044
|
-
|
|
8044
|
+
// Response cache off (third argument, capacity 0). polkadot-js caches every request that
|
|
8045
|
+
// names a block hash — `chain_getHeader(hash)`, `state_getRuntimeVersion(hash)`, storage
|
|
8046
|
+
// reads at a hash — by storing the request promise itself, a rejected one included, for a
|
|
8047
|
+
// 30s TTL that every hit refreshes. The phantom poll retries the block it failed on with
|
|
8048
|
+
// identical parameters every tick, so one reset connection became the same rejection
|
|
8049
|
+
// replayed from memory on every tick, faster than the TTL could lapse, and the node never
|
|
8050
|
+
// saw a second request. The cache bought nothing here anyway: the poll reads each block
|
|
8051
|
+
// once, and `api.at(hash)` reuses registries at the api layer regardless.
|
|
8052
|
+
provider: new HttpProvider(httpUrl, {}, 0),
|
|
8045
8053
|
typesBundle: HYPERBRIDGE_TYPES_BUNDLE,
|
|
8046
8054
|
// A second connection to the node the ws api already reported on; its init warnings
|
|
8047
8055
|
// would just be duplicates.
|