From fe09cd9c70873a91f07037efa55d21a552d4cd2d Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Sat, 12 Nov 2022 15:59:49 +0300 Subject: [PATCH] [#1502] core: Add `AddressWithType` Signed-off-by: Pavel Karpy --- pkg/core/object/address.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pkg/core/object/address.go diff --git a/pkg/core/object/address.go b/pkg/core/object/address.go new file mode 100644 index 000000000..a91082874 --- /dev/null +++ b/pkg/core/object/address.go @@ -0,0 +1,13 @@ +package object + +import ( + "github.com/nspcc-dev/neofs-sdk-go/object" + oid "github.com/nspcc-dev/neofs-sdk-go/object/id" +) + +// AddressWithType groups object address with its NeoFS +// object type. +type AddressWithType struct { + Address oid.Address + Type object.Type +}