@@ -267,91 +267,6 @@ const createTotalSplit = async (totalSplitConfig: {
267267 throw err ;
268268 }
269269} ;
270-
271- /**
272- * Creates a cluster definition with rewards split configuration
273- * @param clusterName Name of the cluster
274- * @param ovmAddress OVM withdrawal address
275- * @param splitterAddress Splitter fee recipient address
276- * @param numValidators Number of validators in the cluster
277- * @param numOperators Number of operators in the cluster
278- * @returns The config hash of the created cluster definition
279- */
280- const createRewardsSplitCluster = async (
281- clusterName : string ,
282- ovmAddress : string ,
283- splitterAddress : string ,
284- numValidators : number = 3 ,
285- numOperators : number = 4 ,
286- ) : Promise < string > => {
287- try {
288- // Create operators array with empty addresses for solo cluster
289- const operators = Array . from ( { length : numOperators } , ( ) => ( {
290- address : "" ,
291- } ) ) ;
292-
293- // Create validators array - all validators use the same OVM and splitter addresses
294- const validators = Array . from ( { length : numValidators } , ( ) => ( {
295- withdrawal_address : ovmAddress ,
296- fee_recipient_address : splitterAddress ,
297- } ) ) ;
298-
299- const clusterConfig = {
300- name : clusterName ,
301- operators,
302- validators,
303- } ;
304-
305- const configHash = await client . createClusterDefinition ( clusterConfig ) ;
306- return configHash ;
307- } catch ( err ) {
308- console . log ( err , "err" ) ;
309- throw err ;
310- }
311- } ;
312-
313- /**
314- * Creates a cluster definition with total split configuration
315- * @param clusterName Name of the cluster
316- * @param ovmAddress OVM withdrawal address
317- * @param splitterAddress Splitter fee recipient address
318- * @param numValidators Number of validators in the cluster
319- * @param numOperators Number of operators in the cluster
320- * @returns The config hash of the created cluster definition
321- */
322- const createTotalSplitCluster = async (
323- clusterName : string ,
324- ovmAddress : string ,
325- splitterAddress : string ,
326- numValidators : number = 3 ,
327- numOperators : number = 4 ,
328- ) : Promise < string > => {
329- try {
330- // Create operators array with empty addresses for solo cluster
331- const operators = Array . from ( { length : numOperators } , ( ) => ( {
332- address : "" ,
333- } ) ) ;
334-
335- // Create validators array - all validators use the same OVM and splitter addresses
336- const validators = Array . from ( { length : numValidators } , ( ) => ( {
337- withdrawal_address : ovmAddress ,
338- fee_recipient_address : splitterAddress ,
339- } ) ) ;
340-
341- const clusterConfig = {
342- name : clusterName ,
343- operators,
344- validators,
345- } ;
346-
347- const configHash = await client . createClusterDefinition ( clusterConfig ) ;
348- return configHash ;
349- } catch ( err ) {
350- console . log ( err , "err" ) ;
351- throw err ;
352- }
353- } ;
354-
355270/**
356271 * Activates cluster by depositing 32 ethers
357272 * @param clusterLock The cluster lock that contains the validator to be activated
0 commit comments