import { artifacts, deployScript } from '@rocketh';
export default deployScript(async ({ deploy, namedAccounts }) => {
    const { deployer, owner } = namedAccounts;
    const batchGatewayURLs = JSON.parse(process.env.BATCH_GATEWAY_URLS || '[]');
    if (!batchGatewayURLs.length) {
        throw new Error('BatchGatewayProvider: No batch gateway URLs provided');
    }
    await deploy('BatchGatewayProvider', {
        account: deployer,
        artifact: artifacts.GatewayProvider,
        args: [owner ?? deployer, batchGatewayURLs],
    });
}, {
    id: 'BatchGatewayProvider v1.0.0',
    tags: ['category:utils', 'BatchGatewayProvider'],
});
