import type { Signer } from '@ethersproject/abstract-signer'; import type { Config as ParcelConfig } from '@oasislabs/parcel'; import { Parcel } from '@oasislabs/parcel'; export { Bundle, ValidationErrors } from './create'; export { downloadTokenizedData } from './download'; /** Creates a new Parcel instance provided an `ethers.Signer` or else the MetaMask account index. */ export async function makeParcel(signer: Signer, config?: ParcelConfig): Promise { return new Parcel( { principal: await signer.getAddress(), signMessage: signer.signMessage.bind(signer), scopes: ['parcel.full'], }, config, ); }