import { getWallet } from "../lib/config" ; import * as solarium from "solarium-js" ; import { Channel } from "solarium-js" ; export const create = async ( name ) : Promise < Channel > => { const wallet = await getWallet ( ) ; return solarium . create ( { payer : wallet . secretKey , owner : wallet . secretKey , name , } ) ; } ;