[#979] adm: Deploy and update Subnet contract

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-11-28 16:37:09 +03:00 committed by LeL
parent 1cee1b8f93
commit 70f17dc778

View file

@ -36,6 +36,7 @@ const (
netmapContract = "netmap" netmapContract = "netmap"
proxyContract = "proxy" proxyContract = "proxy"
reputationContract = "reputation" reputationContract = "reputation"
subnetContract = "subnet"
) )
const ( const (
@ -63,6 +64,7 @@ var (
netmapContract, netmapContract,
proxyContract, proxyContract,
reputationContract, reputationContract,
subnetContract,
} }
fullContractList = append([]string{ fullContractList = append([]string{
@ -475,6 +477,7 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []sm
newContractParameter(smartcontract.Hash160Type, c.Contracts[netmapContract].Hash), newContractParameter(smartcontract.Hash160Type, c.Contracts[netmapContract].Hash),
} }
case reputationContract: case reputationContract:
case subnetContract:
default: default:
panic(fmt.Sprintf("invalid contract name: %s", ctrName)) panic(fmt.Sprintf("invalid contract name: %s", ctrName))
} }