UNPKG

@j0nnyboi/amman

Version:

A modern mandatory toolbelt to help test solana SDK libraries and apps on a locally running validator.

16 lines 514 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isAccount = exports.isMint = void 0; function isMint(value) { const mint = value; return typeof mint.supply === 'bigint' && typeof mint.decimals === 'number'; } exports.isMint = isMint; function isAccount(value) { const account = value; return (account.mint != null && account.owner != null && typeof account.amount === 'bigint'); } exports.isAccount = isAccount; //# sourceMappingURL=types.js.map