Skip to content

Latest commit

 

History

History
90 lines (85 loc) · 4.98 KB

CHANGELOG.md

File metadata and controls

90 lines (85 loc) · 4.98 KB

Changelog

1.1.9

  • add the Singleton class (Singleton v1.1 support)
  • add tests for the Singleton class (full coverage)
  • make Singleton available to apps as greenweb.Singleton
  • greenweb.sexp:
    • add new helper method: bytesToAtom()
    • add the singletonPuzzle() and singletonSolution() methods
    • add the singletonLauncherSolution() method (the puzzle is the same for all singletons)
    • add the payToSingletonPuzzle() and payToSingletonSolution() methods
    • add more puzzle constants:
      • SINGLETON_TOP_LAYER_v1_1_PROGRAM_MOD
      • SINGLETON_TOP_LAYER_v1_1_PROGRAM_MOD_HASH
      • SINGLETON_LAUNCHER_PROGRAM
      • SINGLETON_LAUNCHER_PROGRAM_HASH
      • P2_SINGLETON_PROGRAM_MOD
    • add tests
  • greenweb.spend:
    • add the singletonLaunchConditionsAndCoinSol() method
    • add the launchSingleton() method
    • add the useP2SingletonCoinsConditionsAndCoinSol() method
    • add tests
  • add more tests to ensure full code coverage (100%)
  • update docs to reflect changes

1.1.8

  • PrivateKeyProvider: the signCoinSpends now accepts a second, optional argument: customGenesisChallenge

1.1.7

  • add the CAT class (CAT1 support)
  • add tests for the CAT class (full coverage)
  • create greenweb.spend
    • new method: bundleCATs()
    • new method: bundleStandardCoins()
    • new method: bundle()
    • new method: mergeSpendBundles()
    • add tests
  • greenweb.sexp:
    • add the uncurry() method
    • add the standardCoinSolution() method
    • add the CATPuzzle() and CATSolution() methods
    • rename P2_DELEGATED_PUZZLE_OR_HIDDEN_PUZZLE_PROGRAM to P2_DELEGATED_PUZZLE_OR_HIDDEN_PUZZLE_PROGRAM_MOD
    • add more puzzle constants:
      • CAT_PROGRAM_MOD
      • CAT_PROGRAM_MOD_HASH
      • GENESIS_BY_COIN_ID_TAIL_MOD
      • GENESIS_BY_PUZZLE_HASH_TAIL_MOD
      • EVERYTHING_WITH_SIGNATURE_TAIL_MOD
      • DELEGATED_TAIL_MOD
    • add TAIL-building helper methods: -genesisByCoinIdTAIL()
      • genesisByPuzzleHashTAIL()
      • everythingWithSignatureTAIL()
      • delegatedTAIL()
    • update tests
  • SmartCoin: BREAKING CHANGES
    • add solution property and the withSolution() & isSpendable() methods
    • spend no longer requires the solution parameter
    • update tests
  • StandardCoin: BREAKING CHANGES
    • rename publicKey to syntheticKey
    • use syntheticKey and publicKey parameters instead of publicKey and isSyntheticKey
    • remove the forceUsePuzzle parameter
    • remove the send() and multisend() methods (replacement: greenweb.spend.bundle())
    • add the withSyntheticKey() method
    • add the addConditionsToSolution() method
    • update tests
  • Add greenweb.util.hexlify and greenweb.util.unhexlify
  • Fix SmartCoin bug (thanks, polkom21)
  • Update docs to reflect changes
  • Bump version to 1.1.7

1.1.6

  • Add a changelog (CHANGELOG.md)
  • Add StandardCoin, which can be used to create standard transactions more easily.
  • Make the SmartCoin class 'immutable'. setParentCoinInfo & co. are now withParentCoinInfo & co. and return a new class instance. Also added the copyWith method.
  • Add greenweb.util.key - a collection of methods to help with key generation and derivation. Most important functions include , masterSkToWalletSk(), masterSkToWalletSkUnhardened(), masterPkToWalletPk(), as well as hexToPrivateKey(), hexToPublicKey(), privateKeyToHex(), and publicKeyToHex().
  • Add greenweb.util.key.mnemonic, which can be used to convert bytes from and to mnemonic strings, as well as mnemonic strings to seeds and private keys. New functions: bytesToMnemonic(), bytesFromMnemonic(), mnemonicToSeed(), privateKeyFromMnemonic().
  • XCHModule: add the createProvider() method, which can be used to easily create a MultiProvider
  • Add greenweb.util.key.impl, which exposes more key derivation functions such as masterSkToFarmerSk() and masterSkToPoolingAuthenticationSk()
  • SExpUtil: Use Chia's sha256tree_module clvm program.
  • SExpUtil: Add the curry() function
  • SmartCoin: Add the curry() function, which returns a new class instance
  • SExpUtil: Expose more Chia wallet puzzles (P2_DELEGATED_PUZZLE_OR_HIDDEN_PUZZLE_PROGRAM, DEFAULT_HIDDEN_PUZZLE_PROGRAM, DEFAULT_HIDDEN_PUZZLE_HASH, CALCULATE_SYNTHETIC_PUBLIC_KEY_PROGRAM) and expose calculateSyntheticPublicKey() and standardCoinPuzzle(), which are used by StandardCoin
  • Provider: Modify return types of the tranfer(), transferCAT(), and acceptOffer() methods from Promise<boolean> to Promise<Optional<SpendBundle>>
  • Create greenweb.util.goby, which can be used to parse Goby's SpendBundle, CoinSpend, and Coin objects
  • Expose SyntheticKeyUtil via greenweb.util.key.synthetic; functions: calculateSyntheticOffset() and calculateSyntheticSecretKey().
  • Tests: 100% coverage