// import {SPLWallet} from '@nekoproject/wallets'
import { ETHWallet, SPLWallet } from '../lib/index.commonjs';
import {SEEDS} from './constants'
import 'dotenv/config';

(async () => {
  console.log("test validate wallet")
  const ethwallet = await ETHWallet.fromMnemonic(SEEDS)
  console.log(ethwallet.getPrivateKey())
  console.log(ETHWallet.validate(ethwallet.getPrivateKey()))

  console.log("----------------- test spl wallet -----------------")
  const wallet = await SPLWallet.fromMnemonic(SEEDS)
  console.log(wallet.getPrivateKey())
  console.log(SPLWallet.validate(wallet.getPrivateKey()))
})();
