Skip to content

Commit 35aa936

Browse files
authored
fix: rewards manager e2e config test (#653)
Signed-off-by: Tomás Migone <[email protected]>
1 parent 842a8da commit 35aa936

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

config/graph.goerli.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ contracts:
119119
proxy: true
120120
init:
121121
controller: "${{Controller.address}}"
122-
issuanceRate: "1000000012184945188" # per block increase of total supply, blocks in a year = 365*60*60*24/13
123122
calls:
123+
- fn: "setIssuanceRate"
124+
issuanceRate: "1000000012184945188" # per block increase of total supply, blocks in a year = 365*60*60*24/13
124125
- fn: "setSubgraphAvailabilityOracle"
125126
subgraphAvailabilityOracle: *availabilityOracle
126127
AllocationExchange:

config/graph.localhost.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ contracts:
119119
proxy: true
120120
init:
121121
controller: "${{Controller.address}}"
122-
issuanceRate: "1000000012184945188" # per block increase of total supply, blocks in a year = 365*60*60*24/13
123122
calls:
123+
- fn: "setIssuanceRate"
124+
issuanceRate: "1000000012184945188" # per block increase of total supply, blocks in a year = 365*60*60*24/13
124125
- fn: "setSubgraphAvailabilityOracle"
125126
subgraphAvailabilityOracle: *availabilityOracle
126127
AllocationExchange:

config/graph.mainnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ contracts:
108108
controller: "${{Controller.address}}"
109109
calls:
110110
- fn: "setIssuanceRate"
111-
_issuanceRate: "1000000012184945188" # per block increase of total supply, blocks in a year = 365*60*60*24/13
111+
issuanceRate: "1000000012184945188" # per block increase of total supply, blocks in a year = 365*60*60*24/13
112112
AllocationExchange:
113113
init:
114114
graphToken: "${{GraphToken.address}}"

e2e/deployment/config/rewardsManager.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { expect } from 'chai'
22
import hre from 'hardhat'
3-
import { getItemValue } from '../../../cli/config'
43
import { NamedAccounts } from '../../../tasks/type-extensions'
54

65
describe('RewardsManager configuration', () => {
76
const {
8-
graphConfig,
97
getNamedAccounts,
108
contracts: { RewardsManager, Controller },
119
} = hre.graph()
@@ -23,8 +21,7 @@ describe('RewardsManager configuration', () => {
2321

2422
it('issuanceRate should match "issuanceRate" in the config file', async function () {
2523
const value = await RewardsManager.issuanceRate()
26-
const expected = getItemValue(graphConfig, 'contracts/RewardsManager/init/issuanceRate')
27-
expect(value).eq(expected)
24+
expect(value).eq('1000000012184945188') // hardcoded as it's set with a function call rather than init parameter
2825
})
2926

3027
it('should allow subgraph availability oracle to deny rewards', async function () {

0 commit comments

Comments
 (0)