UNPKG

@wuwei-labs/srsly

Version:

[![npm version](https://img.shields.io/npm/v/ts-sdk-example.svg)](https://www.npmjs.com/package/ts-sdk-example)

31 lines 1.1 kB
"use strict"; /** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ Object.defineProperty(exports, "__esModule", { value: true }); exports.getClockDataEncoder = getClockDataEncoder; exports.getClockDataDecoder = getClockDataDecoder; exports.getClockDataCodec = getClockDataCodec; const kit_1 = require("@solana/kit"); function getClockDataEncoder() { return (0, kit_1.getStructEncoder)([ ['slot', (0, kit_1.getU64Encoder)()], ['epoch', (0, kit_1.getU64Encoder)()], ['unixTimestamp', (0, kit_1.getI64Encoder)()], ]); } function getClockDataDecoder() { return (0, kit_1.getStructDecoder)([ ['slot', (0, kit_1.getU64Decoder)()], ['epoch', (0, kit_1.getU64Decoder)()], ['unixTimestamp', (0, kit_1.getI64Decoder)()], ]); } function getClockDataCodec() { return (0, kit_1.combineCodec)(getClockDataEncoder(), getClockDataDecoder()); } //# sourceMappingURL=clockData.js.map