"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTokensBridgedEncoder = getTokensBridgedEncoder;
exports.getTokensBridgedDecoder = getTokensBridgedDecoder;
exports.getTokensBridgedCodec = getTokensBridgedCodec;
var kit_1 = require("@solana/kit");
function getTokensBridgedEncoder() {
    return (0, kit_1.getStructEncoder)([
        ["amountToReturn", (0, kit_1.getU64Encoder)()],
        ["chainId", (0, kit_1.getU64Encoder)()],
        ["leafId", (0, kit_1.getU32Encoder)()],
        ["l2TokenAddress", (0, kit_1.getAddressEncoder)()],
        ["caller", (0, kit_1.getAddressEncoder)()],
    ]);
}
function getTokensBridgedDecoder() {
    return (0, kit_1.getStructDecoder)([
        ["amountToReturn", (0, kit_1.getU64Decoder)()],
        ["chainId", (0, kit_1.getU64Decoder)()],
        ["leafId", (0, kit_1.getU32Decoder)()],
        ["l2TokenAddress", (0, kit_1.getAddressDecoder)()],
        ["caller", (0, kit_1.getAddressDecoder)()],
    ]);
}
function getTokensBridgedCodec() {
    return (0, kit_1.combineCodec)(getTokensBridgedEncoder(), getTokensBridgedDecoder());
}
//# sourceMappingURL=tokensBridged.js.map