From a704718cf362d7968938a1f1d805ce5fbe49ebab Mon Sep 17 00:00:00 2001 From: Oren Sokolowsky Date: Thu, 30 Apr 2020 00:26:55 +0300 Subject: [PATCH] =?UTF-8?q?fundingGoalDeadLine=20=E2=86=92=20fundingGoalDe?= =?UTF-8?q?adline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/domain/gpqueue.ts | 4 ++-- src/mappings/Controller/mapping.ts | 4 ++-- src/mappings/Controller/schema.graphql | 2 +- test/0.1.1-rc.13/CommonSchemes.spec.ts | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/domain/gpqueue.ts b/src/domain/gpqueue.ts index 31100abc..102078ee 100644 --- a/src/domain/gpqueue.ts +++ b/src/domain/gpqueue.ts @@ -123,7 +123,7 @@ export function create(dao: Address, let minFeeToJoin = joinAndQuit.minFeeToJoin(); let memberReputation = joinAndQuit.memberReputation(); let fundingGoal = joinAndQuit.fundingGoal(); - let fundingGoalDeadLine = joinAndQuit.fundingGoalDeadLine(); + let fundingGoalDeadline = joinAndQuit.fundingGoalDeadline(); if (!equalStrings(gpAddress.toHex(), addressZero)) { setJoinAndQuitParams( @@ -135,7 +135,7 @@ export function create(dao: Address, minFeeToJoin, memberReputation, fundingGoal, - fundingGoalDeadLine, + fundingGoalDeadline, ); isGPQue = true; } diff --git a/src/mappings/Controller/mapping.ts b/src/mappings/Controller/mapping.ts index d4b3edcf..a1a29598 100644 --- a/src/mappings/Controller/mapping.ts +++ b/src/mappings/Controller/mapping.ts @@ -367,7 +367,7 @@ export function setJoinAndQuitParams( minFeeToJoin: BigInt, memberReputation: BigInt, fundingGoal: BigInt, - fundingGoalDeadLine: BigInt, + fundingGoalDeadline: BigInt, ): void { setGPParams(vmAddress, vmParamsHash, avatar); let controllerScheme = ControllerScheme.load( @@ -380,7 +380,7 @@ export function setJoinAndQuitParams( joinAndQuitParams.minFeeToJoin = minFeeToJoin; joinAndQuitParams.memberReputation = memberReputation; joinAndQuitParams.fundingGoal = fundingGoal; - joinAndQuitParams.fundingGoalDeadLine = fundingGoalDeadLine; + joinAndQuitParams.fundingGoalDeadline = fundingGoalDeadline; joinAndQuitParams.save(); if (controllerScheme != null) { controllerScheme.joinAndQuitParams = joinAndQuitParams.id; diff --git a/src/mappings/Controller/schema.graphql b/src/mappings/Controller/schema.graphql index 61ef5ec4..7e17bf2a 100644 --- a/src/mappings/Controller/schema.graphql +++ b/src/mappings/Controller/schema.graphql @@ -128,7 +128,7 @@ type JoinAndQuitParam @entity { minFeeToJoin: BigInt! memberReputation: BigInt! fundingGoal: BigInt! - fundingGoalDeadLine: BigInt! + fundingGoalDeadline: BigInt! } type FundingRequestParam @entity { diff --git a/test/0.1.1-rc.13/CommonSchemes.spec.ts b/test/0.1.1-rc.13/CommonSchemes.spec.ts index d6a27488..7835f495 100644 --- a/test/0.1.1-rc.13/CommonSchemes.spec.ts +++ b/test/0.1.1-rc.13/CommonSchemes.spec.ts @@ -108,7 +108,7 @@ describe('JoinAndQuit Scheme', () => { minFeeToJoin memberReputation fundingGoal - fundingGoalDeadLine + fundingGoalDeadline } } } @@ -140,7 +140,7 @@ describe('JoinAndQuit Scheme', () => { minFeeToJoin: (goal / 10).toString(), memberReputation: '100', fundingGoal: goal.toString(), - fundingGoalDeadLine: '10000000000', + fundingGoalDeadline: '10000000000', }, }, });