genius-bridge-sdk
Version:
SDK for the Genius Bridge Protocol (GBP)
23 lines • 902 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNative = void 0;
const constants_1 = require("./constants");
const isNative = (address) => {
if (!address)
return false;
if (address.toLowerCase() === constants_1.SOL_NATIVE_ADDRESS.toLowerCase())
return true;
if (address.toLowerCase() === constants_1.NATIVE_ADDRESS.toLowerCase())
return true;
if (address.toLowerCase() === constants_1.ZERO_ADDRESS.toLowerCase())
return true;
if (address.toLowerCase() === constants_1.NATIVE_SOL.toLowerCase())
return true;
if (address.toLowerCase().includes('native'))
return true;
if (['sol', 'solana', 'ethereum', 'eth', 'bsc', 'binance', 'avax', 'avalanche'].includes(address.toLowerCase()))
return true;
return false;
};
exports.isNative = isNative;
//# sourceMappingURL=is-native.js.map