@lifi/composer-sdk 0.7.1 → 0.9.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 +5 -2
- package/dist/_virtual/_rolldown/runtime.cjs +33 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/authoring/FlowBuilderCore.cjs +102 -120
- package/dist/authoring/FlowBuilderCore.cjs.map +1 -1
- package/dist/authoring/FlowBuilderCore.d.cts +58 -61
- package/dist/authoring/FlowBuilderCore.d.ts +58 -61
- package/dist/authoring/FlowBuilderCore.js +99 -97
- package/dist/authoring/FlowBuilderCore.js.map +1 -1
- package/dist/authoring/handles.cjs +25 -40
- package/dist/authoring/handles.cjs.map +1 -1
- package/dist/authoring/handles.d.cts +33 -34
- package/dist/authoring/handles.d.ts +33 -34
- package/dist/authoring/handles.js +21 -13
- package/dist/authoring/handles.js.map +1 -1
- package/dist/authoring/raw.cjs +85 -44
- package/dist/authoring/raw.cjs.map +1 -1
- package/dist/authoring/raw.d.cts +8 -8
- package/dist/authoring/raw.d.ts +8 -8
- package/dist/authoring/raw.js +83 -19
- package/dist/authoring/raw.js.map +1 -1
- package/dist/authoring/signatureArgs.cjs +81 -103
- package/dist/authoring/signatureArgs.cjs.map +1 -1
- package/dist/authoring/signatureArgs.d.cts +63 -64
- package/dist/authoring/signatureArgs.d.ts +63 -64
- package/dist/authoring/signatureArgs.js +76 -75
- package/dist/authoring/signatureArgs.js.map +1 -1
- package/dist/client.cjs +172 -220
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +131 -131
- package/dist/client.d.ts +131 -131
- package/dist/client.js +165 -198
- package/dist/client.js.map +1 -1
- package/dist/discovery.cjs +0 -17
- package/dist/discovery.d.cts +57 -56
- package/dist/discovery.d.ts +57 -56
- package/dist/discovery.js +1 -1
- package/dist/errors.cjs +211 -159
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +84 -84
- package/dist/errors.d.ts +84 -84
- package/dist/errors.js +201 -120
- package/dist/errors.js.map +1 -1
- package/dist/generated/config.generated.cjs +0 -17
- package/dist/generated/config.generated.d.cts +805 -895
- package/dist/generated/config.generated.d.ts +805 -895
- package/dist/generated/config.generated.js +1 -1
- package/dist/generated/guards.generated.cjs +27 -31
- package/dist/generated/guards.generated.cjs.map +1 -1
- package/dist/generated/guards.generated.d.cts +20 -4
- package/dist/generated/guards.generated.d.ts +20 -4
- package/dist/generated/guards.generated.js +21 -8
- package/dist/generated/guards.generated.js.map +1 -1
- package/dist/generated/materialisers.generated.cjs +25 -35
- package/dist/generated/materialisers.generated.cjs.map +1 -1
- package/dist/generated/materialisers.generated.d.cts +17 -4
- package/dist/generated/materialisers.generated.d.ts +17 -4
- package/dist/generated/materialisers.generated.js +19 -11
- package/dist/generated/materialisers.generated.js.map +1 -1
- package/dist/generated/operations.generated.cjs +236 -250
- package/dist/generated/operations.generated.cjs.map +1 -1
- package/dist/generated/operations.generated.d.cts +740 -657
- package/dist/generated/operations.generated.d.ts +740 -657
- package/dist/generated/operations.generated.js +235 -229
- package/dist/generated/operations.generated.js.map +1 -1
- package/dist/generated/preconditions.generated.cjs +25 -35
- package/dist/generated/preconditions.generated.cjs.map +1 -1
- package/dist/generated/preconditions.generated.d.cts +17 -4
- package/dist/generated/preconditions.generated.d.ts +17 -4
- package/dist/generated/preconditions.generated.js +19 -11
- package/dist/generated/preconditions.generated.js.map +1 -1
- package/dist/index.cjs +131 -97
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -43
- package/dist/index.d.ts +29 -43
- package/dist/index.js +96 -45
- package/dist/index.js.map +1 -1
- package/dist/outputs.cjs +11 -32
- package/dist/outputs.cjs.map +1 -1
- package/dist/outputs.d.cts +5 -5
- package/dist/outputs.d.ts +5 -5
- package/dist/outputs.js +10 -8
- package/dist/outputs.js.map +1 -1
- package/dist/raw.cjs +21 -33
- package/dist/raw.cjs.map +1 -1
- package/dist/raw.d.cts +8 -4
- package/dist/raw.d.ts +8 -4
- package/dist/raw.js +12 -7
- package/dist/raw.js.map +1 -1
- package/dist/reachability.cjs +82 -112
- package/dist/reachability.cjs.map +1 -1
- package/dist/reachability.d.cts +33 -59
- package/dist/reachability.d.ts +33 -59
- package/dist/reachability.js +81 -88
- package/dist/reachability.js.map +1 -1
- package/dist/resources.cjs +47 -32
- package/dist/resources.cjs.map +1 -1
- package/dist/resources.d.cts +50 -3
- package/dist/resources.d.ts +50 -3
- package/dist/resources.js +42 -9
- package/dist/resources.js.map +1 -1
- package/dist/responseSchemas.cjs +99 -111
- package/dist/responseSchemas.cjs.map +1 -1
- package/dist/responseSchemas.d.cts +34 -34
- package/dist/responseSchemas.d.ts +34 -34
- package/dist/responseSchemas.js +85 -66
- package/dist/responseSchemas.js.map +1 -1
- package/dist/routeAmount.cjs +61 -31
- package/dist/routeAmount.cjs.map +1 -1
- package/dist/routeAmount.d.cts +52 -2
- package/dist/routeAmount.d.ts +52 -2
- package/dist/routeAmount.js +56 -8
- package/dist/routeAmount.js.map +1 -1
- package/dist/run/inputs.cjs +56 -48
- package/dist/run/inputs.cjs.map +1 -1
- package/dist/run/inputs.d.cts +70 -74
- package/dist/run/inputs.d.ts +70 -74
- package/dist/run/inputs.js +54 -23
- package/dist/run/inputs.js.map +1 -1
- package/dist/run/simulate.cjs +38 -43
- package/dist/run/simulate.cjs.map +1 -1
- package/dist/run/simulate.d.cts +36 -36
- package/dist/run/simulate.d.ts +36 -36
- package/dist/run/simulate.js +37 -19
- package/dist/run/simulate.js.map +1 -1
- package/dist/sdk.cjs +55 -66
- package/dist/sdk.cjs.map +1 -1
- package/dist/sdk.d.cts +108 -111
- package/dist/sdk.d.ts +108 -111
- package/dist/sdk.js +52 -44
- package/dist/sdk.js.map +1 -1
- package/dist/types.cjs +0 -17
- package/dist/types.d.cts +22 -22
- package/dist/types.d.ts +22 -22
- package/dist/types.js +1 -1
- package/package.json +4 -4
- package/src/client.ts +2 -2
- package/src/examples/aaveClaimRewards.ts +2 -1
- package/src/examples/emitCustomEvent.ts +1 -2
- package/src/examples/run.ts +14 -1
- package/src/examples/transferTokens.ts +21 -17
- package/src/examples/uniswapV2AddLiquidity.ts +106 -0
- package/src/examples/uniswapV3Mint.ts +95 -0
- package/src/generated/config.generated.ts +102 -47
- package/src/generated/guards.generated.ts +9 -0
- package/src/generated/operations.generated.ts +161 -5
- package/src/index.ts +0 -3
- package/dist/discovery.cjs.map +0 -1
- package/dist/discovery.js.map +0 -1
- package/dist/generated/config.generated.cjs.map +0 -1
- package/dist/generated/config.generated.js.map +0 -1
- package/dist/guards.generated-BPLFwe7y.d.ts +0 -19
- package/dist/guards.generated-M3VAIevI.d.cts +0 -19
- package/dist/materialisers.generated-BMkBQgWZ.d.ts +0 -24
- package/dist/materialisers.generated-BWq5oePO.d.cts +0 -24
- package/dist/preconditions.generated-DblS13Wq.d.cts +0 -24
- package/dist/preconditions.generated-U7YpVh30.d.ts +0 -24
- package/dist/raw-BvRghN3r.d.ts +0 -20
- package/dist/raw-s1rer8X3.d.cts +0 -20
- package/dist/resources-BKlFxjo8.d.cts +0 -56
- package/dist/resources-CYis1_DS.d.ts +0 -56
- package/dist/routeAmount-DdbJYJyM.d.cts +0 -55
- package/dist/routeAmount-DdbJYJyM.d.ts +0 -55
- package/dist/types.cjs.map +0 -1
- package/dist/types.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,38 +1,34 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var guards_generated_exports = {};
|
|
20
|
-
__export(guards_generated_exports, {
|
|
21
|
-
coreNumericInvariant: () => coreNumericInvariant,
|
|
22
|
-
slippage: () => slippage
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/generated/guards.generated.ts
|
|
3
|
+
var guards_generated_exports = /* @__PURE__ */ require("../_virtual/_rolldown/runtime.cjs").__exportAll({
|
|
4
|
+
band: () => band,
|
|
5
|
+
coreNumericInvariant: () => coreNumericInvariant,
|
|
6
|
+
slippage: () => slippage
|
|
23
7
|
});
|
|
24
|
-
|
|
8
|
+
/** Assert that output amounts are within a slippage tolerance in basis points */
|
|
25
9
|
const slippage = (config) => ({
|
|
26
|
-
|
|
27
|
-
|
|
10
|
+
kind: "slippage",
|
|
11
|
+
...config
|
|
28
12
|
});
|
|
13
|
+
/** Assert a numeric (uint256) handle output of the target op satisfies a comparison against a constant threshold. Emits one IR1 binary invariant; reverts the run on violation. */
|
|
29
14
|
const coreNumericInvariant = (config) => ({
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
kind: "core.numericInvariant",
|
|
16
|
+
...config
|
|
32
17
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
18
|
+
/** Assert that an output stays within a tolerance in basis points of its simulated value, in both directions */
|
|
19
|
+
const band = (config) => ({
|
|
20
|
+
kind: "band",
|
|
21
|
+
...config
|
|
37
22
|
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.band = band;
|
|
25
|
+
exports.coreNumericInvariant = coreNumericInvariant;
|
|
26
|
+
Object.defineProperty(exports, "guards_generated_exports", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function() {
|
|
29
|
+
return guards_generated_exports;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
exports.slippage = slippage;
|
|
33
|
+
|
|
38
34
|
//# sourceMappingURL=guards.generated.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/generated/guards.generated.ts"],"sourcesContent":["// AUTO-GENERATED from manifest.json — do not edit by hand.\n// Regenerate with: yarn workspace @lifi/composer-sdk generate\n\nimport type { TypedGuard } from '../types.js';\n\nimport type {\n CoreNumericInvariantGuardConfig,\n SlippageGuardConfig,\n} from './config.generated.js';\n\n/** Assert that output amounts are within a slippage tolerance in basis points */\nexport const slippage = <P extends string>(\n config: Omit<SlippageGuardConfig, 'port'> & { port: P },\n): TypedGuard<P> => ({\n kind: 'slippage',\n ...config,\n});\n\n/** Assert a numeric (uint256) handle output of the target op satisfies a comparison against a constant threshold. Emits one IR1 binary invariant; reverts the run on violation. */\nexport const coreNumericInvariant = <P extends string>(\n config: Omit<CoreNumericInvariantGuardConfig, 'port'> & { port: P },\n): TypedGuard<P> => ({\n kind: 'core.numericInvariant',\n ...config,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"guards.generated.cjs","names":[],"sources":["../../src/generated/guards.generated.ts"],"sourcesContent":["// AUTO-GENERATED from manifest.json — do not edit by hand.\n// Regenerate with: yarn workspace @lifi/composer-sdk generate\n\nimport type { TypedGuard } from '../types.js';\n\nimport type {\n BandGuardConfig,\n CoreNumericInvariantGuardConfig,\n SlippageGuardConfig,\n} from './config.generated.js';\n\n/** Assert that output amounts are within a slippage tolerance in basis points */\nexport const slippage = <P extends string>(\n config: Omit<SlippageGuardConfig, 'port'> & { port: P },\n): TypedGuard<P> => ({\n kind: 'slippage',\n ...config,\n});\n\n/** Assert a numeric (uint256) handle output of the target op satisfies a comparison against a constant threshold. Emits one IR1 binary invariant; reverts the run on violation. */\nexport const coreNumericInvariant = <P extends string>(\n config: Omit<CoreNumericInvariantGuardConfig, 'port'> & { port: P },\n): TypedGuard<P> => ({\n kind: 'core.numericInvariant',\n ...config,\n});\n\n/** Assert that an output stays within a tolerance in basis points of its simulated value, in both directions */\nexport const band = <P extends string>(\n config: Omit<BandGuardConfig, 'port'> & { port: P },\n): TypedGuard<P> => ({\n kind: 'band',\n ...config,\n});\n"],"mappings":";;;;;;;;AAYA,MAAa,YACX,YACmB;CACnB,MAAM;CACN,GAAG;AACL;;AAGA,MAAa,wBACX,YACmB;CACnB,MAAM;CACN,GAAG;AACL;;AAGA,MAAa,QACX,YACmB;CACnB,MAAM;CACN,GAAG;AACL"}
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TypedGuard } from "../types.cjs";
|
|
2
|
+
import { BandGuardConfig, CoreNumericInvariantGuardConfig, SlippageGuardConfig } from "./config.generated.cjs";
|
|
3
|
+
declare namespace guards_generated_d_exports {
|
|
4
|
+
export { band, coreNumericInvariant, slippage };
|
|
5
|
+
}
|
|
6
|
+
/** Assert that output amounts are within a slippage tolerance in basis points */
|
|
7
|
+
export declare const slippage: <P extends string>(config: Omit<SlippageGuardConfig, "port"> & {
|
|
8
|
+
port: P;
|
|
9
|
+
}) => TypedGuard<P>;
|
|
10
|
+
/** Assert a numeric (uint256) handle output of the target op satisfies a comparison against a constant threshold. Emits one IR1 binary invariant; reverts the run on violation. */
|
|
11
|
+
export declare const coreNumericInvariant: <P extends string>(config: Omit<CoreNumericInvariantGuardConfig, "port"> & {
|
|
12
|
+
port: P;
|
|
13
|
+
}) => TypedGuard<P>;
|
|
14
|
+
/** Assert that an output stays within a tolerance in basis points of its simulated value, in both directions */
|
|
15
|
+
export declare const band: <P extends string>(config: Omit<BandGuardConfig, "port"> & {
|
|
16
|
+
port: P;
|
|
17
|
+
}) => TypedGuard<P>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { guards_generated_d_exports };
|
|
20
|
+
//# sourceMappingURL=guards.generated.d.cts.map
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TypedGuard } from "../types.js";
|
|
2
|
+
import { BandGuardConfig, CoreNumericInvariantGuardConfig, SlippageGuardConfig } from "./config.generated.js";
|
|
3
|
+
declare namespace guards_generated_d_exports {
|
|
4
|
+
export { band, coreNumericInvariant, slippage };
|
|
5
|
+
}
|
|
6
|
+
/** Assert that output amounts are within a slippage tolerance in basis points */
|
|
7
|
+
export declare const slippage: <P extends string>(config: Omit<SlippageGuardConfig, "port"> & {
|
|
8
|
+
port: P;
|
|
9
|
+
}) => TypedGuard<P>;
|
|
10
|
+
/** Assert a numeric (uint256) handle output of the target op satisfies a comparison against a constant threshold. Emits one IR1 binary invariant; reverts the run on violation. */
|
|
11
|
+
export declare const coreNumericInvariant: <P extends string>(config: Omit<CoreNumericInvariantGuardConfig, "port"> & {
|
|
12
|
+
port: P;
|
|
13
|
+
}) => TypedGuard<P>;
|
|
14
|
+
/** Assert that an output stays within a tolerance in basis points of its simulated value, in both directions */
|
|
15
|
+
export declare const band: <P extends string>(config: Omit<BandGuardConfig, "port"> & {
|
|
16
|
+
port: P;
|
|
17
|
+
}) => TypedGuard<P>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { guards_generated_d_exports };
|
|
20
|
+
//# sourceMappingURL=guards.generated.d.ts.map
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/generated/guards.generated.ts
|
|
3
|
+
var guards_generated_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
band: () => band,
|
|
5
|
+
coreNumericInvariant: () => coreNumericInvariant,
|
|
6
|
+
slippage: () => slippage
|
|
7
|
+
});
|
|
8
|
+
/** Assert that output amounts are within a slippage tolerance in basis points */
|
|
1
9
|
const slippage = (config) => ({
|
|
2
|
-
|
|
3
|
-
|
|
10
|
+
kind: "slippage",
|
|
11
|
+
...config
|
|
4
12
|
});
|
|
13
|
+
/** Assert a numeric (uint256) handle output of the target op satisfies a comparison against a constant threshold. Emits one IR1 binary invariant; reverts the run on violation. */
|
|
5
14
|
const coreNumericInvariant = (config) => ({
|
|
6
|
-
|
|
7
|
-
|
|
15
|
+
kind: "core.numericInvariant",
|
|
16
|
+
...config
|
|
17
|
+
});
|
|
18
|
+
/** Assert that an output stays within a tolerance in basis points of its simulated value, in both directions */
|
|
19
|
+
const band = (config) => ({
|
|
20
|
+
kind: "band",
|
|
21
|
+
...config
|
|
8
22
|
});
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { band, coreNumericInvariant, guards_generated_exports, slippage };
|
|
25
|
+
|
|
13
26
|
//# sourceMappingURL=guards.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/generated/guards.generated.ts"],"sourcesContent":["// AUTO-GENERATED from manifest.json — do not edit by hand.\n// Regenerate with: yarn workspace @lifi/composer-sdk generate\n\nimport type { TypedGuard } from '../types.js';\n\nimport type {\n CoreNumericInvariantGuardConfig,\n SlippageGuardConfig,\n} from './config.generated.js';\n\n/** Assert that output amounts are within a slippage tolerance in basis points */\nexport const slippage = <P extends string>(\n config: Omit<SlippageGuardConfig, 'port'> & { port: P },\n): TypedGuard<P> => ({\n kind: 'slippage',\n ...config,\n});\n\n/** Assert a numeric (uint256) handle output of the target op satisfies a comparison against a constant threshold. Emits one IR1 binary invariant; reverts the run on violation. */\nexport const coreNumericInvariant = <P extends string>(\n config: Omit<CoreNumericInvariantGuardConfig, 'port'> & { port: P },\n): TypedGuard<P> => ({\n kind: 'core.numericInvariant',\n ...config,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"guards.generated.js","names":[],"sources":["../../src/generated/guards.generated.ts"],"sourcesContent":["// AUTO-GENERATED from manifest.json — do not edit by hand.\n// Regenerate with: yarn workspace @lifi/composer-sdk generate\n\nimport type { TypedGuard } from '../types.js';\n\nimport type {\n BandGuardConfig,\n CoreNumericInvariantGuardConfig,\n SlippageGuardConfig,\n} from './config.generated.js';\n\n/** Assert that output amounts are within a slippage tolerance in basis points */\nexport const slippage = <P extends string>(\n config: Omit<SlippageGuardConfig, 'port'> & { port: P },\n): TypedGuard<P> => ({\n kind: 'slippage',\n ...config,\n});\n\n/** Assert a numeric (uint256) handle output of the target op satisfies a comparison against a constant threshold. Emits one IR1 binary invariant; reverts the run on violation. */\nexport const coreNumericInvariant = <P extends string>(\n config: Omit<CoreNumericInvariantGuardConfig, 'port'> & { port: P },\n): TypedGuard<P> => ({\n kind: 'core.numericInvariant',\n ...config,\n});\n\n/** Assert that an output stays within a tolerance in basis points of its simulated value, in both directions */\nexport const band = <P extends string>(\n config: Omit<BandGuardConfig, 'port'> & { port: P },\n): TypedGuard<P> => ({\n kind: 'band',\n ...config,\n});\n"],"mappings":";;;;;;;;AAYA,MAAa,YACX,YACmB;CACnB,MAAM;CACN,GAAG;AACL;;AAGA,MAAa,wBACX,YACmB;CACnB,MAAM;CACN,GAAG;AACL;;AAGA,MAAa,QACX,YACmB;CACnB,MAAM;CACN,GAAG;AACL"}
|
|
@@ -1,44 +1,34 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var materialisers_generated_exports = {};
|
|
20
|
-
__export(materialisers_generated_exports, {
|
|
21
|
-
balanceOf: () => balanceOf,
|
|
22
|
-
call: () => call,
|
|
23
|
-
directDeposit: () => directDeposit
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/generated/materialisers.generated.ts
|
|
3
|
+
var materialisers_generated_exports = /* @__PURE__ */ require("../_virtual/_rolldown/runtime.cjs").__exportAll({
|
|
4
|
+
balanceOf: () => balanceOf,
|
|
5
|
+
call: () => call,
|
|
6
|
+
directDeposit: () => directDeposit
|
|
24
7
|
});
|
|
25
|
-
|
|
8
|
+
/** Read the on-chain token balance of an address as the input amount — accepts: resource */
|
|
26
9
|
const balanceOf = (config) => ({
|
|
27
|
-
|
|
28
|
-
|
|
10
|
+
kind: "balanceOf",
|
|
11
|
+
...config
|
|
29
12
|
});
|
|
13
|
+
/** Deposit tokens into the VM — native via msg.value, ERC-20 via transferFrom — accepts: resource */
|
|
30
14
|
const directDeposit = (config) => ({
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
kind: "directDeposit",
|
|
16
|
+
...config
|
|
33
17
|
});
|
|
18
|
+
/** Execute an arbitrary contract call and measure the resulting token balance diff — accepts: resource */
|
|
34
19
|
const call = (config) => ({
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
kind: "call",
|
|
21
|
+
...config
|
|
37
22
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.balanceOf = balanceOf;
|
|
25
|
+
exports.call = call;
|
|
26
|
+
exports.directDeposit = directDeposit;
|
|
27
|
+
Object.defineProperty(exports, "materialisers_generated_exports", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function() {
|
|
30
|
+
return materialisers_generated_exports;
|
|
31
|
+
}
|
|
43
32
|
});
|
|
33
|
+
|
|
44
34
|
//# sourceMappingURL=materialisers.generated.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/generated/materialisers.generated.ts"],"sourcesContent":["// AUTO-GENERATED from manifest.json — do not edit by hand.\n// Regenerate with: yarn workspace @lifi/composer-sdk generate\n\nimport type {\n MaterialiserConfigOf,\n MaterialiserInput,\n} from '@lifi/compose-spec';\n\nimport type {\n BalanceOfMaterialiserConfig as BalanceOfMaterialiserConfigSchema,\n CallMaterialiserConfig as CallMaterialiserConfigSchema,\n DirectDepositMaterialiserConfig as DirectDepositMaterialiserConfigSchema,\n} from './config.generated.js';\n\nexport type BalanceOfMaterialiserConfig =\n MaterialiserConfigOf<BalanceOfMaterialiserConfigSchema>;\n\n/** Read the on-chain token balance of an address as the input amount — accepts: resource */\nexport const balanceOf = (\n config: BalanceOfMaterialiserConfig,\n): MaterialiserInput => ({\n kind: 'balanceOf',\n ...config,\n});\n\nexport type DirectDepositMaterialiserConfig =\n MaterialiserConfigOf<DirectDepositMaterialiserConfigSchema>;\n\n/** Deposit tokens into the VM — native via msg.value, ERC-20 via transferFrom — accepts: resource */\nexport const directDeposit = (\n config: DirectDepositMaterialiserConfig,\n): MaterialiserInput => ({\n kind: 'directDeposit',\n ...config,\n});\n\nexport type CallMaterialiserConfig =\n MaterialiserConfigOf<CallMaterialiserConfigSchema>;\n\n/** Execute an arbitrary contract call and measure the resulting token balance diff — accepts: resource */\nexport const call = (config: CallMaterialiserConfig): MaterialiserInput => ({\n kind: 'call',\n ...config,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"materialisers.generated.cjs","names":[],"sources":["../../src/generated/materialisers.generated.ts"],"sourcesContent":["// AUTO-GENERATED from manifest.json — do not edit by hand.\n// Regenerate with: yarn workspace @lifi/composer-sdk generate\n\nimport type {\n MaterialiserConfigOf,\n MaterialiserInput,\n} from '@lifi/compose-spec';\n\nimport type {\n BalanceOfMaterialiserConfig as BalanceOfMaterialiserConfigSchema,\n CallMaterialiserConfig as CallMaterialiserConfigSchema,\n DirectDepositMaterialiserConfig as DirectDepositMaterialiserConfigSchema,\n} from './config.generated.js';\n\nexport type BalanceOfMaterialiserConfig =\n MaterialiserConfigOf<BalanceOfMaterialiserConfigSchema>;\n\n/** Read the on-chain token balance of an address as the input amount — accepts: resource */\nexport const balanceOf = (\n config: BalanceOfMaterialiserConfig,\n): MaterialiserInput => ({\n kind: 'balanceOf',\n ...config,\n});\n\nexport type DirectDepositMaterialiserConfig =\n MaterialiserConfigOf<DirectDepositMaterialiserConfigSchema>;\n\n/** Deposit tokens into the VM — native via msg.value, ERC-20 via transferFrom — accepts: resource */\nexport const directDeposit = (\n config: DirectDepositMaterialiserConfig,\n): MaterialiserInput => ({\n kind: 'directDeposit',\n ...config,\n});\n\nexport type CallMaterialiserConfig =\n MaterialiserConfigOf<CallMaterialiserConfigSchema>;\n\n/** Execute an arbitrary contract call and measure the resulting token balance diff — accepts: resource */\nexport const call = (config: CallMaterialiserConfig): MaterialiserInput => ({\n kind: 'call',\n ...config,\n});\n"],"mappings":";;;;;;;;AAkBA,MAAa,aACX,YACuB;CACvB,MAAM;CACN,GAAG;AACL;;AAMA,MAAa,iBACX,YACuB;CACvB,MAAM;CACN,GAAG;AACL;;AAMA,MAAa,QAAQ,YAAuD;CAC1E,MAAM;CACN,GAAG;AACL"}
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { BalanceOfMaterialiserConfig as BalanceOfMaterialiserConfig$1, CallMaterialiserConfig as CallMaterialiserConfig$1, DirectDepositMaterialiserConfig as DirectDepositMaterialiserConfig$1 } from "./config.generated.cjs";
|
|
2
|
+
import { MaterialiserConfigOf, MaterialiserInput } from "@lifi/compose-spec";
|
|
3
|
+
declare namespace materialisers_generated_d_exports {
|
|
4
|
+
export { BalanceOfMaterialiserConfig, CallMaterialiserConfig, DirectDepositMaterialiserConfig, balanceOf, call, directDeposit };
|
|
5
|
+
}
|
|
6
|
+
export type BalanceOfMaterialiserConfig = MaterialiserConfigOf<BalanceOfMaterialiserConfig$1>;
|
|
7
|
+
/** Read the on-chain token balance of an address as the input amount — accepts: resource */
|
|
8
|
+
export declare const balanceOf: (config: BalanceOfMaterialiserConfig) => MaterialiserInput;
|
|
9
|
+
export type DirectDepositMaterialiserConfig = MaterialiserConfigOf<DirectDepositMaterialiserConfig$1>;
|
|
10
|
+
/** Deposit tokens into the VM — native via msg.value, ERC-20 via transferFrom — accepts: resource */
|
|
11
|
+
export declare const directDeposit: (config: DirectDepositMaterialiserConfig) => MaterialiserInput;
|
|
12
|
+
export type CallMaterialiserConfig = MaterialiserConfigOf<CallMaterialiserConfig$1>;
|
|
13
|
+
/** Execute an arbitrary contract call and measure the resulting token balance diff — accepts: resource */
|
|
14
|
+
export declare const call: (config: CallMaterialiserConfig) => MaterialiserInput;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { materialisers_generated_d_exports };
|
|
17
|
+
//# sourceMappingURL=materialisers.generated.d.cts.map
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { BalanceOfMaterialiserConfig as BalanceOfMaterialiserConfig$1, CallMaterialiserConfig as CallMaterialiserConfig$1, DirectDepositMaterialiserConfig as DirectDepositMaterialiserConfig$1 } from "./config.generated.js";
|
|
2
|
+
import { MaterialiserConfigOf, MaterialiserInput } from "@lifi/compose-spec";
|
|
3
|
+
declare namespace materialisers_generated_d_exports {
|
|
4
|
+
export { BalanceOfMaterialiserConfig, CallMaterialiserConfig, DirectDepositMaterialiserConfig, balanceOf, call, directDeposit };
|
|
5
|
+
}
|
|
6
|
+
export type BalanceOfMaterialiserConfig = MaterialiserConfigOf<BalanceOfMaterialiserConfig$1>;
|
|
7
|
+
/** Read the on-chain token balance of an address as the input amount — accepts: resource */
|
|
8
|
+
export declare const balanceOf: (config: BalanceOfMaterialiserConfig) => MaterialiserInput;
|
|
9
|
+
export type DirectDepositMaterialiserConfig = MaterialiserConfigOf<DirectDepositMaterialiserConfig$1>;
|
|
10
|
+
/** Deposit tokens into the VM — native via msg.value, ERC-20 via transferFrom — accepts: resource */
|
|
11
|
+
export declare const directDeposit: (config: DirectDepositMaterialiserConfig) => MaterialiserInput;
|
|
12
|
+
export type CallMaterialiserConfig = MaterialiserConfigOf<CallMaterialiserConfig$1>;
|
|
13
|
+
/** Execute an arbitrary contract call and measure the resulting token balance diff — accepts: resource */
|
|
14
|
+
export declare const call: (config: CallMaterialiserConfig) => MaterialiserInput;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { materialisers_generated_d_exports };
|
|
17
|
+
//# sourceMappingURL=materialisers.generated.d.ts.map
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/generated/materialisers.generated.ts
|
|
3
|
+
var materialisers_generated_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
balanceOf: () => balanceOf,
|
|
5
|
+
call: () => call,
|
|
6
|
+
directDeposit: () => directDeposit
|
|
7
|
+
});
|
|
8
|
+
/** Read the on-chain token balance of an address as the input amount — accepts: resource */
|
|
1
9
|
const balanceOf = (config) => ({
|
|
2
|
-
|
|
3
|
-
|
|
10
|
+
kind: "balanceOf",
|
|
11
|
+
...config
|
|
4
12
|
});
|
|
13
|
+
/** Deposit tokens into the VM — native via msg.value, ERC-20 via transferFrom — accepts: resource */
|
|
5
14
|
const directDeposit = (config) => ({
|
|
6
|
-
|
|
7
|
-
|
|
15
|
+
kind: "directDeposit",
|
|
16
|
+
...config
|
|
8
17
|
});
|
|
18
|
+
/** Execute an arbitrary contract call and measure the resulting token balance diff — accepts: resource */
|
|
9
19
|
const call = (config) => ({
|
|
10
|
-
|
|
11
|
-
|
|
20
|
+
kind: "call",
|
|
21
|
+
...config
|
|
12
22
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
directDeposit
|
|
17
|
-
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { balanceOf, call, directDeposit, materialisers_generated_exports };
|
|
25
|
+
|
|
18
26
|
//# sourceMappingURL=materialisers.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/generated/materialisers.generated.ts"],"sourcesContent":["// AUTO-GENERATED from manifest.json — do not edit by hand.\n// Regenerate with: yarn workspace @lifi/composer-sdk generate\n\nimport type {\n MaterialiserConfigOf,\n MaterialiserInput,\n} from '@lifi/compose-spec';\n\nimport type {\n BalanceOfMaterialiserConfig as BalanceOfMaterialiserConfigSchema,\n CallMaterialiserConfig as CallMaterialiserConfigSchema,\n DirectDepositMaterialiserConfig as DirectDepositMaterialiserConfigSchema,\n} from './config.generated.js';\n\nexport type BalanceOfMaterialiserConfig =\n MaterialiserConfigOf<BalanceOfMaterialiserConfigSchema>;\n\n/** Read the on-chain token balance of an address as the input amount — accepts: resource */\nexport const balanceOf = (\n config: BalanceOfMaterialiserConfig,\n): MaterialiserInput => ({\n kind: 'balanceOf',\n ...config,\n});\n\nexport type DirectDepositMaterialiserConfig =\n MaterialiserConfigOf<DirectDepositMaterialiserConfigSchema>;\n\n/** Deposit tokens into the VM — native via msg.value, ERC-20 via transferFrom — accepts: resource */\nexport const directDeposit = (\n config: DirectDepositMaterialiserConfig,\n): MaterialiserInput => ({\n kind: 'directDeposit',\n ...config,\n});\n\nexport type CallMaterialiserConfig =\n MaterialiserConfigOf<CallMaterialiserConfigSchema>;\n\n/** Execute an arbitrary contract call and measure the resulting token balance diff — accepts: resource */\nexport const call = (config: CallMaterialiserConfig): MaterialiserInput => ({\n kind: 'call',\n ...config,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"materialisers.generated.js","names":[],"sources":["../../src/generated/materialisers.generated.ts"],"sourcesContent":["// AUTO-GENERATED from manifest.json — do not edit by hand.\n// Regenerate with: yarn workspace @lifi/composer-sdk generate\n\nimport type {\n MaterialiserConfigOf,\n MaterialiserInput,\n} from '@lifi/compose-spec';\n\nimport type {\n BalanceOfMaterialiserConfig as BalanceOfMaterialiserConfigSchema,\n CallMaterialiserConfig as CallMaterialiserConfigSchema,\n DirectDepositMaterialiserConfig as DirectDepositMaterialiserConfigSchema,\n} from './config.generated.js';\n\nexport type BalanceOfMaterialiserConfig =\n MaterialiserConfigOf<BalanceOfMaterialiserConfigSchema>;\n\n/** Read the on-chain token balance of an address as the input amount — accepts: resource */\nexport const balanceOf = (\n config: BalanceOfMaterialiserConfig,\n): MaterialiserInput => ({\n kind: 'balanceOf',\n ...config,\n});\n\nexport type DirectDepositMaterialiserConfig =\n MaterialiserConfigOf<DirectDepositMaterialiserConfigSchema>;\n\n/** Deposit tokens into the VM — native via msg.value, ERC-20 via transferFrom — accepts: resource */\nexport const directDeposit = (\n config: DirectDepositMaterialiserConfig,\n): MaterialiserInput => ({\n kind: 'directDeposit',\n ...config,\n});\n\nexport type CallMaterialiserConfig =\n MaterialiserConfigOf<CallMaterialiserConfigSchema>;\n\n/** Execute an arbitrary contract call and measure the resulting token balance diff — accepts: resource */\nexport const call = (config: CallMaterialiserConfig): MaterialiserInput => ({\n kind: 'call',\n ...config,\n});\n"],"mappings":";;;;;;;;AAkBA,MAAa,aACX,YACuB;CACvB,MAAM;CACN,GAAG;AACL;;AAMA,MAAa,iBACX,YACuB;CACvB,MAAM;CACN,GAAG;AACL;;AAMA,MAAa,QAAQ,YAAuD;CAC1E,MAAM;CACN,GAAG;AACL"}
|