"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.locked = exports.vesting = exports.claimable = exports.borrowed = exports.supplied = exports.wallet = exports.metatyped = exports.isLocked = exports.isVesting = exports.isClaimable = exports.isBorrowed = exports.isSupplied = exports.isWallet = void 0;
const position_interface_1 = require("./position.interface");
const isWallet = (token) => token.metaType === position_interface_1.MetaType.WALLET;
exports.isWallet = isWallet;
const isSupplied = (token) => token.metaType === position_interface_1.MetaType.SUPPLIED;
exports.isSupplied = isSupplied;
const isBorrowed = (token) => token.metaType === position_interface_1.MetaType.BORROWED;
exports.isBorrowed = isBorrowed;
const isClaimable = (token) => token.metaType === position_interface_1.MetaType.CLAIMABLE;
exports.isClaimable = isClaimable;
const isVesting = (token) => token.metaType === position_interface_1.MetaType.VESTING;
exports.isVesting = isVesting;
const isLocked = (token) => token.metaType === position_interface_1.MetaType.LOCKED;
exports.isLocked = isLocked;
const metatyped = (token, metaType) => (Object.assign({ metaType }, token));
exports.metatyped = metatyped;
const wallet = (token) => (Object.assign({ metaType: position_interface_1.MetaType.WALLET }, token));
exports.wallet = wallet;
const supplied = (token) => (Object.assign({ metaType: position_interface_1.MetaType.SUPPLIED }, token));
exports.supplied = supplied;
const borrowed = (token) => (Object.assign({ metaType: position_interface_1.MetaType.BORROWED }, token));
exports.borrowed = borrowed;
const claimable = (token) => (Object.assign({ metaType: position_interface_1.MetaType.CLAIMABLE }, token));
exports.claimable = claimable;
const vesting = (token) => (Object.assign({ metaType: position_interface_1.MetaType.VESTING }, token));
exports.vesting = vesting;
const locked = (token) => (Object.assign({ metaType: position_interface_1.MetaType.LOCKED }, token));
exports.locked = locked;
//# sourceMappingURL=position.utils.js.map