"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTokenPairLinkedEncoder = getTokenPairLinkedEncoder;
exports.getTokenPairLinkedDecoder = getTokenPairLinkedDecoder;
exports.getTokenPairLinkedCodec = getTokenPairLinkedCodec;
var kit_1 = require("@solana/kit");
function getTokenPairLinkedEncoder() {
    return (0, kit_1.getStructEncoder)([
        ["localToken", (0, kit_1.getAddressEncoder)()],
        ["remoteDomain", (0, kit_1.getU32Encoder)()],
        ["remoteToken", (0, kit_1.getAddressEncoder)()],
    ]);
}
function getTokenPairLinkedDecoder() {
    return (0, kit_1.getStructDecoder)([
        ["localToken", (0, kit_1.getAddressDecoder)()],
        ["remoteDomain", (0, kit_1.getU32Decoder)()],
        ["remoteToken", (0, kit_1.getAddressDecoder)()],
    ]);
}
function getTokenPairLinkedCodec() {
    return (0, kit_1.combineCodec)(getTokenPairLinkedEncoder(), getTokenPairLinkedDecoder());
}
//# sourceMappingURL=tokenPairLinked.js.map