From ec2a25bd3d02cdeb6b56fad1b1a85c9c249dc697 Mon Sep 17 00:00:00 2001 From: Cameron Gilbert Date: Thu, 15 Aug 2024 09:52:44 -0400 Subject: [PATCH 1/3] chore: develop -> main (#370) * revert: cosmos submodule only (#362) * revert: cosmos submodule only * fix: rem * fix: rem * fix: update * feat: add msg client * fix: paths * fix: try chaosnet ibc * fix: path again * fix: try hm * fix: fixes to pass * feat: eth protos (#366) * fix: eth protos * fix: client * fix: fixes * fix: try older nibiru * fix: index * fix: mainnet * fix: import * revert: build change * chore: tests (#367) * fix: all query tests * chore: final tests * fix: buf * fix: fix * fix: pull latest * fix: build * fix: build * refactor(faucet)!: set default tokens (#369) * chore: develop -> main (#368) * revert: cosmos submodule only (#362) * revert: cosmos submodule only * fix: rem * fix: rem * fix: update * feat: add msg client * fix: paths * fix: try chaosnet ibc * fix: path again * fix: try hm * fix: fixes to pass * feat: eth protos (#366) * fix: eth protos * fix: client * fix: fixes * fix: try older nibiru * fix: index * fix: mainnet * fix: import * revert: build change * chore: tests (#367) * fix: all query tests * chore: final tests * fix: buf * fix: fix * fix: pull latest * fix: build * fix: build * chore(release): 4.5.1 ### [4.5.1](https://github.com/NibiruChain/ts-sdk/compare/v4.5.0...v4.5.1) (2024-08-09) ### Miscellaneous Chores * develop -> main ([#368](https://github.com/NibiruChain/ts-sdk/issues/368)) ([c6d6570](https://github.com/NibiruChain/ts-sdk/commit/c6d657009eed49442243c4b0e9021afd34392a98)), closes [#362](https://github.com/NibiruChain/ts-sdk/issues/362) [#366](https://github.com/NibiruChain/ts-sdk/issues/366) [#367](https://github.com/NibiruChain/ts-sdk/issues/367) [skip ci] * fix(faucet): remove unused tokens from default faucet request * fix: bump test --------- Co-authored-by: Cameron Gilbert Co-authored-by: semantic-release-bot --------- Co-authored-by: Kevin Yang <5478483+k-yang@users.noreply.github.com> Co-authored-by: semantic-release-bot --- src/sdk/utils/faucet.test.ts | 7 +++---- src/sdk/utils/faucet.ts | 19 ++----------------- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/src/sdk/utils/faucet.test.ts b/src/sdk/utils/faucet.test.ts index ef3d4825..3e8d5c26 100644 --- a/src/sdk/utils/faucet.test.ts +++ b/src/sdk/utils/faucet.test.ts @@ -78,7 +78,7 @@ describe("useFaucet", () => { test("should request funds from faucet with default amounts", async () => { await useFaucet({ address, chain, grecaptcha }) - const expectedCoins = ["11000000unibi", "100000000unusd", "100000000uusdt"] + const expectedCoins = ["10000000unibi"] expect(fetch).toHaveBeenCalledWith(expectedUrl, { method: "POST", @@ -91,10 +91,9 @@ describe("useFaucet", () => { }) test("should request funds from faucet with custom amounts", async () => { - const amts = { nibi: 5, nusd: 50, usdt: 50 } - await useFaucet({ address, chain, amts, grecaptcha }) + await useFaucet({ address, chain, grecaptcha }) - const expectedCoins = ["5000000unibi", "50000000unusd", "50000000uusdt"] + const expectedCoins = ["10000000unibi"] expect(fetch).toHaveBeenCalledWith(expectedUrl, { method: "POST", diff --git a/src/sdk/utils/faucet.ts b/src/sdk/utils/faucet.ts index afa589ea..2c561efc 100644 --- a/src/sdk/utils/faucet.ts +++ b/src/sdk/utils/faucet.ts @@ -2,33 +2,18 @@ import { fetch } from "cross-fetch" import { Chain, chainToParts } from "." /** - * Sends 11 NIBI, 100 NUSD, and 100 USDT to the given address from the testnet faucet. + * Sends 10 NIBI to the given address from the testnet faucet. */ export async function useFaucet({ address, chain, - amts, grecaptcha, }: { address: string chain: Chain - amts?: { nibi: number; nusd: number; usdt: number } grecaptcha: string }): Promise { - if (!amts) { - // default values - amts = { - nibi: 11, - nusd: 100, - usdt: 100, - } - } - - const coins: string[] = [ - `${amts.nibi * 1e6}unibi`, - `${amts.nusd * 1e6}unusd`, - `${amts.usdt * 1e6}uusdt`, - ] + const coins: string[] = [`${10e6}unibi`] const faucetUrl = faucetUrlFromChain(chain) // Execute faucet request From c2c27e57a5f94f2180f2df0ad67597790809b143 Mon Sep 17 00:00:00 2001 From: Unique Divine Date: Tue, 24 Sep 2024 08:14:06 -0500 Subject: [PATCH 2/3] chore(github): Add project automation for https://tinyurl.com/25uty9w5 --- .github/issue-labeler-config.yml | 3 +++ .github/workflows/gh-issues.yml | 38 ++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/issue-labeler-config.yml create mode 100644 .github/workflows/gh-issues.yml diff --git a/.github/issue-labeler-config.yml b/.github/issue-labeler-config.yml new file mode 100644 index 00000000..1d7046b6 --- /dev/null +++ b/.github/issue-labeler-config.yml @@ -0,0 +1,3 @@ +# Adds the "S-triage" label ot any issue that gets opened. +S-triage: + - '/.*/' diff --git a/.github/workflows/gh-issues.yml b/.github/workflows/gh-issues.yml new file mode 100644 index 00000000..69054648 --- /dev/null +++ b/.github/workflows/gh-issues.yml @@ -0,0 +1,38 @@ +name: "Auto-add GH issues to project" +# Add all issues opened to the issue board for triage and assignment +# GitHub Org and Project Automation +# https://www.notion.so/nibiru/GitHub-Org-and-Project-Automation-c771d671109849ee9fda7c8b741cd66a?pvs=4 + +on: + issues: + types: ["opened", "labeled"] + +permissions: + issues: write + contents: read + +jobs: + # https://github.com/actions/add-to-project + add-to-project: + name: "Add GH ticket to project" + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/NibiruChain/projects/8 + github-token: ${{ secrets.NIBIRU_PM }} + + label-triage: + name: "Add GH ticket to project" + runs-on: ubuntu-latest + # The action comes from the "Activty types" for the "issues" webhook event + # https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#issues + if: "github.event.action == 'opened'" + steps: + - uses: github/issue-labeler@v3.4 + if: join(github.event.issue.labels) == '' + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: ".github/issue-labeler-config.yml" + enable-versioned-regex: 0 + not-before: "2024-05-01T00:00:00Z" From 470262f8705362ac4c690322f830dc54edb2dcdc Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 24 Sep 2024 15:41:50 +0000 Subject: [PATCH 3/3] chore(release): 4.5.2 ### [4.5.2](https://github.com/NibiruChain/ts-sdk/compare/v4.5.1...v4.5.2) (2024-09-24) ### Miscellaneous Chores * develop -> main ([#370](https://github.com/NibiruChain/ts-sdk/issues/370)) ([ec2a25b](https://github.com/NibiruChain/ts-sdk/commit/ec2a25bd3d02cdeb6b56fad1b1a85c9c249dc697)), closes [#362](https://github.com/NibiruChain/ts-sdk/issues/362) [#366](https://github.com/NibiruChain/ts-sdk/issues/366) [#367](https://github.com/NibiruChain/ts-sdk/issues/367) [#369](https://github.com/NibiruChain/ts-sdk/issues/369) [#368](https://github.com/NibiruChain/ts-sdk/issues/368) [#362](https://github.com/NibiruChain/ts-sdk/issues/362) [#366](https://github.com/NibiruChain/ts-sdk/issues/366) [#367](https://github.com/NibiruChain/ts-sdk/issues/367) [#362](https://github.com/NibiruChain/ts-sdk/issues/362) [#366](https://github.com/NibiruChain/ts-sdk/issues/366) [#367](https://github.com/NibiruChain/ts-sdk/issues/367) * **github:** Add project automation for https://tinyurl.com/25uty9w5 ([c2c27e5](https://github.com/NibiruChain/ts-sdk/commit/c2c27e57a5f94f2180f2df0ad67597790809b143)) [skip ci] --- .github/issue-labeler-config.yml | 4 ++-- CHANGELOG.md | 7 +++++++ package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/issue-labeler-config.yml b/.github/issue-labeler-config.yml index 1d7046b6..2fbfe66c 100644 --- a/.github/issue-labeler-config.yml +++ b/.github/issue-labeler-config.yml @@ -1,3 +1,3 @@ # Adds the "S-triage" label ot any issue that gets opened. -S-triage: - - '/.*/' +S-triage: + - "/.*/" diff --git a/CHANGELOG.md b/CHANGELOG.md index 47333df2..92b3e2f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +### [4.5.2](https://github.com/NibiruChain/ts-sdk/compare/v4.5.1...v4.5.2) (2024-09-24) + +### Miscellaneous Chores + +- develop -> main ([#370](https://github.com/NibiruChain/ts-sdk/issues/370)) ([ec2a25b](https://github.com/NibiruChain/ts-sdk/commit/ec2a25bd3d02cdeb6b56fad1b1a85c9c249dc697)), closes [#362](https://github.com/NibiruChain/ts-sdk/issues/362) [#366](https://github.com/NibiruChain/ts-sdk/issues/366) [#367](https://github.com/NibiruChain/ts-sdk/issues/367) [#369](https://github.com/NibiruChain/ts-sdk/issues/369) [#368](https://github.com/NibiruChain/ts-sdk/issues/368) [#362](https://github.com/NibiruChain/ts-sdk/issues/362) [#366](https://github.com/NibiruChain/ts-sdk/issues/366) [#367](https://github.com/NibiruChain/ts-sdk/issues/367) [#362](https://github.com/NibiruChain/ts-sdk/issues/362) [#366](https://github.com/NibiruChain/ts-sdk/issues/366) [#367](https://github.com/NibiruChain/ts-sdk/issues/367) +- **github:** Add project automation for https://tinyurl.com/25uty9w5 ([c2c27e5](https://github.com/NibiruChain/ts-sdk/commit/c2c27e57a5f94f2180f2df0ad67597790809b143)) + ### [4.5.1](https://github.com/NibiruChain/ts-sdk/compare/v4.5.0...v4.5.1) (2024-08-09) ### Miscellaneous Chores diff --git a/package.json b/package.json index a4a475bd..4488fd48 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@nibiruchain/nibijs", "description": "The TypeScript SDK for the Nibiru blockchain.", - "version": "4.5.1", + "version": "4.5.2", "license": "MIT", "repository": { "type": "git",