11import { task , types } from "hardhat/config" ;
2- import { KlerosCore , KlerosCoreNeo , KlerosCoreUniversity } from "../typechain-types" ;
2+ import { KlerosCore , KlerosCoreUniversity } from "../typechain-types" ;
33import { BigNumberish , toBigInt , toNumber } from "ethers" ;
44import courtsV1Mainnet from "../config/courts.v1.mainnet.json" ;
55import courtsV1GnosisChain from "../config/courts.v1.gnosischain.json" ;
66import courtsV2ArbitrumTestnet from "../config/courts.v2.testnet.json" ;
77import courtsV2ArbitrumDevnet from "../config/courts.v2.devnet.json" ;
8- import courtsV2MainnetNeo from "../config/courts.v2.mainnet-neo .json" ;
8+ import courtsV2Mainnet from "../config/courts.v2.mainnet.json" ;
99import { isDevnet } from "../deploy/utils" ;
1010import { execute , writeTransactionBatch } from "./utils/execution" ;
1111import { getContracts , Cores } from "./utils/contracts" ;
@@ -21,7 +21,7 @@ enum Sources {
2121 V1_GNOSIS ,
2222 V2_DEVNET ,
2323 V2_TESTNET ,
24- V2_MAINNET_NEO ,
24+ V2_MAINNET ,
2525}
2626
2727type Court = {
@@ -43,7 +43,7 @@ const TEN_THOUSAND_GWEI = 10n ** 13n;
4343task ( "populate:courts" , "Populates the courts and their parameters" )
4444 . addOptionalParam (
4545 "from" ,
46- "The source of the policies between v1_mainnet, v1_gnosis, v2_devnet, v2_testnet, v2_mainnet_neo (default: auto depending on the network)" ,
46+ "The source of the policies between v1_mainnet, v1_gnosis, v2_devnet, v2_testnet, v2_mainnet (default: auto depending on the network)" ,
4747 undefined
4848 )
4949 . addOptionalParam ( "start" , "The starting index for the courts to populate (default: 0)" , 0 , types . int )
@@ -53,7 +53,7 @@ task("populate:courts", "Populates the courts and their parameters")
5353 undefined ,
5454 types . int
5555 )
56- . addOptionalParam ( "coreType" , "The type of core to use between base, neo, university (default: base)" , Cores . BASE )
56+ . addOptionalParam ( "coreType" , "The type of core to use between base, university (default: base)" , Cores . BASE )
5757 . addFlag ( "reverse" , "Iterates the courts in reverse order, useful to increase minStake in the child courts first" )
5858 . addFlag ( "forceV1ParametersToDev" , "Use development values for the v1 courts parameters" )
5959 . setAction ( async ( taskArgs , hre ) => {
@@ -74,7 +74,7 @@ task("populate:courts", "Populates the courts and their parameters")
7474 if ( taskArgs . from ) {
7575 from = Sources [ taskArgs . from . toUpperCase ( ) as keyof typeof Sources ] ;
7676 if ( from === undefined ) {
77- console . error ( "Invalid source, must be one of v1_mainnet, v1_gnosis, v2_devnet, v2_testnet, v2_mainnet_neo " ) ;
77+ console . error ( "Invalid source, must be one of v1_mainnet, v1_gnosis, v2_devnet, v2_testnet, v2_mainnet " ) ;
7878 return ;
7979 }
8080 } else {
@@ -84,7 +84,7 @@ task("populate:courts", "Populates the courts and their parameters")
8484
8585 const coreType = Cores [ taskArgs . coreType . toUpperCase ( ) as keyof typeof Cores ] ;
8686 if ( coreType === undefined ) {
87- console . error ( "Invalid core type, must be one of base, neo, university" ) ;
87+ console . error ( "Invalid core type, must be one of base, university" ) ;
8888 return ;
8989 }
9090 console . log ( "Using core type %s" , coreType ) ;
@@ -133,8 +133,8 @@ task("populate:courts", "Populates the courts and their parameters")
133133 courtsV2 = courtsV2ArbitrumTestnet ;
134134 break ;
135135 }
136- case Sources . V2_MAINNET_NEO : {
137- courtsV2 = courtsV2MainnetNeo ;
136+ case Sources . V2_MAINNET : {
137+ courtsV2 = courtsV2Mainnet ;
138138 break ;
139139 }
140140 default :
0 commit comments