forked from TrueCloudLab/frostfs-node
[#987] ir: Add parsing subnet
script hash from NNS
contract
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
0c6cdd0afd
commit
81dc17718e
2 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,7 @@ type contracts struct {
|
|||
proxy util.Uint160 // in morph
|
||||
processing util.Uint160 // in mainnet
|
||||
reputation util.Uint160 // in morph
|
||||
subnet util.Uint160 // in morph
|
||||
neofsID util.Uint160 // in morph
|
||||
|
||||
alphabet alphabetContracts // in morph
|
||||
|
@ -61,6 +62,7 @@ func parseContracts(cfg *viper.Viper, morph *client.Client, withoutMainNet, with
|
|||
{"contracts.container", client.NNSContainerContractName, &result.container},
|
||||
{"contracts.audit", client.NNSAuditContractName, &result.audit},
|
||||
{"contracts.reputation", client.NNSReputationContractName, &result.reputation},
|
||||
{"contracts.subnet", client.NNSSubnetworkContractName, &result.subnet},
|
||||
{"contracts.neofsid", client.NNSNeoFSIDContractName, &result.neofsID},
|
||||
}
|
||||
|
||||
|
|
|
@ -30,6 +30,8 @@ const (
|
|||
NNSProxyContractName = "proxy.neofs"
|
||||
// NNSReputationContractName is a name of the reputation contract in NNS.
|
||||
NNSReputationContractName = "reputation.neofs"
|
||||
// NNSSubnetworkContractName is a name of the subnet contract in NNS.
|
||||
NNSSubnetworkContractName = "subnet.neofs"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
Loading…
Reference in a new issue