types

package
v0.1.0-xco.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ModuleName        = "entity"
	DefaultParamspace = ModuleName
	StoreKey          = ModuleName
	RouterKey         = ModuleName
	QuerierRoute      = ModuleName
	MemStoreKey       = "mem_entity"
)

Variables

View Source
var (
	KeyNftContractAddress = []byte("NftContractAddress")
	KeyNftContractMinter  = []byte("NftContractMinter")
)
View Source
var (
	ErrInvalidLengthEntity        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEntity          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEntity = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	EntityKey = []byte{0x01}
)
View Source
var (

	// ModuleCdc references the global x/gov module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/gov and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	ProposalTypeInitializeNftContract = "InitializeNftContract"
)

Functions

func NftModuleAddress

func NftModuleAddress() string

func ParamKeyTable

func ParamKeyTable() paramstypes.KeyTable

ParamTable for project module.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type EntityConfigKey

type EntityConfigKey string
const (
	ConfigNftContractAddress EntityConfigKey = "nft_address"
)

type EntityDoc

type EntityDoc struct {
}

// ProjectDoc defines a project (or entity) type with all of its parameters.

func (*EntityDoc) Descriptor

func (*EntityDoc) Descriptor() ([]byte, []int)

func (*EntityDoc) Marshal

func (m *EntityDoc) Marshal() (dAtA []byte, err error)

func (*EntityDoc) MarshalTo

func (m *EntityDoc) MarshalTo(dAtA []byte) (int, error)

func (*EntityDoc) MarshalToSizedBuffer

func (m *EntityDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EntityDoc) ProtoMessage

func (*EntityDoc) ProtoMessage()

func (*EntityDoc) Reset

func (m *EntityDoc) Reset()

func (*EntityDoc) Size

func (m *EntityDoc) Size() (n int)

func (*EntityDoc) String

func (m *EntityDoc) String() string

func (*EntityDoc) Unmarshal

func (m *EntityDoc) Unmarshal(dAtA []byte) error

func (*EntityDoc) XXX_DiscardUnknown

func (m *EntityDoc) XXX_DiscardUnknown()

func (*EntityDoc) XXX_Marshal

func (m *EntityDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntityDoc) XXX_Merge

func (m *EntityDoc) XXX_Merge(src proto.Message)

func (*EntityDoc) XXX_Size

func (m *EntityDoc) XXX_Size() int

func (*EntityDoc) XXX_Unmarshal

func (m *EntityDoc) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	EntityDocs []EntityDoc `protobuf:"bytes,1,rep,name=entity_docs,json=entityDocs,proto3" json:"entity_docs" yaml:"entity_docs"`
	// repeated GenesisAccountMap account_maps       = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"account_maps\""];
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params" yaml:"params"`
}

GenesisState defines the project module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetEntityDocs

func (m *GenesisState) GetEntityDocs() []EntityDoc

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type InitializeNftContract

type InitializeNftContract struct {
	NftContractCodeId uint64 `protobuf:"varint,1,opt,name=NftContractCodeId,proto3" json:"NftCotractCodeId" yaml:"NftCotractCodeId"`
	NftMinterAddress  string `protobuf:"bytes,2,opt,name=NftMinterAddress,proto3" json:"NftMinterAddress" yaml:"NftMinterAddress"`
}

func NewInitializeNftContract

func NewInitializeNftContract(nftContractCodeId uint64, nftminteraddress string) InitializeNftContract

func (*InitializeNftContract) Descriptor

func (*InitializeNftContract) Descriptor() ([]byte, []int)

func (*InitializeNftContract) GetDescription

func (p *InitializeNftContract) GetDescription() string

func (*InitializeNftContract) GetNftContractCodeId

func (m *InitializeNftContract) GetNftContractCodeId() uint64

func (*InitializeNftContract) GetNftMinterAddress

func (m *InitializeNftContract) GetNftMinterAddress() string

func (*InitializeNftContract) GetTitle

func (p *InitializeNftContract) GetTitle() string

func (*InitializeNftContract) Marshal

func (m *InitializeNftContract) Marshal() (dAtA []byte, err error)

func (*InitializeNftContract) MarshalTo

func (m *InitializeNftContract) MarshalTo(dAtA []byte) (int, error)

func (*InitializeNftContract) MarshalToSizedBuffer

func (m *InitializeNftContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InitializeNftContract) ProposalRoute

func (sup *InitializeNftContract) ProposalRoute() string

func (*InitializeNftContract) ProposalType

func (sup *InitializeNftContract) ProposalType() string

func (*InitializeNftContract) ProtoMessage

func (*InitializeNftContract) ProtoMessage()

func (*InitializeNftContract) Reset

func (m *InitializeNftContract) Reset()

func (*InitializeNftContract) Size

func (m *InitializeNftContract) Size() (n int)

func (*InitializeNftContract) String

func (m *InitializeNftContract) String() string

func (*InitializeNftContract) Unmarshal

func (m *InitializeNftContract) Unmarshal(dAtA []byte) error

func (*InitializeNftContract) ValidateBasic

func (sup *InitializeNftContract) ValidateBasic() error

func (*InitializeNftContract) XXX_DiscardUnknown

func (m *InitializeNftContract) XXX_DiscardUnknown()

func (*InitializeNftContract) XXX_Marshal

func (m *InitializeNftContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InitializeNftContract) XXX_Merge

func (m *InitializeNftContract) XXX_Merge(src proto.Message)

func (*InitializeNftContract) XXX_Size

func (m *InitializeNftContract) XXX_Size() int

func (*InitializeNftContract) XXX_Unmarshal

func (m *InitializeNftContract) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// CreateProject defines a method for creating a project.
	CreateEntity(ctx context.Context, in *MsgCreateEntity, opts ...grpc.CallOption) (*MsgCreateEntityResponse, error)
	// UpdateEntityStatus defines a method for updating a entity's current status.
	UpdateEntity(ctx context.Context, in *MsgUpdateEntity, opts ...grpc.CallOption) (*MsgUpdateEntityResponse, error)
	// Transfers an entity and its nft to the recipient
	TransferEntity(ctx context.Context, in *MsgTransferEntity, opts ...grpc.CallOption) (*MsgTransferEntityResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateEntity

type MsgCreateEntity struct {
	// An Entity Type as defined by the implementer
	EntityType string `protobuf:"bytes,1,opt,name=entityType,proto3" json:"entity_type" yaml:"entity_type"`
	// Status of the Entity as defined by the implementer and interpreted by Client applications
	EntityStatus int32 `protobuf:"varint,2,opt,name=entityStatus,proto3" json:"entity_status" yaml:"entity_status"`
	// the list of controller DIDs
	Controller     []string                `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller" yaml:"controller"`
	Context        []*types.Context        `protobuf:"bytes,4,rep,name=context,proto3" json:"context" yaml:"context"`
	Verification   []*types.Verification   `protobuf:"bytes,5,rep,name=verification,proto3" json:"verification" yaml:"verification"`
	Service        []*types.Service        `protobuf:"bytes,6,rep,name=service,proto3" json:"service" yaml:"service"`
	AccordedRight  []*types.AccordedRight  `protobuf:"bytes,7,rep,name=accordedRight,proto3" json:"accorded_right" yaml:"accorded_right"`
	LinkedResource []*types.LinkedResource `protobuf:"bytes,8,rep,name=linkedResource,proto3" json:"linked_resource" yaml:"linked_resource"`
	LinkedEntity   []*types.LinkedEntity   `protobuf:"bytes,9,rep,name=linkedEntity,proto3" json:"linked_entity" yaml:"linked_entity"`
	Deactivated    bool                    `protobuf:"varint,10,opt,name=deactivated,proto3" json:"deactivated" yaml:"deactivated"`
	// Start Date of the Entity as defined by the implementer and interpreted by Client applications
	StartDate *time.Time `protobuf:"bytes,11,opt,name=startDate,proto3,stdtime" json:"start_date" yaml:"start_date"`
	// End Date of the Entity as defined by the implementer and interpreted by Client applications
	EndDate *time.Time `protobuf:"bytes,12,opt,name=endDate,proto3,stdtime" json:"end_date" yaml:"end_date"`
	Stage   string     `protobuf:"bytes,13,opt,name=stage,proto3" json:"stage,omitempty"`
	// DID of the operator through which the Entity was created
	RelayerNode string `protobuf:"bytes,14,opt,name=relayerNode,proto3" json:"relayer_node" yaml:"relayer_node"`
	// Public proof that the Entity is verified
	VerificationStatus string `protobuf:"bytes,15,opt,name=verificationStatus,proto3" json:"verification_status" yaml:"verification_status"`
	// Content ID or Hash of public Verifiable Credentials associated with the  subject
	VerifiableCredential []string                                                         `protobuf:"bytes,16,rep,name=verifiableCredential,proto3" json:"verifiable_credential" yaml:"verifiable_credential"`
	OwnerDid             github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 152-byte string literal not displayed */
	OwnerAddress         string                                                           `protobuf:"bytes,18,opt,name=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"`
	Data                 encoding_json.RawMessage                                         `protobuf:"bytes,19,opt,name=data,proto3,casttype=encoding/json.RawMessage" json:"data,omitempty" yaml:"data"`
}

MsgCreateEntity defines a message for creating a project.

func (*MsgCreateEntity) Descriptor

func (*MsgCreateEntity) Descriptor() ([]byte, []int)

func (MsgCreateEntity) GetIidController

func (msg MsgCreateEntity) GetIidController() iidtypes.DIDFragment

func (MsgCreateEntity) GetSignBytes

func (msg MsgCreateEntity) GetSignBytes() []byte

func (MsgCreateEntity) GetSigners

func (msg MsgCreateEntity) GetSigners() []sdk.AccAddress

func (*MsgCreateEntity) Marshal

func (m *MsgCreateEntity) Marshal() (dAtA []byte, err error)

func (*MsgCreateEntity) MarshalTo

func (m *MsgCreateEntity) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateEntity) MarshalToSizedBuffer

func (m *MsgCreateEntity) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateEntity) ProtoMessage

func (*MsgCreateEntity) ProtoMessage()

func (*MsgCreateEntity) Reset

func (m *MsgCreateEntity) Reset()

func (MsgCreateEntity) Route

func (msg MsgCreateEntity) Route() string

func (msg MsgCreateEntity) Type() string { return TypeMsgCreateEntity }

func (*MsgCreateEntity) Size

func (m *MsgCreateEntity) Size() (n int)

func (*MsgCreateEntity) String

func (m *MsgCreateEntity) String() string

func (*MsgCreateEntity) Unmarshal

func (m *MsgCreateEntity) Unmarshal(dAtA []byte) error

func (MsgCreateEntity) ValidateBasic

func (msg MsgCreateEntity) ValidateBasic() error

func (*MsgCreateEntity) XXX_DiscardUnknown

func (m *MsgCreateEntity) XXX_DiscardUnknown()

func (*MsgCreateEntity) XXX_Marshal

func (m *MsgCreateEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateEntity) XXX_Merge

func (m *MsgCreateEntity) XXX_Merge(src proto.Message)

func (*MsgCreateEntity) XXX_Size

func (m *MsgCreateEntity) XXX_Size() int

func (*MsgCreateEntity) XXX_Unmarshal

func (m *MsgCreateEntity) XXX_Unmarshal(b []byte) error

type MsgCreateEntityResponse

type MsgCreateEntityResponse struct {
	EntityId     string `protobuf:"bytes,1,opt,name=entityId,proto3" json:"entity_id" yaml:"entity_id"`
	EntityType   string `protobuf:"bytes,2,opt,name=entityType,proto3" json:"entity_type" yaml:"entity_type"`
	EntityStatus int32  `protobuf:"varint,3,opt,name=entityStatus,proto3" json:"entity_status" yaml:"entity_status"`
}

MsgCreateProjectResponse defines the Msg/CreateProject response type.

func (*MsgCreateEntityResponse) Descriptor

func (*MsgCreateEntityResponse) Descriptor() ([]byte, []int)

func (*MsgCreateEntityResponse) GetEntityId

func (m *MsgCreateEntityResponse) GetEntityId() string

func (*MsgCreateEntityResponse) GetEntityStatus

func (m *MsgCreateEntityResponse) GetEntityStatus() int32

func (*MsgCreateEntityResponse) GetEntityType

func (m *MsgCreateEntityResponse) GetEntityType() string

func (*MsgCreateEntityResponse) Marshal

func (m *MsgCreateEntityResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateEntityResponse) MarshalTo

func (m *MsgCreateEntityResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateEntityResponse) MarshalToSizedBuffer

func (m *MsgCreateEntityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateEntityResponse) ProtoMessage

func (*MsgCreateEntityResponse) ProtoMessage()

func (*MsgCreateEntityResponse) Reset

func (m *MsgCreateEntityResponse) Reset()

func (*MsgCreateEntityResponse) Size

func (m *MsgCreateEntityResponse) Size() (n int)

func (*MsgCreateEntityResponse) String

func (m *MsgCreateEntityResponse) String() string

func (*MsgCreateEntityResponse) Unmarshal

func (m *MsgCreateEntityResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateEntityResponse) XXX_DiscardUnknown

func (m *MsgCreateEntityResponse) XXX_DiscardUnknown()

func (*MsgCreateEntityResponse) XXX_Marshal

func (m *MsgCreateEntityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateEntityResponse) XXX_Merge

func (m *MsgCreateEntityResponse) XXX_Merge(src proto.Message)

func (*MsgCreateEntityResponse) XXX_Size

func (m *MsgCreateEntityResponse) XXX_Size() int

func (*MsgCreateEntityResponse) XXX_Unmarshal

func (m *MsgCreateEntityResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// CreateProject defines a method for creating a project.
	CreateEntity(context.Context, *MsgCreateEntity) (*MsgCreateEntityResponse, error)
	// UpdateEntityStatus defines a method for updating a entity's current status.
	UpdateEntity(context.Context, *MsgUpdateEntity) (*MsgUpdateEntityResponse, error)
	// Transfers an entity and its nft to the recipient
	TransferEntity(context.Context, *MsgTransferEntity) (*MsgTransferEntityResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTransferEntity

type MsgTransferEntity struct {
	EntityDid    string                                                           `protobuf:"bytes,1,opt,name=entityDid,proto3" json:"entity_did" yaml:"entity_did"`
	OwnerDid     github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 151-byte string literal not displayed */
	OwnerAddress string                                                           `protobuf:"bytes,3,opt,name=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"`
	RecipientDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 163-byte string literal not displayed */
}

func (*MsgTransferEntity) Descriptor

func (*MsgTransferEntity) Descriptor() ([]byte, []int)

func (MsgTransferEntity) GetIidController

func (msg MsgTransferEntity) GetIidController() iidtypes.DIDFragment

func (MsgTransferEntity) GetSignBytes

func (msg MsgTransferEntity) GetSignBytes() []byte

func (MsgTransferEntity) GetSigners

func (msg MsgTransferEntity) GetSigners() []sdk.AccAddress

func (*MsgTransferEntity) Marshal

func (m *MsgTransferEntity) Marshal() (dAtA []byte, err error)

func (*MsgTransferEntity) MarshalTo

func (m *MsgTransferEntity) MarshalTo(dAtA []byte) (int, error)

func (*MsgTransferEntity) MarshalToSizedBuffer

func (m *MsgTransferEntity) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTransferEntity) ProtoMessage

func (*MsgTransferEntity) ProtoMessage()

func (*MsgTransferEntity) Reset

func (m *MsgTransferEntity) Reset()

func (MsgTransferEntity) Route

func (msg MsgTransferEntity) Route() string

func (msg MsgCreateEntity) Type() string { return TypeMsgCreateEntity }

func (*MsgTransferEntity) Size

func (m *MsgTransferEntity) Size() (n int)

func (*MsgTransferEntity) String

func (m *MsgTransferEntity) String() string

func (*MsgTransferEntity) Unmarshal

func (m *MsgTransferEntity) Unmarshal(dAtA []byte) error

func (MsgTransferEntity) ValidateBasic

func (msg MsgTransferEntity) ValidateBasic() error

func (*MsgTransferEntity) XXX_DiscardUnknown

func (m *MsgTransferEntity) XXX_DiscardUnknown()

func (*MsgTransferEntity) XXX_Marshal

func (m *MsgTransferEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTransferEntity) XXX_Merge

func (m *MsgTransferEntity) XXX_Merge(src proto.Message)

func (*MsgTransferEntity) XXX_Size

func (m *MsgTransferEntity) XXX_Size() int

func (*MsgTransferEntity) XXX_Unmarshal

func (m *MsgTransferEntity) XXX_Unmarshal(b []byte) error

type MsgTransferEntityResponse

type MsgTransferEntityResponse struct {
}

MsgUpdateProjectStatusResponse defines the Msg/UpdateEntityStatus response type.

func (*MsgTransferEntityResponse) Descriptor

func (*MsgTransferEntityResponse) Descriptor() ([]byte, []int)

func (*MsgTransferEntityResponse) Marshal

func (m *MsgTransferEntityResponse) Marshal() (dAtA []byte, err error)

func (*MsgTransferEntityResponse) MarshalTo

func (m *MsgTransferEntityResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgTransferEntityResponse) MarshalToSizedBuffer

func (m *MsgTransferEntityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTransferEntityResponse) ProtoMessage

func (*MsgTransferEntityResponse) ProtoMessage()

func (*MsgTransferEntityResponse) Reset

func (m *MsgTransferEntityResponse) Reset()

func (*MsgTransferEntityResponse) Size

func (m *MsgTransferEntityResponse) Size() (n int)

func (*MsgTransferEntityResponse) String

func (m *MsgTransferEntityResponse) String() string

func (*MsgTransferEntityResponse) Unmarshal

func (m *MsgTransferEntityResponse) Unmarshal(dAtA []byte) error

func (*MsgTransferEntityResponse) XXX_DiscardUnknown

func (m *MsgTransferEntityResponse) XXX_DiscardUnknown()

func (*MsgTransferEntityResponse) XXX_Marshal

func (m *MsgTransferEntityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTransferEntityResponse) XXX_Merge

func (m *MsgTransferEntityResponse) XXX_Merge(src proto.Message)

func (*MsgTransferEntityResponse) XXX_Size

func (m *MsgTransferEntityResponse) XXX_Size() int

func (*MsgTransferEntityResponse) XXX_Unmarshal

func (m *MsgTransferEntityResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateEntity

type MsgUpdateEntity struct {
	// The status of the entity. Should represent an enum in the client.
	Status      int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Deactivated bool  `protobuf:"varint,2,opt,name=deactivated,proto3" json:"deactivated" yaml:"deactivated"`
	// refer to iid module for more information
	StartDate *time.Time `protobuf:"bytes,3,opt,name=startDate,proto3,stdtime" json:"start_date" yaml:"start_date"`
	// refer to iid module for more information
	EndDate *time.Time `protobuf:"bytes,4,opt,name=endDate,proto3,stdtime" json:"end_date" yaml:"end_date"`
	Stage   string     `protobuf:"bytes,5,opt,name=stage,proto3" json:"stage,omitempty"`
	// refer to iid module for more information
	RelayerNode string `protobuf:"bytes,6,opt,name=relayerNode,proto3" json:"relayer_node" yaml:"relayer_node"`
	// refer to iid module for more information
	VerifiableCredential string                                                           `protobuf:"bytes,7,opt,name=verifiableCredential,proto3" json:"verifiable_credential" yaml:"verifiable_credential"`
	ControllerDid        github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 166-byte string literal not displayed */
	ControllerAddress    string                                                           `protobuf:"bytes,9,opt,name=controllerAddress,proto3" json:"controller_address" yaml:"controller_address"`
}

MsgUpdateEntityStatus defines a message for updating a entity's current status.

func (*MsgUpdateEntity) Descriptor

func (*MsgUpdateEntity) Descriptor() ([]byte, []int)

func (MsgUpdateEntity) GetIidController

func (msg MsgUpdateEntity) GetIidController() iidtypes.DIDFragment

func (MsgUpdateEntity) GetSignBytes

func (msg MsgUpdateEntity) GetSignBytes() []byte

func (MsgUpdateEntity) GetSigners

func (msg MsgUpdateEntity) GetSigners() []sdk.AccAddress

func (*MsgUpdateEntity) Marshal

func (m *MsgUpdateEntity) Marshal() (dAtA []byte, err error)

func (*MsgUpdateEntity) MarshalTo

func (m *MsgUpdateEntity) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateEntity) MarshalToSizedBuffer

func (m *MsgUpdateEntity) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateEntity) ProtoMessage

func (*MsgUpdateEntity) ProtoMessage()

func (*MsgUpdateEntity) Reset

func (m *MsgUpdateEntity) Reset()

func (MsgUpdateEntity) Route

func (msg MsgUpdateEntity) Route() string

func (msg MsgCreateEntity) Type() string { return TypeMsgCreateEntity }

func (*MsgUpdateEntity) Size

func (m *MsgUpdateEntity) Size() (n int)

func (*MsgUpdateEntity) String

func (m *MsgUpdateEntity) String() string

func (*MsgUpdateEntity) Unmarshal

func (m *MsgUpdateEntity) Unmarshal(dAtA []byte) error

func (MsgUpdateEntity) ValidateBasic

func (msg MsgUpdateEntity) ValidateBasic() error

func (*MsgUpdateEntity) XXX_DiscardUnknown

func (m *MsgUpdateEntity) XXX_DiscardUnknown()

func (*MsgUpdateEntity) XXX_Marshal

func (m *MsgUpdateEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateEntity) XXX_Merge

func (m *MsgUpdateEntity) XXX_Merge(src proto.Message)

func (*MsgUpdateEntity) XXX_Size

func (m *MsgUpdateEntity) XXX_Size() int

func (*MsgUpdateEntity) XXX_Unmarshal

func (m *MsgUpdateEntity) XXX_Unmarshal(b []byte) error

type MsgUpdateEntityResponse

type MsgUpdateEntityResponse struct {
}

MsgUpdateProjectStatusResponse defines the Msg/UpdateEntityStatus response type.

func (*MsgUpdateEntityResponse) Descriptor

func (*MsgUpdateEntityResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateEntityResponse) Marshal

func (m *MsgUpdateEntityResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateEntityResponse) MarshalTo

func (m *MsgUpdateEntityResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateEntityResponse) MarshalToSizedBuffer

func (m *MsgUpdateEntityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateEntityResponse) ProtoMessage

func (*MsgUpdateEntityResponse) ProtoMessage()

func (*MsgUpdateEntityResponse) Reset

func (m *MsgUpdateEntityResponse) Reset()

func (*MsgUpdateEntityResponse) Size

func (m *MsgUpdateEntityResponse) Size() (n int)

func (*MsgUpdateEntityResponse) String

func (m *MsgUpdateEntityResponse) String() string

func (*MsgUpdateEntityResponse) Unmarshal

func (m *MsgUpdateEntityResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateEntityResponse) XXX_DiscardUnknown

func (m *MsgUpdateEntityResponse) XXX_DiscardUnknown()

func (*MsgUpdateEntityResponse) XXX_Marshal

func (m *MsgUpdateEntityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateEntityResponse) XXX_Merge

func (m *MsgUpdateEntityResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateEntityResponse) XXX_Size

func (m *MsgUpdateEntityResponse) XXX_Size() int

func (*MsgUpdateEntityResponse) XXX_Unmarshal

func (m *MsgUpdateEntityResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	NftContractAddress string `protobuf:"bytes,1,opt,name=NftContractAddress,proto3" json:"NftContractAddress" yaml:"NftContractAddress"`
	NftContractMinter  string `protobuf:"bytes,2,opt,name=NftContractMinter,proto3" json:"NftContractMinter" yaml:"NftContractMinter"`
}

func DefaultParams

func DefaultParams() Params

default project module parameters

func NewParams

func NewParams(nftContractAddress string, nftContractMinter string) Params

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetNftContractAddress

func (m *Params) GetNftContractAddress() string

func (*Params) GetNftContractMinter

func (m *Params) GetNftContractMinter() string

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs

Implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryClient

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryEntityConfigRequest

type QueryEntityConfigRequest struct {
}

func (*QueryEntityConfigRequest) Descriptor

func (*QueryEntityConfigRequest) Descriptor() ([]byte, []int)

func (*QueryEntityConfigRequest) Marshal

func (m *QueryEntityConfigRequest) Marshal() (dAtA []byte, err error)

func (*QueryEntityConfigRequest) MarshalTo

func (m *QueryEntityConfigRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryEntityConfigRequest) MarshalToSizedBuffer

func (m *QueryEntityConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEntityConfigRequest) ProtoMessage

func (*QueryEntityConfigRequest) ProtoMessage()

func (*QueryEntityConfigRequest) Reset

func (m *QueryEntityConfigRequest) Reset()

func (*QueryEntityConfigRequest) Size

func (m *QueryEntityConfigRequest) Size() (n int)

func (*QueryEntityConfigRequest) String

func (m *QueryEntityConfigRequest) String() string

func (*QueryEntityConfigRequest) Unmarshal

func (m *QueryEntityConfigRequest) Unmarshal(dAtA []byte) error

func (*QueryEntityConfigRequest) XXX_DiscardUnknown

func (m *QueryEntityConfigRequest) XXX_DiscardUnknown()

func (*QueryEntityConfigRequest) XXX_Marshal

func (m *QueryEntityConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEntityConfigRequest) XXX_Merge

func (m *QueryEntityConfigRequest) XXX_Merge(src proto.Message)

func (*QueryEntityConfigRequest) XXX_Size

func (m *QueryEntityConfigRequest) XXX_Size() int

func (*QueryEntityConfigRequest) XXX_Unmarshal

func (m *QueryEntityConfigRequest) XXX_Unmarshal(b []byte) error

type QueryEntityConfigResponse

type QueryEntityConfigResponse struct {
	Map map[string]string `` /* 161-byte string literal not displayed */
}

// QueryProjectDocResponse is the response type for the Query/ProjectDoc RPC method.

func (*QueryEntityConfigResponse) Descriptor

func (*QueryEntityConfigResponse) Descriptor() ([]byte, []int)

func (*QueryEntityConfigResponse) GetMap

func (m *QueryEntityConfigResponse) GetMap() map[string]string

func (*QueryEntityConfigResponse) Marshal

func (m *QueryEntityConfigResponse) Marshal() (dAtA []byte, err error)

func (*QueryEntityConfigResponse) MarshalTo

func (m *QueryEntityConfigResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryEntityConfigResponse) MarshalToSizedBuffer

func (m *QueryEntityConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEntityConfigResponse) ProtoMessage

func (*QueryEntityConfigResponse) ProtoMessage()

func (*QueryEntityConfigResponse) Reset

func (m *QueryEntityConfigResponse) Reset()

func (*QueryEntityConfigResponse) Size

func (m *QueryEntityConfigResponse) Size() (n int)

func (*QueryEntityConfigResponse) String

func (m *QueryEntityConfigResponse) String() string

func (*QueryEntityConfigResponse) Unmarshal

func (m *QueryEntityConfigResponse) Unmarshal(dAtA []byte) error

func (*QueryEntityConfigResponse) XXX_DiscardUnknown

func (m *QueryEntityConfigResponse) XXX_DiscardUnknown()

func (*QueryEntityConfigResponse) XXX_Marshal

func (m *QueryEntityConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEntityConfigResponse) XXX_Merge

func (m *QueryEntityConfigResponse) XXX_Merge(src proto.Message)

func (*QueryEntityConfigResponse) XXX_Size

func (m *QueryEntityConfigResponse) XXX_Size() int

func (*QueryEntityConfigResponse) XXX_Unmarshal

func (m *QueryEntityConfigResponse) XXX_Unmarshal(b []byte) error

type QueryEntityDocRequest

type QueryEntityDocRequest struct {
	EntityDid string `protobuf:"bytes,1,opt,name=entity_did,json=entityDid,proto3" json:"entity_did,omitempty" yaml:"entity_did"`
}

QueryProjectDocRequest is the request type for the Query/ProjectDoc RPC method.

func (*QueryEntityDocRequest) Descriptor

func (*QueryEntityDocRequest) Descriptor() ([]byte, []int)

func (*QueryEntityDocRequest) GetEntityDid

func (m *QueryEntityDocRequest) GetEntityDid() string

func (*QueryEntityDocRequest) Marshal

func (m *QueryEntityDocRequest) Marshal() (dAtA []byte, err error)

func (*QueryEntityDocRequest) MarshalTo

func (m *QueryEntityDocRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryEntityDocRequest) MarshalToSizedBuffer

func (m *QueryEntityDocRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEntityDocRequest) ProtoMessage

func (*QueryEntityDocRequest) ProtoMessage()

func (*QueryEntityDocRequest) Reset

func (m *QueryEntityDocRequest) Reset()

func (*QueryEntityDocRequest) Size

func (m *QueryEntityDocRequest) Size() (n int)

func (*QueryEntityDocRequest) String

func (m *QueryEntityDocRequest) String() string

func (*QueryEntityDocRequest) Unmarshal

func (m *QueryEntityDocRequest) Unmarshal(dAtA []byte) error

func (*QueryEntityDocRequest) XXX_DiscardUnknown

func (m *QueryEntityDocRequest) XXX_DiscardUnknown()

func (*QueryEntityDocRequest) XXX_Marshal

func (m *QueryEntityDocRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEntityDocRequest) XXX_Merge

func (m *QueryEntityDocRequest) XXX_Merge(src proto.Message)

func (*QueryEntityDocRequest) XXX_Size

func (m *QueryEntityDocRequest) XXX_Size() int

func (*QueryEntityDocRequest) XXX_Unmarshal

func (m *QueryEntityDocRequest) XXX_Unmarshal(b []byte) error

type QueryEntityDocResponse

type QueryEntityDocResponse struct {
}

// QueryProjectDocResponse is the response type for the Query/ProjectDoc RPC method.

func (*QueryEntityDocResponse) Descriptor

func (*QueryEntityDocResponse) Descriptor() ([]byte, []int)

func (*QueryEntityDocResponse) Marshal

func (m *QueryEntityDocResponse) Marshal() (dAtA []byte, err error)

func (*QueryEntityDocResponse) MarshalTo

func (m *QueryEntityDocResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryEntityDocResponse) MarshalToSizedBuffer

func (m *QueryEntityDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEntityDocResponse) ProtoMessage

func (*QueryEntityDocResponse) ProtoMessage()

func (*QueryEntityDocResponse) Reset

func (m *QueryEntityDocResponse) Reset()

func (*QueryEntityDocResponse) Size

func (m *QueryEntityDocResponse) Size() (n int)

func (*QueryEntityDocResponse) String

func (m *QueryEntityDocResponse) String() string

func (*QueryEntityDocResponse) Unmarshal

func (m *QueryEntityDocResponse) Unmarshal(dAtA []byte) error

func (*QueryEntityDocResponse) XXX_DiscardUnknown

func (m *QueryEntityDocResponse) XXX_DiscardUnknown()

func (*QueryEntityDocResponse) XXX_Marshal

func (m *QueryEntityDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEntityDocResponse) XXX_Merge

func (m *QueryEntityDocResponse) XXX_Merge(src proto.Message)

func (*QueryEntityDocResponse) XXX_Size

func (m *QueryEntityDocResponse) XXX_Size() int

func (*QueryEntityDocResponse) XXX_Unmarshal

func (m *QueryEntityDocResponse) XXX_Unmarshal(b []byte) error

type QueryEntityListRequest

type QueryEntityListRequest struct {
	EntityType   string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty" yaml:"entity_type"`
	EntityStatus string `protobuf:"bytes,2,opt,name=entity_status,json=entityStatus,proto3" json:"entity_status,omitempty" yaml:"entity_status"`
}

func (*QueryEntityListRequest) Descriptor

func (*QueryEntityListRequest) Descriptor() ([]byte, []int)

func (*QueryEntityListRequest) GetEntityStatus

func (m *QueryEntityListRequest) GetEntityStatus() string

func (*QueryEntityListRequest) GetEntityType

func (m *QueryEntityListRequest) GetEntityType() string

func (*QueryEntityListRequest) Marshal

func (m *QueryEntityListRequest) Marshal() (dAtA []byte, err error)

func (*QueryEntityListRequest) MarshalTo

func (m *QueryEntityListRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryEntityListRequest) MarshalToSizedBuffer

func (m *QueryEntityListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEntityListRequest) ProtoMessage

func (*QueryEntityListRequest) ProtoMessage()

func (*QueryEntityListRequest) Reset

func (m *QueryEntityListRequest) Reset()

func (*QueryEntityListRequest) Size

func (m *QueryEntityListRequest) Size() (n int)

func (*QueryEntityListRequest) String

func (m *QueryEntityListRequest) String() string

func (*QueryEntityListRequest) Unmarshal

func (m *QueryEntityListRequest) Unmarshal(dAtA []byte) error

func (*QueryEntityListRequest) XXX_DiscardUnknown

func (m *QueryEntityListRequest) XXX_DiscardUnknown()

func (*QueryEntityListRequest) XXX_Marshal

func (m *QueryEntityListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEntityListRequest) XXX_Merge

func (m *QueryEntityListRequest) XXX_Merge(src proto.Message)

func (*QueryEntityListRequest) XXX_Size

func (m *QueryEntityListRequest) XXX_Size() int

func (*QueryEntityListRequest) XXX_Unmarshal

func (m *QueryEntityListRequest) XXX_Unmarshal(b []byte) error

type QueryEntityListResponse

type QueryEntityListResponse struct {
}

// QueryProjectDocResponse is the response type for the Query/ProjectDoc RPC method.

func (*QueryEntityListResponse) Descriptor

func (*QueryEntityListResponse) Descriptor() ([]byte, []int)

func (*QueryEntityListResponse) Marshal

func (m *QueryEntityListResponse) Marshal() (dAtA []byte, err error)

func (*QueryEntityListResponse) MarshalTo

func (m *QueryEntityListResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryEntityListResponse) MarshalToSizedBuffer

func (m *QueryEntityListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEntityListResponse) ProtoMessage

func (*QueryEntityListResponse) ProtoMessage()

func (*QueryEntityListResponse) Reset

func (m *QueryEntityListResponse) Reset()

func (*QueryEntityListResponse) Size

func (m *QueryEntityListResponse) Size() (n int)

func (*QueryEntityListResponse) String

func (m *QueryEntityListResponse) String() string

func (*QueryEntityListResponse) Unmarshal

func (m *QueryEntityListResponse) Unmarshal(dAtA []byte) error

func (*QueryEntityListResponse) XXX_DiscardUnknown

func (m *QueryEntityListResponse) XXX_DiscardUnknown()

func (*QueryEntityListResponse) XXX_Marshal

func (m *QueryEntityListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEntityListResponse) XXX_Merge

func (m *QueryEntityListResponse) XXX_Merge(src proto.Message)

func (*QueryEntityListResponse) XXX_Size

func (m *QueryEntityListResponse) XXX_Size() int

func (*QueryEntityListResponse) XXX_Unmarshal

func (m *QueryEntityListResponse) XXX_Unmarshal(b []byte) error

type QueryServer

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateEntity

func (*UnimplementedMsgServer) TransferEntity

func (*UnimplementedMsgServer) UpdateEntity

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) EntityConfig

func (*UnimplementedQueryServer) EntityDoc

func (*UnimplementedQueryServer) EntityList

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL