2024-02-02 15:26:57 +03:00
|
|
|
package constants
|
2024-01-31 17:26:26 +03:00
|
|
|
|
2024-02-01 15:21:51 +03:00
|
|
|
import "time"
|
|
|
|
|
2024-01-31 17:26:26 +03:00
|
|
|
const (
|
|
|
|
ConsensusAccountName = "consensus"
|
|
|
|
ProtoConfigPath = "protocol"
|
|
|
|
|
|
|
|
// MaxAlphabetNodes is the maximum number of candidates allowed, which is currently limited by the size
|
|
|
|
// of the invocation script.
|
|
|
|
// See: https://github.com/nspcc-dev/neo-go/blob/740488f7f35e367eaa99a71c0a609c315fe2b0fc/pkg/core/transaction/witness.go#L10
|
|
|
|
MaxAlphabetNodes = 22
|
|
|
|
|
2024-02-01 09:58:12 +03:00
|
|
|
SingleAccountName = "single"
|
|
|
|
CommitteeAccountName = "committee"
|
2024-02-01 10:06:05 +03:00
|
|
|
|
|
|
|
NNSContract = "nns"
|
|
|
|
FrostfsContract = "frostfs" // not deployed in side-chain.
|
|
|
|
ProcessingContract = "processing" // not deployed in side-chain.
|
|
|
|
AlphabetContract = "alphabet"
|
|
|
|
BalanceContract = "balance"
|
|
|
|
ContainerContract = "container"
|
|
|
|
FrostfsIDContract = "frostfsid"
|
|
|
|
NetmapContract = "netmap"
|
|
|
|
PolicyContract = "policy"
|
|
|
|
ProxyContract = "proxy"
|
2024-02-01 15:21:51 +03:00
|
|
|
|
|
|
|
ContractWalletFilename = "contract.json"
|
|
|
|
ContractWalletPasswordKey = "contract"
|
|
|
|
|
|
|
|
FrostfsOpsEmail = "ops@frostfs.info"
|
|
|
|
|
|
|
|
DefaultExpirationTime = 10 * 365 * 24 * time.Hour / time.Second
|
2024-02-02 09:49:03 +03:00
|
|
|
|
|
|
|
DeployMethodName = "deploy"
|
|
|
|
UpdateMethodName = "update"
|
2024-02-02 10:15:55 +03:00
|
|
|
|
|
|
|
TestContractPassword = "grouppass"
|
2024-02-01 15:21:51 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ContractList = []string{
|
|
|
|
BalanceContract,
|
|
|
|
ContainerContract,
|
|
|
|
FrostfsIDContract,
|
|
|
|
NetmapContract,
|
|
|
|
PolicyContract,
|
|
|
|
ProxyContract,
|
|
|
|
}
|
|
|
|
|
|
|
|
FullContractList = append([]string{
|
|
|
|
FrostfsContract,
|
|
|
|
ProcessingContract,
|
|
|
|
NNSContract,
|
|
|
|
AlphabetContract,
|
|
|
|
}, ContractList...)
|
2024-01-31 17:26:26 +03:00
|
|
|
)
|