Skip to content

Commit

Permalink
innerring: use contracts from neofs-contract repository
Browse files Browse the repository at this point in the history
Now updating neofs-contract dependency will automatically update contracts,
see nspcc-dev/neofs-contract#384

This also updates contracts dependency to 0.20.0 adjusting the code where
neccessary.

Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Jul 30, 2024
1 parent 065406b commit 13010e8
Show file tree
Hide file tree
Showing 31 changed files with 59 additions and 371 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Changelog for NeoFS Node
### Removed

### Updated
- neofs-contract dependency to 0.20.0 (#2872)
- NeoGo dependency to 0.106.3 (#2872)

### Updating from v0.42.1

Expand Down
4 changes: 2 additions & 2 deletions cmd/neofs-adm/internal/modules/morph/remove_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/nspcc-dev/neo-go/pkg/io"
"github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag"
"github.com/nspcc-dev/neo-go/pkg/vm/emit"
netmapcontract "github.com/nspcc-dev/neofs-contract/contracts/netmap"
"github.com/nspcc-dev/neofs-contract/rpc/netmap"
"github.com/nspcc-dev/neofs-contract/rpc/nns"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down Expand Up @@ -47,7 +47,7 @@ func removeNodesCmd(cmd *cobra.Command, args []string) error {
bw := io.NewBufBinWriter()
for i := range nodeKeys {
emit.AppCall(bw.BinWriter, nmHash, "updateStateIR", callflag.All,
int64(netmapcontract.NodeStateOffline), nodeKeys[i].Bytes())
netmap.NodeStateOffline, nodeKeys[i].Bytes())

Check warning on line 50 in cmd/neofs-adm/internal/modules/morph/remove_node.go

View check run for this annotation

Codecov / codecov/patch

cmd/neofs-adm/internal/modules/morph/remove_node.go#L50

Added line #L50 was not covered by tests
}

if err := emitNewEpochCall(bw, wCtx, nmHash); err != nil {
Expand Down
4 changes: 2 additions & 2 deletions cmd/neofs-node/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

containerV2 "github.com/nspcc-dev/neofs-api-go/v2/container"
containerGRPC "github.com/nspcc-dev/neofs-api-go/v2/container/grpc"
containercontract "github.com/nspcc-dev/neofs-contract/contracts/container"
containerrpc "github.com/nspcc-dev/neofs-contract/rpc/container"
"github.com/nspcc-dev/neofs-node/pkg/core/client"
containerCore "github.com/nspcc-dev/neofs-node/pkg/core/container"
netmapCore "github.com/nspcc-dev/neofs-node/pkg/core/netmap"
Expand Down Expand Up @@ -133,7 +133,7 @@ func initContainerService(c *cfg) {
key: pubKey,
}

loadAccumulator := loadstorage.New(containercontract.CleanupDelta)
loadAccumulator := loadstorage.New(containerrpc.CleanupDelta)

Check warning on line 136 in cmd/neofs-node/container.go

View check run for this annotation

Codecov / codecov/patch

cmd/neofs-node/container.go#L136

Added line #L136 was not covered by tests

addNewEpochAsyncNotificationHandler(c, func(e event.Event) {
ev := e.(netmapEv.NewEpoch)
Expand Down
1 change: 0 additions & 1 deletion contracts/00-nns.manifest.json

This file was deleted.

Binary file removed contracts/00-nns.nef
Binary file not shown.
1 change: 0 additions & 1 deletion contracts/01-proxy.manifest.json

This file was deleted.

Binary file removed contracts/01-proxy.nef
Binary file not shown.
1 change: 0 additions & 1 deletion contracts/02-audit.manifest.json

This file was deleted.

Binary file removed contracts/02-audit.nef
Binary file not shown.
1 change: 0 additions & 1 deletion contracts/03-netmap.manifest.json

This file was deleted.

Binary file removed contracts/03-netmap.nef
Binary file not shown.
1 change: 0 additions & 1 deletion contracts/04-balance.manifest.json

This file was deleted.

Binary file removed contracts/04-balance.nef
Binary file not shown.
1 change: 0 additions & 1 deletion contracts/05-reputation.manifest.json

This file was deleted.

Binary file removed contracts/05-reputation.nef
Binary file not shown.
1 change: 0 additions & 1 deletion contracts/06-neofsid.manifest.json

This file was deleted.

Binary file removed contracts/06-neofsid.nef
Binary file not shown.
Loading

0 comments on commit 13010e8

Please sign in to comment.