diff --git a/package.json b/package.json index 83c40bc6..dd251fdf 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "docs:dev": "vuepress dev docs", "docs:build": "vuepress build docs", "docs:generate": "hardhat docgen", - "debug": "node --inspect-brk -r ts-node/register -r tsconfig-paths/register", + "debug": "node --inspect-brk -r ts-node/register -r tsconfig-paths/register -r dotenv/config", "deploy": "ts-node --transpileOnly scripts/deploy.ts", "upgrade": "ts-node --transpileOnly scripts/upgrade.ts", "setup": "ts-node --transpileOnly scripts/startup.ts", diff --git a/test/StateChannel.test.ts b/test/StateChannel.test.ts index 086ba508..d8cb0a5b 100644 --- a/test/StateChannel.test.ts +++ b/test/StateChannel.test.ts @@ -136,7 +136,6 @@ describe('StateChannel Contract', () => { deploymentIds[0], ProjectType.SUBQUERY ); - await rewardsBooster.setIssuancePerBlock(etherParse('0.5')); await rewardsBooster.setIssuancePerBlockByType(ProjectType.SUBQUERY, etherParse('0.5')); // await rewardsBooster.setIssuancePerBlockByType(ProjectType.RPC, etherParse('0.5')); diff --git a/test/fixtureLoader.ts b/test/fixtureLoader.ts index bf14c09f..072ce75e 100644 --- a/test/fixtureLoader.ts +++ b/test/fixtureLoader.ts @@ -241,7 +241,7 @@ export const loaders = { ) { console.log(`PlanTemplate Start`); const next = await sdk.planManager.nextTemplateId(); - let templates; + const templates = []; for (let i = 0; i < next.toNumber(); i++) { const template = await sdk.planManager.getPlanTemplate(i); templates.push(template); @@ -319,12 +319,12 @@ export const loaders = { await tx.wait(); } } - const currentIssuancePerBlock = await sdk.rewardsBooster.issuancePerBlock(); - if (!currentIssuancePerBlock.eq(issuancePerBlock)) { - console.log(`set issuancePerBlock: from ${currentIssuancePerBlock.toString()} to ${issuancePerBlock}`); - const tx = await sdk.rewardsBooster.connect(rootAccount).setIssuancePerBlock(issuancePerBlock); - await tx.wait(); - } + // const currentIssuancePerBlock = await sdk.rewardsBooster.issuancePerBlock(); + // if (!currentIssuancePerBlock.eq(issuancePerBlock)) { + // console.log(`set issuancePerBlock: from ${currentIssuancePerBlock.toString()} to ${issuancePerBlock}`); + // const tx = await sdk.rewardsBooster.connect(rootAccount).setIssuancePerBlock(issuancePerBlock); + // await tx.wait(); + // } }, DeploymentBooster: async function ( { user, amount, deploymentId }: DeploymentBoosterInput, diff --git a/test/fixtures/plan.yaml b/test/fixtures/plan.yaml index 85274999..7984c8de 100644 --- a/test/fixtures/plan.yaml +++ b/test/fixtures/plan.yaml @@ -1,8 +1,8 @@ - kind: PlanTemplate - period: 259200 - dailyReqCap: 100000 - rateLimit: 10 + period: 1209600 + dailyReqCap: 2000000 + rateLimit: 250 metadata: - planName: Basic Plan - period: 3 days - description: Best for starter teams + planName: Startup RPC Plan + period: 14 days + description: Ideal for small or growing teams looking to explore and build without significant upfront costs.