-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Deprecate transfer and asset modules (#291)
Breaking changes: * Renamed `AlgokitComposer` to `AlgoKitComposer` to match AlgoKit naming conventions * Collapsed the second object in algorand.send.type(params, *executeOptions*) to combine into params and make it easier to use based on devrel feedback * 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) * Renamed `algorand.account.getAssetInformation` to `algorand.asset.getAccountInformation` Added: * Return value of `algorand.send.assetCreate` now includes `{ assetId: bigint }` * Up to date documentation for rekeyAccount, AlgorandClient, asset, dispenser client, indexer, testing, transfer * Up to date documentation for how to refer to an Algo amount (Algo (not plural) in general and ALGO (not plural) when referring to a specific amount) * `AssetManager` class and `algorand.asset.getById()`, `algorand.asset.bulkOptIn`, and `algorand.asset.bulkOptOut` * `indexer` export off of `@algorandfoundation/algokit-utils` as the future home of all indexer methods * 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.account.rekeyAccount` * Added `algorand.send/transaction.assetOptOut` * Added `buildTransactions` method to `AlgoKitComposer` so you can build transactions without needing to register a signer * Added `.algo` and `.microAlgo` methods/properties in place of the plural version for `AlgoAmount` to reflect the current guidance on how to represent Algo amounts, kept previous versions of those methods for now to avoid the breaking change Deprecated the following in favour of AlgorandClient functionality: * `algokit.createAsset` * `algokit.assetOptIn` * `algokit.assetOptOut` * `algokit.assetBulkOptIn` * `algokit.assetBulkOptOut` * `algokit.ensureFunded` * `algokit.transferAsset` * `algokit.rekeyAccount` * `algokit.transferAlgos` --------- Co-authored-by: Neil Campbell <neil.campbell@makerx.com.au> BREAKING CHANGE: Numerous
- Loading branch information
Showing
109 changed files
with
7,119 additions
and
2,611 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.