genlayer 0.40.0-clarke.1 → 0.40.0-clarke.2
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/CHANGELOG.md +6 -0
- package/README.md +9 -0
- package/dist/index.js +3798 -480
- package/docs/api-references/_meta.json +2 -1
- package/docs/api-references/contracts/deploy.mdx +1 -0
- package/docs/api-references/contracts/write.mdx +1 -0
- package/docs/api-references/finalize-batch.mdx +1 -0
- package/docs/api-references/finalize.mdx +1 -0
- package/docs/api-references/index.mdx +1 -0
- package/docs/api-references/staking/staking/delegator-claim.mdx +1 -0
- package/docs/api-references/staking/staking/delegator-exit.mdx +1 -0
- package/docs/api-references/staking/staking/delegator-join.mdx +1 -0
- package/docs/api-references/staking/staking/prime-all.mdx +1 -0
- package/docs/api-references/staking/staking/set-identity.mdx +1 -0
- package/docs/api-references/staking/staking/set-operator.mdx +1 -0
- package/docs/api-references/staking/staking/validator-claim.mdx +1 -0
- package/docs/api-references/staking/staking/validator-deposit.mdx +1 -0
- package/docs/api-references/staking/staking/validator-exit.mdx +1 -0
- package/docs/api-references/staking/staking/validator-join.mdx +1 -0
- package/docs/api-references/staking/staking/validator-prime.mdx +1 -0
- package/docs/api-references/staking/staking/wizard.mdx +1 -0
- package/docs/api-references/transactions/appeal.mdx +1 -0
- package/docs/api-references/vesting/claim.mdx +1 -0
- package/docs/api-references/vesting/delegate.mdx +1 -0
- package/docs/api-references/vesting/undelegate.mdx +1 -0
- package/docs/api-references/vesting/validator/claim.mdx +2 -1
- package/docs/api-references/vesting/validator/create.mdx +1 -0
- package/docs/api-references/vesting/validator/deposit.mdx +2 -1
- package/docs/api-references/vesting/validator/exit.mdx +2 -1
- package/docs/api-references/vesting/validator/join.mdx +1 -0
- package/docs/api-references/vesting/validator/operator-transfer/cancel.mdx +2 -1
- package/docs/api-references/vesting/validator/operator-transfer/complete.mdx +2 -1
- package/docs/api-references/vesting/validator/operator-transfer/initiate.mdx +2 -1
- package/docs/api-references/vesting/validator/set-identity.mdx +2 -1
- package/docs/api-references/vesting/withdraw.mdx +1 -0
- package/docs/api-references/wallet/connect.mdx +17 -0
- package/docs/api-references/wallet/disconnect.mdx +15 -0
- package/docs/api-references/wallet/status.mdx +15 -0
- package/docs/api-references/wallet.mdx +25 -0
- package/package.json +1 -1
- package/src/commands/account/index.ts +1 -0
- package/src/commands/account/show.ts +16 -4
- package/src/commands/balances/BalancesAction.ts +276 -0
- package/src/commands/balances/index.ts +18 -0
- package/src/commands/contracts/deploy.ts +24 -10
- package/src/commands/contracts/index.ts +28 -25
- package/src/commands/contracts/write.ts +6 -0
- package/src/commands/staking/StakingAction.ts +79 -18
- package/src/commands/staking/delegatorClaim.ts +44 -0
- package/src/commands/staking/delegatorExit.ts +60 -0
- package/src/commands/staking/delegatorJoin.ts +46 -0
- package/src/commands/staking/index.ts +170 -145
- package/src/commands/staking/setIdentity.ts +62 -0
- package/src/commands/staking/setOperator.ts +42 -0
- package/src/commands/staking/validatorClaim.ts +39 -0
- package/src/commands/staking/validatorDeposit.ts +42 -0
- package/src/commands/staking/validatorExit.ts +57 -0
- package/src/commands/staking/validatorJoin.ts +50 -0
- package/src/commands/staking/validatorPrime.ts +88 -0
- package/src/commands/staking/wizard.ts +511 -28
- package/src/commands/transactions/appeal.ts +7 -0
- package/src/commands/transactions/finalize.ts +27 -2
- package/src/commands/transactions/index.ts +29 -25
- package/src/commands/vesting/VestingAction.ts +19 -1
- package/src/commands/vesting/claim.ts +43 -0
- package/src/commands/vesting/delegate.ts +49 -0
- package/src/commands/vesting/index.ts +32 -26
- package/src/commands/vesting/undelegate.ts +57 -0
- package/src/commands/vesting/validatorClaim.ts +49 -4
- package/src/commands/vesting/validatorCreate.ts +59 -0
- package/src/commands/vesting/validatorDeposit.ts +52 -4
- package/src/commands/vesting/validatorExit.ts +61 -4
- package/src/commands/vesting/validatorOperatorTransfer.ts +148 -10
- package/src/commands/vesting/validatorSetIdentity.ts +70 -4
- package/src/commands/vesting/withdraw.ts +45 -0
- package/src/commands/wallet/WalletAction.ts +190 -0
- package/src/commands/wallet/index.ts +36 -0
- package/src/index.ts +4 -0
- package/src/lib/actions/BaseAction.ts +135 -1
- package/src/lib/vesting/availableToStake.ts +29 -0
- package/src/lib/wallet/bridgePage.ts +266 -0
- package/src/lib/wallet/browserBridge.ts +694 -0
- package/src/lib/wallet/browserSend.ts +316 -0
- package/src/lib/wallet/sessionClient.ts +148 -0
- package/src/lib/wallet/sessionConstants.ts +50 -0
- package/src/lib/wallet/sessionDaemon.ts +238 -0
- package/src/lib/wallet/sessionDescriptor.ts +95 -0
- package/src/lib/wallet/sessionResolver.ts +131 -0
- package/src/lib/wallet/spawnDaemon.ts +104 -0
- package/src/lib/wallet/stakingTx.ts +12 -0
- package/src/lib/wallet/txBuilders.ts +114 -0
- package/src/lib/wallet/walletOption.ts +23 -0
- package/tests/actions/balances.test.ts +247 -0
- package/tests/actions/customNetworkProfiles.test.ts +3 -0
- package/tests/actions/deploy.test.ts +42 -0
- package/tests/actions/hasLiveWalletSession.test.ts +55 -0
- package/tests/actions/show.test.ts +94 -0
- package/tests/actions/staking.test.ts +311 -5
- package/tests/actions/stakingWizard.test.ts +417 -0
- package/tests/actions/vesting.test.ts +160 -0
- package/tests/actions/walletConnect.test.ts +161 -0
- package/tests/actions/walletSession.test.ts +86 -0
- package/tests/actions/write.test.ts +43 -0
- package/tests/commands/balances.test.ts +73 -0
- package/tests/commands/staking.test.ts +66 -10
- package/tests/commands/vesting.test.ts +62 -0
- package/tests/commands/wallet.test.ts +64 -0
- package/tests/index.test.ts +8 -0
- package/tests/libs/browserBridge.test.ts +412 -0
- package/tests/libs/browserSend.test.ts +183 -0
- package/tests/libs/sessionClient.test.ts +155 -0
- package/tests/libs/sessionDaemon.test.ts +141 -0
- package/tests/libs/sessionDescriptor.test.ts +95 -0
- package/tests/libs/sessionResolver.test.ts +283 -0
- package/tests/libs/spawnDaemon.test.ts +117 -0
- package/tests/libs/stakingTx.test.ts +116 -0
- package/tests/libs/txBuilders.test.ts +152 -0
- package/tests/setup.ts +33 -0
- package/vitest.config.ts +1 -0
- package/.github/workflows/npm-dist-tag.yml +0 -81
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
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)
|
|
4
10
|
|
|
5
11
|
## [0.40.0-rc2](https://github.com/genlayerlabs/genlayer-cli/compare/v0.40.0-rc1...v0.40.0-rc2) (2026-07-08)
|
package/README.md
CHANGED
|
@@ -478,6 +478,7 @@ 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)
|
|
481
482
|
|
|
482
483
|
OPTIONS (delegator-join):
|
|
483
484
|
--validator <address> Validator address to delegate to
|
|
@@ -497,6 +498,14 @@ EXAMPLES:
|
|
|
497
498
|
# Join as validator with 42000 GEN
|
|
498
499
|
genlayer staking validator-join --amount 42000gen
|
|
499
500
|
|
|
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
|
+
|
|
500
509
|
# Join as delegator with 42 GEN
|
|
501
510
|
genlayer staking delegator-join --validator 0x... --amount 42gen
|
|
502
511
|
|