[#779] adm: Support deploying policy contract

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-11-02 10:04:02 +03:00 committed by Evgenii Stratonikov
parent 0b0e5dab24
commit 1ab567870a

View file

@ -42,6 +42,7 @@ const (
containerContract = "container" containerContract = "container"
frostfsIDContract = "frostfsid" frostfsIDContract = "frostfsid"
netmapContract = "netmap" netmapContract = "netmap"
policyContract = "policy"
proxyContract = "proxy" proxyContract = "proxy"
) )
@ -51,6 +52,7 @@ var (
containerContract, containerContract,
frostfsIDContract, frostfsIDContract,
netmapContract, netmapContract,
policyContract,
proxyContract, proxyContract,
} }
@ -568,7 +570,7 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []an
c.Contracts[containerContract].Hash, c.Contracts[containerContract].Hash,
keysParam, keysParam,
configParam) configParam)
case proxyContract: case proxyContract, policyContract:
items = nil items = nil
default: default:
panic(fmt.Sprintf("invalid contract name: %s", ctrName)) panic(fmt.Sprintf("invalid contract name: %s", ctrName))