@lifi/composer-sdk
Version:
Public Composer SDK for building and submitting flows
26 lines (25 loc) • 924 B
JavaScript
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
//#region src/generated/materialisers.generated.ts
var materialisers_generated_exports = /* @__PURE__ */ __exportAll({
balanceOf: () => balanceOf,
call: () => call,
directDeposit: () => directDeposit
});
/** Read the on-chain token balance of an address as the input amount — accepts: resource */
const balanceOf = (config) => ({
kind: "balanceOf",
...config
});
/** Deposit tokens into the VM — native via msg.value, ERC-20 via transferFrom — accepts: resource */
const directDeposit = (config) => ({
kind: "directDeposit",
...config
});
/** Execute an arbitrary contract call and measure the resulting token balance diff — accepts: resource */
const call = (config) => ({
kind: "call",
...config
});
//#endregion
export { balanceOf, call, directDeposit, materialisers_generated_exports };
//# sourceMappingURL=materialisers.generated.js.map