• Stars
    star
    264
  • Rank 155,103 (Top 4 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created almost 5 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A tool to run and maintain a TON node/validator

Данный текст доступен на русском языке.

What is it?

This console is a wrapper over fift,lite-client and validator-engine-console. It was created to facilitate wallet, domain and validator management on Linux OS.

Functionality

  • Show TON network status
  • Management of local wallets
    • Create local wallet
    • Activate local wallet
    • Show local wallets
    • Import wallet from file (.pk)
    • Save wallet address to file (.addr)
    • Delete local wallet
  • Show account status
    • Show account balance
    • Show account history
    • Show account status from bookmarks
  • Transferring funds to the wallet
    • Transfer of a fixed amount
    • Transfer of the entire amount (all)
    • Transfer of the entire amount with wallet deactivation (alld)
    • Transferring funds to the wallet from bookmarks
    • Transferring funds to a wallet through a chain of self-deleting wallets
  • Manage bookmarks
    • Add account to bookmarks
    • Show bookmarks
    • Delete bookmark
  • Offer management
    • Show offers
    • Vote for the proposal
    • Automatic voting for previously voted proposals
  • Domain management
    • Rent a new domain
    • Show rented domains
    • Show domain status
    • Delete domain
    • Automatic domain renewal
  • Controlling the validator
    • Participate in the election of a validator
    • Return bet + reward
    • Autostart validator on abnormal termination (systemd)
    • Send validator statistics to https://toncenter.com

List of tested operating systems

Ubuntu 16.04 LTS (Xenial Xerus) - Error: TON compilation error
Ubuntu 18.04 LTS (Bionic Beaver) - OK
Ubuntu 20.04 LTS (Focal Fossa) - OK
Debian 8 - Error: Unable to locate package libgsl-dev
Debian 9 - Error: TON compilation error
Debian 10 - OK

Installation scripts overview

  • toninstaller.sh: clones TON and mytonctrl sources to /usr/src/ton and/usr/src/mytonctrl folders, compiles programs from sources and writes them to /usr/bin/.
  • mytoninstaller.py: configures the validator and mytonctrl; generates validator connection keys.

Installation modes

There are two installation modes: lite and full. They both compile and install TON components. However the lite version does not configure or run the node/validator.

Installation for Ubuntu

  1. Download and execute the install.sh script in the desired installation mode. During installation the script prompts you for the superuser password several times.
wget https://raw.githubusercontent.com/ton-blockchain/mytonctrl/master/scripts/install.sh
sudo bash install.sh -m <mode>
  1. Done. You can try to run the mytonctrl console now.
mytonctrl

Installation for Debian

  1. Download and execute the install.sh script in the desired installation mode. During installation the script prompts you for the superuser password several times.
wget https://raw.githubusercontent.com/ton-blockchain/mytonctrl/master/scripts/install.sh
su root -c 'bash install.sh -m <mode>'
  1. Done. You can try to run the mytonctrl console now.
mytonctrl

Telemetry

By default, mytonctrl sends validator statistics to the https://toncenter.com server. It is necessary to identify network abnormalities, as well as to quickly give feedback to developers. To disable telemetry during installation, use the -t flag:

sudo bash install.sh -m <mode> -t

To disable telemetry after installation, do the following:

MyTonCtrl> set sendTelemetry false

Web admin panel

To control the node/validator through the browser, you need to install an additional module: mytonctrl -> installer -> enable JR

Next, you need to create a password for connection: mytonctrl -> installer -> setwebpass

Ready. Now you can go to https://tonadmin.org site and log in with your credentials. git: https://github.com/igroman787/mtc-jsonrpc

Local copy of toncenter

To set up a local https://toncenter.com copy on your server, install an additional module: mytonctrl -> installer -> enable PT

Ready. A local copy of toncenter is available at http://<server-ip-address>:8000 git: https://github.com/igroman787/pytonv3

Useful links

  1. https://github.com/ton-blockchain/mytonctrl/blob/master/docs/en/manual-ubuntu.md
  2. https://ton.org/docs/

More Repositories

1

ton

Main TON monorepo
C++
2,971
star
2

minter-contract

Jetton Deployer FunC Smart Contracts
TypeScript
284
star
3

token-contract

Fungible, Non-Fungible, Semi-Fungible Tokens Smart Contracts
TypeScript
273
star
4

TEPs

Python
263
star
5

wallet-contract

Wallet V4 and subscription smart contracts
Shell
233
star
6

wallet-desktop

Standard wallet for Windows/MacOS/Linux
C++
219
star
7

bug-bounty

TON security bug bounty description
148
star
8

verifier

TypeScript
147
star
9

minter

Jetton Deployer Frontend
TypeScript
138
star
10

stablecoin-contract

Sample code for centralised stablecoin jetton. TEP-74 and TEP-89 compatible
TypeScript
133
star
11

wallet-android

Standard wallet for Android
C++
115
star
12

liquid-staking-contract

TypeScript
91
star
13

wallets-list

88
star
14

wallet-ios

Standard wallet for iOS
Swift
82
star
15

docs

TON documentation
81
star
16

intellij-ton

TON Development plugin for the IntelliJ Platform
Kotlin
78
star
17

TIPs

Improvement Proposal repository
76
star
18

ton-awards-2022

TON Awards 2022 event
72
star
19

ton-connect

68
star
20

dns-contract

TON DNS Smart Contracts
JavaScript
67
star
21

highload-wallet-contract-v3

TypeScript
64
star
22

token-bridge-func

TON-EVM token bridge - FunC smart contracts
51
star
23

payment-channels

Payment channels smart contracts
51
star
24

func-contest1

TON Smart Challenge 1 Tasks - FunC contest for beginners
42
star
25

locker-contract

TypeScript
39
star
26

tonkeygen

C++
39
star
27

ledger-app-ton

TON Ledger Nano App
C
39
star
28

func-contest3

TON Smart Challenge 3
38
star
29

dns

TON DNS Frontend
JavaScript
36
star
30

nominator-pool

Nominator Pool smart contract
JavaScript
32
star
31

token-bridge-solidity

TON-EVM token bridge - Solidity smart contracts
TypeScript
28
star
32

lockup-wallet-contract

JavaScript
27
star
33

token-bridge

TON-EVM token bridge frontend
Vue
24
star
34

hack-challenge-1

Repository with tasks for TON Hack Challenge #1 https://t.me/toncontests/80
Shell
24
star
35

tonlib-java

TonLib for Java/Scala/Kotlin/etc
Java
15
star
36

vesting-contract

TypeScript
15
star
37

ledger-app-ton-old

Ledger App with TON support
C
15
star
38

unfreezer

A tool to unfreeze TON contracts that entered the frozen state due to running out of gas
TypeScript
12
star
39

packages

Shell
11
star
40

mnemonic2key

Simple CLI utility to convert TON mnemonic words to private key
JavaScript
10
star
41

func-contest2

TON Smart Challenge 2 Tasks
10
star
42

performance-test

HTML
10
star
43

multisig-dapp

JavaScript
8
star
44

wallet-android-new

C++
8
star
45

ton-blockchain.github.io

7
star
46

homebrew-ton

This git repository used solely for TON brew installations.
Ruby
7
star
47

vesting

HTML
6
star
48

punisher

Slashing script for validators that for some reason do not use mytonctrl
Python
6
star
49

func-contest1-tests

TON Smart Challenge 1 Tests
Python
6
star
50

mining-status

TON mining charts & stats page
HTML
5
star
51

address-util

Web page for converting addresses to different formats
5
star
52

multisig

TypeScript
5
star
53

benchmark-contracts

TypeScript
4
star
54

governance-contract

4
star
55

bridge-old

Deprecated TON-EVM Toncoin bridge frontend in plain JS
HTML
1
star
56

public_representatives

1
star