@lifi/composer-sdk
Version:
Public Composer SDK for building and submitting flows
26 lines (25 loc) • 888 B
JavaScript
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
//#region src/generated/preconditions.generated.ts
var preconditions_generated_exports = /* @__PURE__ */ __exportAll({
erc20Allowance: () => erc20Allowance,
erc20Balance: () => erc20Balance,
nativeBalance: () => nativeBalance
});
/** Assert that a wallet holds at least a given ERC-20 token balance */
const erc20Balance = (config) => ({
type: "Erc20Balance",
...config
});
/** Assert that a wallet holds at least a given native coin balance */
const nativeBalance = (config) => ({
type: "NativeBalance",
...config
});
/** Assert that an ERC-20 allowance is at least a given amount */
const erc20Allowance = (config) => ({
type: "Erc20Allowance",
...config
});
//#endregion
export { erc20Allowance, erc20Balance, nativeBalance, preconditions_generated_exports };
//# sourceMappingURL=preconditions.generated.js.map