Skip to content

Commit

Permalink
Merge branch 'release/v1.10.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
onetechnical committed Jun 23, 2021
2 parents ff9604c + 713e3df commit eb0c7a6
Show file tree
Hide file tree
Showing 31 changed files with 5,156 additions and 4,537 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ jobs:
- name: Prettier
script: prettier --check .
- stage: Testing
name: Node test
name: Compile test
script:
- npm run build
- npx tsc -p tests/compile
- name: Node test
- name: Chrome test
env: TEST_BROWSER=chrome
addons:
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# 1.10.0

## Added

- Support for dynamic opcode accounting, backward jumps, loops, callsub, retsub
- Ability to pool fees
- Ability to pay for extra pages

## Changed

- Add link to docs in readme
- Update examples on getting `suggestedParams`
- Grammatical fixes

## Fixed

- Fix asset creation transaction types that should be optional
- Remove synthetic default imports
- Use DryrunRequest instead of DryrunSource in constructor

# 1.9.1

## Changed
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
unit:
node_modules/.bin/cucumber-js --tags "@unit.offline or @unit.algod or @unit.indexer or @unit.rekey or @unit.tealsign or @unit.dryrun or @unit.applications or @unit.responses or @unit.transactions or @unit.responses.231" tests/cucumber/features --require-module ts-node/register --require tests/cucumber/steps/index.js
node_modules/.bin/cucumber-js --tags "@unit.offline or @unit.algod or @unit.indexer or @unit.rekey or @unit.tealsign or @unit.dryrun or @unit.applications or @unit.responses or @unit.transactions or @unit.responses.231 or @unit.feetest" tests/cucumber/features --require-module ts-node/register --require tests/cucumber/steps/index.js
integration:
node_modules/.bin/cucumber-js --tags "@algod or @assets or @auction or @kmd or @send or @template or @indexer or @rekey or @dryrun or @compile or @applications or @indexer.applications or @applications.verified or @indexer.231" tests/cucumber/features --require-module ts-node/register --require tests/cucumber/steps/index.js

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

[![Build Status](https://travis-ci.com/algorand/js-algorand-sdk.svg?branch=master)](https://travis-ci.com/algorand/js-algorand-sdk) [![npm version](https://badge.fury.io/js/algosdk.svg)](https://www.npmjs.com/package/algosdk)

AlgoSDK is the official JavaScript library for communicating with the Algorand network. It's designed for modern browsers and node.js.
AlgoSDK is the official JavaScript library for communicating with the Algorand network. It's designed for modern browsers and Node.js.

## Installation

### node.js
### [Node.js](https://nodejs.org/en/download/)

```
$ npm install algosdk
```

> This package provides TypeScript types, but you will need TypeScript version 4.2 or higher to use them properly.
> This package provides TypeScript types, but you will need [TypeScript](https://www.typescriptlang.org/) version 4.2 or higher to use them properly.
### Browser

Expand Down Expand Up @@ -44,7 +44,7 @@ const client = new algosdk.Algod(token, server, port);
## Documentation
For detailed information about the different API calls in `client`, visit https://developer.algorand.org
Documentation for this SDK is available here: https://algorand.github.io/js-algorand-sdk/. Additional resources are available on https://developer.algorand.org.
## Examples
Expand Down Expand Up @@ -76,15 +76,15 @@ The static website will be located in the `docs/` directory.
We have two test suites: mocha tests in this repo, and the Algorand SDK test suite from https://github.com/algorand/algorand-sdk-testing.
#### Node
#### Node.js
To run the mocha tests in Node, run:
To run the mocha tests in Node.js, run:
```bash
npm test
```
To run the SDK test suite in Node, run:
To run the SDK test suite in Node.js, run:
```bash
make docker-test
Expand Down Expand Up @@ -125,4 +125,4 @@ The linters and formatters listed above should run automatically on each commit
## License
js-algorand-sdk is licensed under a MIT license. See the [LICENSE](https://github.com/algorand/js-algorand-sdk/blob/master/LICENSE) file for details.
js-algorand-sdk is licensed under an MIT license. See the [LICENSE](https://github.com/algorand/js-algorand-sdk/blob/master/LICENSE) file for details.
2 changes: 2 additions & 0 deletions examples/asset_accept_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ async function main() {
const assetIndex = 1234; // identifying index of the asset

// set suggested parameters
// in most cases, we suggest fetching recommended transaction parameters
// using the `algosdk.Algodv2.getTransactionParams()` method
const suggestedParams = {
fee: feePerByte,
firstRound: firstValidRound,
Expand Down
2 changes: 2 additions & 0 deletions examples/asset_create_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ async function main() {
const defaultFrozen = false; // whether accounts should be frozen by default

// create suggested parameters
// in most cases, we suggest fetching recommended transaction parameters
// using the `algosdk.Algodv2.getTransactionParams()` method
const suggestedParams = {
flatFee: false,
fee: feePerByte,
Expand Down
2 changes: 2 additions & 0 deletions examples/asset_destroy_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ async function main() {
const assetIndex = 1234; // identifying index of the asset

// set suggested parameters
// in most cases, we suggest fetching recommended transaction parameters
// using the `algosdk.Algodv2.getTransactionParams()` method
const suggestedParams = {
fee: feePerByte,
firstRound: firstValidRound,
Expand Down
2 changes: 2 additions & 0 deletions examples/asset_freeze_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ async function main() {
const assetIndex = 1234; // identifying index of the asset

// set suggested parameters
// in most cases, we suggest fetching recommended transaction parameters
// using the `algosdk.Algodv2.getTransactionParams()` method
const suggestedParams = {
fee: feePerByte,
firstRound: firstValidRound,
Expand Down
2 changes: 2 additions & 0 deletions examples/asset_revoke_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ async function main() {
const assetIndex = 1234; // identifying index of the asset

// set suggested parameters
// in most cases, we suggest fetching recommended transaction parameters
// using the `algosdk.Algodv2.getTransactionParams()` method
const suggestedParams = {
fee: feePerByte,
firstRound: firstValidRound,
Expand Down
2 changes: 2 additions & 0 deletions examples/asset_send_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ async function main() {
const assetIndex = 1234; // identifying index of the asset

// set suggested parameters
// in most cases, we suggest fetching recommended transaction parameters
// using the `algosdk.Algodv2.getTransactionParams()` method
const suggestedParams = {
fee: feePerByte,
firstRound: firstValidRound,
Expand Down
2 changes: 2 additions & 0 deletions examples/asset_update_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ async function main() {
const assetIndex = 1234; // identifying index of the asset

// set suggested parameters
// in most cases, we suggest fetching recommended transaction parameters
// using the `algosdk.Algodv2.getTransactionParams()` method
const suggestedParams = {
fee: feePerByte,
firstRound: firstValidRound,
Expand Down
Loading

0 comments on commit eb0c7a6

Please sign in to comment.