CreateChainTx
class
- Extends
BaseTx
- Additional properties
subnetID
: ID of the Subnet that validates this blockchain.chainName
: A human readable name for the chain; need not be uniquevmID
: ID of the VM running on the new chainfxIDs
: IDs of the feature extensions running on the new chaingenesisData
: Byte representation of genesis state of the new chain
- This code implements the PlatformVm
CreateChainTx
serialization specification
SubnetAuth
class
- Extends
Serializable
- Specifies the addresses whose signatures will be provided to demonstrate that the owners of a subnet approve something.
- This code implements the PlatformVm
SubnetAuth
serialization specification
Tests
- Add tests for
CreateChainTx
getters - Unit tests for custom error codes and types
- Unit tests for
SubnetAuth
Example scripts
PlatformVM
createChainTx
getBalance
getBlockchains
getBlockchainStatus
getCurrentSupply
getCurrentValidators
getPendingValidators.ts
getStakingAssetID
getSubnets
subnetAuth
Misc
- Create
InitialStates
with singleSECPTransferOutput
output - Add memo
- Create
GenesisState
consisting ofInitialState
and memo - Create
SubnetAuth
instance with 2 addresses
Errors
SubnetIdError
SUBNET_ID_ERROR_CODE
Update RPC
- Add optional
nodeIDs
parameter toplatform.getCurrentValidators
Interfaces
Added new interfaces for PlatformVM.
GetCurrentValidatorsParams
GetPendingValidatorsParams
Miscellaneous
- Update body copy in
README
files for example scripts. - Replace instance properties with instance methods in all of the serialization classes
Dependency Updates ✅
- Bump typescript from 4.5.2 to 4.5.4
- Bump @types/jest from 27.0.3 to 27.4.0
- Bump ws from 8.3.0 to 8.4.0
- Bump store2 from 2.12.0 to 2.13.1
- Bump terser-webpack-plugin from 5.2.5 to 5.3.0
- Upgrade ws from 8.3.0 to 8.4.0
- Bump @types/hdkey from 2.0.0 to 2.0.1
- Bump webpack from 5.65.0 to 5.66.0
- Bump ws from 8.4.0 to 8.4.2