@@ -19,7 +19,7 @@ export async function taskCalculatePowerVotingREG(): Promise<string> {
1919 const jsonFiles = await getJsonFiles ( dirPath ) ;
2020
2121 if ( jsonFiles . length === 0 ) {
22- console . error ( i18n . t ( "tasks.calculatePowerVotingREG .noJsonFiles" ) ) ;
22+ console . error ( i18n . t ( "tasks.calculatePowerVoting .noJsonFiles" ) ) ;
2323 return "" ;
2424 }
2525
@@ -39,12 +39,12 @@ export async function taskCalculatePowerVotingREG(): Promise<string> {
3939
4040 // Si aucun modèle n'est détecté automatiquement, demander à l'utilisateur
4141 if ( ! selectedModelName ) {
42- selectedModelName = await askChoiseListe ( i18n . t ( "tasks.calculatePowerVotingREG .askModel" ) , {
42+ selectedModelName = await askChoiseListe ( i18n . t ( "tasks.calculatePowerVoting .askModel" ) , {
4343 value : modelNames ,
4444 name : modelNames ,
4545 } ) ;
4646 } else {
47- console . info ( i18n . t ( "tasks.calculatePowerVotingREG .infoModelAutoDetected" , { model : selectedModelName } ) ) ;
47+ console . info ( i18n . t ( "tasks.calculatePowerVoting .infoModelAutoDetected" , { model : selectedModelName } ) ) ;
4848 }
4949
5050 // Normalisation des données d'entrée
@@ -53,16 +53,16 @@ export async function taskCalculatePowerVotingREG(): Promise<string> {
5353
5454 // Sélection du modèle de calcul du pouvoir de vote
5555 const powerVotingModelNames = Object . keys ( powerVotingModels ) ;
56- const selectedPowerVotingModelName = await askChoiseListe (
57- i18n . t ( "tasks.calculatePowerVotingREG.askPowerVotingModel" ) ,
58- { value : powerVotingModelNames , name : powerVotingModelNames }
59- ) ;
56+ const selectedPowerVotingModelName = await askChoiseListe ( i18n . t ( "tasks.calculatePowerVoting.askPowerVotingModel" ) , {
57+ value : powerVotingModelNames ,
58+ name : powerVotingModelNames ,
59+ } ) ;
6060
6161 const selectedPowerVotingModel : PowerVotingModel =
6262 powerVotingModels [ selectedPowerVotingModelName as keyof typeof powerVotingModels ] ;
6363
6464 const previousDataPowerVotingJsonFileName = await askChoiseListe (
65- i18n . t ( "tasks.calculatePowerVotingREG .askPreviousDataPowerVotingJsonFile" ) ,
65+ i18n . t ( "tasks.calculatePowerVoting .askPreviousDataPowerVotingJsonFile" ) ,
6666 { value : jsonFiles , name : jsonFiles }
6767 ) ;
6868 const previousDataPowerVotingJsonFilePath = path . join ( dirPath , previousDataPowerVotingJsonFileName ) ;
@@ -80,10 +80,10 @@ export async function taskCalculatePowerVotingREG(): Promise<string> {
8080 // Formatage des données pour la transaction on-chain
8181 const BATCH_SIZE = parseInt (
8282 await askInput (
83- i18n . t ( "tasks.calculatePowerVotingREG .askBatchSize" ) ,
83+ i18n . t ( "tasks.calculatePowerVoting .askBatchSize" ) ,
8484 {
8585 regex : / ^ \d + $ / ,
86- messageEchec : i18n . t ( "tasks.calculatePowerVotingREG .messageBatchSizeError" ) ,
86+ messageEchec : i18n . t ( "tasks.calculatePowerVoting .messageBatchSizeError" ) ,
8787 } ,
8888 "1000"
8989 )
@@ -97,7 +97,7 @@ export async function taskCalculatePowerVotingREG(): Promise<string> {
9797
9898 if ( ! powerVoting . isFinite ( ) || powerVoting . isNaN ( ) ) {
9999 console . warn (
100- i18n . t ( "tasks.calculatePowerVotingREG .warnPowerVotinValue" , {
100+ i18n . t ( "tasks.calculatePowerVoting .warnPowerVotinValue" , {
101101 address : item . address ,
102102 value : item . powerVoting ,
103103 } )
@@ -115,7 +115,7 @@ export async function taskCalculatePowerVotingREG(): Promise<string> {
115115 return [ item . address , finalValue . toString ( 10 ) ] ;
116116 } catch ( error : any ) {
117117 console . warn (
118- i18n . t ( "tasks.calculatePowerVotingREG .warnPowerVotingTraitment" , {
118+ i18n . t ( "tasks.calculatePowerVoting .warnPowerVotingTraitment" , {
119119 address : item . address ,
120120 error : error . message ,
121121 } )
0 commit comments