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

[CLOSED] deprecate explorer.near.org and wallet.near.org #419

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
288 changes: 204 additions & 84 deletions docs/GUIDE.en.md

Large diffs are not rendered by default.

280 changes: 221 additions & 59 deletions docs/GUIDE.ru.md

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions docs/README.en.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
near CLI
--------
## near CLI

near CLI is a command line utility for working with the Near Protocol blockchain.

## README.md

* ru [Русский](README.ru.md)
- ru [Русский](README.ru.md)

## Documentation quick links

Expand All @@ -18,6 +18,7 @@ near CLI is a command line utility for working with the Near Protocol blockchain

In general, it is difficult for a beginner to immediately understand how commands work.
For example, I consider having the following command to do a transfer:

```txt
near tokens \
'volodymyr.testnet' \
Expand All @@ -28,14 +29,17 @@ near tokens \
sign-with-keychain \
send
```

This is the complete version of the command. The result of this command will be as follows:

```txt
Successful transaction
<volodymyr.testnet> has transferred 1 NEAR to <fro_volod.testnet> successfully.
Transaction ID: G4t6Sgz2FjnNpruYjPP1ZJAKfRmBffVaqmj8Nup2TaAg
To see the transaction in the transaction explorer, please open this url in your browser:
https://explorer.testnet.near.org/transactions/G4t6Sgz2FjnNpruYjPP1ZJAKfRmBffVaqmj8Nup2TaAg
https://testnet.nearblocks.io/txns/G4t6Sgz2FjnNpruYjPP1ZJAKfRmBffVaqmj8Nup2TaAg
```

Typing this or another command manually, you can make a mistake or forget the sequence of the command.
It is not a problem. `--help` will tell you how to build a command properly.
However, using _near CLI_, you can press _Enter_ anywhere in the command line and the interactive mode of the program will continue to compose the command from the place where you finished entering the necessary parameters.
Expand Down
8 changes: 4 additions & 4 deletions docs/README.ru.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
near CLI
--------
## near CLI

_near CLI_ – это утилита командной строки для работы с блокчейном NEAR Protocol.

## README.md
Expand Down Expand Up @@ -37,12 +37,12 @@ Successful transaction
<volodymyr.testnet> has transferred 1 NEAR to <fro_volod.testnet> successfully.
Transaction ID: G4t6Sgz2FjnNpruYjPP1ZJAKfRmBffVaqmj8Nup2TaAg
To see the transaction in the transaction explorer, please open this url in your browser:
https://explorer.testnet.near.org/transactions/G4t6Sgz2FjnNpruYjPP1ZJAKfRmBffVaqmj8Nup2TaAg
https://testnet.nearblocks.io/txns/G4t6Sgz2FjnNpruYjPP1ZJAKfRmBffVaqmj8Nup2TaAg
```

Набирая эту или другую команду вручную, Вы можете допустить ошибку, либо забыть последовательность набора команды.
Не проблема, `--help` подскажет как правильно выстроить команду.
Однако, используя _near CLI_, Вы __в любом месте набора команды__ можете нажать Enter и интерактивный режим программы продолжит работу по составлению команды с того места, где Вы закончили вводить необходимые параметры.
Однако, используя _near CLI_, Вы **в любом месте набора команды** можете нажать Enter и интерактивный режим программы продолжит работу по составлению команды с того места, где Вы закончили вводить необходимые параметры.

<details><summary><i>Демонстрация работы утилиты с частично набранной командой</i></summary>
<a href="https://asciinema.org/a/AfxLN1QtJi1z1qXuowTj2nDw2?autoplay=1&t=1&speed=2">
Expand Down
2 changes: 1 addition & 1 deletion docs/media/create-account.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ impl Default for Config {
network_name: "mainnet".to_string(),
rpc_url: "https://archival-rpc.mainnet.near.org".parse().unwrap(),
wallet_url: "https://app.mynearwallet.com/".parse().unwrap(),
explorer_transaction_url: "https://explorer.near.org/transactions/"
explorer_transaction_url:
"https://nearblocks.io/txns/"
.parse()
.unwrap(),
rpc_api_key: None,
Expand All @@ -44,7 +45,8 @@ impl Default for Config {
network_name: "testnet".to_string(),
rpc_url: "https://archival-rpc.testnet.near.org".parse().unwrap(),
wallet_url: "https://testnet.mynearwallet.com/".parse().unwrap(),
explorer_transaction_url: "https://explorer.testnet.near.org/transactions/"
explorer_transaction_url:
"https://testnet.nearblocks.io/txns/"
.parse()
.unwrap(),
rpc_api_key: None,
Expand Down
Loading