{"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 generate:composer-sdk\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  FlashloanMaterialiserConfig as FlashloanMaterialiserConfigSchema,\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\nexport type FlashloanMaterialiserConfig =\n  MaterialiserConfigOf<FlashloanMaterialiserConfigSchema>;\n\n/**\n * Experimental definitions, grouped like the stable ones. They carry no\n * compatibility guarantee: any release, a patch included, can change,\n * rename or remove one, or move it to its stable location. A backend that\n * does not enable one rejects the flow with `validation_error`;\n * `sdk.client.getManifest()` lists what a backend accepts.\n */\nexport const experimental = {\n  /** Borrow tokens from a flashloan provider; the flashloan runtime borrows amount into the proxy before the program runs and settles the loan after it — accepts: resource */\n  flashloan: (config: FlashloanMaterialiserConfig): MaterialiserInput => ({\n    kind: 'flashloan',\n    ...config,\n  }),\n} as const;\n"],"mappings":";;;;;;;;;AAmBA,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;;;;;;;;AAYA,MAAa,eAAe;;AAE1B,YAAY,YAA4D;CACtE,MAAM;CACN,GAAG;AACL,GACF"}