[#11] Rename neofs contract to frostfs

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-01-10 15:50:17 +03:00 committed by fyrchik
parent e355442532
commit 19d180b510
28 changed files with 18 additions and 18 deletions

View file

@ -36,7 +36,7 @@ import (
const ( const (
nnsContract = "nns" nnsContract = "nns"
neofsContract = "neofs" // not deployed in side-chain. frostfsContract = "frostfs" // not deployed in side-chain.
processingContract = "processing" // not deployed in side-chain. processingContract = "processing" // not deployed in side-chain.
alphabetContract = "alphabet" alphabetContract = "alphabet"
auditContract = "audit" auditContract = "audit"
@ -80,7 +80,7 @@ var (
} }
fullContractList = append([]string{ fullContractList = append([]string{
neofsContract, frostfsContract,
processingContract, processingContract,
nnsContract, nnsContract,
alphabetContract, alphabetContract,
@ -519,13 +519,13 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []in
items[0] = false // notaryDisabled is false items[0] = false // notaryDisabled is false
switch ctrName { switch ctrName {
case neofsContract: case frostfsContract:
items = append(items, items = append(items,
c.Contracts[processingContract].Hash, c.Contracts[processingContract].Hash,
keysParam, keysParam,
smartcontract.Parameter{}) smartcontract.Parameter{})
case processingContract: case processingContract:
items = append(items, c.Contracts[neofsContract].Hash) items = append(items, c.Contracts[frostfsContract].Hash)
return items[1:] // no notary info return items[1:] // no notary info
case auditContract: case auditContract:
items = append(items, c.Contracts[netmapContract].Hash) items = append(items, c.Contracts[netmapContract].Hash)

View file

@ -13,8 +13,8 @@ import (
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/audit" "github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/audit"
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/balance" "github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/balance"
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/container" "github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/container"
frostfs "github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/frostfs"
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/governance" "github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/governance"
frostfs "github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/neofs"
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap" "github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap"
nodevalidator "github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap/nodevalidation" nodevalidator "github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap/nodevalidation"
addrvalidator "github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap/nodevalidation/maddress" addrvalidator "github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap/nodevalidation/maddress"
@ -29,7 +29,7 @@ import (
auditClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/audit" auditClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/audit"
balanceClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/balance" balanceClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/balance"
cntClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/container" cntClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/container"
frostfsClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/neofs" frostfsClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/frostfs"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/client/neofsid" "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/neofsid"
nmClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap" nmClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap"
repClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/reputation" repClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/reputation"

View file

@ -1,7 +1,7 @@
package balance package balance
import ( import (
neofscontract "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/neofs" frostfsContract "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/frostfs"
balanceEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/balance" balanceEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/balance"
"go.uber.org/zap" "go.uber.org/zap"
) )
@ -14,7 +14,7 @@ func (bp *Processor) processLock(lock *balanceEvent.Lock) {
return return
} }
prm := neofscontract.ChequePrm{} prm := frostfsContract.ChequePrm{}
prm.SetID(lock.ID()) prm.SetID(lock.ID())
prm.SetUser(lock.User()) prm.SetUser(lock.User())

View file

@ -4,7 +4,7 @@ import (
"errors" "errors"
"fmt" "fmt"
frostfscontract "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/neofs" frostfscontract "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/frostfs"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/event" "github.com/TrueCloudLab/frostfs-node/pkg/morph/event"
balanceEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/balance" balanceEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/balance"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger" "github.com/TrueCloudLab/frostfs-node/pkg/util/logger"

View file

@ -4,7 +4,7 @@ import (
"encoding/hex" "encoding/hex"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/event" "github.com/TrueCloudLab/frostfs-node/pkg/morph/event"
frostfsEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/neofs" frostfsEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/frostfs"
"github.com/nspcc-dev/neo-go/pkg/util/slice" "github.com/nspcc-dev/neo-go/pkg/util/slice"
"go.uber.org/zap" "go.uber.org/zap"
) )

View file

@ -2,7 +2,7 @@ package frostfs
import ( import (
"github.com/TrueCloudLab/frostfs-node/pkg/morph/client/balance" "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/balance"
frostfsEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/neofs" frostfsEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/frostfs"
"github.com/nspcc-dev/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"go.uber.org/zap" "go.uber.org/zap"
) )

View file

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/client/neofsid" "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/neofsid"
frostfs "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/neofs" frostfs "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/frostfs"
"github.com/TrueCloudLab/frostfs-sdk-go/user" "github.com/TrueCloudLab/frostfs-sdk-go/user"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/nspcc-dev/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"

View file

@ -2,7 +2,7 @@ package frostfs
import ( import (
nmClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap" nmClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap"
frostfsEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/neofs" frostfsEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/frostfs"
"go.uber.org/zap" "go.uber.org/zap"
) )

View file

@ -10,7 +10,7 @@ import (
"github.com/TrueCloudLab/frostfs-node/pkg/morph/client/neofsid" "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/neofsid"
nmClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap" nmClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/event" "github.com/TrueCloudLab/frostfs-node/pkg/morph/event"
frostfsEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/neofs" frostfsEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/frostfs"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger" "github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
lru "github.com/hashicorp/golang-lru/v2" lru "github.com/hashicorp/golang-lru/v2"
"github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn"

View file

@ -7,7 +7,7 @@ import (
"strings" "strings"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/client" "github.com/TrueCloudLab/frostfs-node/pkg/morph/client"
frostfscontract "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/neofs" frostfscontract "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/frostfs"
nmClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap" nmClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/nspcc-dev/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"

View file

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/client" "github.com/TrueCloudLab/frostfs-node/pkg/morph/client"
frostfscontract "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/neofs" frostfscontract "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/frostfs"
nmClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap" nmClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/event" "github.com/TrueCloudLab/frostfs-node/pkg/morph/event"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/event/rolemanagement" "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/rolemanagement"

View file

@ -10,14 +10,14 @@ import (
// Client is a wrapper over StaticClient // Client is a wrapper over StaticClient
// which makes calls with the names and arguments // which makes calls with the names and arguments
// of the NeoFS contract. // of the FrostFS contract.
// //
// Working client must be created via constructor New. // Working client must be created via constructor New.
// Using the Client that has been created with new(Client) // Using the Client that has been created with new(Client)
// expression (or just declaring a Client variable) is unsafe // expression (or just declaring a Client variable) is unsafe
// and can lead to panic. // and can lead to panic.
type Client struct { type Client struct {
client *client.StaticClient // static NeoFS contract client client *client.StaticClient // static FrostFS contract client
} }
const ( const (