import { getWallet } from "../lib/config" ; import * as solarium from "solarium-js" ; export const addKey = async ( keyIdentifier , newKey ) : Promise < void > => { const wallet = await getWallet ( ) ; await solarium . addKey ( { payer : wallet . secretKey , signer : wallet . secretKey , keyIdentifier , newKey , channelsToUpdate : [ ] , } ) ; } ;