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.
Files changed (120) hide show
  1. package/.github/workflows/publish.yml +6 -7
  2. package/CHANGELOG.md +0 -8
  3. package/README.md +0 -9
  4. package/dist/index.js +480 -3798
  5. package/docs/api-references/_meta.json +1 -2
  6. package/docs/api-references/contracts/deploy.mdx +0 -1
  7. package/docs/api-references/contracts/write.mdx +0 -1
  8. package/docs/api-references/finalize-batch.mdx +0 -1
  9. package/docs/api-references/finalize.mdx +0 -1
  10. package/docs/api-references/index.mdx +0 -1
  11. package/docs/api-references/staking/staking/delegator-claim.mdx +0 -1
  12. package/docs/api-references/staking/staking/delegator-exit.mdx +0 -1
  13. package/docs/api-references/staking/staking/delegator-join.mdx +0 -1
  14. package/docs/api-references/staking/staking/prime-all.mdx +0 -1
  15. package/docs/api-references/staking/staking/set-identity.mdx +0 -1
  16. package/docs/api-references/staking/staking/set-operator.mdx +0 -1
  17. package/docs/api-references/staking/staking/validator-claim.mdx +0 -1
  18. package/docs/api-references/staking/staking/validator-deposit.mdx +0 -1
  19. package/docs/api-references/staking/staking/validator-exit.mdx +0 -1
  20. package/docs/api-references/staking/staking/validator-join.mdx +0 -1
  21. package/docs/api-references/staking/staking/validator-prime.mdx +0 -1
  22. package/docs/api-references/staking/staking/wizard.mdx +0 -1
  23. package/docs/api-references/transactions/appeal.mdx +0 -1
  24. package/docs/api-references/vesting/claim.mdx +0 -1
  25. package/docs/api-references/vesting/delegate.mdx +0 -1
  26. package/docs/api-references/vesting/undelegate.mdx +0 -1
  27. package/docs/api-references/vesting/validator/claim.mdx +1 -2
  28. package/docs/api-references/vesting/validator/create.mdx +0 -1
  29. package/docs/api-references/vesting/validator/deposit.mdx +1 -2
  30. package/docs/api-references/vesting/validator/exit.mdx +1 -2
  31. package/docs/api-references/vesting/validator/join.mdx +0 -1
  32. package/docs/api-references/vesting/validator/operator-transfer/cancel.mdx +1 -2
  33. package/docs/api-references/vesting/validator/operator-transfer/complete.mdx +1 -2
  34. package/docs/api-references/vesting/validator/operator-transfer/initiate.mdx +1 -2
  35. package/docs/api-references/vesting/validator/set-identity.mdx +1 -2
  36. package/docs/api-references/vesting/withdraw.mdx +0 -1
  37. package/package.json +1 -1
  38. package/src/commands/account/index.ts +0 -1
  39. package/src/commands/account/show.ts +4 -16
  40. package/src/commands/contracts/deploy.ts +10 -24
  41. package/src/commands/contracts/index.ts +25 -28
  42. package/src/commands/contracts/write.ts +0 -6
  43. package/src/commands/staking/StakingAction.ts +18 -79
  44. package/src/commands/staking/delegatorClaim.ts +0 -44
  45. package/src/commands/staking/delegatorExit.ts +0 -60
  46. package/src/commands/staking/delegatorJoin.ts +0 -46
  47. package/src/commands/staking/index.ts +145 -170
  48. package/src/commands/staking/setIdentity.ts +0 -62
  49. package/src/commands/staking/setOperator.ts +0 -42
  50. package/src/commands/staking/validatorClaim.ts +0 -39
  51. package/src/commands/staking/validatorDeposit.ts +0 -42
  52. package/src/commands/staking/validatorExit.ts +0 -57
  53. package/src/commands/staking/validatorJoin.ts +0 -50
  54. package/src/commands/staking/validatorPrime.ts +0 -88
  55. package/src/commands/staking/wizard.ts +28 -511
  56. package/src/commands/transactions/appeal.ts +0 -7
  57. package/src/commands/transactions/finalize.ts +2 -27
  58. package/src/commands/transactions/index.ts +25 -29
  59. package/src/commands/vesting/VestingAction.ts +1 -19
  60. package/src/commands/vesting/claim.ts +0 -43
  61. package/src/commands/vesting/delegate.ts +0 -49
  62. package/src/commands/vesting/index.ts +26 -32
  63. package/src/commands/vesting/undelegate.ts +0 -57
  64. package/src/commands/vesting/validatorClaim.ts +4 -49
  65. package/src/commands/vesting/validatorCreate.ts +0 -59
  66. package/src/commands/vesting/validatorDeposit.ts +4 -52
  67. package/src/commands/vesting/validatorExit.ts +4 -61
  68. package/src/commands/vesting/validatorOperatorTransfer.ts +10 -148
  69. package/src/commands/vesting/validatorSetIdentity.ts +4 -70
  70. package/src/commands/vesting/withdraw.ts +0 -45
  71. package/src/index.ts +0 -4
  72. package/src/lib/actions/BaseAction.ts +1 -135
  73. package/tests/actions/customNetworkProfiles.test.ts +0 -3
  74. package/tests/actions/deploy.test.ts +0 -42
  75. package/tests/actions/staking.test.ts +5 -311
  76. package/tests/actions/write.test.ts +0 -43
  77. package/tests/commands/staking.test.ts +10 -66
  78. package/tests/commands/vesting.test.ts +0 -62
  79. package/tests/index.test.ts +0 -8
  80. package/vitest.config.ts +0 -1
  81. package/docs/api-references/wallet/connect.mdx +0 -17
  82. package/docs/api-references/wallet/disconnect.mdx +0 -15
  83. package/docs/api-references/wallet/status.mdx +0 -15
  84. package/docs/api-references/wallet.mdx +0 -25
  85. package/src/commands/balances/BalancesAction.ts +0 -276
  86. package/src/commands/balances/index.ts +0 -18
  87. package/src/commands/wallet/WalletAction.ts +0 -190
  88. package/src/commands/wallet/index.ts +0 -36
  89. package/src/lib/vesting/availableToStake.ts +0 -29
  90. package/src/lib/wallet/bridgePage.ts +0 -266
  91. package/src/lib/wallet/browserBridge.ts +0 -694
  92. package/src/lib/wallet/browserSend.ts +0 -316
  93. package/src/lib/wallet/sessionClient.ts +0 -148
  94. package/src/lib/wallet/sessionConstants.ts +0 -50
  95. package/src/lib/wallet/sessionDaemon.ts +0 -238
  96. package/src/lib/wallet/sessionDescriptor.ts +0 -95
  97. package/src/lib/wallet/sessionResolver.ts +0 -131
  98. package/src/lib/wallet/spawnDaemon.ts +0 -104
  99. package/src/lib/wallet/stakingTx.ts +0 -12
  100. package/src/lib/wallet/txBuilders.ts +0 -114
  101. package/src/lib/wallet/walletOption.ts +0 -23
  102. package/tests/actions/balances.test.ts +0 -247
  103. package/tests/actions/hasLiveWalletSession.test.ts +0 -55
  104. package/tests/actions/show.test.ts +0 -94
  105. package/tests/actions/stakingWizard.test.ts +0 -417
  106. package/tests/actions/vesting.test.ts +0 -160
  107. package/tests/actions/walletConnect.test.ts +0 -161
  108. package/tests/actions/walletSession.test.ts +0 -86
  109. package/tests/commands/balances.test.ts +0 -73
  110. package/tests/commands/wallet.test.ts +0 -64
  111. package/tests/libs/browserBridge.test.ts +0 -412
  112. package/tests/libs/browserSend.test.ts +0 -183
  113. package/tests/libs/sessionClient.test.ts +0 -155
  114. package/tests/libs/sessionDaemon.test.ts +0 -141
  115. package/tests/libs/sessionDescriptor.test.ts +0 -95
  116. package/tests/libs/sessionResolver.test.ts +0 -283
  117. package/tests/libs/spawnDaemon.test.ts +0 -117
  118. package/tests/libs/stakingTx.test.ts +0 -116
  119. package/tests/libs/txBuilders.test.ts +0 -152
  120. 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-clarke.1 publish to a matching
13
- # channel dist-tag (clarke) and create a GitHub prerelease.
14
- # Prereleases must never become latest.
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
- PRERELEASE_SUFFIX="${TAG_VERSION#*-}"
61
- PRERELEASE_SUFFIX="${PRERELEASE_SUFFIX%%+*}"
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.NPM_AUTH_TOKEN || secrets.NPM_TOKEN }}
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