2024-02-02 12:26:57 +00:00
|
|
|
package constants
|
2024-01-31 14:26:26 +00:00
|
|
|
|
2024-02-01 12:21:51 +00:00
|
|
|
import "time"
|
|
|
|
|
2024-01-31 14:26:26 +00: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 06:58:12 +00:00
|
|
|
SingleAccountName = "single"
|
|
|
|
CommitteeAccountName = "committee"
|
2024-02-01 07:06:05 +00: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 12:21:51 +00:00
|
|
|
|
|
|
|
ContractWalletFilename = "contract.json"
|
|
|
|
ContractWalletPasswordKey = "contract"
|
|
|
|
|
|
|
|
FrostfsOpsEmail = "ops@frostfs.info"
|
|
|
|
|
|
|
|
DefaultExpirationTime = 10 * 365 * 24 * time.Hour / time.Second
|
2024-02-02 06:49:03 +00:00
|
|
|
|
|
|
|
DeployMethodName = "deploy"
|
|
|
|
UpdateMethodName = "update"
|
2024-02-02 07:15:55 +00:00
|
|
|
|
|
|
|
TestContractPassword = "grouppass"
|
2024-02-01 12:21:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ContractList = []string{
|
|
|
|
BalanceContract,
|
|
|
|
ContainerContract,
|
|
|
|
FrostfsIDContract,
|
|
|
|
NetmapContract,
|
|
|
|
PolicyContract,
|
|
|
|
ProxyContract,
|
|
|
|
}
|
|
|
|
|
|
|
|
FullContractList = append([]string{
|
|
|
|
FrostfsContract,
|
|
|
|
ProcessingContract,
|
|
|
|
NNSContract,
|
|
|
|
AlphabetContract,
|
|
|
|
}, ContractList...)
|
2024-01-31 14:26:26 +00:00
|
|
|
)
|