@wuwei-labs/srsly
Version:
[](https://www.npmjs.com/package/ts-sdk-example)
26 lines • 898 B
JavaScript
/**
* 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
*/
import { combineCodec, getI64Decoder, getI64Encoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, } from '@solana/kit';
export function getClockDataEncoder() {
return getStructEncoder([
['slot', getU64Encoder()],
['epoch', getU64Encoder()],
['unixTimestamp', getI64Encoder()],
]);
}
export function getClockDataDecoder() {
return getStructDecoder([
['slot', getU64Decoder()],
['epoch', getU64Decoder()],
['unixTimestamp', getI64Decoder()],
]);
}
export function getClockDataCodec() {
return combineCodec(getClockDataEncoder(), getClockDataDecoder());
}
//# sourceMappingURL=clockData.js.map