Get contract hashes from NNS during setup #133

Closed
opened 2025-12-28 18:08:38 +00:00 by sami · 2 comments
Owner

Originally created by @roman-khimov on GitHub (Feb 14, 2023).

We have a number of contracts and they use each other for various purposes, so many of them have _deploy parameters to specify hashes of other contracts. These parameters are not very useful and making deployment/upgrades more complicated then they need to be since we always have NNS in sidechain and it always has proper hashes of the target contracts.

Originally created by @roman-khimov on GitHub (Feb 14, 2023). We have a number of contracts and they use each other for various purposes, so many of them have `_deploy` parameters to specify hashes of other contracts. These parameters are not very useful and making deployment/upgrades more complicated then they need to be since we always have NNS in sidechain and it always has proper hashes of the target contracts.
sami 2025-12-28 18:08:38 +00:00
Author
Owner

@cthulhu-rider commented on GitHub (Mar 28, 2023):

I'm a bit confused of next deployment parameters:

Will there be a conflict during deployment, or it is assumed that the hashes are known in advance (in the current topic - registered in the NNS)?

@cthulhu-rider commented on GitHub (Mar 28, 2023): I'm a bit confused of next deployment parameters: * `Container` contract depends on `Netmap` contract address https://github.com/nspcc-dev/neofs-contract/blob/715425a0a7e030ec1e0e32157701258dd77d47d9/container/container_contract.go#L146 * `Netmap` contract depends on `Container` contract address https://github.com/nspcc-dev/neofs-contract/blob/715425a0a7e030ec1e0e32157701258dd77d47d9/netmap/netmap_contract.go#L99 Will there be a conflict during deployment, or it is assumed that the hashes are known in advance (in the current topic - registered in the NNS)?
Author
Owner

@roman-khimov commented on GitHub (Mar 28, 2023):

The first one is only used during cleanup and can be reworked to not do so, #327.

@roman-khimov commented on GitHub (Mar 28, 2023): The first one is only used during `cleanup` and can be reworked to not do so, #327.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-contract#133
No description provided.