v1.2.0 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 withalgosigner
! - 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 toApp
. 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 useconvert.stringToBytes
- instead of stringToBytes, you can import a
- Types imports for
ExecParams
,TransactionTypes
,SignType
moved to new package@algo-builder/web
- Deprecate
@algo-builder/types-algosdk
and migrate toalgorand/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 triggerAlgoSigner
for signing a transaction.
Examples
- Permissioned Token Added
cease
function and a script to change permissions app_id.
Tutorials:
- We published a Securities and Permissioned Tokens solution (implemeted using
algob
): https://developer.algorand.org/solutions/securities-and-permissioned-tokens/. - Published fifth tutorial in the
@algo-builder
series, on how to usealgob console
to quickly and easily interact with ASA and smart contracts: https://developer.algorand.org/tutorials/algo-builder-tutorial-part-5-algob-console/.
Quality Assurance
- Added github workflows/examples.yaml to execute
/examples
on a private net, on pushing new commit todevelop
/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
directoryremove-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
: Installpostgresql
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 runsstart-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 theSign
type. - Removed
TxParams
type from runtime package(it is duplicated in runtime)
- Added missing