[#987] ir: Add parsing subnet script hash from NNS contract

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-11-26 17:15:22 +03:00 committed by LeL
parent 0c6cdd0afd
commit 81dc17718e
2 changed files with 4 additions and 0 deletions

View file

@ -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},
}

View file

@ -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 (