Skip to content

v1.2.0 Release

Compare
Choose a tag to compare
@robert-zaremba robert-zaremba released this 09 Aug 11:08
· 489 commits to master since this release

Highlights

  • New @algo-builder/web package which provides well known Algo Builder high level functionality to both webapp dapps and algo builder projects. It's compatible with algosigner!
  • Creating a TypeScript project using algob init --typescript.
  • A bit of TEALv4: Pooled transaction fees support in our runtime!
  • Added out of the box support for tealdbg check our debugging TEAL guide.
  • Improved multi signatures handling. You can use algob sign-multisig to create or append a new signature. See multisign guide for more details.
  • Added deployASADef function to deploy ASA without using /assets/asa.yaml.
  • Added yarn run test:watch command. NOTE: it will spawn multiple process in the same terminal session. So if you want to stop the all processes the best solution is to kill the terminal session.

API breaking

  • Renamed smart contract related functions by changing the SSC suffix to App. This will affect all code related to deployment or app calls:
    • OptInSSC -> OptInToASA
    • DeleteSSC -> DeleteApp
    • DeploySSC -> DeployApp
    • SSCDeploymentFlags -> AppDeploymentFlags
    • SSCOptionalFlags -> AppOptionalFlags
  • Import are changed to scoped imports
    • instead of stringToBytes, you can import a convert namespace (from @algo-builder/algob), and then use convert.stringToBytes
  • Types imports for ExecParams, TransactionTypes, SignType moved to new package @algo-builder/web
  • Deprecate @algo-builder/types-algosdk and migrate to algorand/js-sdk types. The JS SDK migrated to typescript so we don't need to support any more our SDK TypeScript type definitions.

Dapp templates and solutions

  • Added new template /shop to demonstrate a react component (payment widget) to make a purchase and trigger AlgoSigner for signing a transaction.

Examples

Tutorials:

Quality Assurance

  • Added github workflows/examples.yaml to execute /examples on a private net, on pushing new commit to develop/master branch OR creating a pull request that target these branches.

Infrastructure

  • Added new make commands:
    • setup-reach - sets up reach executable file in ~/.algorand-reach directory
    • remove-reach - halts any dockerized dev nets, kills & removes docker instances and containers, remove reach bash file from ~/.algorand-reach.
    • restart-private-net: restarts private-net.
    • indexer-docker-up, indexer-docker-down: Docker based setup for indexer. Runs in read-only mode, without connecting to local algod node.
    • make setup-postgresql: Install postgresql database on a local linux system and setup a new user & database.
    • make start-indexer: Add local indexer binary (downloaded in ~/.algorand-indexer-download) and start the indexer by connecting to database and local algod node.
    • make recreate-indexer: resets the indexer database and runs start-indexer.
    • make remove-indexer: Removes ~/.algorand-indexer-download directory from system.

Bug fixes

  • Fixed dependency issues while installing algob using yarn add @algo-builder/algob & npm install @algo-builder/algob.
  • web:
    • Added missing fromAccount? attribute to the Sign type.
    • Removed TxParams type from runtime package(it is duplicated in runtime)