@@ -19,9 +19,11 @@ import {
1919 RemoveSubnetValidatorTx ,
2020 TransferSubnetOwnershipTx ,
2121 TransformSubnetTx ,
22- IncreaseBalanceTx ,
23- DisableSubnetValidatorTx ,
24- SetSubnetValidatorWeightTx ,
22+ ConvertSubnetToL1Tx ,
23+ RegisterL1ValidatorTx ,
24+ SetL1ValidatorWeightTx ,
25+ IncreaseL1ValidatorBalanceTx ,
26+ DisableL1ValidatorTx ,
2527} from '../serializable/pvm' ;
2628import {
2729 baseTx ,
@@ -67,10 +69,8 @@ import {
6769import { bytesForInt } from './utils/bytesFor' ;
6870import { makeList , makeListBytes } from './utils/makeList' ;
6971import type { FeeState } from '../vms/pvm' ;
70- import { ConvertSubnetTx } from '../serializable/pvm/convertSubnetTx' ;
71- import { ConvertSubnetValidator } from '../serializable/fxs/pvm/convertSubnetValidator' ;
72+ import { L1Validator } from '../serializable/fxs/pvm/L1Validator' ;
7273import { PChainOwner } from '../serializable/fxs/pvm/pChainOwner' ;
73- import { RegisterSubnetValidatorTx } from '../serializable/pvm/registerSubnetValidatorTx' ;
7474
7575export const validator = ( ) =>
7676 new Validator ( nodeId ( ) , bigIntPr ( ) , bigIntPr ( ) , bigIntPr ( ) ) ;
@@ -318,8 +318,8 @@ export const pChainOwnerBytes = () =>
318318 addressesBytes ( ) ,
319319 ) ;
320320
321- export const convertSubnetValidator = ( ) =>
322- new ConvertSubnetValidator (
321+ export const l1Validator = ( ) =>
322+ new L1Validator (
323323 bytes ( ) ,
324324 bigIntPr ( ) ,
325325 bigIntPr ( ) ,
@@ -328,7 +328,7 @@ export const convertSubnetValidator = () =>
328328 pChainOwner ( ) ,
329329 ) ;
330330
331- export const convertSubnetValidatorBytes = ( ) =>
331+ export const l1ValidatorBytes = ( ) =>
332332 concatBytes (
333333 bytesBytes ( ) ,
334334 bigIntPrBytes ( ) ,
@@ -338,54 +338,54 @@ export const convertSubnetValidatorBytes = () =>
338338 pChainOwnerBytes ( ) ,
339339 ) ;
340340
341- export const convertSubnetTx = ( ) =>
342- new ConvertSubnetTx (
341+ export const convertSubnetToL1Tx = ( ) =>
342+ new ConvertSubnetToL1Tx (
343343 baseTx ( ) ,
344344 id ( ) ,
345345 id ( ) ,
346346 bytes ( ) ,
347- makeList ( convertSubnetValidator ) ( ) ,
347+ makeList ( l1Validator ) ( ) ,
348348 input ( ) ,
349349 ) ;
350350
351- export const convertSubnetTxBytes = ( ) =>
351+ export const convertSubnetToL1TxBytes = ( ) =>
352352 concatBytes (
353353 baseTxbytes ( ) ,
354354 idBytes ( ) ,
355355 idBytes ( ) ,
356356 bytesBytes ( ) ,
357- makeListBytes ( convertSubnetValidatorBytes ) ( ) ,
357+ makeListBytes ( l1ValidatorBytes ) ( ) ,
358358 bytesForInt ( 10 ) ,
359359 inputBytes ( ) ,
360360 ) ;
361361
362- export const registerSubnetValidatorTx = ( ) =>
363- new RegisterSubnetValidatorTx ( baseTx ( ) , bigIntPr ( ) , blsSignature ( ) , bytes ( ) ) ;
362+ export const registerL1ValidatorTx = ( ) =>
363+ new RegisterL1ValidatorTx ( baseTx ( ) , bigIntPr ( ) , blsSignature ( ) , bytes ( ) ) ;
364364
365- export const registerSubnetValidatorTxBytes = ( ) =>
365+ export const registerL1ValidatorTxBytes = ( ) =>
366366 concatBytes (
367367 baseTxbytes ( ) ,
368368 bigIntPrBytes ( ) ,
369369 blsSignatureBytes ( ) ,
370370 bytesBytes ( ) ,
371371 ) ;
372372
373- export const setSubnetValidatorWeightTx = ( ) =>
374- new SetSubnetValidatorWeightTx ( baseTx ( ) , bytes ( ) ) ;
373+ export const setL1ValidatorWeightTx = ( ) =>
374+ new SetL1ValidatorWeightTx ( baseTx ( ) , bytes ( ) ) ;
375375
376- export const setSubnetValidatorWeightTxBytes = ( ) =>
376+ export const setL1ValidatorWeightTxBytes = ( ) =>
377377 concatBytes ( baseTxbytes ( ) , bytesBytes ( ) ) ;
378378
379- export const increaseBalanceTx = ( ) =>
380- new IncreaseBalanceTx ( baseTx ( ) , id ( ) , bigIntPr ( ) ) ;
379+ export const increaseL1ValidatorBalanceTx = ( ) =>
380+ new IncreaseL1ValidatorBalanceTx ( baseTx ( ) , id ( ) , bigIntPr ( ) ) ;
381381
382- export const increaseBalanceTxBytes = ( ) =>
382+ export const increaseL1ValidatorBalanceTxBytes = ( ) =>
383383 concatBytes ( baseTxbytes ( ) , idBytes ( ) , bigIntPrBytes ( ) ) ;
384384
385- export const disableSubnetValidatorTx = ( ) =>
386- new DisableSubnetValidatorTx ( baseTx ( ) , id ( ) , input ( ) ) ;
385+ export const disableL1ValidatorTx = ( ) =>
386+ new DisableL1ValidatorTx ( baseTx ( ) , id ( ) , input ( ) ) ;
387387
388- export const disableSubnetValidatorTxBytes = ( ) =>
388+ export const disableL1ValidatorTxBytes = ( ) =>
389389 concatBytes ( baseTxbytes ( ) , idBytes ( ) , bytesForInt ( 10 ) , inputBytes ( ) ) ;
390390
391391export const feeState = ( ) : FeeState => ( {
0 commit comments