From 460fb7df41b6c3b3685eb9022bd814723bf70292 Mon Sep 17 00:00:00 2001 From: Gregor Date: Tue, 11 Apr 2023 21:24:55 +0200 Subject: [PATCH 1/7] fetch the access permission --- src/lib/mina/account.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/mina/account.ts b/src/lib/mina/account.ts index be4211ab99..7eb5f9e303 100644 --- a/src/lib/mina/account.ts +++ b/src/lib/mina/account.ts @@ -74,6 +74,7 @@ const accountQuery = (publicKey: string, tokenId: string) => `{ } permissions { editState + access send receive setDelegate From 1c02bf2e58795bcc3d9ab32d5d528b27f6af94c7 Mon Sep 17 00:00:00 2001 From: Gregor Date: Tue, 11 Apr 2023 21:29:29 +0200 Subject: [PATCH 2/7] changelog --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 789105e230..2d4c00af08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased](https://github.com/o1-labs/snarkyjs/compare/1a984089...HEAD) -> No unreleased changes yet +### Fixed + +- Fix fetching the `access` permission on accounts https://github.com/o1-labs/snarkyjs/pull/851 ## [0.9.7](https://github.com/o1-labs/snarkyjs/compare/0b7a9ad...1a984089) From 40eb7d115cf72a12a04fdfd9f2556cac07563344 Mon Sep 17 00:00:00 2001 From: Gregor Date: Tue, 11 Apr 2023 21:31:08 +0200 Subject: [PATCH 3/7] improve fetch example --- src/examples/fetch.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/examples/fetch.ts b/src/examples/fetch.ts index 7f8bbb7f31..e359a73518 100644 --- a/src/examples/fetch.ts +++ b/src/examples/fetch.ts @@ -5,6 +5,7 @@ import { shutdown, fetchLastBlock, PublicKey, + Types, } from 'snarkyjs'; await isReady; @@ -16,7 +17,7 @@ let zkappAddress = PublicKey.fromBase58( let { account, error } = await fetchAccount({ publicKey: zkappAddress, }); -console.log('account', JSON.stringify(account, null, 2)); +console.log('account', Types.Account.toJSON(account!)); console.log('error', error); let block = await fetchLastBlock(); From b1eda1b7b1397f8901d4c3a7115e54fc711e3dd1 Mon Sep 17 00:00:00 2001 From: Gregor Date: Tue, 11 Apr 2023 21:35:00 +0200 Subject: [PATCH 4/7] 0.9.8 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ec1ec50f36..8b8e751972 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "snarkyjs", - "version": "0.9.7", + "version": "0.9.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "snarkyjs", - "version": "0.9.7", + "version": "0.9.8", "license": "Apache-2.0", "dependencies": { "blakejs": "1.2.1", diff --git a/package.json b/package.json index 72a5e19f42..443ab1e72b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "snarkyjs", "description": "JavaScript bindings for SnarkyJS", - "version": "0.9.7", + "version": "0.9.8", "license": "Apache-2.0", "type": "module", "main": "./dist/web/index.js", From 50fdd5cc5a42d01ef39d96f4cb42bd630ea9e111 Mon Sep 17 00:00:00 2001 From: Gregor Date: Tue, 11 Apr 2023 21:40:47 +0200 Subject: [PATCH 5/7] changelog --- CHANGELOG.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d4c00af08..6fb594bf81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,17 +15,22 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm _Security_ in case of vulnerabilities. --> -## [Unreleased](https://github.com/o1-labs/snarkyjs/compare/1a984089...HEAD) +## [Unreleased](https://github.com/o1-labs/snarkyjs/compare/97e393ed...HEAD) + +> No unreleased changes + +## [0.9.8](https://github.com/o1-labs/snarkyjs/compare/1a984089...97e393ed) ### Fixed - Fix fetching the `access` permission on accounts https://github.com/o1-labs/snarkyjs/pull/851 +- Fixes to `fetchActions` https://github.com/o1-labs/snarkyjs/pull/844 [@Comdex](https://github.com/Comdex) ## [0.9.7](https://github.com/o1-labs/snarkyjs/compare/0b7a9ad...1a984089) ### Added -- `smartContract.fetchActions()` and `Mina.fetchActions()`, asynchronous methods to fetch actions directly from an archive node https://github.com/o1-labs/snarkyjs/pull/843 @Comdex +- `smartContract.fetchActions()` and `Mina.fetchActions()`, asynchronous methods to fetch actions directly from an archive node https://github.com/o1-labs/snarkyjs/pull/843 [@Comdex](https://github.com/Comdex) ### Changed @@ -52,7 +57,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Added -- `zkProgram.analyzeMethods()` to obtain metadata about a ZkProgram's methods https://github.com/o1-labs/snarkyjs/pull/829 @maht0rz +- `zkProgram.analyzeMethods()` to obtain metadata about a ZkProgram's methods https://github.com/o1-labs/snarkyjs/pull/829 [@maht0rz](https://github.com/maht0rz) ### Fixed @@ -98,7 +103,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixed - Added the missing export of `Mina.TransactionId` https://github.com/o1-labs/snarkyjs/pull/785 -- Added an option to specify `tokenId` as `Field` in `fetchAccount()` https://github.com/o1-labs/snarkyjs/pull/787 +- Added an option to specify `tokenId` as `Field` in `fetchAccount()` https://github.com/o1-labs/snarkyjs/pull/787 [@rpanic](https://github.com/rpanic) ## [0.9.2](https://github.com/o1-labs/snarkyjs/compare/9c44b9c2...1abdfb70) @@ -320,7 +325,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixed -- Infinite loop when compiling in web version https://github.com/o1-labs/snarkyjs/issues/379, by @maht0rz +- Infinite loop when compiling in web version https://github.com/o1-labs/snarkyjs/issues/379, by [@maht0rz](https://github.com/maht0rz) ## [0.5.2](https://github.com/o1-labs/snarkyjs/compare/55c8ea0...4f0dd40) From b53088bda48e22c497d9f833f092e76edf0b06db Mon Sep 17 00:00:00 2001 From: Gregor Date: Wed, 12 Apr 2023 14:56:52 +0200 Subject: [PATCH 6/7] changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fb594bf81..3417692367 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixed - Fix fetching the `access` permission on accounts https://github.com/o1-labs/snarkyjs/pull/851 -- Fixes to `fetchActions` https://github.com/o1-labs/snarkyjs/pull/844 [@Comdex](https://github.com/Comdex) +- Fixes to `fetchActions` https://github.com/o1-labs/snarkyjs/pull/844 https://github.com/o1-labs/snarkyjs/pull/854 [@Comdex](https://github.com/Comdex) ## [0.9.7](https://github.com/o1-labs/snarkyjs/compare/0b7a9ad...1a984089) From 71ee6b3b48ddd26d05f0b6586bfb1195b139fc1f Mon Sep 17 00:00:00 2001 From: Gregor Date: Wed, 12 Apr 2023 15:28:25 +0200 Subject: [PATCH 7/7] changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3417692367..431ef076db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixed - Fix fetching the `access` permission on accounts https://github.com/o1-labs/snarkyjs/pull/851 -- Fixes to `fetchActions` https://github.com/o1-labs/snarkyjs/pull/844 https://github.com/o1-labs/snarkyjs/pull/854 [@Comdex](https://github.com/Comdex) +- Fix `fetchActions` https://github.com/o1-labs/snarkyjs/pull/844 https://github.com/o1-labs/snarkyjs/pull/854 [@Comdex](https://github.com/Comdex) ## [0.9.7](https://github.com/o1-labs/snarkyjs/compare/0b7a9ad...1a984089)