@q-dev/q-ts-gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
27 lines • 1.18 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAbi = void 0;
// seems like web3 typings for AbiItems are broken. use 'require' for abi jsons instead of import.
function getAbi(fileName) {
// CAUTION: the explicit listing of each abi is required for browser support (otherwise webpack does not include the abis in the output bundle)
switch (fileName) {
case "MasterDAOFactory.json":
return require("./MasterDAOFactory.json");
case "DAORegistry.json":
return require("./DAORegistry.json");
case "DAOMemberStorage.json":
return require("./DAOMemberStorage.json");
case "DAOParameterStorage.json":
return require("./DAOParameterStorage.json");
case "DAOVault.json":
return require("./DAOVault.json");
case "PermissionManager.json":
return require("./PermissionManager.json");
case "DAOVoting.json":
return require("./DAOVoting.json");
default:
throw new RangeError("Unknown abi file name: " + fileName);
}
}
exports.getAbi = getAbi;
//# sourceMappingURL=AbiImporter.js.map