1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.isCodec = void 0;
|
4 | const helpers_js_1 = require("./helpers.js");
|
5 | const checkCodec = /*#__PURE__*/ (0, helpers_js_1.isOnObject)('toHex', 'toHuman', 'toU8a');
|
6 | const checkRegistry = /*#__PURE__*/ (0, helpers_js_1.isOnObject)('get');
|
7 | function isCodec(value) {
|
8 | return checkCodec(value) && checkRegistry(value.registry);
|
9 | }
|
10 | exports.isCodec = isCodec;
|