From fca73d0f3c7cf969de4222a5f5349ee3f0cf361d Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Alapont Date: Wed, 11 Jan 2023 18:28:48 -0600 Subject: [PATCH 1/2] Update changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97a9814..9c76c17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 2.10.0 + +- Add `localnet` to `PythCluster` +- Add `Permission` to `AccountType` +- Fix error in idl and make it support `permissionsAccount` + ## 2.9.0 - Add Anchor client ## 2.8.0 From 8aa29a0e361bb94a4e9941d03a35b89fd2fa2543 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Alapont Date: Wed, 11 Jan 2023 18:29:53 -0600 Subject: [PATCH 2/2] 2.10.0 --- package-lock.json | 4 ++-- package.json | 2 +- src/__tests__/Anchor.test.ts | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 55a2d69..b3ec0fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@pythnetwork/client", - "version": "2.9.0", + "version": "2.10.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@pythnetwork/client", - "version": "2.9.0", + "version": "2.10.0", "license": "Apache-2.0", "dependencies": { "buffer": "^6.0.1" diff --git a/package.json b/package.json index 00523d0..29e6da4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/client", - "version": "2.9.0", + "version": "2.10.0", "description": "Client for consuming Pyth price data", "homepage": "https://pyth.network", "main": "lib/index.js", diff --git a/src/__tests__/Anchor.test.ts b/src/__tests__/Anchor.test.ts index 0717fff..29c2b57 100644 --- a/src/__tests__/Anchor.test.ts +++ b/src/__tests__/Anchor.test.ts @@ -44,7 +44,11 @@ test('Anchor', (done) => { pythOracle.methods .addPrice(1, 1) - .accounts({ fundingAccount: PublicKey.unique(), productAccount: PublicKey.unique(), priceAccount: PublicKey.unique() }) + .accounts({ + fundingAccount: PublicKey.unique(), + productAccount: PublicKey.unique(), + priceAccount: PublicKey.unique(), + }) .instruction() .then((instruction) => { expect(instruction.data).toStrictEqual(Buffer.from([2, 0, 0, 0, 4, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0]))