Skip to content

chore: bump near crates to 0.35.0#580

Draft
r-near wants to merge 5 commits intomainfrom
bump-near-crates-0.35
Draft

chore: bump near crates to 0.35.0#580
r-near wants to merge 5 commits intomainfrom
bump-near-crates-0.35

Conversation

@r-near
Copy link
Copy Markdown
Contributor

@r-near r-near commented Mar 31, 2026

  • Bump near-crypto, near-primitives, near-jsonrpc-primitives from 0.34 to 0.35 for the 2.11.0 mainnet release
  • Use git dep for near-jsonrpc-client pending feat: bump near crates to 0.35 near-jsonrpc-client-rs#186
  • Use git dep for near-socialdb-client pending chore: bump near crates to 0.35 near-socialdb-client-rs#39
  • Handle all new PGas types introduced in near-primitives 0.35:
    • AccessKeyPermissionView::GasKeyFunctionCall / GasKeyFullAccess — display gas key info in account summaries and key listings
    • Action::TransferToGasKey / WithdrawFromGasKey — display in transaction previews
    • ActionView::TransferToGasKey / WithdrawFromGasKey — display in successful transaction output
    • New error variants for ActionErrorKind, InvalidTxError, ActionsValidationError — user-friendly error messages
    • TransactionNonce enum replacing raw u64 nonce — extract inner nonce for delegate actions

Depends on:

Once both deps are published to crates.io, git deps here should be switched back to versioned crates.io deps.

r-near added 3 commits March 31, 2026 12:51
…TTP calls

Tests were failing because prepare_tests() used unsafe set_var() to set
HOME/XDG_CONFIG_HOME across parallel test threads (undefined behavior).
Combined with blocking HTTP calls to nearblocks API added at startup in

- Pass env vars explicitly to subprocess Command instead of set_var
- Pre-create ft_contracts.json in test setup to skip startup HTTP calls
- Simplify is_used_ft_contract_account_list_exist to just check file existence
- Write valid empty JSON ("[]") instead of empty file on API failure
…t config

- Remove else branch that wrote empty [] on fetch failure, so the CLI
  retries on the next run instead of caching an empty list permanently
- Place test config at the correct platform-specific path for macOS
- Bump near-crypto, near-primitives, near-jsonrpc-primitives to 0.35.0-rc.5
- Use git dep for near-jsonrpc-client (pending near/near-jsonrpc-client-rs#186)
- Use path dep for near-socialdb-client (pending crate bump)
- Add match arms for new PGas enum variants:
  - AccessKeyPermissionView::GasKeyFunctionCall/GasKeyFullAccess
  - Action::TransferToGasKey/WithdrawFromGasKey
  - ActionView::TransferToGasKey/WithdrawFromGasKey
  - ActionErrorKind gas key error variants
  - InvalidTxError gas key error variants
  - ActionsValidationError gas key validation variants
- Handle TransactionNonce type (replacing raw u64 nonce)
Points to r-near/near-socialdb-client-rs#bump-near-crates-0.35
pending bos-cli-rs/near-socialdb-client-rs#39.
r-near added a commit to near/cargo-near that referenced this pull request Mar 31, 2026
- Bump near-primitives from 0.34 to 0.35.0-rc.5
- Use git dep for near-cli-rs pending near/near-cli-rs#580
- Adapt random_account_id to accept GlobalContext (near-cli-rs API change)
@r-near r-near changed the title chore: bump near crates to 0.35.0-rc.5 chore: bump near crates to 0.35.0 Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: NEW❗

Development

Successfully merging this pull request may close these issues.

2 participants