Skip to content

Commit

Permalink
Merge branch 'release/v1.16.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
algojack committed May 2, 2022
2 parents cf746ef + 848c899 commit 4d83ddb
Show file tree
Hide file tree
Showing 28 changed files with 1,974 additions and 169 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
command: |
export SUDO=sudo
$SUDO apt update
if [ "<< parameters.browser >>" == "chrome" ]; then $SUDO apt -y install google-chrome-stable; else echo "skipping chrome install" ; fi
$SUDO apt -y install ca-certificates curl gnupg lsb-release
$SUDO curl -fsSL https://download.docker.com/linux/ubuntu/gpg | $SUDO gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
$SUDO echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
Expand Down Expand Up @@ -123,7 +124,7 @@ commands:
- run:
name: Install Dependencies
command: |
<< parameters.sudo >> apt -y update && << parameters.sudo >> apt -y upgrade
<< parameters.sudo >> apt -y update
<< parameters.sudo >> apt -y install curl make git build-essential jq unzip
- node/install:
node-version: '12'
Expand All @@ -132,3 +133,4 @@ commands:
command: |
set -e
npm ci
npm install chromedriver@latest
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# v1.16.0

## Added

- Dryrun stack printer
- Document more Indexer methods

## Fixed

- Corrected type of KMD keys
- Include foreign app addr in dryrun requests

# v1.15.0

## Added
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
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.transactions.keyreg or @unit.transactions.payment or @unit.responses.231 or @unit.feetest or @unit.indexer.logs or @unit.abijson or @unit.atomic_transaction_composer or @unit.responses.unlimited_assets or @unit.indexer.ledger_refactoring or @unit.algod.ledger_refactoring" 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.transactions.keyreg or @unit.transactions.payment or @unit.responses.231 or @unit.feetest or @unit.indexer.logs or @unit.abijson or @unit.atomic_transaction_composer or @unit.responses.unlimited_assets or @unit.indexer.ledger_refactoring or @unit.algod.ledger_refactoring or @unit.dryrun.trace.application" 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 @indexer or @rekey or @send.keyregtxn or @dryrun or @compile or @applications or @indexer.applications or @applications.verified or @indexer.231 or @abi or @c2c" tests/cucumber/features --require-module ts-node/register --require tests/cucumber/steps/index.js

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.15.0/dist/browser/algosdk.min.js"
integrity="sha384-wURu1H0s7z6Nj/AiP4O+0EorWZNvjiXwex7pNwtJH77x60mNs0Wm2zR37iUtHMwH"
src="https://unpkg.com/algosdk@v1.16.0/dist/browser/algosdk.min.js"
integrity="sha384-0BSEzBpLxqFWYBI+sOGhv3W91/wPf+jFwCiuXNrC52XZav2qb3Rz+pfq3AFI0CrL"
crossorigin="anonymous"
></script>
```
Expand All @@ -32,8 +32,8 @@ or

```html
<script
src="https://cdn.jsdelivr.net/npm/algosdk@v1.15.0/dist/browser/algosdk.min.js"
integrity="sha384-wURu1H0s7z6Nj/AiP4O+0EorWZNvjiXwex7pNwtJH77x60mNs0Wm2zR37iUtHMwH"
src="https://cdn.jsdelivr.net/npm/algosdk@v1.16.0/dist/browser/algosdk.min.js"
integrity="sha384-0BSEzBpLxqFWYBI+sOGhv3W91/wPf+jFwCiuXNrC52XZav2qb3Rz+pfq3AFI0CrL"
crossorigin="anonymous"
></script>
```
Expand Down
134 changes: 99 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "algosdk",
"version": "1.15.0",
"version": "1.16.0",
"description": "The official JavaScript SDK for Algorand",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -36,7 +36,7 @@
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"assert": "^2.0.0",
"chromedriver": "^99.0.0",
"chromedriver": "^101.0.0",
"concurrently": "^6.2.0",
"coveralls": "^3.1.0",
"cucumber": "^5.1.0",
Expand All @@ -59,7 +59,7 @@
"source-map-loader": "^2.0.2",
"ts-loader": "^8.3.0",
"ts-node": "^10.0.0",
"typedoc": "^0.22.11",
"typedoc": "^0.22.13",
"typedoc-plugin-missing-exports": "^0.22.6",
"typedoc-plugin-rename-defaults": "^0.4.0",
"typescript": "^4.2.3",
Expand All @@ -72,6 +72,7 @@
"prepare-browser-tests": "npm run build && mkdir -p tests/cucumber/browser/build && cp dist/browser/algosdk.min.* tests/cucumber/browser/build/ && webpack --config tests/cucumber/browser/webpack.config.js",
"build": "concurrently \"webpack --config webpack.config.js\" \"tsc -p tsconfig-esm.json\" \"tsc -p tsconfig-cjs.json\"",
"docs": "typedoc src/main.ts --options typedoc.config.json",
"docs:dev": "typedoc src/main.ts --options typedoc.config.json --watch --preserveWatchOutput",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"format": "prettier --write .",
Expand Down
4 changes: 2 additions & 2 deletions src/client/kmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default class Kmd extends ServiceClient {
async createWallet(
walletName: string,
walletPassword: string,
walletMDK = '',
walletMDK: Uint8Array = new Uint8Array(),
walletDriverName = 'sqlite'
) {
const req = {
Expand Down Expand Up @@ -170,7 +170,7 @@ export default class Kmd extends ServiceClient {
* @param walletHandle
* @param secretKey
*/
async importKey(walletHandle: string, secretKey: string) {
async importKey(walletHandle: string, secretKey: Uint8Array) {
const req = {
wallet_handle_token: walletHandle,
private_key: Buffer.from(secretKey).toString('base64'),
Expand Down
Loading

0 comments on commit 4d83ddb

Please sign in to comment.