Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tracking branch] Next Release #175

Open
wants to merge 95 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
dfd9405
[NayNay] Create Account Refactor + Testing
rh0delta Jul 8, 2024
a647d7b
updated changelog; completed pure function; general cleanup; added test
rh0delta Jul 9, 2024
e4110f7
Merge branch 'dev' into naynay/create-acccount
rh0delta Jul 9, 2024
c081acc
Merge branch 'dev' into naynay/create-acccount
rh0delta Jul 15, 2024
cbf9f62
[NayNay] User Programs: Add Program + testing
rh0delta Jul 15, 2024
1aa244f
[NayNay] Sync main with dev
rh0delta Jul 15, 2024
4a7234f
updated changelog
rh0delta Jul 15, 2024
3c4ab4b
Merge pull request #174 from entropyxyz/naynay/update-dev
frankiebee Jul 15, 2024
0d63339
Merge branch 'dev' into naynay/add-program
rh0delta Jul 15, 2024
adc1df3
updated chagelog;
rh0delta Jul 16, 2024
7cc85fe
[NayNay] User Program Management::View Programs + Testing
rh0delta Jul 16, 2024
740c3ac
Mixmix/config encoding (#165)
mixmix Jul 16, 2024
8dabd11
chill the logs out! (#161)
mixmix Jul 16, 2024
ff30a2c
[NayNay] User Programs: Add Program + testing (#173)
rh0delta Jul 16, 2024
f67e844
Merge branch 'dev' into naynay/view-programs
rh0delta Jul 16, 2024
59a9ab1
updated tests
rh0delta Jul 16, 2024
109fde1
Update tests/manage-accounts.test.ts
rh0delta Jul 16, 2024
11dd078
Update tests/manage-accounts.test.ts
rh0delta Jul 16, 2024
109c545
Merge branch 'dev' into naynay/create-acccount
rh0delta Jul 16, 2024
a5ae111
Merge branch 'naynay/create-acccount' of https://github.com/entropyxy…
rh0delta Jul 16, 2024
75ae282
Merge pull request #166 from entropyxyz/naynay/create-acccount
frankiebee Jul 16, 2024
9314b30
Merge pull request #177 from entropyxyz/naynay/view-programs
frankiebee Jul 16, 2024
9f946dc
[NayNay] Entropy Register + Unit Tests (#167)
rh0delta Jul 16, 2024
9f8f2de
[NayNay] User Program Management: Removing program + testing (#178)
rh0delta Jul 16, 2024
a3896d5
Improves README. (#182)
johnnymatthews Jul 17, 2024
577d9e5
Merge branch 'main' into naynay/sync-dev
rh0delta Jul 17, 2024
c510e56
Clarify PR branch process. (#187)
johnnymatthews Jul 17, 2024
79f365c
Merge pull request #186 from entropyxyz/naynay/sync-dev
frankiebee Jul 17, 2024
166a1a2
fix encoding of config (#190)
mixmix Jul 18, 2024
9d87dd5
patch sign bug (#164)
mixmix Jul 22, 2024
03b9f1b
[NayNay] Fixing register tests (#194)
rh0delta Jul 24, 2024
a0f73f2
[NayNay] update sdk v0.2.3
rh0delta Jul 25, 2024
0c124f1
changelog
rh0delta Jul 25, 2024
a4bdc57
Adding CLA Assistant bot's GitHub Action workflow. (#200)
vitropy Jul 26, 2024
ffb81d1
Merge pull request #199 from entropyxyz/naynay/update-sdk
frankiebee Jul 26, 2024
130b4c1
all Uint8Array output in base64 (#163)
mixmix Jul 29, 2024
4b802e0
[NayNay] File Restructure: Base Class + Balance Restructure
rh0delta Jul 31, 2024
5d64729
updated naming scheme for command, utils and base class
rh0delta Jul 31, 2024
366072b
more naming changes
rh0delta Jul 31, 2024
cd1b817
changelog updated
rh0delta Jul 31, 2024
c0fbd87
naming is fun
rh0delta Jul 31, 2024
6749593
merge user/dev programs flows (#204)
mixmix Jul 31, 2024
05c82ed
updated utils to be pure functions rather than class; updated tests; …
rh0delta Aug 1, 2024
b9bf895
remove "sleep" calls as SDK utils handle those (#205)
mixmix Aug 1, 2024
621e0fb
remove viem, move typescript => devDeps (#203)
mixmix Aug 1, 2024
df36f05
Mixmix/programs deploy (#206)
mixmix Aug 1, 2024
e8aef10
Update CHANGELOG.md
rh0delta Aug 1, 2024
4db6378
Merge branch 'naynay/file-restructure' into naynay/base-plus-balance
rh0delta Aug 1, 2024
953f968
Merge branch 'naynay/base-plus-balance' of https://github.com/entropy…
rh0delta Aug 1, 2024
f1b87f4
lint errors
rh0delta Aug 1, 2024
67c33cb
added lifecycle hook to main entropy entry point to load entropy inst…
rh0delta Aug 1, 2024
d6d8d76
updated tui and cli to be the main source of entry for everything and…
rh0delta Aug 1, 2024
aefe05e
updated changelog
rh0delta Aug 1, 2024
197a815
undid commented code
rh0delta Aug 1, 2024
423631c
little cleanup
rh0delta Aug 1, 2024
ddbd6e3
removed unnecessary constants file
rh0delta Aug 2, 2024
6dbc757
[NayNay] File Restructure: Transfer
rh0delta Aug 2, 2024
073f910
updated tests + changelog
rh0delta Aug 2, 2024
3b6d981
Merge pull request #207 from entropyxyz/naynay/base-plus-balance
frankiebee Aug 5, 2024
3d2b168
Merge branch 'naynay/file-restructure' into naynay/transfer-restructure
rh0delta Aug 5, 2024
4223370
Exempt organization members from needing to sign the CLA.
vitropy Aug 6, 2024
e33cf72
Merge pull request #216 from entropyxyz/cla-full-org
vitropy Aug 6, 2024
038051d
Merge pull request #214 from entropyxyz/naynay/transfer-restructure
frankiebee Aug 19, 2024
3a3130f
[NayNay] Entropy Faucet (#133)
rh0delta Aug 28, 2024
67045d4
[NayNay] File Restructure: Signing Restructure (#218)
rh0delta Aug 29, 2024
16eb051
Merge branch 'dev' into naynay/file-restructure
rh0delta Sep 16, 2024
988555a
Merge branch 'main' of github.com:entropyxyz/cli into dev
mixmix Sep 17, 2024
0cfb8f8
[NayNay] File Restructure: Accounts Restructure (#215)
rh0delta Sep 19, 2024
96ec283
get all config.get* methods fail safely (#227)
mixmix Sep 22, 2024
a966549
Merge branch 'dev' into naynay/file-restructure
rh0delta Sep 23, 2024
fa335b4
Merge branch 'naynay/file-restructure' of https://github.com/entropyx…
rh0delta Sep 23, 2024
e9bd786
fix config (again) (#229)
mixmix Sep 24, 2024
34e4c69
add deploy to CLI, including start of CLI refactor (#213)
mixmix Sep 24, 2024
54de68d
[NayNay] File Restructure: Faucet (#225)
rh0delta Sep 24, 2024
c855201
add a "global entropy" test for --help (#230)
frankiebee Sep 24, 2024
1be1d7e
Merge branch 'dev' of github.com:entropyxyz/cli into naynay/file-rest…
frankiebee Sep 24, 2024
7cd5072
updated tui to handle loading entropy on initial start of cli and cre…
rh0delta Sep 24, 2024
cc63c72
refactor entropy register so CLI/TUI are similar
mixmix Sep 26, 2024
4c86915
add detailed error message on failure to persist verifyingKey
mixmix Sep 26, 2024
f3412d2
Merge pull request #242 from entropyxyz/mixmix/entropy-register-fix
frankiebee Sep 27, 2024
dd751e4
Merge pull request #231 from entropyxyz/naynay/file-restructure
frankiebee Oct 2, 2024
3c4aded
improve masking fn
mixmix Oct 3, 2024
5865243
Merge pull request #249 from entropyxyz/mixmix/fix-masking
frankiebee Oct 3, 2024
5f3960b
[NayNay] Removing Mention of Password (#252)
rh0delta Oct 16, 2024
ee2709b
[NayNay] Updating faucet amount (#258)
rh0delta Oct 18, 2024
a3950e1
fix cli opts bug with multiple accountOptions (#250)
mixmix Oct 21, 2024
fe685b8
template (#241)
frankiebee Oct 21, 2024
f5a1fd9
QA file-restructure (#247)
mixmix Oct 22, 2024
e295195
[NayNay] Moving Facuet to main menu (#257)
rh0delta Oct 22, 2024
cab7dec
[NayNay] Signing error messaging (#260)
rh0delta Oct 22, 2024
b0db1b0
[NayNay] Faucet Loader (#254)
rh0delta Oct 23, 2024
d8d0b33
[NayNay] New SDK RC integration (#262)
rh0delta Oct 24, 2024
3244691
[NayNay] Entropy Version (#269)
rh0delta Oct 25, 2024
8d9a2e4
Release/0.0.4rc1 (#267)
mixmix Oct 29, 2024
6204a60
Mixmix/faucet tidy (#253)
mixmix Oct 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# This workflow automates the process of signing our CLA. It makes use of
# the action at https://github.com/contributor-assistant/github-action in
# order to provide automations.
#
# This workflow file should be present in every repository that wants to
# use the Contributor License Agreement automation process. Ideally, it
# would remain more-or-less synchronized across each repository as updates
# are rolled out.
#
# Since the database of signatories is maintained in a remote repository,
# each repository that wishes to make use of the CLA Assistant will also
# need to have a repository secret (named `CLA_ASSISTANT_LITE_PAT`) that
# grants permission to write to the "signatures" file in that repository.
---
name: "CLA Assistant"
on:
issue_comment:
types:
- created
pull_request_target:
types:
- opened
- closed
- synchronize

# Explicitly configure permissions, in case the GITHUB_TOKEN workflow permissions
# are set to read-only in the repository's settings.
permissions:
actions: write
contents: read # We only need to `read` since signatures are in a remote repo.
pull-requests: write
statuses: write

jobs:
CLAAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: entropyxyz/contributor-assistant-github-action@c5f4628ffe1edb97724edb64e0dd4795394d33e5 # exemptRepoOrgMembers
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Required, so that the bot in this repository has `write` permissions to Contents of remote repo.
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT_LITE_PAT }}
with:
path-to-signatures: 'legal/cla/v1/signatures.json'
path-to-document: 'https://github.com/entropyxyz/.github/blob/main/legal/cla/v1/cla.md'
branch: 'main'
allowlist: dependabot[bot]
exemptRepoOrgMembers: true
remote-organization-name: entropyxyz
remote-repository-name: .github
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
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
echo "127.0.0.1 alice-tss-server bob-tss-server charlie-tss-server dave-tss-server" | sudo tee -a /etc/hosts
- name: Test
run: yarn run test
110 changes: 106 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,126 @@ The format extends [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

Version header format: `[version] Name - year-month-day (entropy-core compatibility: version [range])`

## [0.0.4] Carnage - 2024-10-23 (entropy-core compatibility: 0.3.0)

### Added

- programmatic CLI commands
- new: `entropy account create`
- new: `entropy account import`
- new: `entropy account list`
- new: `entropy account register`
- new: `entropy program deploy`
- new: option to display cli and core version

- TUI
- new: added faucet to main menu for TUI
- updated faucet to use loading spinner to indicate to user the progress of the transfer
- new: menu item to trigger a jumpstart to the network (needs to be run once for fresh test networks)

- documentation
- updated: `./README.md`
- new: `./src/README.md` - an guide to the source of the project
- new: `./src/_template/*` - an example "domain" with lots of notes

- tests
- new: `./tests/account.test.ts` - tests for `./src/account/`
- updated: `./tests/balance.test.ts` - tests for `./src/balance/`
- new: `./tests/common.test.ts` - tests for `./src/common/`
- updated: `./tests/config.test.ts` - tests for `./src/config/`
- new: `./tests/e2e.cli.sh` - a shell script which is an early test for programmatic usage

- new: `./tests/faucet.test.ts` - tests `./src/faucet/`
- new: `./tests/global.test.ts` -
- new: `./tests/program.test.ts` - tests for `./src/program/`

- programs
- new: `./tests/programs/faucet_program.wasm` - the faucet program!

- packages
- new: `yocto-spinner` for adding loading spinners to the cli
- some minor package updates

- github actions
- new: CLA action

### Changed

- updated SDK version to v0.3.0 (entropy-core 0.3.0)
- updated us to use `four-nodes` docker setup
- logger to handle nested contexts for better organization of logs
- update: `./src/common/utils.ts` - removed isValidSubstrateAddress and imported the method in from the sdk
- file restructure:
- removed: `src/flows/*`
- added
- `./src/common/entropy-base.ts` - base abstract class for all our domains `main.js` files
- `./src/_template` - docs explaining the new file structure pattern
- `./src/account` - new file structure for our CLI/TUI flows
- NOTE: this contains register flow
- `./src/balance` - new file structure for our CLI/TUI flows
- `./src/faucet` - new file structure for our CLI/TUI flows
- `./src/program` - new file structure for our CLI/TUI flows
- NOTE: this merges user-program + dev-program domains into a single domain
- `./src/sign` - new file structure for our CLI/TUI flows
- `./src/transfer` - new file structure for our CLI/TUI flows
- folder name for user programs to match the kebab-case style for folder namespace
- ascii art print out now shows up to date core version based, coming from SDK

### Broke

- network now uses `four-nodes` docker setup
- requires an update to `/etc/hosts` for local testing, should include line:
```
127.0.0.1 alice-tss-server bob-tss-server charlie-tss-server dave-tss-server
```
- for programmatic CLI
- change account listing:
- old: `entropy list`
- new: `entropy account list [options]`
- changed transfer:
- old: `entropy transfer [options] <source> <destination> <amount>`
- new: `entropy transfer [options] <destination> <amount>`
- changed env: `ENDPOINT` => `ENTROPY_ENDPOINT`

- for TUI
- "endpoint" configuration has changed
- see `entropy --help`
- change flag: `--endpoint` => `--tui-endpiont`
- change env: `ENTROPY_ENDPOINT` => `ENTROPY_TUI_ENDPOINT`
- This is because of [collisions we were seeing](https://github.com/entropyxyz/cli/issues/265) with `commander` flags.
- Does not effect programmatic CLI usage
- We may revert this in a future release.
- deploying programs now requires
- `*.wasm` file for `bytecode`
- `*.json` file path for `configurationSchema`
- `*.json` file path for `auxillaryDataSchema`

## [0.0.3] Blade - 2024-07-17 (entropy-core compatibility: 0.2.0)

### Fixed

- HOT-FIX programmatic balance error [183](https://github.com/entropyxyz/cli/pull/183)

## [0.0.2] AntMan - 2024-07-12 (entropy-core compatibility: 0.2.0)

### 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

- 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
Loading