UNPKG

@lifi/composer-sdk

Version:

Public Composer SDK for building and submitting flows

34 lines (33 loc) • 1.15 kB
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); //#region src/generated/materialisers.generated.ts var materialisers_generated_exports = /* @__PURE__ */ require("../_virtual/_rolldown/runtime.cjs").__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 exports.balanceOf = balanceOf; exports.call = call; exports.directDeposit = directDeposit; Object.defineProperty(exports, "materialisers_generated_exports", { enumerable: true, get: function() { return materialisers_generated_exports; } }); //# sourceMappingURL=materialisers.generated.cjs.map