@symbiome-forge/cow-sdk-wasm 0.1.0-alpha.3 → 0.1.0-alpha.4
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 +25 -17
- package/dist/{cloudflare/raw/cloudflare.cjs → default/raw/trading-web.cjs} +1 -1
- package/dist/{cloudflare/raw/cloudflare.d.ts → default/raw/trading-web.d.ts} +2 -2
- package/dist/{cloudflare/raw/cloudflare.js → default/raw/trading-web.js} +1 -1
- package/dist/orderbook/raw/trading-web.cjs +65 -0
- package/dist/orderbook/raw/trading-web.d.ts +30 -0
- package/dist/orderbook/raw/trading-web.js +29 -0
- package/dist/raw/default-bundler/cow_sdk_wasm_bg.js +19 -19
- package/dist/raw/default-bundler/cow_sdk_wasm_bg.wasm +0 -0
- package/dist/raw/default-bundler/cow_sdk_wasm_bg.wasm.d.ts +3 -3
- package/dist/raw/default-nodejs/cow_sdk_wasm.cjs +19 -19
- package/dist/raw/default-nodejs/cow_sdk_wasm_bg.wasm.d.ts +3 -3
- package/dist/raw/orderbook-bundler/cow_sdk_wasm_bg.js +20 -20
- package/dist/raw/orderbook-bundler/cow_sdk_wasm_bg.wasm +0 -0
- package/dist/raw/orderbook-bundler/cow_sdk_wasm_bg.wasm.d.ts +3 -3
- package/dist/raw/orderbook-nodejs/cow_sdk_wasm.cjs +20 -20
- package/dist/raw/orderbook-nodejs/cow_sdk_wasm_bg.wasm.d.ts +3 -3
- package/dist/raw/signing-bundler/cow_sdk_wasm_bg.wasm +0 -0
- package/dist/raw/trading-bundler/cow_sdk_wasm.d.ts +2929 -0
- package/dist/raw/trading-bundler/cow_sdk_wasm.js +9 -0
- package/dist/raw/trading-bundler/cow_sdk_wasm_bg.js +2124 -0
- package/dist/raw/{cloudflare-web → trading-bundler}/cow_sdk_wasm_bg.wasm +0 -0
- package/dist/raw/{cloudflare-web → trading-bundler}/cow_sdk_wasm_bg.wasm.d.ts +3 -3
- package/dist/raw/trading-nodejs/cow_sdk_wasm.cjs +2155 -0
- package/dist/raw/trading-nodejs/cow_sdk_wasm.d.ts +2929 -0
- package/dist/raw/trading-nodejs/cow_sdk_wasm_bg.wasm.d.ts +67 -0
- package/dist/raw/{cloudflare-web → trading-web}/cow_sdk_wasm.d.ts +3 -3
- package/dist/raw/{cloudflare-web → trading-web}/cow_sdk_wasm.js +19 -19
- package/dist/raw/trading-web/cow_sdk_wasm_bg.wasm.d.ts +67 -0
- package/dist/signing/raw/trading-web.cjs +65 -0
- package/dist/signing/raw/trading-web.d.ts +30 -0
- package/dist/signing/raw/trading-web.js +29 -0
- package/dist/trading/edge.d.ts +91 -0
- package/dist/trading/edge.mjs +240 -0
- package/dist/{cloudflare → trading}/index.cjs +12 -1
- package/dist/{cloudflare → trading}/index.d.ts +14 -3
- package/dist/{cloudflare → trading}/index.mjs +12 -1
- package/dist/trading/raw/trading-web.d.ts +30 -0
- package/dist/trading/raw/trading-web.js +29 -0
- package/dist/trading/raw/trading.cjs +72 -0
- package/dist/trading/raw/trading.d.ts +33 -0
- package/dist/trading/raw/trading.js +35 -0
- package/package.json +38 -8
- /package/dist/{cloudflare → trading}/callbacks.cjs +0 -0
- /package/dist/{cloudflare → trading}/callbacks.d.ts +0 -0
- /package/dist/{cloudflare → trading}/callbacks.js +0 -0
- /package/dist/{cloudflare → trading}/envelope.cjs +0 -0
- /package/dist/{cloudflare → trading}/envelope.d.ts +0 -0
- /package/dist/{cloudflare → trading}/envelope.js +0 -0
- /package/dist/{cloudflare → trading}/errors.cjs +0 -0
- /package/dist/{cloudflare → trading}/errors.d.ts +0 -0
- /package/dist/{cloudflare → trading}/errors.js +0 -0
- /package/dist/{cloudflare → trading}/index.js +0 -0
- /package/dist/{cloudflare → trading}/internal.cjs +0 -0
- /package/dist/{cloudflare → trading}/internal.d.ts +0 -0
- /package/dist/{cloudflare → trading}/internal.js +0 -0
- /package/dist/{cloudflare → trading}/options.cjs +0 -0
- /package/dist/{cloudflare → trading}/options.d.ts +0 -0
- /package/dist/{cloudflare → trading}/options.js +0 -0
package/README.md
CHANGED
|
@@ -15,14 +15,20 @@ without depending on a specific wallet library.
|
|
|
15
15
|
|
|
16
16
|
| You are building... | Choose | Why |
|
|
17
17
|
| --- | --- | --- |
|
|
18
|
-
| Browser
|
|
19
|
-
| Browser
|
|
20
|
-
| Node.js 22 or 24 LTS backend | `@symbiome-forge/cow-sdk-wasm` |
|
|
21
|
-
| Cloudflare
|
|
18
|
+
| Browser dApp — quote, sign, post, cancel (full order lifecycle) with viem, ethers, wagmi, or an EIP-1193 wallet | `@symbiome-forge/cow-sdk-wasm/trading` | Order lifecycle plus app-data, built for a browser bundler (Vite, webpack); wallet stack stays outside the package behind typed callbacks |
|
|
19
|
+
| Browser dApp — orderbook reads and cancellation only | `@symbiome-forge/cow-sdk-wasm/orderbook` | Smaller read-focused subset, no trading or app-data |
|
|
20
|
+
| Node.js 22 or 24 LTS backend running order flow | `@symbiome-forge/cow-sdk-wasm/trading` | Same order-lifecycle surface on the Node target, no browser polyfills |
|
|
21
|
+
| Edge runtime — Cloudflare Workers, Deno, or Vercel Edge | `@symbiome-forge/cow-sdk-wasm/trading/edge` | The `trading` flavour's web-target build with explicit wasm module initialization |
|
|
22
22
|
| Signer service or HSM proxy | `@symbiome-forge/cow-sdk-wasm/signing` | Signing primitives without orderbook, trading, subgraph, or IPFS clients |
|
|
23
|
+
| Everything, including subgraph analytics and IPFS app-data | `@symbiome-forge/cow-sdk-wasm` | The full default surface |
|
|
23
24
|
| Native Rust service, bot, solver, or treasury automation | `cow-sdk` | Avoids wasm-bindgen and npm packaging entirely |
|
|
24
25
|
| Rust app compiled to browser WASM | `cow-sdk` with `cow-sdk-core`'s browser `FetchTransport` (the `wasm32-unknown-unknown` `transport::fetch` module) | Rust-on-wasm path; this package is for JavaScript hosts |
|
|
25
26
|
|
|
27
|
+
The same `trading` flavour serves a browser dApp (bundler target), a Node backend
|
|
28
|
+
(nodejs target), and an edge runtime (web target) from one feature set — pick the
|
|
29
|
+
import by runtime; the package resolves the target through standard conditional
|
|
30
|
+
exports, with `./trading/edge` as the explicit entry for Cloudflare Workers.
|
|
31
|
+
|
|
26
32
|
## Not in this crate
|
|
27
33
|
|
|
28
34
|
Use the upstream TypeScript SDK packages until these capability families ship
|
|
@@ -141,8 +147,8 @@ const signed = await signOrderWithTypedDataSigner(order, 1, owner, async (envelo
|
|
|
141
147
|
```ts
|
|
142
148
|
import initialize, {
|
|
143
149
|
OrderBookClient
|
|
144
|
-
} from "@symbiome-forge/cow-sdk-wasm/
|
|
145
|
-
import wasmModule from "@symbiome-forge/cow-sdk-wasm/
|
|
150
|
+
} from "@symbiome-forge/cow-sdk-wasm/trading/edge";
|
|
151
|
+
import wasmModule from "@symbiome-forge/cow-sdk-wasm/trading/edge/wasm";
|
|
146
152
|
|
|
147
153
|
export default {
|
|
148
154
|
async fetch(request: Request, env: Env): Promise<Response> {
|
|
@@ -170,11 +176,12 @@ export default {
|
|
|
170
176
|
|
|
171
177
|
| Import | Surface | Use when |
|
|
172
178
|
| --- | --- | --- |
|
|
173
|
-
| `@symbiome-forge/cow-sdk-wasm` | Default facade with orderbook, signing, app-data, IPFS, trading, and subgraph | General TypeScript or Node use |
|
|
174
|
-
| `@symbiome-forge/cow-sdk-wasm/
|
|
179
|
+
| `@symbiome-forge/cow-sdk-wasm` | Default facade with orderbook, signing, app-data, IPFS, trading, and subgraph | General TypeScript or Node use that needs subgraph or IPFS |
|
|
180
|
+
| `@symbiome-forge/cow-sdk-wasm/trading` | Orderbook, trading, signing, app-data, and cancellation — the full order lifecycle | Browser dApps, Node backends, and edge runtimes running order flow |
|
|
181
|
+
| `@symbiome-forge/cow-sdk-wasm/orderbook` | Orderbook client, cancellation helpers, and signing helpers | Read-focused dApps that do not post orders |
|
|
175
182
|
| `@symbiome-forge/cow-sdk-wasm/signing` | Signing, UID, EIP-1271, deployment, and version helpers | Signer services and HSM-facing adapters |
|
|
176
|
-
| `@symbiome-forge/cow-sdk-wasm/
|
|
177
|
-
| `@symbiome-forge/cow-sdk-wasm/
|
|
183
|
+
| `@symbiome-forge/cow-sdk-wasm/trading/edge` | The `trading` flavour's web-target facade | Edge runtimes (Cloudflare Workers, Deno, Vercel Edge) |
|
|
184
|
+
| `@symbiome-forge/cow-sdk-wasm/trading/edge/wasm` | Raw Worker wasm module asset | Pass to the `initialize` helper |
|
|
178
185
|
|
|
179
186
|
Do not import from `dist/raw` or generated wasm-pack target directories. Raw
|
|
180
187
|
wasm-bindgen output is package-internal; public imports go through the facade
|
|
@@ -187,12 +194,13 @@ Measured on the current alpha build:
|
|
|
187
194
|
|
|
188
195
|
| Flavor | Raw wasm | Brotli | Gzip | Gate |
|
|
189
196
|
| --- | ---: | ---: | ---: | --- |
|
|
190
|
-
| default | 1.63 MiB | 511 KiB |
|
|
197
|
+
| default | 1.63 MiB | 511 KiB | 689 KiB | 3.3 MiB raw / 900 KiB brotli |
|
|
191
198
|
| orderbook | 1.03 MiB | 341 KiB | 447 KiB | 1.5 MiB raw / 500 KiB brotli |
|
|
192
|
-
| signing | 0.31 MiB |
|
|
193
|
-
|
|
|
199
|
+
| signing | 0.31 MiB | 120 KiB | 142 KiB | 0.9 MiB raw / 300 KiB brotli |
|
|
200
|
+
| trading | 1.54 MiB | 489 KiB | 657 KiB | 3.2 MiB raw / 850 KiB brotli / 3,000,000 B gzip (warn at 2,700,000 B) |
|
|
194
201
|
|
|
195
|
-
The
|
|
202
|
+
The `trading` flavour emits one wasm binary shared across its bundler, nodejs, and
|
|
203
|
+
web targets. Its web-target gzip-compressed artifact is below the current
|
|
196
204
|
Cloudflare Workers Free compressed-size limit at the time of measurement.
|
|
197
205
|
Full Workers support still requires release-bundle verification and Worker
|
|
198
206
|
startup measurement; the release pipeline enforces the gzip byte budget on
|
|
@@ -269,9 +277,9 @@ subsets. This package is appropriate for specialized cases:
|
|
|
269
277
|
- Single-source-of-truth Rust + TypeScript embedding (one implementation
|
|
270
278
|
across both runtimes).
|
|
271
279
|
- Cloudflare Workers (size-compatible with the current Workers Free
|
|
272
|
-
compressed-size limit at the time of measurement; the `
|
|
273
|
-
is built and tested end-to-end in CI (Workers Vitest), within the
|
|
274
|
-
compressed-size budget).
|
|
280
|
+
compressed-size limit at the time of measurement; the `trading` flavour's
|
|
281
|
+
edge build is built and tested end-to-end in CI (Workers Vitest), within the
|
|
282
|
+
Workers compressed-size budget).
|
|
275
283
|
- Embeddable signing helpers (the `./signing` flavor is the smallest).
|
|
276
284
|
|
|
277
285
|
The "When to use this SDK" table at the top of this README routes consumers
|
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.wasmVersion = exports.validateAppDataDoc = exports.supportedChainIds = exports.signOrderWithTypedDataSigner = exports.signOrderWithEip1271 = exports.signOrderWithEip1193 = exports.signOrderWithCustomEip1271 = exports.signOrderEthSignDigest = exports.signCancellationWithTypedDataSigner = exports.signCancellationWithEip1193 = exports.signCancellationEthSignDigest = exports.orderTypedData = exports.eip1271SignaturePayload = exports.domainSeparator = exports.deploymentAddresses = exports.decodeSettlementLog = exports.decodeEthFlowLog = exports.computeOrderUid = exports.cidToAppDataHex = exports.buildPresignTx = exports.buildCancelOrderTx = exports.appDataInfo = exports.appDataHexToCid = exports.appDataDoc = exports.__cow_sdk_wasm_init = exports.RawTradingClient = exports.RawOrderBookClient = exports.initializeRaw = void 0;
|
|
37
|
-
const cow_sdk_wasm_js_1 = __importStar(require("../../raw/
|
|
37
|
+
const cow_sdk_wasm_js_1 = __importStar(require("../../raw/trading-web/cow_sdk_wasm.cjs")), wasm = cow_sdk_wasm_js_1;
|
|
38
38
|
exports.initializeRaw = cow_sdk_wasm_js_1.default;
|
|
39
39
|
exports.RawOrderBookClient = wasm.OrderBookClient;
|
|
40
40
|
exports.RawTradingClient = wasm.TradingClient;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import init, * as wasm from "../../raw/
|
|
2
|
-
export type * from "../../raw/
|
|
1
|
+
import init, * as wasm from "../../raw/trading-web/cow_sdk_wasm.js";
|
|
2
|
+
export type * from "../../raw/trading-web/cow_sdk_wasm.js";
|
|
3
3
|
export declare const initializeRaw: typeof init;
|
|
4
4
|
export declare const RawOrderBookClient: typeof wasm.OrderBookClient;
|
|
5
5
|
export declare const RawTradingClient: typeof wasm.TradingClient;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import init, * as wasm from "../../raw/
|
|
1
|
+
import init, * as wasm from "../../raw/trading-web/cow_sdk_wasm.js";
|
|
2
2
|
export const initializeRaw = init;
|
|
3
3
|
export const RawOrderBookClient = wasm.OrderBookClient;
|
|
4
4
|
export const RawTradingClient = wasm.TradingClient;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.wasmVersion = exports.validateAppDataDoc = exports.supportedChainIds = exports.signOrderWithTypedDataSigner = exports.signOrderWithEip1271 = exports.signOrderWithEip1193 = exports.signOrderWithCustomEip1271 = exports.signOrderEthSignDigest = exports.signCancellationWithTypedDataSigner = exports.signCancellationWithEip1193 = exports.signCancellationEthSignDigest = exports.orderTypedData = exports.eip1271SignaturePayload = exports.domainSeparator = exports.deploymentAddresses = exports.decodeSettlementLog = exports.decodeEthFlowLog = exports.computeOrderUid = exports.cidToAppDataHex = exports.buildPresignTx = exports.buildCancelOrderTx = exports.appDataInfo = exports.appDataHexToCid = exports.appDataDoc = exports.__cow_sdk_wasm_init = exports.RawTradingClient = exports.RawOrderBookClient = exports.initializeRaw = void 0;
|
|
37
|
+
const cow_sdk_wasm_js_1 = __importStar(require("../../raw/trading-web/cow_sdk_wasm.cjs")), wasm = cow_sdk_wasm_js_1;
|
|
38
|
+
exports.initializeRaw = cow_sdk_wasm_js_1.default;
|
|
39
|
+
exports.RawOrderBookClient = wasm.OrderBookClient;
|
|
40
|
+
exports.RawTradingClient = wasm.TradingClient;
|
|
41
|
+
exports.__cow_sdk_wasm_init = wasm.__cow_sdk_wasm_init;
|
|
42
|
+
exports.appDataDoc = wasm.appDataDoc;
|
|
43
|
+
exports.appDataHexToCid = wasm.appDataHexToCid;
|
|
44
|
+
exports.appDataInfo = wasm.appDataInfo;
|
|
45
|
+
exports.buildCancelOrderTx = wasm.buildCancelOrderTx;
|
|
46
|
+
exports.buildPresignTx = wasm.buildPresignTx;
|
|
47
|
+
exports.cidToAppDataHex = wasm.cidToAppDataHex;
|
|
48
|
+
exports.computeOrderUid = wasm.computeOrderUid;
|
|
49
|
+
exports.decodeEthFlowLog = wasm.decodeEthFlowLog;
|
|
50
|
+
exports.decodeSettlementLog = wasm.decodeSettlementLog;
|
|
51
|
+
exports.deploymentAddresses = wasm.deploymentAddresses;
|
|
52
|
+
exports.domainSeparator = wasm.domainSeparator;
|
|
53
|
+
exports.eip1271SignaturePayload = wasm.eip1271SignaturePayload;
|
|
54
|
+
exports.orderTypedData = wasm.orderTypedData;
|
|
55
|
+
exports.signCancellationEthSignDigest = wasm.signCancellationEthSignDigest;
|
|
56
|
+
exports.signCancellationWithEip1193 = wasm.signCancellationWithEip1193;
|
|
57
|
+
exports.signCancellationWithTypedDataSigner = wasm.signCancellationWithTypedDataSigner;
|
|
58
|
+
exports.signOrderEthSignDigest = wasm.signOrderEthSignDigest;
|
|
59
|
+
exports.signOrderWithCustomEip1271 = wasm.signOrderWithCustomEip1271;
|
|
60
|
+
exports.signOrderWithEip1193 = wasm.signOrderWithEip1193;
|
|
61
|
+
exports.signOrderWithEip1271 = wasm.signOrderWithEip1271;
|
|
62
|
+
exports.signOrderWithTypedDataSigner = wasm.signOrderWithTypedDataSigner;
|
|
63
|
+
exports.supportedChainIds = wasm.supportedChainIds;
|
|
64
|
+
exports.validateAppDataDoc = wasm.validateAppDataDoc;
|
|
65
|
+
exports.wasmVersion = wasm.wasmVersion;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import init, * as wasm from "../../raw/trading-web/cow_sdk_wasm.js";
|
|
2
|
+
export type * from "../../raw/trading-web/cow_sdk_wasm.js";
|
|
3
|
+
export declare const initializeRaw: typeof init;
|
|
4
|
+
export declare const RawOrderBookClient: typeof wasm.OrderBookClient;
|
|
5
|
+
export declare const RawTradingClient: typeof wasm.TradingClient;
|
|
6
|
+
export declare const __cow_sdk_wasm_init: typeof wasm.__cow_sdk_wasm_init;
|
|
7
|
+
export declare const appDataDoc: typeof wasm.appDataDoc;
|
|
8
|
+
export declare const appDataHexToCid: typeof wasm.appDataHexToCid;
|
|
9
|
+
export declare const appDataInfo: typeof wasm.appDataInfo;
|
|
10
|
+
export declare const buildCancelOrderTx: typeof wasm.buildCancelOrderTx;
|
|
11
|
+
export declare const buildPresignTx: typeof wasm.buildPresignTx;
|
|
12
|
+
export declare const cidToAppDataHex: typeof wasm.cidToAppDataHex;
|
|
13
|
+
export declare const computeOrderUid: typeof wasm.computeOrderUid;
|
|
14
|
+
export declare const decodeEthFlowLog: typeof wasm.decodeEthFlowLog;
|
|
15
|
+
export declare const decodeSettlementLog: typeof wasm.decodeSettlementLog;
|
|
16
|
+
export declare const deploymentAddresses: typeof wasm.deploymentAddresses;
|
|
17
|
+
export declare const domainSeparator: typeof wasm.domainSeparator;
|
|
18
|
+
export declare const eip1271SignaturePayload: typeof wasm.eip1271SignaturePayload;
|
|
19
|
+
export declare const orderTypedData: typeof wasm.orderTypedData;
|
|
20
|
+
export declare const signCancellationEthSignDigest: typeof wasm.signCancellationEthSignDigest;
|
|
21
|
+
export declare const signCancellationWithEip1193: typeof wasm.signCancellationWithEip1193;
|
|
22
|
+
export declare const signCancellationWithTypedDataSigner: typeof wasm.signCancellationWithTypedDataSigner;
|
|
23
|
+
export declare const signOrderEthSignDigest: typeof wasm.signOrderEthSignDigest;
|
|
24
|
+
export declare const signOrderWithCustomEip1271: typeof wasm.signOrderWithCustomEip1271;
|
|
25
|
+
export declare const signOrderWithEip1193: typeof wasm.signOrderWithEip1193;
|
|
26
|
+
export declare const signOrderWithEip1271: typeof wasm.signOrderWithEip1271;
|
|
27
|
+
export declare const signOrderWithTypedDataSigner: typeof wasm.signOrderWithTypedDataSigner;
|
|
28
|
+
export declare const supportedChainIds: typeof wasm.supportedChainIds;
|
|
29
|
+
export declare const validateAppDataDoc: typeof wasm.validateAppDataDoc;
|
|
30
|
+
export declare const wasmVersion: typeof wasm.wasmVersion;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import init, * as wasm from "../../raw/trading-web/cow_sdk_wasm.js";
|
|
2
|
+
export const initializeRaw = init;
|
|
3
|
+
export const RawOrderBookClient = wasm.OrderBookClient;
|
|
4
|
+
export const RawTradingClient = wasm.TradingClient;
|
|
5
|
+
export const __cow_sdk_wasm_init = wasm.__cow_sdk_wasm_init;
|
|
6
|
+
export const appDataDoc = wasm.appDataDoc;
|
|
7
|
+
export const appDataHexToCid = wasm.appDataHexToCid;
|
|
8
|
+
export const appDataInfo = wasm.appDataInfo;
|
|
9
|
+
export const buildCancelOrderTx = wasm.buildCancelOrderTx;
|
|
10
|
+
export const buildPresignTx = wasm.buildPresignTx;
|
|
11
|
+
export const cidToAppDataHex = wasm.cidToAppDataHex;
|
|
12
|
+
export const computeOrderUid = wasm.computeOrderUid;
|
|
13
|
+
export const decodeEthFlowLog = wasm.decodeEthFlowLog;
|
|
14
|
+
export const decodeSettlementLog = wasm.decodeSettlementLog;
|
|
15
|
+
export const deploymentAddresses = wasm.deploymentAddresses;
|
|
16
|
+
export const domainSeparator = wasm.domainSeparator;
|
|
17
|
+
export const eip1271SignaturePayload = wasm.eip1271SignaturePayload;
|
|
18
|
+
export const orderTypedData = wasm.orderTypedData;
|
|
19
|
+
export const signCancellationEthSignDigest = wasm.signCancellationEthSignDigest;
|
|
20
|
+
export const signCancellationWithEip1193 = wasm.signCancellationWithEip1193;
|
|
21
|
+
export const signCancellationWithTypedDataSigner = wasm.signCancellationWithTypedDataSigner;
|
|
22
|
+
export const signOrderEthSignDigest = wasm.signOrderEthSignDigest;
|
|
23
|
+
export const signOrderWithCustomEip1271 = wasm.signOrderWithCustomEip1271;
|
|
24
|
+
export const signOrderWithEip1193 = wasm.signOrderWithEip1193;
|
|
25
|
+
export const signOrderWithEip1271 = wasm.signOrderWithEip1271;
|
|
26
|
+
export const signOrderWithTypedDataSigner = wasm.signOrderWithTypedDataSigner;
|
|
27
|
+
export const supportedChainIds = wasm.supportedChainIds;
|
|
28
|
+
export const validateAppDataDoc = wasm.validateAppDataDoc;
|
|
29
|
+
export const wasmVersion = wasm.wasmVersion;
|
|
@@ -1645,10 +1645,10 @@ export function __wbg___wbindgen_throw_ea4887a5f8f9a9db(arg0, arg1) {
|
|
|
1645
1645
|
export function __wbg__wbg_cb_unref_33c39e13d73b25f6(arg0) {
|
|
1646
1646
|
getObject(arg0)._wbg_cb_unref();
|
|
1647
1647
|
}
|
|
1648
|
-
export function
|
|
1648
|
+
export function __wbg_abort_31829d090a22157e(arg0) {
|
|
1649
1649
|
getObject(arg0).abort();
|
|
1650
1650
|
}
|
|
1651
|
-
export function
|
|
1651
|
+
export function __wbg_abort_6e6ea7d259504afc(arg0) {
|
|
1652
1652
|
getObject(arg0).abort();
|
|
1653
1653
|
}
|
|
1654
1654
|
export function __wbg_aborted_4d4114700dc4c251(arg0) {
|
|
@@ -1670,7 +1670,7 @@ export function __wbg_clearTimeout_3629d6209dfcc46e(arg0) {
|
|
|
1670
1670
|
const ret = clearTimeout(takeObject(arg0));
|
|
1671
1671
|
return addHeapObject(ret);
|
|
1672
1672
|
}
|
|
1673
|
-
export function
|
|
1673
|
+
export function __wbg_clearTimeout_e57554837a7f63d7(arg0) {
|
|
1674
1674
|
globalThis.clearTimeout(getObject(arg0));
|
|
1675
1675
|
}
|
|
1676
1676
|
export function __wbg_done_b62d4a7d2286852a(arg0) {
|
|
@@ -1800,10 +1800,6 @@ export function __wbg_length_c6054974c0a6cdb9(arg0) {
|
|
|
1800
1800
|
const ret = getObject(arg0).length;
|
|
1801
1801
|
return ret;
|
|
1802
1802
|
}
|
|
1803
|
-
export function __wbg_new_0ace9a25fb079afe() {
|
|
1804
|
-
const ret = new globalThis.AbortController();
|
|
1805
|
-
return addHeapObject(ret);
|
|
1806
|
-
}
|
|
1807
1803
|
export function __wbg_new_10e2f2ad134f940f() { return handleError(function () {
|
|
1808
1804
|
const ret = new Headers();
|
|
1809
1805
|
return addHeapObject(ret);
|
|
@@ -1832,6 +1828,10 @@ export function __wbg_new_81880fb5002cb255(arg0) {
|
|
|
1832
1828
|
const ret = new Uint8Array(getObject(arg0));
|
|
1833
1829
|
return addHeapObject(ret);
|
|
1834
1830
|
}
|
|
1831
|
+
export function __wbg_new_990ecaada4e767e8() {
|
|
1832
|
+
const ret = new globalThis.AbortController();
|
|
1833
|
+
return addHeapObject(ret);
|
|
1834
|
+
}
|
|
1835
1835
|
export function __wbg_new_f85beb941dc6d8aa(arg0, arg1) {
|
|
1836
1836
|
try {
|
|
1837
1837
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -1839,7 +1839,7 @@ export function __wbg_new_f85beb941dc6d8aa(arg0, arg1) {
|
|
|
1839
1839
|
const a = state0.a;
|
|
1840
1840
|
state0.a = 0;
|
|
1841
1841
|
try {
|
|
1842
|
-
return
|
|
1842
|
+
return __wasm_bindgen_func_elem_6664(a, state0.b, arg0, arg1);
|
|
1843
1843
|
} finally {
|
|
1844
1844
|
state0.a = a;
|
|
1845
1845
|
}
|
|
@@ -1857,7 +1857,7 @@ export function __wbg_new_typed_00a409eb4ec4f2d9(arg0, arg1) {
|
|
|
1857
1857
|
const a = state0.a;
|
|
1858
1858
|
state0.a = 0;
|
|
1859
1859
|
try {
|
|
1860
|
-
return
|
|
1860
|
+
return __wasm_bindgen_func_elem_6664(a, state0.b, arg0, arg1);
|
|
1861
1861
|
} finally {
|
|
1862
1862
|
state0.a = a;
|
|
1863
1863
|
}
|
|
@@ -1921,7 +1921,7 @@ export function __wbg_setTimeout_56bcdccbad22fd44() { return handleError(functio
|
|
|
1921
1921
|
const ret = setTimeout(getObject(arg0), arg1);
|
|
1922
1922
|
return addHeapObject(ret);
|
|
1923
1923
|
}, arguments); }
|
|
1924
|
-
export function
|
|
1924
|
+
export function __wbg_setTimeout_e62684fd7137df5a(arg0, arg1) {
|
|
1925
1925
|
const ret = globalThis.setTimeout(getObject(arg0), arg1 >>> 0);
|
|
1926
1926
|
return addHeapObject(ret);
|
|
1927
1927
|
}
|
|
@@ -1958,7 +1958,7 @@ export function __wbg_signal_4d9d567be73ea52c(arg0) {
|
|
|
1958
1958
|
const ret = getObject(arg0).signal;
|
|
1959
1959
|
return addHeapObject(ret);
|
|
1960
1960
|
}
|
|
1961
|
-
export function
|
|
1961
|
+
export function __wbg_signal_4dbfa08b7d7dc197(arg0) {
|
|
1962
1962
|
const ret = getObject(arg0).signal;
|
|
1963
1963
|
return addHeapObject(ret);
|
|
1964
1964
|
}
|
|
@@ -2010,12 +2010,12 @@ export function __wbg_warn_cd671287bc02594a(arg0) {
|
|
|
2010
2010
|
}
|
|
2011
2011
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
2012
2012
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 647, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2013
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2013
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_6655);
|
|
2014
2014
|
return addHeapObject(ret);
|
|
2015
2015
|
}
|
|
2016
2016
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
2017
2017
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 639, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2018
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2018
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_6575);
|
|
2019
2019
|
return addHeapObject(ret);
|
|
2020
2020
|
}
|
|
2021
2021
|
export function __wbindgen_cast_0000000000000003(arg0) {
|
|
@@ -2045,14 +2045,14 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
2045
2045
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
2046
2046
|
takeObject(arg0);
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2049
|
-
wasm.
|
|
2048
|
+
function __wasm_bindgen_func_elem_6575(arg0, arg1) {
|
|
2049
|
+
wasm.__wasm_bindgen_func_elem_6575(arg0, arg1);
|
|
2050
2050
|
}
|
|
2051
2051
|
|
|
2052
|
-
function
|
|
2052
|
+
function __wasm_bindgen_func_elem_6655(arg0, arg1, arg2) {
|
|
2053
2053
|
try {
|
|
2054
2054
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2055
|
-
wasm.
|
|
2055
|
+
wasm.__wasm_bindgen_func_elem_6655(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2056
2056
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2057
2057
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2058
2058
|
if (r1) {
|
|
@@ -2063,8 +2063,8 @@ function __wasm_bindgen_func_elem_6653(arg0, arg1, arg2) {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
}
|
|
2065
2065
|
|
|
2066
|
-
function
|
|
2067
|
-
wasm.
|
|
2066
|
+
function __wasm_bindgen_func_elem_6664(arg0, arg1, arg2, arg3) {
|
|
2067
|
+
wasm.__wasm_bindgen_func_elem_6664(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2068
2068
|
}
|
|
2069
2069
|
|
|
2070
2070
|
const IpfsClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
Binary file
|
|
@@ -66,9 +66,9 @@ export const tradingclient_postSwapOrderFromQuote: (a: number, b: number, c: num
|
|
|
66
66
|
export const tradingclient_postSwapOrderWithEip1271: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
67
67
|
export const validateAppDataDoc: (a: number, b: number) => void;
|
|
68
68
|
export const wasmVersion: (a: number) => void;
|
|
69
|
-
export const
|
|
70
|
-
export const
|
|
71
|
-
export const
|
|
69
|
+
export const __wasm_bindgen_func_elem_6655: (a: number, b: number, c: number, d: number) => void;
|
|
70
|
+
export const __wasm_bindgen_func_elem_6664: (a: number, b: number, c: number, d: number) => void;
|
|
71
|
+
export const __wasm_bindgen_func_elem_6575: (a: number, b: number) => void;
|
|
72
72
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
73
73
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
74
74
|
export const __wbindgen_export3: (a: number) => void;
|
|
@@ -1679,10 +1679,10 @@ function __wbg_get_imports() {
|
|
|
1679
1679
|
__wbg__wbg_cb_unref_33c39e13d73b25f6: function(arg0) {
|
|
1680
1680
|
getObject(arg0)._wbg_cb_unref();
|
|
1681
1681
|
},
|
|
1682
|
-
|
|
1682
|
+
__wbg_abort_31829d090a22157e: function(arg0) {
|
|
1683
1683
|
getObject(arg0).abort();
|
|
1684
1684
|
},
|
|
1685
|
-
|
|
1685
|
+
__wbg_abort_6e6ea7d259504afc: function(arg0) {
|
|
1686
1686
|
getObject(arg0).abort();
|
|
1687
1687
|
},
|
|
1688
1688
|
__wbg_aborted_4d4114700dc4c251: function(arg0) {
|
|
@@ -1704,7 +1704,7 @@ function __wbg_get_imports() {
|
|
|
1704
1704
|
const ret = clearTimeout(takeObject(arg0));
|
|
1705
1705
|
return addHeapObject(ret);
|
|
1706
1706
|
},
|
|
1707
|
-
|
|
1707
|
+
__wbg_clearTimeout_e57554837a7f63d7: function(arg0) {
|
|
1708
1708
|
globalThis.clearTimeout(getObject(arg0));
|
|
1709
1709
|
},
|
|
1710
1710
|
__wbg_done_b62d4a7d2286852a: function(arg0) {
|
|
@@ -1834,10 +1834,6 @@ function __wbg_get_imports() {
|
|
|
1834
1834
|
const ret = getObject(arg0).length;
|
|
1835
1835
|
return ret;
|
|
1836
1836
|
},
|
|
1837
|
-
__wbg_new_0ace9a25fb079afe: function() {
|
|
1838
|
-
const ret = new globalThis.AbortController();
|
|
1839
|
-
return addHeapObject(ret);
|
|
1840
|
-
},
|
|
1841
1837
|
__wbg_new_10e2f2ad134f940f: function() { return handleError(function () {
|
|
1842
1838
|
const ret = new Headers();
|
|
1843
1839
|
return addHeapObject(ret);
|
|
@@ -1866,6 +1862,10 @@ function __wbg_get_imports() {
|
|
|
1866
1862
|
const ret = new Uint8Array(getObject(arg0));
|
|
1867
1863
|
return addHeapObject(ret);
|
|
1868
1864
|
},
|
|
1865
|
+
__wbg_new_990ecaada4e767e8: function() {
|
|
1866
|
+
const ret = new globalThis.AbortController();
|
|
1867
|
+
return addHeapObject(ret);
|
|
1868
|
+
},
|
|
1869
1869
|
__wbg_new_f85beb941dc6d8aa: function(arg0, arg1) {
|
|
1870
1870
|
try {
|
|
1871
1871
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -1873,7 +1873,7 @@ function __wbg_get_imports() {
|
|
|
1873
1873
|
const a = state0.a;
|
|
1874
1874
|
state0.a = 0;
|
|
1875
1875
|
try {
|
|
1876
|
-
return
|
|
1876
|
+
return __wasm_bindgen_func_elem_6664(a, state0.b, arg0, arg1);
|
|
1877
1877
|
} finally {
|
|
1878
1878
|
state0.a = a;
|
|
1879
1879
|
}
|
|
@@ -1891,7 +1891,7 @@ function __wbg_get_imports() {
|
|
|
1891
1891
|
const a = state0.a;
|
|
1892
1892
|
state0.a = 0;
|
|
1893
1893
|
try {
|
|
1894
|
-
return
|
|
1894
|
+
return __wasm_bindgen_func_elem_6664(a, state0.b, arg0, arg1);
|
|
1895
1895
|
} finally {
|
|
1896
1896
|
state0.a = a;
|
|
1897
1897
|
}
|
|
@@ -1955,7 +1955,7 @@ function __wbg_get_imports() {
|
|
|
1955
1955
|
const ret = setTimeout(getObject(arg0), arg1);
|
|
1956
1956
|
return addHeapObject(ret);
|
|
1957
1957
|
}, arguments); },
|
|
1958
|
-
|
|
1958
|
+
__wbg_setTimeout_e62684fd7137df5a: function(arg0, arg1) {
|
|
1959
1959
|
const ret = globalThis.setTimeout(getObject(arg0), arg1 >>> 0);
|
|
1960
1960
|
return addHeapObject(ret);
|
|
1961
1961
|
},
|
|
@@ -1992,7 +1992,7 @@ function __wbg_get_imports() {
|
|
|
1992
1992
|
const ret = getObject(arg0).signal;
|
|
1993
1993
|
return addHeapObject(ret);
|
|
1994
1994
|
},
|
|
1995
|
-
|
|
1995
|
+
__wbg_signal_4dbfa08b7d7dc197: function(arg0) {
|
|
1996
1996
|
const ret = getObject(arg0).signal;
|
|
1997
1997
|
return addHeapObject(ret);
|
|
1998
1998
|
},
|
|
@@ -2044,12 +2044,12 @@ function __wbg_get_imports() {
|
|
|
2044
2044
|
},
|
|
2045
2045
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2046
2046
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 647, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2047
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2047
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_6655);
|
|
2048
2048
|
return addHeapObject(ret);
|
|
2049
2049
|
},
|
|
2050
2050
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2051
2051
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 639, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2052
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2052
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_6575);
|
|
2053
2053
|
return addHeapObject(ret);
|
|
2054
2054
|
},
|
|
2055
2055
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -2086,14 +2086,14 @@ function __wbg_get_imports() {
|
|
|
2086
2086
|
};
|
|
2087
2087
|
}
|
|
2088
2088
|
|
|
2089
|
-
function
|
|
2090
|
-
wasm.
|
|
2089
|
+
function __wasm_bindgen_func_elem_6575(arg0, arg1) {
|
|
2090
|
+
wasm.__wasm_bindgen_func_elem_6575(arg0, arg1);
|
|
2091
2091
|
}
|
|
2092
2092
|
|
|
2093
|
-
function
|
|
2093
|
+
function __wasm_bindgen_func_elem_6655(arg0, arg1, arg2) {
|
|
2094
2094
|
try {
|
|
2095
2095
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2096
|
-
wasm.
|
|
2096
|
+
wasm.__wasm_bindgen_func_elem_6655(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2097
2097
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2098
2098
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2099
2099
|
if (r1) {
|
|
@@ -2104,8 +2104,8 @@ function __wasm_bindgen_func_elem_6653(arg0, arg1, arg2) {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
2106
2106
|
|
|
2107
|
-
function
|
|
2108
|
-
wasm.
|
|
2107
|
+
function __wasm_bindgen_func_elem_6664(arg0, arg1, arg2, arg3) {
|
|
2108
|
+
wasm.__wasm_bindgen_func_elem_6664(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2109
2109
|
}
|
|
2110
2110
|
|
|
2111
2111
|
const IpfsClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -66,9 +66,9 @@ export const tradingclient_postSwapOrderFromQuote: (a: number, b: number, c: num
|
|
|
66
66
|
export const tradingclient_postSwapOrderWithEip1271: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
67
67
|
export const validateAppDataDoc: (a: number, b: number) => void;
|
|
68
68
|
export const wasmVersion: (a: number) => void;
|
|
69
|
-
export const
|
|
70
|
-
export const
|
|
71
|
-
export const
|
|
69
|
+
export const __wasm_bindgen_func_elem_6655: (a: number, b: number, c: number, d: number) => void;
|
|
70
|
+
export const __wasm_bindgen_func_elem_6664: (a: number, b: number, c: number, d: number) => void;
|
|
71
|
+
export const __wasm_bindgen_func_elem_6575: (a: number, b: number) => void;
|
|
72
72
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
73
73
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
74
74
|
export const __wbindgen_export3: (a: number) => void;
|
|
@@ -1063,7 +1063,7 @@ export function __wbg___wbindgen_throw_ea4887a5f8f9a9db(arg0, arg1) {
|
|
|
1063
1063
|
export function __wbg__wbg_cb_unref_33c39e13d73b25f6(arg0) {
|
|
1064
1064
|
getObject(arg0)._wbg_cb_unref();
|
|
1065
1065
|
}
|
|
1066
|
-
export function
|
|
1066
|
+
export function __wbg_abort_31829d090a22157e(arg0) {
|
|
1067
1067
|
getObject(arg0).abort();
|
|
1068
1068
|
}
|
|
1069
1069
|
export function __wbg_aborted_4d4114700dc4c251(arg0) {
|
|
@@ -1085,7 +1085,7 @@ export function __wbg_clearTimeout_3629d6209dfcc46e(arg0) {
|
|
|
1085
1085
|
const ret = clearTimeout(takeObject(arg0));
|
|
1086
1086
|
return addHeapObject(ret);
|
|
1087
1087
|
}
|
|
1088
|
-
export function
|
|
1088
|
+
export function __wbg_clearTimeout_e57554837a7f63d7(arg0) {
|
|
1089
1089
|
globalThis.clearTimeout(getObject(arg0));
|
|
1090
1090
|
}
|
|
1091
1091
|
export function __wbg_done_b62d4a7d2286852a(arg0) {
|
|
@@ -1187,10 +1187,6 @@ export function __wbg_length_c6054974c0a6cdb9(arg0) {
|
|
|
1187
1187
|
const ret = getObject(arg0).length;
|
|
1188
1188
|
return ret;
|
|
1189
1189
|
}
|
|
1190
|
-
export function __wbg_new_0ace9a25fb079afe() {
|
|
1191
|
-
const ret = new globalThis.AbortController();
|
|
1192
|
-
return addHeapObject(ret);
|
|
1193
|
-
}
|
|
1194
1190
|
export function __wbg_new_227d7c05414eb861() {
|
|
1195
1191
|
const ret = new Error();
|
|
1196
1192
|
return addHeapObject(ret);
|
|
@@ -1211,6 +1207,10 @@ export function __wbg_new_81880fb5002cb255(arg0) {
|
|
|
1211
1207
|
const ret = new Uint8Array(getObject(arg0));
|
|
1212
1208
|
return addHeapObject(ret);
|
|
1213
1209
|
}
|
|
1210
|
+
export function __wbg_new_990ecaada4e767e8() {
|
|
1211
|
+
const ret = new globalThis.AbortController();
|
|
1212
|
+
return addHeapObject(ret);
|
|
1213
|
+
}
|
|
1214
1214
|
export function __wbg_new_f85beb941dc6d8aa(arg0, arg1) {
|
|
1215
1215
|
try {
|
|
1216
1216
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -1218,7 +1218,7 @@ export function __wbg_new_f85beb941dc6d8aa(arg0, arg1) {
|
|
|
1218
1218
|
const a = state0.a;
|
|
1219
1219
|
state0.a = 0;
|
|
1220
1220
|
try {
|
|
1221
|
-
return
|
|
1221
|
+
return __wasm_bindgen_func_elem_4244(a, state0.b, arg0, arg1);
|
|
1222
1222
|
} finally {
|
|
1223
1223
|
state0.a = a;
|
|
1224
1224
|
}
|
|
@@ -1236,7 +1236,7 @@ export function __wbg_new_typed_00a409eb4ec4f2d9(arg0, arg1) {
|
|
|
1236
1236
|
const a = state0.a;
|
|
1237
1237
|
state0.a = 0;
|
|
1238
1238
|
try {
|
|
1239
|
-
return
|
|
1239
|
+
return __wasm_bindgen_func_elem_4244(a, state0.b, arg0, arg1);
|
|
1240
1240
|
} finally {
|
|
1241
1241
|
state0.a = a;
|
|
1242
1242
|
}
|
|
@@ -1296,7 +1296,7 @@ export function __wbg_setTimeout_56bcdccbad22fd44() { return handleError(functio
|
|
|
1296
1296
|
const ret = setTimeout(getObject(arg0), arg1);
|
|
1297
1297
|
return addHeapObject(ret);
|
|
1298
1298
|
}, arguments); }
|
|
1299
|
-
export function
|
|
1299
|
+
export function __wbg_setTimeout_e62684fd7137df5a(arg0, arg1) {
|
|
1300
1300
|
const ret = globalThis.setTimeout(getObject(arg0), arg1 >>> 0);
|
|
1301
1301
|
return addHeapObject(ret);
|
|
1302
1302
|
}
|
|
@@ -1314,7 +1314,7 @@ export function __wbg_set_9a1d61e17de7054c(arg0, arg1, arg2) {
|
|
|
1314
1314
|
export function __wbg_set_dc601f4a69da0bc2(arg0, arg1, arg2) {
|
|
1315
1315
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1316
1316
|
}
|
|
1317
|
-
export function
|
|
1317
|
+
export function __wbg_signal_4dbfa08b7d7dc197(arg0) {
|
|
1318
1318
|
const ret = getObject(arg0).signal;
|
|
1319
1319
|
return addHeapObject(ret);
|
|
1320
1320
|
}
|
|
@@ -1357,13 +1357,13 @@ export function __wbg_warn_cd671287bc02594a(arg0) {
|
|
|
1357
1357
|
console.warn(getObject(arg0));
|
|
1358
1358
|
}
|
|
1359
1359
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1360
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1361
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1360
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 377, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1361
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4235);
|
|
1362
1362
|
return addHeapObject(ret);
|
|
1363
1363
|
}
|
|
1364
1364
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
1365
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1366
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1365
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 369, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1366
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4155);
|
|
1367
1367
|
return addHeapObject(ret);
|
|
1368
1368
|
}
|
|
1369
1369
|
export function __wbindgen_cast_0000000000000003(arg0) {
|
|
@@ -1393,14 +1393,14 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
1393
1393
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
1394
1394
|
takeObject(arg0);
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1397
|
-
wasm.
|
|
1396
|
+
function __wasm_bindgen_func_elem_4155(arg0, arg1) {
|
|
1397
|
+
wasm.__wasm_bindgen_func_elem_4155(arg0, arg1);
|
|
1398
1398
|
}
|
|
1399
1399
|
|
|
1400
|
-
function
|
|
1400
|
+
function __wasm_bindgen_func_elem_4235(arg0, arg1, arg2) {
|
|
1401
1401
|
try {
|
|
1402
1402
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1403
|
-
wasm.
|
|
1403
|
+
wasm.__wasm_bindgen_func_elem_4235(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1404
1404
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1405
1405
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1406
1406
|
if (r1) {
|
|
@@ -1411,8 +1411,8 @@ function __wasm_bindgen_func_elem_4278(arg0, arg1, arg2) {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
|
-
function
|
|
1415
|
-
wasm.
|
|
1414
|
+
function __wasm_bindgen_func_elem_4244(arg0, arg1, arg2, arg3) {
|
|
1415
|
+
wasm.__wasm_bindgen_func_elem_4244(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1416
1416
|
}
|
|
1417
1417
|
|
|
1418
1418
|
const OrderBookClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
Binary file
|