import { ethers } from 'ethers';
SuperTokenFactoryContract,
// Build the transaction to create the Superfluid
const createSuperERC20Tx = await etherspotMumbaiSdk
.createSuperERC20WrapperTransactionPayload(
// Add this to the Etherspot transaction batch
await etherspotMumbaiSdk.batchExecuteAccountTransaction(createSuperERC20Tx);
const txResponse = await this.toWallet.sendTransaction(
await etherspotMumbaiSdk.encodeGatewayBatch()
const txReceipt = await txResponse.wait();
const factoryContract = new SuperTokenFactoryContract();
const factoryCreated = factoryContract
.parseLogs(txReceipt.logs)
.find(log => log && log.event === 'SuperTokenCreated');
const superTokenAddress = factoryCreated.args[0];
await sdk.clearGatewayBatch();
const superTokenContract = new SuperTokenContract(