Skip to content

Commit

Permalink
chore: minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhe8x committed Dec 17, 2024
1 parent f87b84f commit 1bbad3a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion test/StateChannel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down
14 changes: 7 additions & 7 deletions test/fixtureLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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,
Expand Down
12 changes: 6 additions & 6 deletions test/fixtures/plan.yaml
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 1bbad3a

Please sign in to comment.