github ava-labs/avalanchejs v3.14.0

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

Refactor SubnetAuth

  • More idiomatic with addSignatureIdx workflow
  • Add addAddressIndex method to SubnetAuth class
  • Update example createSubnetTx.ts script to
    • Create keychain w/ 3 keypairs
    • Create UTXO with 1-of-1
    • Create SubnetAuth with 2-of-2
  • Update example createChainTx.ts script to
    • Create keychain w/ 3 keypairs
    • Consume and spend UTXO with 1-of-1
    • Sign SubnetAuth with 2-of-2
  • Update CreateChainTx class
    • Add addSignatureIdx method
  • Remove SubnetAuth parameter from buildCreateChainTx

PlatformVM 🅿️

AVM 🅰️

EVM 🇪

AddSubnetValidatorTx class

  • Add methods
    • addAddressIndex
    • getSigIdxs
    • getCredentialID
  • Update sign method to handle signing SubnetAuth creds and sigs

CreateSubnetTx

  • Add tests

CreateChainTx

  • Add tests

Utility Methods

  • buildCreateChainTx
  • buildAddSubnetValidatorTx

Miscellaneous

Dependency Updates ➕

Don't miss a new avalanchejs release

NewReleases is sending notifications on new releases.