forked from TrueCloudLab/frostfs-node
[#979] adm: Deploy and update Subnet contract
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
1cee1b8f93
commit
70f17dc778
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue