From a3d364e0773fa2c9e059f7d3ba3ca642a465b51f Mon Sep 17 00:00:00 2001 From: phchan9 Date: Tue, 20 Sep 2022 21:11:19 -0700 Subject: [PATCH 1/5] perf: remove unused artifacts when generate-type (#90) * perf: remove unused artifacts when generate-type * chore(release): 1.13.0-dev1.0 --- CHANGELOG.md | 39 +++++++++++++++++++++++++++++++++++++++ package.json | 2 +- script/generate-type.ts | 9 ++++++++- 3 files changed, 48 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 233ff2e..22f3333 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,45 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.13.0-dev1.0](https://github.com/perpetual-protocol/sdk-curie/compare/v1.9.2-canary.13...v1.13.0-dev1.0) (2022-09-19) + + +### Features + +* **Vault:** support withdraw all feature ([061ca0d](https://github.com/perpetual-protocol/sdk-curie/commit/061ca0d24a27a4372d3720bc6a64ae07f9dd7225)) + + +### Performance Improvements + +* remove unused artifacts when generate-type ([539439d](https://github.com/perpetual-protocol/sdk-curie/commit/539439d3836f3b0e58a7f792c0b1cdc160b604ba)) + + +### Build System + +* fix @perp/curie-deployments version ([68f9bef](https://github.com/perpetual-protocol/sdk-curie/commit/68f9beff85b0c7cf508d53c5a37c6d5731b039b1)) +* fix yarn lock ([b6153c1](https://github.com/perpetual-protocol/sdk-curie/commit/b6153c1164086e04c70a0b55495b1a281b888880)) +* **yarn.lock:** fix dependency lock ([6d8e249](https://github.com/perpetual-protocol/sdk-curie/commit/6d8e249b449f76190945a031cea884dc3dd511d0)) + + +### Others + +* **release:** 1.10.0 ([5226185](https://github.com/perpetual-protocol/sdk-curie/commit/5226185db31f95078493b1dac031def4e605ceb0)) +* **release:** 1.11.0 ([86749c0](https://github.com/perpetual-protocol/sdk-curie/commit/86749c050daf48984f45b82cbc17e81f39de67c0)) +* **release:** 1.12.0 ([a63f7da](https://github.com/perpetual-protocol/sdk-curie/commit/a63f7daa0d2b4096f2f2629c8814056a52904b66)) +* **release:** 1.12.1 ([7573827](https://github.com/perpetual-protocol/sdk-curie/commit/7573827e188fa430a132d6c806dd92fa61dfc776)) +* **release:** 1.12.1-canary.0 ([bd47a25](https://github.com/perpetual-protocol/sdk-curie/commit/bd47a256009c9bb9bc8dbbd77f7152e2525f5ea3)) +* **release:** 1.12.2 ([9a21ac2](https://github.com/perpetual-protocol/sdk-curie/commit/9a21ac2af0538ff067bdf0dc8c183176bae39b41)) +* **release:** 1.12.2-canary.0 ([817b9e8](https://github.com/perpetual-protocol/sdk-curie/commit/817b9e8554b248510712089f3a30bfc2c79a708d)) +* **release:** 1.12.3 ([9d0aa0e](https://github.com/perpetual-protocol/sdk-curie/commit/9d0aa0e5e667cf89e343eb75b4c9f682d16f11c6)) +* **release:** 1.12.3-canary.0 ([97b6609](https://github.com/perpetual-protocol/sdk-curie/commit/97b66096013a945270133336a4a736d8b00cfb0a)) + + +### CI + +* **publish canary:** make canary publish manually ([5955649](https://github.com/perpetual-protocol/sdk-curie/commit/5955649fbda1dc237d0888156d86e260749b7617)) +* update workflow for canary ([7a128e8](https://github.com/perpetual-protocol/sdk-curie/commit/7a128e8296940edb907507b26cff4ead6aec895e)) +* **workflow:** make version bump manually ([7f9cb4f](https://github.com/perpetual-protocol/sdk-curie/commit/7f9cb4f1846da657d9b7e26062b36c4f0a29d206)) + ### [1.12.3](https://github.com/perpetual-protocol/sdk-curie/compare/v1.12.2...v1.12.3) (2022-09-02) diff --git a/package.json b/package.json index 8c75570..5185c2d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@perp/sdk-curie", - "version": "1.12.3", + "version": "1.13.0-dev1.0", "license": "BSD-3-Clause", "main": "dist/lib/index.js", "module": "dist/es/index.js", diff --git a/script/generate-type.ts b/script/generate-type.ts index 81e2e9e..6432bc3 100644 --- a/script/generate-type.ts +++ b/script/generate-type.ts @@ -1,4 +1,5 @@ import fs from "fs" +import { basename } from "path" import { glob, runTypeChain } from "typechain" @@ -27,7 +28,7 @@ async function main() { const abiRef = getABIRefByTrack(process.env.TRACK) // find all files matching the glob - const allFiles = glob(cwd, [ + let allFiles = glob(cwd, [ `${__dirname}/../node_modules/@perp/curie-deployments/${abiRef}/core/artifacts/contracts/**/+([a-zA-Z0-9_]).json`, `${__dirname}/../node_modules/@perp/curie-deployments/${abiRef}/core/artifacts/oracle-contracts/**/+([a-zA-Z0-9_]).json`, `${__dirname}/../node_modules/@perp/curie-deployments/${abiRef}/periphery/artifacts/contracts/**/+([a-zA-Z0-9_]).json`, @@ -35,6 +36,12 @@ async function main() { `${__dirname}/../node_modules/@chainlink/contracts/abi/v0.7/**/+([a-zA-Z0-9_]).json`, ]) + allFiles = allFiles.filter(file => { + const fileName = basename(file) + // eliminate unused artifacts like TestClearingHouse.json .... + return !fileName.match(/Test.*\.json/) + }) + const outDir = "src/contracts/type" const result = await runTypeChain({ From e5a8968ffe19e476438db9514258052b48d7f202 Mon Sep 17 00:00:00 2001 From: phchan9 Date: Wed, 21 Sep 2022 12:14:56 +0800 Subject: [PATCH 2/5] chore(release): 1.13.0-canary.0 --- CHANGELOG.md | 39 +++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22f3333..c3aeb77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,45 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.13.0-canary.0](https://github.com/perpetual-protocol/sdk-curie/compare/v1.9.2-canary.13...v1.13.0-canary.0) (2022-09-21) + + +### Features + +* **Vault:** support withdraw all feature ([061ca0d](https://github.com/perpetual-protocol/sdk-curie/commit/061ca0d24a27a4372d3720bc6a64ae07f9dd7225)) + + +### Performance Improvements + +* remove unused artifacts when generate-type ([#90](https://github.com/perpetual-protocol/sdk-curie/issues/90)) ([a3d364e](https://github.com/perpetual-protocol/sdk-curie/commit/a3d364e0773fa2c9e059f7d3ba3ca642a465b51f)) + + +### Build System + +* fix @perp/curie-deployments version ([68f9bef](https://github.com/perpetual-protocol/sdk-curie/commit/68f9beff85b0c7cf508d53c5a37c6d5731b039b1)) +* fix yarn lock ([b6153c1](https://github.com/perpetual-protocol/sdk-curie/commit/b6153c1164086e04c70a0b55495b1a281b888880)) +* **yarn.lock:** fix dependency lock ([6d8e249](https://github.com/perpetual-protocol/sdk-curie/commit/6d8e249b449f76190945a031cea884dc3dd511d0)) + + +### Others + +* **release:** 1.10.0 ([5226185](https://github.com/perpetual-protocol/sdk-curie/commit/5226185db31f95078493b1dac031def4e605ceb0)) +* **release:** 1.11.0 ([86749c0](https://github.com/perpetual-protocol/sdk-curie/commit/86749c050daf48984f45b82cbc17e81f39de67c0)) +* **release:** 1.12.0 ([a63f7da](https://github.com/perpetual-protocol/sdk-curie/commit/a63f7daa0d2b4096f2f2629c8814056a52904b66)) +* **release:** 1.12.1 ([7573827](https://github.com/perpetual-protocol/sdk-curie/commit/7573827e188fa430a132d6c806dd92fa61dfc776)) +* **release:** 1.12.1-canary.0 ([bd47a25](https://github.com/perpetual-protocol/sdk-curie/commit/bd47a256009c9bb9bc8dbbd77f7152e2525f5ea3)) +* **release:** 1.12.2 ([9a21ac2](https://github.com/perpetual-protocol/sdk-curie/commit/9a21ac2af0538ff067bdf0dc8c183176bae39b41)) +* **release:** 1.12.2-canary.0 ([817b9e8](https://github.com/perpetual-protocol/sdk-curie/commit/817b9e8554b248510712089f3a30bfc2c79a708d)) +* **release:** 1.12.3 ([9d0aa0e](https://github.com/perpetual-protocol/sdk-curie/commit/9d0aa0e5e667cf89e343eb75b4c9f682d16f11c6)) +* **release:** 1.12.3-canary.0 ([97b6609](https://github.com/perpetual-protocol/sdk-curie/commit/97b66096013a945270133336a4a736d8b00cfb0a)) + + +### CI + +* **publish canary:** make canary publish manually ([5955649](https://github.com/perpetual-protocol/sdk-curie/commit/5955649fbda1dc237d0888156d86e260749b7617)) +* update workflow for canary ([7a128e8](https://github.com/perpetual-protocol/sdk-curie/commit/7a128e8296940edb907507b26cff4ead6aec895e)) +* **workflow:** make version bump manually ([7f9cb4f](https://github.com/perpetual-protocol/sdk-curie/commit/7f9cb4f1846da657d9b7e26062b36c4f0a29d206)) + ## [1.13.0-dev1.0](https://github.com/perpetual-protocol/sdk-curie/compare/v1.9.2-canary.13...v1.13.0-dev1.0) (2022-09-19) diff --git a/package.json b/package.json index 5185c2d..3210886 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@perp/sdk-curie", - "version": "1.13.0-dev1.0", + "version": "1.13.0-canary.0", "license": "BSD-3-Clause", "main": "dist/lib/index.js", "module": "dist/es/index.js", From c73a0385da21e4fefc4d10b1306406e87c585bd0 Mon Sep 17 00:00:00 2001 From: phchan9 Date: Wed, 21 Sep 2022 18:16:54 +0800 Subject: [PATCH 3/5] chore(release): 1.13.0 --- CHANGELOG.md | 40 ++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3aeb77..117e838 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,46 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.13.0](https://github.com/perpetual-protocol/sdk-curie/compare/v1.9.2-canary.13...v1.13.0) (2022-09-21) + + +### Features + +* **Vault:** support withdraw all feature ([061ca0d](https://github.com/perpetual-protocol/sdk-curie/commit/061ca0d24a27a4372d3720bc6a64ae07f9dd7225)) + + +### Performance Improvements + +* remove unused artifacts when generate-type ([#90](https://github.com/perpetual-protocol/sdk-curie/issues/90)) ([a3d364e](https://github.com/perpetual-protocol/sdk-curie/commit/a3d364e0773fa2c9e059f7d3ba3ca642a465b51f)) + + +### Build System + +* fix @perp/curie-deployments version ([68f9bef](https://github.com/perpetual-protocol/sdk-curie/commit/68f9beff85b0c7cf508d53c5a37c6d5731b039b1)) +* fix yarn lock ([b6153c1](https://github.com/perpetual-protocol/sdk-curie/commit/b6153c1164086e04c70a0b55495b1a281b888880)) +* **yarn.lock:** fix dependency lock ([6d8e249](https://github.com/perpetual-protocol/sdk-curie/commit/6d8e249b449f76190945a031cea884dc3dd511d0)) + + +### CI + +* **publish canary:** make canary publish manually ([5955649](https://github.com/perpetual-protocol/sdk-curie/commit/5955649fbda1dc237d0888156d86e260749b7617)) +* update workflow for canary ([7a128e8](https://github.com/perpetual-protocol/sdk-curie/commit/7a128e8296940edb907507b26cff4ead6aec895e)) +* **workflow:** make version bump manually ([7f9cb4f](https://github.com/perpetual-protocol/sdk-curie/commit/7f9cb4f1846da657d9b7e26062b36c4f0a29d206)) + + +### Others + +* **release:** 1.10.0 ([5226185](https://github.com/perpetual-protocol/sdk-curie/commit/5226185db31f95078493b1dac031def4e605ceb0)) +* **release:** 1.11.0 ([86749c0](https://github.com/perpetual-protocol/sdk-curie/commit/86749c050daf48984f45b82cbc17e81f39de67c0)) +* **release:** 1.12.0 ([a63f7da](https://github.com/perpetual-protocol/sdk-curie/commit/a63f7daa0d2b4096f2f2629c8814056a52904b66)) +* **release:** 1.12.1 ([7573827](https://github.com/perpetual-protocol/sdk-curie/commit/7573827e188fa430a132d6c806dd92fa61dfc776)) +* **release:** 1.12.1-canary.0 ([bd47a25](https://github.com/perpetual-protocol/sdk-curie/commit/bd47a256009c9bb9bc8dbbd77f7152e2525f5ea3)) +* **release:** 1.12.2 ([9a21ac2](https://github.com/perpetual-protocol/sdk-curie/commit/9a21ac2af0538ff067bdf0dc8c183176bae39b41)) +* **release:** 1.12.2-canary.0 ([817b9e8](https://github.com/perpetual-protocol/sdk-curie/commit/817b9e8554b248510712089f3a30bfc2c79a708d)) +* **release:** 1.12.3 ([9d0aa0e](https://github.com/perpetual-protocol/sdk-curie/commit/9d0aa0e5e667cf89e343eb75b4c9f682d16f11c6)) +* **release:** 1.12.3-canary.0 ([97b6609](https://github.com/perpetual-protocol/sdk-curie/commit/97b66096013a945270133336a4a736d8b00cfb0a)) +* **release:** 1.13.0-canary.0 ([e5a8968](https://github.com/perpetual-protocol/sdk-curie/commit/e5a8968ffe19e476438db9514258052b48d7f202)) + ## [1.13.0-canary.0](https://github.com/perpetual-protocol/sdk-curie/compare/v1.9.2-canary.13...v1.13.0-canary.0) (2022-09-21) diff --git a/package.json b/package.json index 3210886..668e7d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@perp/sdk-curie", - "version": "1.13.0-canary.0", + "version": "1.13.0", "license": "BSD-3-Clause", "main": "dist/lib/index.js", "module": "dist/es/index.js", From ffad19bb12b8da103d61556faa9190fb9fc5e4f0 Mon Sep 17 00:00:00 2001 From: Dylan Yang Date: Tue, 11 Oct 2022 18:10:05 +0800 Subject: [PATCH 4/5] feature: goerli chain (#97) * chore: upgrade @perp/curie-deployments to 2022.10.4-1664877139477 * chore: remove esbuild and rollup-plugin-esbuild * chore: ugprade @perp/curie-deployments to 2022.10.5-1664940982527 * feat: support goerli chain * chore(release): 1.14.0-canary.0 * chore: update typing * fix: failed test cases * chore(release): 1.14.0-canary.1 Co-authored-by: phchan9 --- .github/workflows/publish-dev1.yml | 14 +- .github/workflows/publish-dev2.yml | 14 +- .github/workflows/test.yml | 2 - CHANGELOG.md | 135 ++++++++++++++ README.md | 8 +- package.json | 14 +- rollup.config.js | 12 +- script/generate-type.ts | 12 +- src/constants/envVariables.ts | 10 +- src/metadata/Metadata.ts | 2 +- src/network/constants.ts | 34 ++-- test/core/PerpetualProtocol.test.ts | 4 +- test/core/clearingHouse/ClearingHouse.test.ts | 6 +- test/core/position/PositionDraft.test.ts | 4 +- yarn.lock | 170 +----------------- 15 files changed, 204 insertions(+), 237 deletions(-) diff --git a/.github/workflows/publish-dev1.yml b/.github/workflows/publish-dev1.yml index 48b04a2..9f6c9e7 100644 --- a/.github/workflows/publish-dev1.yml +++ b/.github/workflows/publish-dev1.yml @@ -2,7 +2,7 @@ name: Publish NPM (Dev1) on: workflow_dispatch: branches: - - '*' + - "*" jobs: publish-npm-package: runs-on: ubuntu-latest @@ -46,9 +46,9 @@ jobs: - name: Build package run: yarn build env: - TRACK: ${{ steps.set-variables.outputs.release_track }} - METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN: ${{ secrets.METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN_DEV1 }} - METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN: ${{ secrets.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN_DEV1 }} + TRACK: ${{ steps.set-variables.outputs.release_track }} + METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI: ${{ secrets.METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI_DEV1 }} + METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI: ${{ secrets.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI_DEV1 }} - name: Publish package id: publish-package @@ -61,9 +61,9 @@ jobs: - name: Git push version tag run: | - PKG_VERSION=${{ steps.set-variables.outputs.pkg_version }} - git tag $PKG_VERSION - git push origin $PKG_VERSION + PKG_VERSION=${{ steps.set-variables.outputs.pkg_version }} + git tag $PKG_VERSION + git push origin $PKG_VERSION discord-notification-npm-package: name: Discord Notification for publishing npm package diff --git a/.github/workflows/publish-dev2.yml b/.github/workflows/publish-dev2.yml index 3fb05ff..9d22ba1 100644 --- a/.github/workflows/publish-dev2.yml +++ b/.github/workflows/publish-dev2.yml @@ -2,7 +2,7 @@ name: Publish NPM (Dev2) on: workflow_dispatch: branches: - - '*' + - "*" jobs: publish-npm-package: runs-on: ubuntu-latest @@ -46,9 +46,9 @@ jobs: - name: Build package run: yarn build env: - TRACK: ${{ steps.set-variables.outputs.release_track }} - METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN: ${{ secrets.METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN_DEV1 }} - METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN: ${{ secrets.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN_DEV1 }} + TRACK: ${{ steps.set-variables.outputs.release_track }} + METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI: ${{ secrets.METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI_DEV1 }} + METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI: ${{ secrets.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI_DEV1 }} - name: Publish package id: publish-package @@ -61,9 +61,9 @@ jobs: - name: Git push version tag run: | - PKG_VERSION=${{ steps.set-variables.outputs.pkg_version }} - git tag $PKG_VERSION - git push origin $PKG_VERSION + PKG_VERSION=${{ steps.set-variables.outputs.pkg_version }} + git tag $PKG_VERSION + git push origin $PKG_VERSION discord-notification-npm-package: name: Discord Notification for publishing npm package diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1ac2e2..4eeacc5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,8 +4,6 @@ on: branches: - main - release/* - - op-kovan-dev1 - - op-kovan-dev2 jobs: test: runs-on: ubuntu-latest diff --git a/CHANGELOG.md b/CHANGELOG.md index 117e838..439f5bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,141 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.14.0-canary.1](https://github.com/perpetual-protocol/sdk-curie/compare/v1.13.0...v1.14.0-canary.1) (2022-10-11) + + +### Features + +* support goerli chain ([4d24195](https://github.com/perpetual-protocol/sdk-curie/commit/4d2419537aff76c78f7146f668d62e9fd57853ef)) + + +### Bug Fixes + +* failed test cases ([15ce7ce](https://github.com/perpetual-protocol/sdk-curie/commit/15ce7ce8f2d2058e1ef3e6c4f3ab250e25ddecaf)) + + +### Others + +* **release:** 1.14.0-canary.0 ([51a5973](https://github.com/perpetual-protocol/sdk-curie/commit/51a59737f449a1e88ace39ddbff8b4a13610f09d)) +* remove esbuild and rollup-plugin-esbuild ([f3babc1](https://github.com/perpetual-protocol/sdk-curie/commit/f3babc18ce9df6e0e64b99f23b387d3c0ed5172c)) +* ugprade @perp/curie-deployments to 2022.10.5-1664940982527 ([ce4f637](https://github.com/perpetual-protocol/sdk-curie/commit/ce4f63714ea3ceb2cc640534703bf4da3833e7a9)) +* update typing ([6916c4c](https://github.com/perpetual-protocol/sdk-curie/commit/6916c4c97509fe25b213b043f0077ee3f61699e3)) +* upgrade @perp/curie-deployments to 2022.10.4-1664877139477 ([c837d19](https://github.com/perpetual-protocol/sdk-curie/commit/c837d19d8baaaa83212b9c5a46bd982ed21f29d9)) + +## [1.14.0-canary.0](https://github.com/perpetual-protocol/sdk-curie/compare/v1.11.0...v1.14.0-canary.0) (2022-10-05) + + +### Features + +* support goerli chain ([4d24195](https://github.com/perpetual-protocol/sdk-curie/commit/4d2419537aff76c78f7146f668d62e9fd57853ef)) + + +### Performance Improvements + +* remove unused artifacts when generate-type ([#90](https://github.com/perpetual-protocol/sdk-curie/issues/90)) ([a3d364e](https://github.com/perpetual-protocol/sdk-curie/commit/a3d364e0773fa2c9e059f7d3ba3ca642a465b51f)) + + +### Build System + +* fix @perp/curie-deployments version ([68f9bef](https://github.com/perpetual-protocol/sdk-curie/commit/68f9beff85b0c7cf508d53c5a37c6d5731b039b1)) +* fix yarn lock ([b6153c1](https://github.com/perpetual-protocol/sdk-curie/commit/b6153c1164086e04c70a0b55495b1a281b888880)) +* **yarn.lock:** fix dependency lock ([6d8e249](https://github.com/perpetual-protocol/sdk-curie/commit/6d8e249b449f76190945a031cea884dc3dd511d0)) + + +### CI + +* **publish canary:** make canary publish manually ([5955649](https://github.com/perpetual-protocol/sdk-curie/commit/5955649fbda1dc237d0888156d86e260749b7617)) +* update workflow for canary ([7a128e8](https://github.com/perpetual-protocol/sdk-curie/commit/7a128e8296940edb907507b26cff4ead6aec895e)) +* **workflow:** make version bump manually ([7f9cb4f](https://github.com/perpetual-protocol/sdk-curie/commit/7f9cb4f1846da657d9b7e26062b36c4f0a29d206)) + + +### Others + +* **release:** 1.12.0 ([a63f7da](https://github.com/perpetual-protocol/sdk-curie/commit/a63f7daa0d2b4096f2f2629c8814056a52904b66)) +* **release:** 1.12.1 ([7573827](https://github.com/perpetual-protocol/sdk-curie/commit/7573827e188fa430a132d6c806dd92fa61dfc776)) +* **release:** 1.12.1-canary.0 ([bd47a25](https://github.com/perpetual-protocol/sdk-curie/commit/bd47a256009c9bb9bc8dbbd77f7152e2525f5ea3)) +* **release:** 1.12.2 ([9a21ac2](https://github.com/perpetual-protocol/sdk-curie/commit/9a21ac2af0538ff067bdf0dc8c183176bae39b41)) +* **release:** 1.12.2-canary.0 ([817b9e8](https://github.com/perpetual-protocol/sdk-curie/commit/817b9e8554b248510712089f3a30bfc2c79a708d)) +* **release:** 1.12.3 ([9d0aa0e](https://github.com/perpetual-protocol/sdk-curie/commit/9d0aa0e5e667cf89e343eb75b4c9f682d16f11c6)) +* **release:** 1.12.3-canary.0 ([97b6609](https://github.com/perpetual-protocol/sdk-curie/commit/97b66096013a945270133336a4a736d8b00cfb0a)) +* **release:** 1.13.0 ([c73a038](https://github.com/perpetual-protocol/sdk-curie/commit/c73a0385da21e4fefc4d10b1306406e87c585bd0)) +* **release:** 1.13.0-canary.0 ([e5a8968](https://github.com/perpetual-protocol/sdk-curie/commit/e5a8968ffe19e476438db9514258052b48d7f202)) +* remove esbuild and rollup-plugin-esbuild ([f3babc1](https://github.com/perpetual-protocol/sdk-curie/commit/f3babc18ce9df6e0e64b99f23b387d3c0ed5172c)) +* ugprade @perp/curie-deployments to 2022.10.5-1664940982527 ([ce4f637](https://github.com/perpetual-protocol/sdk-curie/commit/ce4f63714ea3ceb2cc640534703bf4da3833e7a9)) +* upgrade @perp/curie-deployments to 2022.10.4-1664877139477 ([c837d19](https://github.com/perpetual-protocol/sdk-curie/commit/c837d19d8baaaa83212b9c5a46bd982ed21f29d9)) + +### [1.9.2-canary.13](https://github.com/perpetual-protocol/sdk-curie/compare/v1.9.2-canary.12...v1.9.2-canary.13) (2022-08-10) + + +### Others + +* **release:** 1.9.2-canary.13 ([2db8bc4](https://github.com/perpetual-protocol/sdk-curie/commit/2db8bc4647f8709da9942597191e902a3a82b948)) +* update code and remove unused code ([d1de8a7](https://github.com/perpetual-protocol/sdk-curie/commit/d1de8a7c8c0237abe081afdea2b1e3239a3dec88)) + +### [1.9.2-canary.12](https://github.com/perpetual-protocol/sdk-curie/compare/v1.9.2-canary.11...v1.9.2-canary.12) (2022-08-10) + + +### CI + +* clean up workflow ([7f162e7](https://github.com/perpetual-protocol/sdk-curie/commit/7f162e75860de4bc4c5f154f31756c7133b8b5f9)) + + +### Others + +* **release:** 1.9.2-canary.12 ([702d169](https://github.com/perpetual-protocol/sdk-curie/commit/702d16993cc97eb058db2335bcc947b3f22fa79b)) + +### [1.9.2-canary.11](https://github.com/perpetual-protocol/sdk-curie/compare/v1.9.2-canary.9...v1.9.2-canary.11) (2022-08-10) + + +### CI + +* refactor workflow and add npm script for bump canary ([0ca853b](https://github.com/perpetual-protocol/sdk-curie/commit/0ca853b02c657a2ccd52ed5c6d20502a1114d254)) + + +### Others + +* **release:** 1.9.2-canary.10 ([a971d35](https://github.com/perpetual-protocol/sdk-curie/commit/a971d35f8b9a8ef64a8249d788d240634cfbd59e)) +* **release:** 1.9.2-canary.11 ([45152b9](https://github.com/perpetual-protocol/sdk-curie/commit/45152b9308b45c5043ee7d25e5f5f0ed4f8c37a5)) + +### [1.9.2-canary.9](https://github.com/perpetual-protocol/sdk-curie/compare/v1.9.2-canary.7...v1.9.2-canary.9) (2022-08-10) + + +### Build System + +* **canary:** bump version and test workflow ([612ba71](https://github.com/perpetual-protocol/sdk-curie/commit/612ba71ea7d8e49f7549687b548b2baf2356a059)) + + +### CI + +* update workflow ([89a1bac](https://github.com/perpetual-protocol/sdk-curie/commit/89a1bacd1b38ab10320727ac031ad8569138f36f)) + + +### Others + +* **release:** 1.9.2-canary.8 ([63aacfe](https://github.com/perpetual-protocol/sdk-curie/commit/63aacfeed8d18f060ab39beed2160cacc8262bf3)) +* **release:** 1.9.2-canary.9 ([95cc43d](https://github.com/perpetual-protocol/sdk-curie/commit/95cc43d9bd54b2a80c62752a7669b3610cdef140)) + +### [1.9.2-canary.7](https://github.com/perpetual-protocol/sdk-curie/compare/v1.9.0...v1.9.2-canary.7) (2022-08-10) + + +### Build System + +* bump version ([273cb9f](https://github.com/perpetual-protocol/sdk-curie/commit/273cb9fb355a417866582cc1041bb766f0a9a050)) +* **canary:** bump version ([e90fde0](https://github.com/perpetual-protocol/sdk-curie/commit/e90fde0bd60059e56e94b66368d2bef5401dcd4e)) +* **canary:** bump version and add terser ([7c172a5](https://github.com/perpetual-protocol/sdk-curie/commit/7c172a560563e13d6ba2bd9f60d0d8baeedd061c)) +* **canary:** bump version and update deps ([681937d](https://github.com/perpetual-protocol/sdk-curie/commit/681937d281d18a429c26e36ca6d39b61460e3b5c)) +* **canary:** update dist folder structure ([a6c3117](https://github.com/perpetual-protocol/sdk-curie/commit/a6c31172ce86dc00a61b4198f4bbef3bc66bb906)) +* **rollup:** clean up dependencies & add rollup plugins ([b6bf046](https://github.com/perpetual-protocol/sdk-curie/commit/b6bf046aa868811f92a6e0c414309cad80fd834c)) +* **rollup:** experiment rollup config ([#83](https://github.com/perpetual-protocol/sdk-curie/issues/83)) ([44a2792](https://github.com/perpetual-protocol/sdk-curie/commit/44a27927b4bf57e7f67f0a6a508120d3a35d0e17)) +* update dist folder structure ([3f515db](https://github.com/perpetual-protocol/sdk-curie/commit/3f515db723a6fc3d1a9d60aa6db53c859701abfa)) +* update rollup config ([42c5f2e](https://github.com/perpetual-protocol/sdk-curie/commit/42c5f2ee89ecfc270a6aad726cb0f21c49d56b7b)) + + +### Others + +* **release:** 1.9.2-canary.7 ([a9b5e13](https://github.com/perpetual-protocol/sdk-curie/commit/a9b5e13c8c3d96f0af91d953fddab27eb5a79710)) +* update version in package.json ([bd9926c](https://github.com/perpetual-protocol/sdk-curie/commit/bd9926cd9a6ee77434a0b5563c2857d7f06fd18a)) + ## [1.13.0](https://github.com/perpetual-protocol/sdk-curie/compare/v1.9.2-canary.13...v1.13.0) (2022-09-21) diff --git a/README.md b/README.md index 4fe818b..9b9c3d3 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,9 @@ See `./test/` for common use cases. ```javascript TRACK -METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN +METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI METADATA_URL_CORE_OVERRIDE_OPTIMISM -METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN +METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM enum TRACK { @@ -58,8 +58,8 @@ yarn start:[TRACK] ### To supply custom envs, run: ```bash -METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN="your_url" \ -METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN="your_url" \ +METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI="your_url" \ +METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI="your_url" \ yarn start:[TRACK] ``` diff --git a/package.json b/package.json index 668e7d4..7918e29 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@perp/sdk-curie", - "version": "1.13.0", + "version": "1.14.0-canary.1", "license": "BSD-3-Clause", "main": "dist/lib/index.js", "module": "dist/es/index.js", @@ -58,7 +58,7 @@ "sdk" ], "dependencies": { - "@perp/curie-deployments": "2022.8.25-1661400314113", + "@perp/curie-deployments": "2022.10.5-1664940982527", "cross-fetch": "3.1.5" }, "peerDependencies": { @@ -67,10 +67,6 @@ }, "devDependencies": { "@chainlink/contracts": "0.4.1", - "@uniswap/v3-core": "1.0.0", - "big.js": "6.1.1", - "cross-fetch": "3.1.5", - "ethers": "5.5.0", "@commitlint/cli": "17.0.0", "@commitlint/config-conventional": "17.0.0", "@commitlint/cz-commitlint": "17.0.0", @@ -83,20 +79,22 @@ "@types/jest": "27.0.1", "@typescript-eslint/eslint-plugin": "5.12.0", "@typescript-eslint/parser": "5.12.0", + "@uniswap/v3-core": "1.0.0", + "big.js": "6.1.1", "commitizen": "4.2.4", "copyfiles": "2.4.1", "cross-env": "7.0.3", - "esbuild": "^0.14.53", + "cross-fetch": "3.1.5", "eslint": "8.9.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-prettier": "4.0.0", + "ethers": "5.5.0", "husky": "8.0.1", "jest": "27.1.0", "lint-staged": "11.1.2", "mkdirp": "1.0.4", "rimraf": "3.0.2", "rollup": "2.77.2", - "rollup-plugin-esbuild": "^4.9.1", "rollup-plugin-terser": "7.0.2", "rollup-plugin-typescript2": "0.32.1", "rollup-plugin-visualizer": "5.7.1", diff --git a/rollup.config.js b/rollup.config.js index 8a3fb15..1f9728c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -4,7 +4,6 @@ import resolve from "@rollup/plugin-node-resolve" import pkg from "./package.json" import replace from "@rollup/plugin-replace" import { visualizer } from "rollup-plugin-visualizer" -// import esbuild from "rollup-plugin-esbuild" import typescript from "rollup-plugin-typescript2" import { terser } from "rollup-plugin-terser" @@ -49,14 +48,14 @@ export default { preventAssignment: true, values: { "process.env.TRACK": JSON.stringify(process.env.TRACK), - "process.env.METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN": JSON.stringify( - process.env.METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN, + "process.env.METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI": JSON.stringify( + process.env.METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI, ), "process.env.METADATA_URL_CORE_OVERRIDE_OPTIMISM": JSON.stringify( process.env.METADATA_URL_CORE_OVERRIDE_OPTIMISM, ), - "process.env.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN": JSON.stringify( - process.env.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN, + "process.env.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI": JSON.stringify( + process.env.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI, ), "process.env.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM": JSON.stringify( process.env.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM, @@ -68,9 +67,6 @@ export default { json(), typescript(), terser(), - // esbuild({ - // minify: true, - // }), visualizer(), ], } diff --git a/script/generate-type.ts b/script/generate-type.ts index 6432bc3..8144682 100644 --- a/script/generate-type.ts +++ b/script/generate-type.ts @@ -6,16 +6,16 @@ import { glob, runTypeChain } from "typechain" const getABIRefByTrack = (track?: string) => { switch (track) { case "dev1": - return "optimism-kovan-dev1" + return "optimism-goerli-dev1" case "dev2": - return "optimism-kovan-dev2" + return "optimism-goerli-dev2" case "canary": - // Canary supports both Kovan and Mainnet but we gen-type with Kovan's ABI. - // When the Kovan ABI contains new features that has not yet been deployed to Mainnet, + // Canary supports both Goerli and Mainnet but we gen-type with Goerli's ABI. + // When the Goerli ABI contains new features that has not yet been deployed to Mainnet, // it is expected to fail when using Mainnet. - return "optimism-kovan" + return "optimism-goerli" case "rc": // release candidate - return "optimism-kovan" + return "optimism-goerli" case "production": return "optimism" default: diff --git a/src/constants/envVariables.ts b/src/constants/envVariables.ts index 4307ce9..3291c12 100644 --- a/src/constants/envVariables.ts +++ b/src/constants/envVariables.ts @@ -1,12 +1,12 @@ /** * TRACK: Development tracks, each correspond to a set of deployed smart contracts. - * METADATA_URL_OVERRIDE_OPTIMISM_KOVAN: metadata url override for Optimism Kovan. + * METADATA_URL_OVERRIDE_OPTIMISM_GOERLI: metadata url override for Optimism Goerli. * METADATA_URL_OVERRIDE_OPTIMISM: metadata url override for Optimism Mainnet. */ const TRACK = process.env.TRACK -const METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN = process.env.METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN +const METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI = process.env.METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI const METADATA_URL_CORE_OVERRIDE_OPTIMISM = process.env.METADATA_URL_CORE_OVERRIDE_OPTIMISM -const METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN = process.env.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN +const METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI = process.env.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI const METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM = process.env.METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM export enum Track { @@ -26,8 +26,8 @@ const TYPED_TRACK = isTrack(TRACK) ? TRACK : Track.PRODUCTION export { TYPED_TRACK as TRACK, - METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN, + METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI, METADATA_URL_CORE_OVERRIDE_OPTIMISM, - METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN, + METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI, METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM, } diff --git a/src/metadata/Metadata.ts b/src/metadata/Metadata.ts index de1180a..c799994 100644 --- a/src/metadata/Metadata.ts +++ b/src/metadata/Metadata.ts @@ -37,7 +37,7 @@ export interface ChainMetadata { USDC: string UniswapV3Factory: string } - network: "optimism" | "optimismKovan" + network: "optimism" | "optimism-goerli" pools: Pool[] collaterals: Collateral[] } diff --git a/src/network/constants.ts b/src/network/constants.ts index d83fb8f..db41891 100644 --- a/src/network/constants.ts +++ b/src/network/constants.ts @@ -1,20 +1,18 @@ +import MainMetadataOptimismGoerli from "@perp/curie-deployments/optimism-goerli/core/metadata.json" +import MainMetadataOptimism from "@perp/curie-deployments/optimism/core/metadata.json" + import { METADATA_URL_CORE_OVERRIDE_OPTIMISM, - METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN, + METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI, METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM, - METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN, + METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI, TRACK, Track, } from "../constants" -import MainMetadataOptimism from "@perp/curie-deployments/optimism/core/metadata.json" -import MainMetadataOptimismKovan from "@perp/curie-deployments/optimism-kovan/core/metadata.json" -import MainMetadataOptimismKovanDev1 from "@perp/curie-deployments/optimism-kovan-dev1/core/metadata.json" -import MainMetadataOptimismKovanDev2 from "@perp/curie-deployments/optimism-kovan-dev2/core/metadata.json" - /* ========== CHAIN ========== */ export enum ChainId { - OPTIMISM_KOVAN = MainMetadataOptimismKovan.chainId, + OPTIMISM_GOERLI = MainMetadataOptimismGoerli.chainId, OPTIMISM = MainMetadataOptimism.chainId, } @@ -25,32 +23,34 @@ const SupportedChainIdByTrack: { OPTIMISM: MainMetadataOptimism.chainId, }, [Track.RC]: { - OPTIMISM_KOVAN: MainMetadataOptimismKovan.chainId, + OPTIMISM_GOERLI: MainMetadataOptimismGoerli.chainId, }, [Track.CANARY]: { - OPTIMISM_KOVAN: MainMetadataOptimismKovan.chainId, + OPTIMISM_GOERLI: MainMetadataOptimismGoerli.chainId, OPTIMISM: MainMetadataOptimism.chainId, }, [Track.DEV1]: { - OPTIMISM_KOVAN: MainMetadataOptimismKovanDev1.chainId, + // TODO: import from MainMetadataOptimismGoerliDev1 when @perp/curie-deployments support it + OPTIMISM_GOERLI: MainMetadataOptimismGoerli.chainId, }, [Track.DEV2]: { - OPTIMISM_KOVAN: MainMetadataOptimismKovanDev2.chainId, + // TODO: import from MainMetadataOptimismGoerliDev2 when @perp/curie-deployments support it + OPTIMISM_GOERLI: MainMetadataOptimismGoerli.chainId, }, } export const SupportedChainIds = SupportedChainIdByTrack[TRACK] /* ========== METADATA ========== */ export const MetadataUrlCoreByChainId = { - [ChainId.OPTIMISM_KOVAN]: - METADATA_URL_CORE_OVERRIDE_OPTIMISM_KOVAN || "https://metadata.perp.exchange/v2/optimism-kovan.json", + [ChainId.OPTIMISM_GOERLI]: + METADATA_URL_CORE_OVERRIDE_OPTIMISM_GOERLI || "https://metadata.perp.exchange/v2/optimism-goerli.json", [ChainId.OPTIMISM]: METADATA_URL_CORE_OVERRIDE_OPTIMISM || "https://metadata.perp.exchange/v2/optimism.json", } export const MetadataUrlPeripheryByChainId = { - [ChainId.OPTIMISM_KOVAN]: - METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_KOVAN || - "https://metadata.perp.exchange/v2/periphery/optimism-kovan.json", + [ChainId.OPTIMISM_GOERLI]: + METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM_GOERLI || + "https://metadata.perp.exchange/v2/periphery/optimism-goerli.json", [ChainId.OPTIMISM]: METADATA_URL_PERIPHERY_OVERRIDE_OPTIMISM || "https://metadata.perp.exchange/v2/periphery/optimism.json", } diff --git a/test/core/PerpetualProtocol.test.ts b/test/core/PerpetualProtocol.test.ts index 42b18b5..3fb14dc 100644 --- a/test/core/PerpetualProtocol.test.ts +++ b/test/core/PerpetualProtocol.test.ts @@ -5,10 +5,10 @@ describe("PerpetualProtocol", () => { beforeAll(async () => { perp = new PerpetualProtocol({ - chainId: SupportedChainIds.OPTIMISM_KOVAN, + chainId: SupportedChainIds.OPTIMISM_GOERLI, providerConfigs: [ { - rpcUrl: "https://kovan.optimism.io", + rpcUrl: "https://goerli.optimism.io/", }, ], }) diff --git a/test/core/clearingHouse/ClearingHouse.test.ts b/test/core/clearingHouse/ClearingHouse.test.ts index 96ce696..b803e6f 100644 --- a/test/core/clearingHouse/ClearingHouse.test.ts +++ b/test/core/clearingHouse/ClearingHouse.test.ts @@ -25,10 +25,10 @@ describe("ClearingHouse", () => { beforeAll(async () => { perp = new PerpetualProtocol({ - chainId: SupportedChainIds.OPTIMISM_KOVAN, + chainId: SupportedChainIds.OPTIMISM_GOERLI, providerConfigs: [ { - rpcUrl: "https://kovan.optimism.io", + rpcUrl: "https://goerli.optimism.io/", }, ], }) @@ -59,7 +59,7 @@ describe("ClearingHouse", () => { contractFunctionName: "openPosition", args: [ { - baseToken: "0x5802918dc503c465f969da0847b71e3fbe9b141c", + baseToken: "0x60a233b9b94c67e94e0a269429fb40004d4ba494", isBaseToQuote: false, isExactInput: true, amount: big2BigNumberAndScaleUp(amountInput), diff --git a/test/core/position/PositionDraft.test.ts b/test/core/position/PositionDraft.test.ts index ece99a1..3869dac 100644 --- a/test/core/position/PositionDraft.test.ts +++ b/test/core/position/PositionDraft.test.ts @@ -7,10 +7,10 @@ describe("PositionDraft", () => { beforeAll(async () => { perp = new PerpetualProtocol({ - chainId: SupportedChainIds.OPTIMISM_KOVAN, + chainId: SupportedChainIds.OPTIMISM_GOERLI, providerConfigs: [ { - rpcUrl: "https://kovan.optimism.io", + rpcUrl: "https://goerli.optimism.io/", }, ], }) diff --git a/yarn.lock b/yarn.lock index 0e77bcc..4387a9c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -495,11 +495,6 @@ dependencies: "@cspotcode/source-map-consumer" "0.8.0" -"@esbuild/linux-loong64@0.14.53": - version "0.14.53" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.14.53.tgz#251b4cd6760fadb4d68a05815e6dc5e432d69cd6" - integrity sha512-W2dAL6Bnyn4xa/QRSU3ilIK4EzD5wgYXKXJiS1HDF5vU3675qc2bvFyLwbUcdmssDveyndy7FbitrCoiV/eMLg== - "@eslint/eslintrc@^1.1.0": version "1.2.1" resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.2.1.tgz" @@ -1392,10 +1387,10 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@perp/curie-deployments@2022.8.25-1661400314113": - version "2022.8.25-1661400314113" - resolved "https://registry.yarnpkg.com/@perp/curie-deployments/-/curie-deployments-2022.8.25-1661400314113.tgz#30a43e82be5913daae88649efbc0e1f27cde1c57" - integrity sha512-0tJGRk988swB1OC8SAPiWmIpyqqstH5bHLdBwQ0YZYrGahU3zuZ81T+x8X6a+H4HXfFtKd1LkaB59BrejJQTag== +"@perp/curie-deployments@2022.10.5-1664940982527": + version "2022.10.5-1664940982527" + resolved "https://registry.yarnpkg.com/@perp/curie-deployments/-/curie-deployments-2022.10.5-1664940982527.tgz#ce191ad969b9e88a939fcae8409968d41665b0c2" + integrity sha512-07fv7vu8okF/9GevvOKoeUhOJqQNPAvOSdLj1DBffPtuq/dnUfP5Ck/CJopIm+FjRJVer8VX3Nx7IdQEo/nhBw== "@rollup/plugin-commonjs@21.0.1": version "21.0.1" @@ -1446,7 +1441,7 @@ estree-walker "^1.0.1" picomatch "^2.2.2" -"@rollup/pluginutils@^4.1.1", "@rollup/pluginutils@^4.1.2": +"@rollup/pluginutils@^4.1.2": version "4.2.1" resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz#e6c6c3aba0744edce3fb2074922d3776c0af2a6d" integrity sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ== @@ -2588,13 +2583,6 @@ debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2: dependencies: ms "2.1.2" -debug@^4.3.3: - version "4.3.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" - integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== - dependencies: - ms "2.1.2" - decamelize-keys@^1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz" @@ -2746,138 +2734,6 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-module-lexer@^0.9.3: - version "0.9.3" - resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19" - integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ== - -esbuild-android-64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.14.53.tgz#259bc3ef1399a3cad8f4f67c40ee20779c4de675" - integrity sha512-fIL93sOTnEU+NrTAVMIKiAw0YH22HWCAgg4N4Z6zov2t0kY9RAJ50zY9ZMCQ+RT6bnOfDt8gCTnt/RaSNA2yRA== - -esbuild-android-arm64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.14.53.tgz#2158253d4e8f9fdd2a081bbb4f73b8806178841e" - integrity sha512-PC7KaF1v0h/nWpvlU1UMN7dzB54cBH8qSsm7S9mkwFA1BXpaEOufCg8hdoEI1jep0KeO/rjZVWrsH8+q28T77A== - -esbuild-darwin-64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.14.53.tgz#b4681831fd8f8d06feb5048acbe90d742074cc2a" - integrity sha512-gE7P5wlnkX4d4PKvLBUgmhZXvL7lzGRLri17/+CmmCzfncIgq8lOBvxGMiQ4xazplhxq+72TEohyFMZLFxuWvg== - -esbuild-darwin-arm64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.53.tgz#d267d957852d121b261b3f76ead86e5b5463acc9" - integrity sha512-otJwDU3hnI15Q98PX4MJbknSZ/WSR1I45il7gcxcECXzfN4Mrpft5hBDHXNRnCh+5858uPXBXA1Vaz2jVWLaIA== - -esbuild-freebsd-64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.53.tgz#aca2af6d72b537fe66a38eb8f374fb66d4c98ca0" - integrity sha512-WkdJa8iyrGHyKiPF4lk0MiOF87Q2SkE+i+8D4Cazq3/iqmGPJ6u49je300MFi5I2eUsQCkaOWhpCVQMTKGww2w== - -esbuild-freebsd-arm64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.53.tgz#76282e19312d914c34343c8a7da6cc5f051580b9" - integrity sha512-9T7WwCuV30NAx0SyQpw8edbKvbKELnnm1FHg7gbSYaatH+c8WJW10g/OdM7JYnv7qkimw2ZTtSA+NokOLd2ydQ== - -esbuild-linux-32@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.14.53.tgz#1045d34cf7c5faaf2af3b29cc1573b06580c37e5" - integrity sha512-VGanLBg5en2LfGDgLEUxQko2lqsOS7MTEWUi8x91YmsHNyzJVT/WApbFFx3MQGhkf+XdimVhpyo5/G0PBY91zg== - -esbuild-linux-64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.14.53.tgz#ab3f2ee2ebb5a6930c72d9539cb34b428808cbe4" - integrity sha512-pP/FA55j/fzAV7N9DF31meAyjOH6Bjuo3aSKPh26+RW85ZEtbJv9nhoxmGTd9FOqjx59Tc1ZbrJabuiXlMwuZQ== - -esbuild-linux-arm64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.53.tgz#1f5530412f6690949e78297122350488d3266cfe" - integrity sha512-GDmWITT+PMsjCA6/lByYk7NyFssW4Q6in32iPkpjZ/ytSyH+xeEx8q7HG3AhWH6heemEYEWpTll/eui3jwlSnw== - -esbuild-linux-arm@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.14.53.tgz#a44ec9b5b42007ab6c0d65a224ccc6bbd97c54cf" - integrity sha512-/u81NGAVZMopbmzd21Nu/wvnKQK3pT4CrvQ8BTje1STXcQAGnfyKgQlj3m0j2BzYbvQxSy+TMck4TNV2onvoPA== - -esbuild-linux-mips64le@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.53.tgz#a4d0b6b17cfdeea4e41b0b085a5f73d99311be9f" - integrity sha512-d6/XHIQW714gSSp6tOOX2UscedVobELvQlPMkInhx1NPz4ThZI9uNLQ4qQJHGBGKGfu+rtJsxM4NVHLhnNRdWQ== - -esbuild-linux-ppc64le@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.53.tgz#8c331822c85465434e086e3e6065863770c38139" - integrity sha512-ndnJmniKPCB52m+r6BtHHLAOXw+xBCWIxNnedbIpuREOcbSU/AlyM/2dA3BmUQhsHdb4w3amD5U2s91TJ3MzzA== - -esbuild-linux-riscv64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.53.tgz#36fd75543401304bea8a2d63bf8ea18aaa508e00" - integrity sha512-yG2sVH+QSix6ct4lIzJj329iJF3MhloLE6/vKMQAAd26UVPVkhMFqFopY+9kCgYsdeWvXdPgmyOuKa48Y7+/EQ== - -esbuild-linux-s390x@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.53.tgz#1622677ab6824123f48f75d3afc031cd41936129" - integrity sha512-OCJlgdkB+XPYndHmw6uZT7jcYgzmx9K+28PVdOa/eLjdoYkeAFvH5hTwX4AXGLZLH09tpl4bVsEtvuyUldaNCg== - -esbuild-netbsd-64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.53.tgz#e86d0efd0116658be335492ed12e66b26b4baf52" - integrity sha512-gp2SB+Efc7MhMdWV2+pmIs/Ja/Mi5rjw+wlDmmbIn68VGXBleNgiEZG+eV2SRS0kJEUyHNedDtwRIMzaohWedQ== - -esbuild-openbsd-64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.53.tgz#9bcbbe6f86304872c6e91f64c8eb73fc29c3588b" - integrity sha512-eKQ30ZWe+WTZmteDYg8S+YjHV5s4iTxeSGhJKJajFfQx9TLZJvsJX0/paqwP51GicOUruFpSUAs2NCc0a4ivQQ== - -esbuild-sunos-64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.14.53.tgz#f7a872f7460bfb7b131f7188a95fbce3d1c577e8" - integrity sha512-OWLpS7a2FrIRukQqcgQqR1XKn0jSJoOdT+RlhAxUoEQM/IpytS3FXzCJM6xjUYtpO5GMY0EdZJp+ur2pYdm39g== - -esbuild-windows-32@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.14.53.tgz#c5e3ca50e2d1439cc2c9fe4defa63bcd474ce709" - integrity sha512-m14XyWQP5rwGW0tbEfp95U6A0wY0DYPInWBB7D69FAXUpBpBObRoGTKRv36lf2RWOdE4YO3TNvj37zhXjVL5xg== - -esbuild-windows-64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.14.53.tgz#ec2ab4a60c5215f092ffe1eab6d01319e88238af" - integrity sha512-s9skQFF0I7zqnQ2K8S1xdLSfZFsPLuOGmSx57h2btSEswv0N0YodYvqLcJMrNMXh6EynOmWD7rz+0rWWbFpIHQ== - -esbuild-windows-arm64@0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.53.tgz#f71d403806bdf9f4a1f9d097db9aec949bd675c8" - integrity sha512-E+5Gvb+ZWts+00T9II6wp2L3KG2r3iGxByqd/a1RmLmYWVsSVUjkvIxZuJ3hYTIbhLkH5PRwpldGTKYqVz0nzQ== - -esbuild@^0.14.53: - version "0.14.53" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.14.53.tgz#20b1007f686e8584f2a01a1bec5a37aac9498ce4" - integrity sha512-ohO33pUBQ64q6mmheX1mZ8mIXj8ivQY/L4oVuAshr+aJI+zLl+amrp3EodrUNDNYVrKJXGPfIHFGhO8slGRjuw== - optionalDependencies: - "@esbuild/linux-loong64" "0.14.53" - esbuild-android-64 "0.14.53" - esbuild-android-arm64 "0.14.53" - esbuild-darwin-64 "0.14.53" - esbuild-darwin-arm64 "0.14.53" - esbuild-freebsd-64 "0.14.53" - esbuild-freebsd-arm64 "0.14.53" - esbuild-linux-32 "0.14.53" - esbuild-linux-64 "0.14.53" - esbuild-linux-arm "0.14.53" - esbuild-linux-arm64 "0.14.53" - esbuild-linux-mips64le "0.14.53" - esbuild-linux-ppc64le "0.14.53" - esbuild-linux-riscv64 "0.14.53" - esbuild-linux-s390x "0.14.53" - esbuild-netbsd-64 "0.14.53" - esbuild-openbsd-64 "0.14.53" - esbuild-sunos-64 "0.14.53" - esbuild-windows-32 "0.14.53" - esbuild-windows-64 "0.14.53" - esbuild-windows-arm64 "0.14.53" - escalade@^3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" @@ -4286,11 +4142,6 @@ jest@27.1.0: import-local "^3.0.2" jest-cli "^27.1.0" -joycon@^3.0.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/joycon/-/joycon-3.1.1.tgz#bce8596d6ae808f8b68168f5fc69280996894f03" - integrity sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw== - js-sha3@0.8.0, js-sha3@^0.8.0: version "0.8.0" resolved "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz" @@ -5300,17 +5151,6 @@ rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2: dependencies: glob "^7.1.3" -rollup-plugin-esbuild@^4.9.1: - version "4.9.1" - resolved "https://registry.yarnpkg.com/rollup-plugin-esbuild/-/rollup-plugin-esbuild-4.9.1.tgz#369d137e2b1542c8ee459495fd4f10de812666aa" - integrity sha512-qn/x7Wz9p3Xnva99qcb+nopH0d2VJwVnsxJTGEg+Sh2Z3tqQl33MhOwzekVo1YTKgv+yAmosjcBRJygMfGrtLw== - dependencies: - "@rollup/pluginutils" "^4.1.1" - debug "^4.3.3" - es-module-lexer "^0.9.3" - joycon "^3.0.1" - jsonc-parser "^3.0.0" - rollup-plugin-terser@7.0.2: version "7.0.2" resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d" From f6f9cd31d3828eec58f6da22e41b24b7d60b224a Mon Sep 17 00:00:00 2001 From: phchan9 Date: Fri, 14 Oct 2022 15:35:17 +0800 Subject: [PATCH 5/5] chore(release): 1.14.0 --- CHANGELOG.md | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 439f5bb..9ea33b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.14.0](https://github.com/perpetual-protocol/sdk-curie/compare/v1.13.0...v1.14.0) (2022-10-14) + ## [1.14.0-canary.1](https://github.com/perpetual-protocol/sdk-curie/compare/v1.13.0...v1.14.0-canary.1) (2022-10-11) diff --git a/package.json b/package.json index 7918e29..50594e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@perp/sdk-curie", - "version": "1.14.0-canary.1", + "version": "1.14.0", "license": "BSD-3-Clause", "main": "dist/lib/index.js", "module": "dist/es/index.js",