ault-sdk-ts 0.7.0 → 0.7.2
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/README.md +36 -9
- package/dist/core/errors.d.ts +13 -0
- package/dist/core/http.d.ts +10 -0
- package/dist/core/manifest-types.d.ts +2 -0
- package/dist/core/network.d.ts +6 -2
- package/dist/core/user-agent.d.ts +15 -0
- package/dist/eip712/sign-and-broadcast.d.ts +10 -1
- package/dist/eip712/simulate.d.ts +41 -0
- package/dist/high-level/tx-executor.d.ts +3 -2
- package/dist/index.cjs +859 -623
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +853 -623
- package/dist/index.js.map +1 -1
- package/dist/ws/types.d.ts +7 -0
- package/package.json +1 -1
package/dist/ws/types.d.ts
CHANGED
|
@@ -412,6 +412,13 @@ export interface DexWsOptions {
|
|
|
412
412
|
* to inject a mock or polyfilled implementation.
|
|
413
413
|
*/
|
|
414
414
|
createWebSocket?: WebSocketFactory;
|
|
415
|
+
/**
|
|
416
|
+
* `User-Agent` sent on the handshake (default: `ault-sdk-ts/<version>`).
|
|
417
|
+
* Only applied by the default factory, and only on runtimes whose
|
|
418
|
+
* `WebSocket` accepts `{ headers }` (Node, Bun); browsers send their own.
|
|
419
|
+
* The hosted DEX API sits behind a WAF that rejects handshakes without one.
|
|
420
|
+
*/
|
|
421
|
+
userAgent?: string;
|
|
415
422
|
}
|
|
416
423
|
export interface DexWsEventMap {
|
|
417
424
|
open: () => void;
|