File tree Expand file tree Collapse file tree 7 files changed +7
-129
lines changed
sdk/src/deployments/network/actions Expand file tree Collapse file tree 7 files changed +7
-129
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import { gnsCommand } from './gns'
7
7
import { graphTokenCommand } from './graphToken'
8
8
import { stakingCommand } from './staking'
9
9
import { anyCommand } from './any'
10
- import { governanceCommand } from './governance'
11
10
12
11
import { disputeManagerCommand } from './disputeManager'
13
12
@@ -24,7 +23,6 @@ export const contractsCommand = {
24
23
. command ( stakingCommand )
25
24
. command ( anyCommand )
26
25
. command ( disputeManagerCommand )
27
- . command ( governanceCommand )
28
26
} ,
29
27
handler : ( ) : void => {
30
28
yargs . showHelp ( )
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import { GraphToken } from '../build/types/GraphToken'
31
31
import { Controller } from '../build/types/Controller'
32
32
import { BancorFormula } from '../build/types/BancorFormula'
33
33
import { IENS } from '../build/types/IENS'
34
- import { GraphGovernance } from '../build/types/GraphGovernance'
35
34
import { AllocationExchange } from '../build/types/AllocationExchange'
36
35
import { SubgraphNFT } from '../build/types/SubgraphNFT'
37
36
import { GraphCurationToken } from '../build/types/GraphCurationToken'
@@ -60,7 +59,6 @@ export interface NetworkContracts {
60
59
Controller : Controller
61
60
BancorFormula : BancorFormula
62
61
IENS : IENS
63
- GraphGovernance : GraphGovernance
64
62
AllocationExchange : AllocationExchange
65
63
SubgraphNFT : SubgraphNFT
66
64
SubgraphNFTDescriptor : SubgraphNFTDescriptor
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ describe('Open allocations', () => {
35
35
} )
36
36
37
37
describe ( 'Allocations' , ( ) => {
38
- it ( `allocatons should be open` , async function ( ) {
38
+ it ( `allocations should be open` , async function ( ) {
39
39
const allocations = indexerFixtures . map ( ( i ) => i . allocations ) . flat ( )
40
40
for ( const allocation of allocations ) {
41
41
const state = await Staking . getAllocationState ( allocation . signer . address )
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ echo "Cleaning flattened contracts..."
8
8
9
9
FLATTENED_FILES=(
10
10
" $OUT_DIR /Controller.sol"
11
- " $OUT_DIR /GraphGovernance.sol"
12
11
" $OUT_DIR /GNS.sol"
13
12
" $OUT_DIR /ServiceRegistry.sol"
14
13
" $OUT_DIR /Curation.sol"
@@ -27,4 +26,4 @@ for path in ${FLATTENED_FILES[@]}; do
27
26
-e " s|// SPDX-License-Identifier:.*||g" \
28
27
-e ' s|pragma abicoder v2;|//pragma abicoder v2;|g' \
29
28
-e ' 1s|^|pragma abicoder v2;\n|' $path
30
- done
29
+ done
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ echo "Flattening contracts..."
8
8
9
9
FILES=(
10
10
" contracts/governance/Controller.sol"
11
- " contracts/governance/GraphGovernance.sol"
12
11
" contracts/discovery/GNS.sol"
13
12
" contracts/discovery/ServiceRegistry.sol"
14
13
" contracts/curation/Curation.sol"
Original file line number Diff line number Diff line change @@ -48,13 +48,18 @@ export const allocateFrom: GraphNetworkAction<{
48
48
const metadata = ethers . constants . HashZero
49
49
50
50
console . log ( `\nAllocating ${ amount } tokens on ${ allocationId } ...` )
51
+ let extraArgs : ethers . Overrides = { }
52
+ if ( process . env . CI ) {
53
+ extraArgs . gasLimit = BigNumber . from ( '400000' )
54
+ }
51
55
const tx = await contracts . Staking . connect ( indexer ) . allocateFrom (
52
56
indexer . address ,
53
57
subgraphDeploymentID ,
54
58
amount ,
55
59
allocationId ,
56
60
metadata ,
57
61
proof ,
62
+ extraArgs
58
63
)
59
64
await tx . wait ( )
60
65
}
You can’t perform that action at this time.
0 commit comments