{"version":3,"file":"preconditions.generated.cjs","names":[],"sources":["../../src/generated/preconditions.generated.ts"],"sourcesContent":["// AUTO-GENERATED from manifest.json — do not edit by hand.\n// Regenerate with: yarn generate:composer-sdk\n\nimport type { Precondition, PreconditionConfigOf } from '@lifi/compose-spec';\n\nimport type {\n  Erc20AllowancePreconditionConfig,\n  Erc20BalancePreconditionConfig,\n  NativeBalancePreconditionConfig,\n} from './config.generated.js';\n\nexport type Erc20BalancePreconditionInput =\n  PreconditionConfigOf<Erc20BalancePreconditionConfig>;\n\n/** Assert that a wallet holds at least a given ERC-20 token balance */\nexport const erc20Balance = (\n  config: Erc20BalancePreconditionInput,\n): Precondition => ({\n  type: 'Erc20Balance',\n  ...config,\n});\n\nexport type NativeBalancePreconditionInput =\n  PreconditionConfigOf<NativeBalancePreconditionConfig>;\n\n/** Assert that a wallet holds at least a given native coin balance */\nexport const nativeBalance = (\n  config: NativeBalancePreconditionInput,\n): Precondition => ({\n  type: 'NativeBalance',\n  ...config,\n});\n\nexport type Erc20AllowancePreconditionInput =\n  PreconditionConfigOf<Erc20AllowancePreconditionConfig>;\n\n/** Assert that an ERC-20 allowance is at least a given amount */\nexport const erc20Allowance = (\n  config: Erc20AllowancePreconditionInput,\n): Precondition => ({\n  type: 'Erc20Allowance',\n  ...config,\n});\n"],"mappings":";;;;;;;;AAeA,MAAa,gBACX,YACkB;CAClB,MAAM;CACN,GAAG;AACL;;AAMA,MAAa,iBACX,YACkB;CAClB,MAAM;CACN,GAAG;AACL;;AAMA,MAAa,kBACX,YACkB;CAClB,MAAM;CACN,GAAG;AACL"}