@biconomy/sdk
Version:
SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.
22 lines • 793 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.build = void 0;
const buildDefaultInstructions_1 = require("./instructions/buildDefaultInstructions.js");
const buildIntent_1 = require("./instructions/buildIntent.js");
const build = async (baseParams, parameters) => {
const { type, data } = parameters;
switch (type) {
case "intent": {
return (0, buildIntent_1.buildIntent)(baseParams, data);
}
case "default": {
return (0, buildDefaultInstructions_1.buildDefaultInstructions)(baseParams, data);
}
default: {
throw new Error(`Unknown build action type: ${type}`);
}
}
};
exports.build = build;
exports.default = exports.build;
//# sourceMappingURL=build.js.map