-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from entropyxyz/dev
merge dev into main to prep for release
- Loading branch information
Showing
57 changed files
with
3,905 additions
and
1,558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!-- Provide a brief description of the changes made in this PR --> | ||
|
||
## Related Issue(s) | ||
<!-- Link to the issue(s) that this PR addresses --> | ||
|
||
- Resolves #[issue_number] | ||
|
||
## Proposed Changes | ||
<!-- List the changes made in this PR --> | ||
|
||
- Change 1 | ||
- Change 2 | ||
- ... | ||
|
||
## Testing | ||
<!-- Describe how you tested the changes --> | ||
|
||
- [ ] Unit tests added/updated | ||
- [ ] Integration tests added/updated | ||
- [ ] Manual testing performed | ||
|
||
## Screenshots (if applicable) | ||
<!-- Include any relevant screenshots here --> | ||
|
||
## Additional Context | ||
<!-- Add any other context or information that might be helpful for the reviewer --> | ||
|
||
## Checklist | ||
<!-- Confirm that the following items are true and correct: --> | ||
|
||
- [ ] I have performed a self-review of my code. | ||
- [ ] I have added tests. | ||
- [ ] I have commented my code. | ||
- [ ] I have included a `CHANGELOG.md` entry. | ||
- [ ] I have updated documentation in `github.com:entropyxyz/entropy-docs`, where necessary. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Build, lint, test | ||
run-name: Test JS CLI (started by @${{ github.triggering_actor }}) | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
|
||
jobs: | ||
build_test_lint: | ||
name: Build, test, and lint | ||
permissions: | ||
contents: read | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.10.0 | ||
- name: Install | ||
run: yarn --network-timeout 180000 | ||
- name: Typecheck | ||
run: yarn run test:types | ||
- name: Build | ||
run: yarn run build | ||
- name: Add TSS server host mappings | ||
run: | | ||
echo "127.0.0.1 alice-tss-server bob-tss-server" | sudo tee -a /etc/hosts | ||
- name: Test | ||
run: yarn run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format extends [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). | ||
**At the moment this project DOES NOT adhere to | ||
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).** | ||
|
||
**Until MAJOR version 1; All MINOR versions are breaking changes and all patch versions are bug fixes and features.** | ||
|
||
Version header format: `[version] Name - year-month-day (entropy-core compatibility: version [range])` | ||
|
||
## [UNRELEASED] | ||
|
||
### Added | ||
- new: './src/flows/balance/balance.ts' - service file separated out of main flow containing the pure functions to perform balance requests for one or multiple addresses | ||
- new: './tests/balance.test.ts' - new unit tests file for balance pure functions | ||
- new: './src/common/logger.ts' - utility file consisting of the logger used throughout the entropy cli | ||
- new: './src/common/masking.ts' - utility helper file for EntropyLogger, used to mask private data in the payload (message) of the logging method | ||
### Fixed | ||
- keyring retrieval method was incorrectly returning the default keyring when no keyring was found, which is not the intended flow | ||
### Changed | ||
- conditional when initializing entropy object to only error if no seed AND admin account is not found in the account data, new unit test caught bug with using OR condition | ||
### Broke | ||
|
||
### Meta/Dev | ||
- new: `./dev/README.md` | ||
- `./.github`: their is now a check list you should fill out for creating a PR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Hello sdk dev! | ||
|
||
## Tests | ||
|
||
DONT HAVE ANY YET LETS MAKE SOME! | ||
|
||
## Linting | ||
|
||
We've got automated linting set up as a pre-commit hook. | ||
Setup | ||
|
||
- dependencies: `husky`, `pinst`, `lint-staged` | ||
- files: `.husky/` | ||
|
||
If you are blocked from committing, you can skip these hooks | ||
|
||
```bash | ||
git commit --no-verify | ||
``` | ||
|
||
### A note on PR's | ||
|
||
- Please check all relevant boxes in pr template | ||
- Please select an appropriate reviewer. | ||
- PR's that have the reviewer also contribute code will either not be merged in or they might get reverted. | ||
- PR for `dev` -> `main` | ||
- must have: | ||
- [ ] two QA approvals one from `js team` one from `dev rel` | ||
- [ ] comprehensive coverage of change log | ||
|
||
## Publishing all included | ||
|
||
|
||
Always publish from `main` branch | ||
|
||
```bash | ||
git checkout main | ||
yarn burn | ||
yarn | ||
yarn bundle | ||
yarn version --patch # patch|minor|major | ||
# npm publish # we are not live yet on npm do this when we have global install figured out | ||
git push origin main --tags | ||
``` | ||
|
||
go create a release on github if possible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#! /usr/bin/env bash | ||
|
||
RESULT=$(grep -r \ | ||
--exclude-dir=dev \ | ||
--exclude-dir=node_modules \ | ||
--exclude-dir=.git \ | ||
'test\.only' | ||
) | ||
|
||
if [ "$RESULT" ]; then | ||
RED='\033[0;31m' | ||
NC='\033[0m' # No Color | ||
|
||
printf "${RED}Error: test.only found${NC} \n" && \ | ||
grep -rn \ | ||
--exclude-dir=dev \ | ||
--exclude-dir=node_modules \ | ||
--exclude-dir=.git \ | ||
--color \ | ||
'test\.only' && \ | ||
echo '' && \ | ||
echo 'Please remove ♡' && \ | ||
echo '' && \ | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#! /usr/bin/env bash | ||
|
||
# HACK: normally we could just go: | ||
# tape tests/*.test.ts | tap-spec | ||
# | ||
# but here we are fighting TS ... this works well enough | ||
|
||
ONLY_FILES=`grep 'test.only' tests/*.test.ts -l` | ||
|
||
if [ $ONLY_FILES ]; then | ||
# If there are files with test.only, run only those files | ||
# NOTE: `yarn test:only` ensures our CI fails if those are left in | ||
set -e; | ||
for t in $ONLY_FILES; do | ||
npx tsx $t | tap-spec; | ||
done | ||
else | ||
# Otherwise run all tests | ||
set -e; | ||
for t in tests/*.test.ts; do | ||
npx tsx $t | tap-spec; | ||
done | ||
fi |
Oops, something went wrong.