github ava-labs/avalanchejs v3.11.0

latest releases: v5.0.0, v5.0.0-alpha.1, v4.2.0-alpha.2...
3 years ago

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 unique
    • vmID: ID of the VM running on the new chain
    • fxIDs: IDs of the feature extensions running on the new chain
    • genesisData: Byte representation of genesis state of the new chain
  • This code implements the PlatformVm CreateChainTx serialization specification

SubnetAuth class

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 single SECPTransferOutput output
  • Add memo
  • Create GenesisState consisting of InitialState and memo
  • Create SubnetAuth instance with 2 addresses

Errors

  • SubnetIdError
  • SUBNET_ID_ERROR_CODE

Update RPC

  • Add optional nodeIDs parameter to platform.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 ✅

Don't miss a new avalanchejs release

NewReleases is sending notifications on new releases.