Documentation ¶
Overview ¶
DONTCOVER nolint
Index ¶
Constants ¶
View Source
const (
ModuleName = "docs"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { UUID string `json:"uuid"` Metadata DocumentMetadata `json:"metadata"` ContentURI string `json:"content_uri"` Checksum DocumentChecksum `json:"checksum"` Sender sdk.AccAddress `json:"sender"` Recipient sdk.AccAddress `json:"recipient"` }
type DocumentChecksum ¶
type DocumentMetadata ¶
type DocumentMetadata struct { ContentURI string `json:"content_uri"` SchemaType string `json:"schema_type"` // Optional - Either this or schema must be defined Schema *DocumentMetadataSchema `json:"schema"` // Optional - Either this or schema_type must be defined }
type DocumentMetadataSchema ¶
type DocumentReceipt ¶
type DocumentReceipt struct { Sender sdk.AccAddress `json:"sender"` Recipient sdk.AccAddress `json:"recipient"` TxHash string `json:"tx_hash"` DocumentUUID string `json:"document_uuid"` Proof string `json:"proof"` }
type GenesisState ¶
type GenesisState struct { UsersData []UserData `json:"users_data"` SupportedMetadataSchemes []MetadataSchema `json:"supported_metadata_schemes"` TrustedMetadataSchemaProposers []sdk.AccAddress `json:"trusted_metadata_schema_proposers"` }
v1.1.0 docs genesis state
type MetadataSchema ¶ added in v1.3.0
type UserData ¶
type UserData struct { User sdk.AccAddress `json:"user"` SentDocuments []Document `json:"sent_documents"` ReceivedDocuments []Document `json:"received_documents"` SentReceipts []DocumentReceipt `json:"sent_receipts"` ReceivedReceipts []DocumentReceipt `json:"received_receipts"` }
Click to show internal directories.
Click to hide internal directories.