genlayer 0.40.0-clarke.2 → 0.40.0-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +6 -7
- package/CHANGELOG.md +0 -8
- package/README.md +0 -9
- package/dist/index.js +480 -3798
- package/docs/api-references/_meta.json +1 -2
- package/docs/api-references/contracts/deploy.mdx +0 -1
- package/docs/api-references/contracts/write.mdx +0 -1
- package/docs/api-references/finalize-batch.mdx +0 -1
- package/docs/api-references/finalize.mdx +0 -1
- package/docs/api-references/index.mdx +0 -1
- package/docs/api-references/staking/staking/delegator-claim.mdx +0 -1
- package/docs/api-references/staking/staking/delegator-exit.mdx +0 -1
- package/docs/api-references/staking/staking/delegator-join.mdx +0 -1
- package/docs/api-references/staking/staking/prime-all.mdx +0 -1
- package/docs/api-references/staking/staking/set-identity.mdx +0 -1
- package/docs/api-references/staking/staking/set-operator.mdx +0 -1
- package/docs/api-references/staking/staking/validator-claim.mdx +0 -1
- package/docs/api-references/staking/staking/validator-deposit.mdx +0 -1
- package/docs/api-references/staking/staking/validator-exit.mdx +0 -1
- package/docs/api-references/staking/staking/validator-join.mdx +0 -1
- package/docs/api-references/staking/staking/validator-prime.mdx +0 -1
- package/docs/api-references/staking/staking/wizard.mdx +0 -1
- package/docs/api-references/transactions/appeal.mdx +0 -1
- package/docs/api-references/vesting/claim.mdx +0 -1
- package/docs/api-references/vesting/delegate.mdx +0 -1
- package/docs/api-references/vesting/undelegate.mdx +0 -1
- package/docs/api-references/vesting/validator/claim.mdx +1 -2
- package/docs/api-references/vesting/validator/create.mdx +0 -1
- package/docs/api-references/vesting/validator/deposit.mdx +1 -2
- package/docs/api-references/vesting/validator/exit.mdx +1 -2
- package/docs/api-references/vesting/validator/join.mdx +0 -1
- package/docs/api-references/vesting/validator/operator-transfer/cancel.mdx +1 -2
- package/docs/api-references/vesting/validator/operator-transfer/complete.mdx +1 -2
- package/docs/api-references/vesting/validator/operator-transfer/initiate.mdx +1 -2
- package/docs/api-references/vesting/validator/set-identity.mdx +1 -2
- package/docs/api-references/vesting/withdraw.mdx +0 -1
- package/package.json +1 -1
- package/src/commands/account/index.ts +0 -1
- package/src/commands/account/show.ts +4 -16
- package/src/commands/contracts/deploy.ts +10 -24
- package/src/commands/contracts/index.ts +25 -28
- package/src/commands/contracts/write.ts +0 -6
- package/src/commands/staking/StakingAction.ts +18 -79
- package/src/commands/staking/delegatorClaim.ts +0 -44
- package/src/commands/staking/delegatorExit.ts +0 -60
- package/src/commands/staking/delegatorJoin.ts +0 -46
- package/src/commands/staking/index.ts +145 -170
- package/src/commands/staking/setIdentity.ts +0 -62
- package/src/commands/staking/setOperator.ts +0 -42
- package/src/commands/staking/validatorClaim.ts +0 -39
- package/src/commands/staking/validatorDeposit.ts +0 -42
- package/src/commands/staking/validatorExit.ts +0 -57
- package/src/commands/staking/validatorJoin.ts +0 -50
- package/src/commands/staking/validatorPrime.ts +0 -88
- package/src/commands/staking/wizard.ts +28 -511
- package/src/commands/transactions/appeal.ts +0 -7
- package/src/commands/transactions/finalize.ts +2 -27
- package/src/commands/transactions/index.ts +25 -29
- package/src/commands/vesting/VestingAction.ts +1 -19
- package/src/commands/vesting/claim.ts +0 -43
- package/src/commands/vesting/delegate.ts +0 -49
- package/src/commands/vesting/index.ts +26 -32
- package/src/commands/vesting/undelegate.ts +0 -57
- package/src/commands/vesting/validatorClaim.ts +4 -49
- package/src/commands/vesting/validatorCreate.ts +0 -59
- package/src/commands/vesting/validatorDeposit.ts +4 -52
- package/src/commands/vesting/validatorExit.ts +4 -61
- package/src/commands/vesting/validatorOperatorTransfer.ts +10 -148
- package/src/commands/vesting/validatorSetIdentity.ts +4 -70
- package/src/commands/vesting/withdraw.ts +0 -45
- package/src/index.ts +0 -4
- package/src/lib/actions/BaseAction.ts +1 -135
- package/tests/actions/customNetworkProfiles.test.ts +0 -3
- package/tests/actions/deploy.test.ts +0 -42
- package/tests/actions/staking.test.ts +5 -311
- package/tests/actions/write.test.ts +0 -43
- package/tests/commands/staking.test.ts +10 -66
- package/tests/commands/vesting.test.ts +0 -62
- package/tests/index.test.ts +0 -8
- package/vitest.config.ts +0 -1
- package/docs/api-references/wallet/connect.mdx +0 -17
- package/docs/api-references/wallet/disconnect.mdx +0 -15
- package/docs/api-references/wallet/status.mdx +0 -15
- package/docs/api-references/wallet.mdx +0 -25
- package/src/commands/balances/BalancesAction.ts +0 -276
- package/src/commands/balances/index.ts +0 -18
- package/src/commands/wallet/WalletAction.ts +0 -190
- package/src/commands/wallet/index.ts +0 -36
- package/src/lib/vesting/availableToStake.ts +0 -29
- package/src/lib/wallet/bridgePage.ts +0 -266
- package/src/lib/wallet/browserBridge.ts +0 -694
- package/src/lib/wallet/browserSend.ts +0 -316
- package/src/lib/wallet/sessionClient.ts +0 -148
- package/src/lib/wallet/sessionConstants.ts +0 -50
- package/src/lib/wallet/sessionDaemon.ts +0 -238
- package/src/lib/wallet/sessionDescriptor.ts +0 -95
- package/src/lib/wallet/sessionResolver.ts +0 -131
- package/src/lib/wallet/spawnDaemon.ts +0 -104
- package/src/lib/wallet/stakingTx.ts +0 -12
- package/src/lib/wallet/txBuilders.ts +0 -114
- package/src/lib/wallet/walletOption.ts +0 -23
- package/tests/actions/balances.test.ts +0 -247
- package/tests/actions/hasLiveWalletSession.test.ts +0 -55
- package/tests/actions/show.test.ts +0 -94
- package/tests/actions/stakingWizard.test.ts +0 -417
- package/tests/actions/vesting.test.ts +0 -160
- package/tests/actions/walletConnect.test.ts +0 -161
- package/tests/actions/walletSession.test.ts +0 -86
- package/tests/commands/balances.test.ts +0 -73
- package/tests/commands/wallet.test.ts +0 -64
- package/tests/libs/browserBridge.test.ts +0 -412
- package/tests/libs/browserSend.test.ts +0 -183
- package/tests/libs/sessionClient.test.ts +0 -155
- package/tests/libs/sessionDaemon.test.ts +0 -141
- package/tests/libs/sessionDescriptor.test.ts +0 -95
- package/tests/libs/sessionResolver.test.ts +0 -283
- package/tests/libs/spawnDaemon.test.ts +0 -117
- package/tests/libs/stakingTx.test.ts +0 -116
- package/tests/libs/txBuilders.test.ts +0 -152
- package/tests/setup.ts +0 -33
|
@@ -9,9 +9,9 @@ name: Publish Package to NPM
|
|
|
9
9
|
# Release. It never bumps or tags by itself.
|
|
10
10
|
#
|
|
11
11
|
# Stable tags such as v0.39.2 publish to npm's latest dist-tag.
|
|
12
|
-
# Prerelease tags such as v0.40.0-
|
|
13
|
-
#
|
|
14
|
-
#
|
|
12
|
+
# Prerelease tags such as v0.40.0-rc1 publish to a matching prerelease
|
|
13
|
+
# dist-tag (rc1) and create a GitHub prerelease. Prereleases must never
|
|
14
|
+
# become latest.
|
|
15
15
|
on:
|
|
16
16
|
workflow_dispatch:
|
|
17
17
|
push:
|
|
@@ -57,9 +57,8 @@ jobs:
|
|
|
57
57
|
NPM_DIST_TAG=latest
|
|
58
58
|
if [[ "$TAG_VERSION" == *-* ]]; then
|
|
59
59
|
IS_PRERELEASE=true
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
NPM_DIST_TAG="${PRERELEASE_SUFFIX%%.*}"
|
|
60
|
+
NPM_DIST_TAG="${TAG_VERSION#*-}"
|
|
61
|
+
NPM_DIST_TAG="${NPM_DIST_TAG%%+*}"
|
|
63
62
|
|
|
64
63
|
if [ -z "$NPM_DIST_TAG" ] || [ "$NPM_DIST_TAG" = "latest" ]; then
|
|
65
64
|
echo "Invalid prerelease npm dist-tag: '$NPM_DIST_TAG'" >&2
|
|
@@ -82,7 +81,7 @@ jobs:
|
|
|
82
81
|
- name: Publish to npm
|
|
83
82
|
run: npm publish --provenance --access public --tag "${{ steps.version.outputs.npm_dist_tag }}"
|
|
84
83
|
env:
|
|
85
|
-
NODE_AUTH_TOKEN: ${{ secrets.
|
|
84
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
86
85
|
|
|
87
86
|
- name: Create GitHub Release
|
|
88
87
|
env:
|
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.40.0-clarke.2](https://github.com/genlayerlabs/genlayer-cli/compare/v0.40.0-clarke.1...v0.40.0-clarke.2) (2026-07-09)
|
|
4
|
-
|
|
5
|
-
### Features
|
|
6
|
-
|
|
7
|
-
* **staking:** browser-wallet signing for validator-join and wizard ([#367](https://github.com/genlayerlabs/genlayer-cli/issues/367)) ([ab128c0](https://github.com/genlayerlabs/genlayer-cli/commit/ab128c0b76b4f9d97ed660d91a556a5f769cef6f))
|
|
8
|
-
|
|
9
|
-
## [0.40.0-clarke.1](https://github.com/genlayerlabs/genlayer-cli/compare/v0.40.0-rc2...v0.40.0-clarke.1) (2026-07-08)
|
|
10
|
-
|
|
11
3
|
## [0.40.0-rc2](https://github.com/genlayerlabs/genlayer-cli/compare/v0.40.0-rc1...v0.40.0-rc2) (2026-07-08)
|
|
12
4
|
|
|
13
5
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -478,7 +478,6 @@ COMMON OPTIONS (all commands):
|
|
|
478
478
|
OPTIONS (validator-join):
|
|
479
479
|
--amount <amount> Amount to stake (in wei or with 'gen' suffix)
|
|
480
480
|
--operator <address> Operator address (defaults to signer)
|
|
481
|
-
--wallet <mode> 'keystore' (default) or 'browser' (sign in MetaMask)
|
|
482
481
|
|
|
483
482
|
OPTIONS (delegator-join):
|
|
484
483
|
--validator <address> Validator address to delegate to
|
|
@@ -498,14 +497,6 @@ EXAMPLES:
|
|
|
498
497
|
# Join as validator with 42000 GEN
|
|
499
498
|
genlayer staking validator-join --amount 42000gen
|
|
500
499
|
|
|
501
|
-
# Sign the validator-join with a browser wallet (MetaMask) instead of a keystore.
|
|
502
|
-
# The CLI serves a page on 127.0.0.1 and opens it; connect + confirm in the wallet.
|
|
503
|
-
# Remote/SSH: forward the printed port first (ssh -L <port>:127.0.0.1:<port> ...).
|
|
504
|
-
genlayer staking validator-join --amount 42000gen --wallet browser --network testnet-bradbury
|
|
505
|
-
|
|
506
|
-
# The wizard can also use a browser wallet as the owner (operator keystore is still generated locally):
|
|
507
|
-
genlayer staking wizard --wallet browser
|
|
508
|
-
|
|
509
500
|
# Join as delegator with 42 GEN
|
|
510
501
|
genlayer staking delegator-join --validator 0x... --amount 42gen
|
|
511
502
|
|