2021-07-04 13:32:13 +00:00
|
|
|
/*
|
2023-01-11 07:52:06 +00:00
|
|
|
Alphabet contract is a contract deployed in FrostFS sidechain.
|
2021-07-04 13:32:13 +00:00
|
|
|
|
2022-04-14 11:56:51 +00:00
|
|
|
Alphabet contract is designed to support GAS production and vote for new
|
|
|
|
validators in the sidechain. NEO token is required to produce GAS and vote for
|
|
|
|
a new committee. It can be distributed among alphabet nodes of the Inner Ring.
|
|
|
|
However, some of them may be malicious, and some NEO can be lost. It will destabilize
|
|
|
|
the economic of the sidechain. To avoid it, all 100,000,000 NEO are
|
2021-07-04 13:32:13 +00:00
|
|
|
distributed among all alphabet contracts.
|
|
|
|
|
2022-04-14 11:56:51 +00:00
|
|
|
To identify alphabet contracts, they are named with letters of the Glagolitic alphabet.
|
|
|
|
Names are set at contract deploy. Alphabet nodes of the Inner Ring communicate with
|
2021-07-04 13:32:13 +00:00
|
|
|
one of the alphabetical contracts to emit GAS. To vote for a new list of side
|
2022-04-14 11:56:51 +00:00
|
|
|
chain committee, alphabet nodes of the Inner Ring create multisignature transactions
|
2021-07-04 13:32:13 +00:00
|
|
|
for each alphabet contract.
|
|
|
|
|
2022-12-12 19:59:13 +00:00
|
|
|
# Contract notifications
|
2021-07-04 13:32:13 +00:00
|
|
|
|
|
|
|
Alphabet contract does not produce notifications to process.
|
2023-05-10 08:19:19 +00:00
|
|
|
|
|
|
|
# Contract storage scheme
|
|
|
|
|
2023-11-07 12:00:02 +00:00
|
|
|
| Key | Value | Description |
|
|
|
|
|--------------------|------------|-------------------------------------------------|
|
|
|
|
| `netmapScriptHash` | Hash160 | netmap contract hash |
|
|
|
|
| `proxyScriptHash` | Hash160 | proxy contract hash |
|
|
|
|
| `name` | string | assigned glagolitic letter |
|
|
|
|
| `index` | int | the index of deployed alphabet contract |
|
|
|
|
| `threshold` | int | the total number of deployed alphabet contracts |
|
2021-07-04 13:32:13 +00:00
|
|
|
*/
|
2021-07-04 11:08:37 +00:00
|
|
|
package alphabet
|