Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Deprecate transfer and asset modules #291

Merged
merged 18 commits into from
Aug 28, 2024
Merged

feat: Deprecate transfer and asset modules #291

merged 18 commits into from
Aug 28, 2024

Commits on Aug 21, 2024

  1. feat: Ensuring equivalent implementation of transfer, asset and part …

    …of transaction modules
    
    * Collapsed the second object in algorand.send.type(params, *executeOptions*) to combine into params and make it easier to use
    * Added `algorand.client.getTestNetDispenserFromEnvironment`
    * Added `algorand.account.assetBulkOptIn`
    * Added `algorand.account.assetBulkOptOut`
    * Added `algorand.account.ensureFunded`
    * Added `algorand.account.ensureFundedFromEnvironment`
    * Added `algorand.account.ensureFundedFromTestNetDispenserApi`
    * Added `algorand.send/transaction.rekey`
    * Added `algorand.send/transaction.assetOptOut`
    robdmoore committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    db7750a View commit details
    Browse the repository at this point in the history
  2. feat: Deprecated asset and transfer modules

    Added:
    * `AssetManager` class and `algorand.asset.getById()`
    * `indexer` export off of `@algorandfoundation/algokit-utils` as the future home of all indexer methods
    
    Changed:
    * Order of `algorand.account.rekeyed()` parameters to be `rekeyed(sender, signer)` since it conceptually makes more sense (the sender is rekeyed so should come first)
    * All microAlgo return values from `algorand.account.getInformation()` now return an `AlgoAmount`, renamed `amount` to `balance` and `round` to `validAsAtRound` (which is now a `bigint` for broader consistency)
    * Return value of `algorand.send.assetCreate` now includes `{ assetId: bigint }`
    
    Deprecated:
    * `algokit.createAsset`
    * `algokit.assetOptIn`
    * `algokit.assetOptOut`
    * `algokit.assetBulkOptIn`
    * `algokit.assetBulkOptOut`
    * `algokit.ensureFunded`
    * `algokit.transferAsset`
    * `algokit.rekeyAccount`
    * `algokit.transferAlgos`
    robdmoore committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    4370e08 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    485c5e2 View commit details
    Browse the repository at this point in the history
  4. feat: Moved from rekey being a transaction type to being a method on …

    …`AccountManager`
    
    Added:
    * `algorand.account.rekeyAccount()`
    
    Removed:
    * `algorand.send.rekey()`
    robdmoore committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    e248c65 View commit details
    Browse the repository at this point in the history
  5. docs: Added up to date documentation for rekeyAccount, AlgorandClient…

    …, asset, dispenser client, indexer, testing, transfer
    robdmoore committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    3b9f9f7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    54b59fa View commit details
    Browse the repository at this point in the history
  7. fix: Pull request feedback

    Moved account.assetBulkOptIn -> asset.bulkOptIn
    Moved account.assetBulkOptOut -> asset.bulkOptOut
    Moved account.getAssetInformation -> asset.getAccountInformation
    Fixed other miscellaneous issues
    robdmoore committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    2dad415 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    acde1a2 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Configuration menu
    Copy the full SHA
    8b21fd7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    003934e View commit details
    Browse the repository at this point in the history
  3. Fixing broken test

    robdmoore committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    dfdd676 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    22d3817 View commit details
    Browse the repository at this point in the history
  5. fix: No longer require registration of a signer when building individ…

    …ual transactions
    
    refactor: Refactored AlgorandClient to have separate classes for `send` and `transaction`
    refactor: Refactored legacyTransactionBridge to not have a dependency of AlgorandClient
    robdmoore committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    a5b03dd View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c0313a0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f88b4c8 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. chore: PR review

    robdmoore committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    6ed993e View commit details
    Browse the repository at this point in the history
  2. fix: Switched to singular .algo and .microAlgo methods for `AlgoAmoun…

    …t`, retained existing methods to avoid breaking changes
    robdmoore committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    fed61c9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3c637f2 View commit details
    Browse the repository at this point in the history