UNPKG

eip-712

Version:

Tiny library with utility functions that can help with signing and verifying EIP-712 based messages

21 lines (16 loc) 597 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getOptions = exports.OPTIONS_TYPE = void 0; var _superstruct = require("superstruct"); const OPTIONS_TYPE = (0, _superstruct.object)({ domain: (0, _superstruct.defaulted)((0, _superstruct.string)(), 'EIP712Domain'), verifyDomain: (0, _superstruct.defaulted)((0, _superstruct.boolean)(), true) }); exports.OPTIONS_TYPE = OPTIONS_TYPE; const getOptions = options => { return (0, _superstruct.create)(options ?? {}, OPTIONS_TYPE); }; exports.getOptions = getOptions; //# sourceMappingURL=options.js.map