@radixdlt/atom
Version:
Container for CRUD instructions known as 'Particles' that are sent to the Radix decentralized ledger
18 lines • 801 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.JSONDecoding = void 0;
const neverthrow_1 = require("neverthrow");
const data_formats_1 = require("@radixdlt/data-formats");
const JSONDecoding = (() => {
const strTagDecoder = data_formats_1.taggedStringDecoder(':str:')((value) => neverthrow_1.ok(value));
const decodingFn = data_formats_1.JSONDecoding;
decodingFn.withDecoders = data_formats_1.JSONDecoding.withDecoders.bind(null, strTagDecoder);
decodingFn.withDependencies = data_formats_1.JSONDecoding.withDependencies.bind(null, {
JSONDecoders: [strTagDecoder],
// eslint-disable-next-line
fromJSON: (() => { }),
});
return decodingFn;
})();
exports.JSONDecoding = JSONDecoding;
//# sourceMappingURL=utils.js.map