Skip to content

Commit

Permalink
Merge develop into PR (#736)
Browse files Browse the repository at this point in the history
* ABI:  Refactor ABI encoding test to round-trip (#701)

* bump version and add to changelog

* update README.md for new version

* Packaging: Improve source map and browser usage for external bundlers (#707)

* bump version and add to changelog

* update README.md for new version

* v2: Make breaking changes from v1 to v2.0.0  (#717)

* bump version and add to changelog

* update README.md for new version

* remove enhancement section of recent changelog

* Enhancement: Add foreign array objects to ATC `addMethodCall` (#725)

* Add foreign array objects to ATC addmethodcall

* Copy array value so that inputs are not modified

Co-authored-by: Michael Diamant <[email protected]>
Co-authored-by: Lucky Baar <[email protected]>
Co-authored-by: Jason Paulos <[email protected]>
Co-authored-by: Jack Smith <[email protected]>
Co-authored-by: Barbara Poon <[email protected]>
  • Loading branch information
6 people authored Jan 18, 2023
1 parent c34d0e5 commit fc830dd
Show file tree
Hide file tree
Showing 53 changed files with 1,451 additions and 6,090 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ module.exports = {
],
ignorePatterns: [
'dist/',
'docs/',
'tests/cucumber/features/',
'tests/cucumber/build/',
'tests/cucumber/browser/build/',
'tests/browser/bundle.*',
],
};
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
# 2.0.0

## What's Changed

### Breaking changes

- Remove v1 algod API (`client.algod`) due to API end-of-life (2022-12-01). Instead, use v2 algod API (`client.v2.algod.algod`).
- Remove `cost` field in `DryrunTxnResult` in favor of 2 fields: `budget-added` and `budget-consumed`. `cost` can be derived by `budget-consumed - budget-added`.
- Remove logicsig templates (`logicTemplates`), `logic/langspec.json`, `logic.logic` depending on `langspec.json`.
- Regenerate algod models so every constructor requires an object to be passed in. Previously, only constructors with more than 4 argument specified this.
- Remove unused generated types: `CatchpointAbortResponse`, `CatchpointStartResponse`.
- Remove following methods in favor of the methods with `WithSuggestedParams` suffix:
- `makePaymentTxn`, `makeKeyRegistrationTxn`, `makeAssetCreateTxn`, `makeAssetConfigTxn`, `makeAssetDestroyTxn`, `makeAssetFreezeTxn`, `makeAssetTransferTxn`.
- Remove `makeLogicSig` in favor of either using `LogicSigAccount` (preferred) or directly invoking `LogicSig` constructor.
- Remove `EncodedMultisigBlob` in favor of `EncodedSignedTransaction.

**Full Changelog**: https://github.com/algorand/js-algorand-sdk/compare/v1.24.1...v2.0.0

# v1.24.1

## What's Changed

### Enhancements

- Packaging: Improve source map and browser usage for external bundlers by @jasonpaulos in https://github.com/algorand/js-algorand-sdk/pull/707

**Full Changelog**: https://github.com/algorand/js-algorand-sdk/compare/v1.24.0...v1.24.1

# v1.24.0

## What's Changed

### Bugfixes

- Bug-Fix: encode ABI string with non-ASCII characters by @ahangsu in https://github.com/algorand/js-algorand-sdk/pull/700

### Enhancements

- Tests: Migrate v1 algod dependencies to v2 in cucumber tests by @algochoi in https://github.com/algorand/js-algorand-sdk/pull/693
- REST API: Add KV counts to NodeStatusResponse by @michaeldiamant in https://github.com/algorand/js-algorand-sdk/pull/696
- Fix: createMultisigTransaction name in comments by @nullun in https://github.com/algorand/js-algorand-sdk/pull/694
- Enhancement: allowing zero-length static array by @ahangsu in https://github.com/algorand/js-algorand-sdk/pull/698
- ABI: Refactor ABI encoding test to round-trip by @michaeldiamant in https://github.com/algorand/js-algorand-sdk/pull/701

## New Contributors

- @nullun made their first contribution in https://github.com/algorand/js-algorand-sdk/pull/694

**Full Changelog**: https://github.com/algorand/js-algorand-sdk/compare/v1.23.2...v1.24.0

# v1.23.2

## What's Changed
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Include a minified browser bundle directly in your HTML like so:

```html
<script
src="https://unpkg.com/algosdk@v1.23.2/dist/browser/algosdk.min.js"
integrity="sha384-1gIB0FiLMNmJ7adAfBOdH20Mnw0DZarB9D3PTozUAhKn/uT9CpHdaSbBIpmZTgrU"
src="https://unpkg.com/algosdk@v2.0.0/dist/browser/algosdk.min.js"
integrity="sha384-NBHc5NXk7w78aVp9uPMo1JmBan6l4MHxzhiKXgYT8wtBoeIMHEuu5OECfGHYTLh7"
crossorigin="anonymous"
></script>
```
Expand All @@ -32,8 +32,8 @@ or

```html
<script
src="https://cdn.jsdelivr.net/npm/algosdk@v1.23.2/dist/browser/algosdk.min.js"
integrity="sha384-1gIB0FiLMNmJ7adAfBOdH20Mnw0DZarB9D3PTozUAhKn/uT9CpHdaSbBIpmZTgrU"
src="https://cdn.jsdelivr.net/npm/algosdk@v2.0.0/dist/browser/algosdk.min.js"
integrity="sha384-NBHc5NXk7w78aVp9uPMo1JmBan6l4MHxzhiKXgYT8wtBoeIMHEuu5OECfGHYTLh7"
crossorigin="anonymous"
></script>
```
Expand Down
2 changes: 1 addition & 1 deletion examples/app_transaction_examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// makeApplicationCreateTxnFromObject, makeApplicationOptInTxnFromObject, etc.
// counterparts in your code for readability.

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, SENDER, RECEIVER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_accept_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: accepting assets

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const account = algosdk.generateAccount();
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_create_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: creating an asset

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { SENDER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_destroy_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: destroying an asset

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const {
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_freeze_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: freezing or unfreezing an account

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const {
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_revoke_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: revoking assets

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const {
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_send_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: sending assets

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const {
Expand Down
2 changes: 1 addition & 1 deletion examples/asset_update_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: updating asset configuration

const algosdk = require('..');
const algosdk = require('../src');

async function main() {
const {
Expand Down
2 changes: 1 addition & 1 deletion examples/generate_sender_receiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* for some of the other examples.
*/

const algosdk = require('..');
const algosdk = require('../src');
const { fmt } = require('./utils');

// generate accounts
Expand Down
4 changes: 2 additions & 2 deletions examples/logic_sig_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: creating a LogicSig transaction signed by a program that never approves the transfer.

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, RECEIVER } = utils.retrieveBaseConfig();
Expand All @@ -24,7 +24,7 @@ async function main() {
);

// create a logic signature
const lsig = algosdk.makeLogicSig(programBytes);
const lsig = new algosdk.LogicSigAccount(programBytes);
const sender = lsig.address();

// retrieve a receiver
Expand Down
2 changes: 1 addition & 1 deletion examples/multisig_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: manipulating multisig transactions

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, SENDER, RECEIVER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/notefield_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* want in the "note" field.
*/

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, SENDER, RECEIVER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/rekey_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: rekeying

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, SENDER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/transaction_group_example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: working with transaction groups

const algosdk = require('..');
const algosdk = require('../src');
const utils = require('./utils');

const { ALGOD_INSTANCE, SENDER, RECEIVER } = utils.retrieveBaseConfig();
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript_example.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Example: with TypeScript

import algosdk from '../index';
import algosdk from '../src';
import utils from './utils';

const { SENDER, RECEIVER } = utils.retrieveBaseConfig();
Expand Down
4 changes: 0 additions & 4 deletions index.ts

This file was deleted.

Loading

0 comments on commit fc830dd

Please sign in to comment.