shine-solana/shine/doc/READ_ME.txt

40 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# подключаться надо к
JSON RPC URL: http://127.0.0.1:8899
# Запустить саму ноду
solana-test-validator
# Удалить процесс ноды что бы запустить заново
kill -9 $(pgrep -f "solana-test-validator")
или
ps aux | grep solana-test-validator
а потом
kill -9 1052345
# Убивает и логи и всю базу локальной ноды
rm -rf test-ledger
# Удалить все данные с ноды
solana-test-validator --reset
# Что бы запустить просмотр логов ноды
solana logs
# Запустить контракт
anchor deploy
# Cкомпилировать и задеплоить новую версию
anchor build # Скомпилировать контракт и сгенерировать IDL
anchor deploy # Задеплоить контракт в сеть (указанную в Anchor.toml)
Если ты хочешь сразу убедиться, куда он деплоится — проверь Anchor.toml.
[provider]
cluster = "https://api.testnet.solana.com" # или "localnet"
wallet = "~/.config/solana/id.json"
# Создать новый проект
anchor init имя_проекта