@steerprotocol/app-loader 3.0.5 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/lib/browser.d.ts +5 -2
- package/lib/browser.mjs +253 -73
- package/lib/browser.mjs.map +1 -1
- package/lib/index.cjs +3693 -108
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +5 -2
- package/lib/index.mjs +3693 -108
- package/lib/index.mjs.map +1 -1
- package/lib/internal/asyncHostCalls.d.ts +37 -0
- package/lib/internal/instantiate.d.ts +3 -4
- package/lib/internal/loadOptions.d.ts +1 -0
- package/lib/internal/panoptic/deps.d.ts +24 -0
- package/lib/internal/panoptic/dynamicJobs/fragments.d.ts +10 -0
- package/lib/internal/panoptic/dynamicJobs/renderExecuteJob.d.ts +8 -0
- package/lib/internal/panoptic/fragments/collateral.d.ts +5 -0
- package/lib/internal/panoptic/fragments/erc20.d.ts +3 -0
- package/lib/internal/panoptic/fragments/hypovault.d.ts +12 -0
- package/lib/internal/panoptic/fragments/merkle.d.ts +22 -0
- package/lib/internal/panoptic/fragments/panoptic.d.ts +17 -0
- package/lib/internal/panoptic/fragments/permit2.d.ts +3 -0
- package/lib/internal/panoptic/fragments/support.d.ts +16 -0
- package/lib/internal/panoptic/fragments/uniswap.d.ts +10 -0
- package/lib/internal/panoptic/fragments/weth.d.ts +19 -0
- package/lib/internal/panoptic/handlers.d.ts +27 -0
- package/lib/internal/panoptic/protocol.d.ts +29 -0
- package/lib/internal/panoptic/reads/account.d.ts +11 -0
- package/lib/internal/panoptic/reads/greeks.d.ts +5 -0
- package/lib/internal/panoptic/reads/hypovault.d.ts +7 -0
- package/lib/internal/panoptic/reads/pool.d.ts +10 -0
- package/lib/internal/panoptic/reads/uniswap.d.ts +6 -0
- package/lib/internal/panoptic/support.d.ts +20 -0
- package/lib/internal/panopticBrowserRuntime.d.ts +6 -0
- package/lib/internal/panopticDtos.d.ts +72 -0
- package/lib/internal/panopticHostEnvelope.d.ts +2 -0
- package/lib/internal/panopticHostImport.d.ts +17 -0
- package/lib/internal/panopticJsonArgs.d.ts +26 -0
- package/lib/internal/panopticRuntime.d.ts +12 -0
- package/lib/internal/panopticScalars.d.ts +10 -0
- package/lib/internal/panopticSerialization.d.ts +19 -0
- package/lib/internal/panopticSources.d.ts +22 -0
- package/lib/loadOptions.d.ts +5 -0
- package/lib/node.cjs +3640 -73
- package/lib/node.cjs.map +1 -1
- package/lib/node.d.ts +5 -2
- package/lib/node.mjs +3640 -73
- package/lib/node.mjs.map +1 -1
- package/lib/panoptic.cjs +19 -0
- package/lib/panoptic.cjs.map +1 -0
- package/lib/panoptic.d.ts +56 -0
- package/lib/panoptic.mjs +1 -0
- package/lib/panoptic.mjs.map +1 -0
- package/package.json +44 -3
package/lib/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Runtime-agnostic entrypoints for loading Steer wasm bundles.
|
|
3
3
|
*/
|
|
4
4
|
import { Candle, RawTradeData } from './internal/instantiate';
|
|
5
|
+
import type { LoadWasmOptions } from './loadOptions';
|
|
5
6
|
import type { WasmModule } from './WasmModule';
|
|
6
7
|
/**
|
|
7
8
|
* Load a wasm bundle synchronously. Only accepts the actual binary data.
|
|
@@ -9,7 +10,7 @@ import type { WasmModule } from './WasmModule';
|
|
|
9
10
|
* @param imports - Imports
|
|
10
11
|
* @returns
|
|
11
12
|
*/
|
|
12
|
-
declare function loadWasmSync(input: ArrayBuffer, imports?: {}): WasmModule;
|
|
13
|
+
declare function loadWasmSync(input: ArrayBuffer, imports?: {}, options?: LoadWasmOptions): WasmModule;
|
|
13
14
|
/**
|
|
14
15
|
* Load a wasm bundle asynchronously. Accepts the actual binary data or a runtime-specific string source.
|
|
15
16
|
* In browsers, string inputs are treated as URLs. In Node.js, string inputs may be URLs or filesystem paths.
|
|
@@ -17,6 +18,8 @@ declare function loadWasmSync(input: ArrayBuffer, imports?: {}): WasmModule;
|
|
|
17
18
|
* @param imports - Imports
|
|
18
19
|
* @returns
|
|
19
20
|
*/
|
|
20
|
-
declare function loadWasm(input: string | ArrayBuffer, imports?: {}): Promise<WasmModule>;
|
|
21
|
+
declare function loadWasm(input: string | ArrayBuffer, imports?: {}, options?: LoadWasmOptions): Promise<WasmModule>;
|
|
22
|
+
export type { LoadWasmOptions } from './loadOptions';
|
|
23
|
+
export type { PanopticAuditEvent, PanopticClientCacheOptions, PanopticJsonValue, PanopticOperationOptions, PanopticRpcSource, PanopticRuntimeOptions, PanopticSourceRegistry, PanopticSubgraphSource, SourceMeta, } from './panoptic';
|
|
21
24
|
export type { WasmModule } from './WasmModule';
|
|
22
25
|
export { loadWasm, loadWasmSync, Candle, RawTradeData };
|