types

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 42 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// PrefixScope is the address human readable prefix used with bech32 encoding of Scope IDs
	PrefixScope = "scope"
	// PrefixGroup is the address human readable prefix used with bech32 encoding of Group IDs
	PrefixGroup = "group"
	// PrefixRecord is the address human readable prefix used with bech32 encoding of Record IDs
	PrefixRecord = "record"

	// PrefixScopeSpecification is the address human readable prefix used with bech32 encoding of ScopeSpecification IDs
	PrefixScopeSpecification = "scopespec"
	// PrefixContractSpecification is the address human readable prefix used with bech32 encoding of ContractSpecification IDs
	PrefixContractSpecification = "contractspec"
	// PrefixRecordSpecification is the address human readable prefix used with bech32 encoding of RecordSpecification IDs
	PrefixRecordSpecification = "recspec"
)
View Source
const (
	// EventTypeScopeCreated is the event type generated when new scopes are created.
	EventTypeScopeCreated string = "scope_created"
	// EventTypeScopeUpdated is the event type generated when existing scopes are updated.
	EventTypeScopeUpdated string = "scope_updated"
	// EventTypeScopeOwnership is the event type generated when existing scopes have a change ownership request processed.
	EventTypeScopeOwnership string = "scope_ownership"
	// EventTypeScopeRemoved is the event type generated when a scope is removed
	EventTypeScopeRemoved string = "scope_removed"

	// EventTypeGroupCreated is the event type generated when new record groups are created.
	EventTypeGroupCreated string = "group_created"
	// EventTypeGroupUpdated is the event type generated when existing record groups are updated.
	EventTypeGroupUpdated string = "group_updated"
	// EventTypeGroupRemoved is the event type generated when a scope is removed
	EventTypeGroupRemoved string = "group_removed"

	// EventTypeRecordCreated is the event type generated when new record groups are created.
	EventTypeRecordCreated string = "record_created"
	// EventTypeRecordUpdated is the event type generated when existing record groups are updated.
	EventTypeRecordUpdated string = "record_updated"
	// EventTypeRecordRemoved is the event type generated when a scope is removed
	EventTypeRecordRemoved string = "record_removed"

	// EventTypeScopeSpecificationCreated is the event type generated when a new scope specification is created.
	EventTypeScopeSpecificationCreated string = "scope_specification_created"
	// EventTypeScopeSpecificationUpdated is the event type generated when an existing scope specifications is updated.
	EventTypeScopeSpecificationUpdated string = "scope_specification_updated"
	// EventTypeScopeSpecificationRemoved is the event type generated when a scope specification is removed.
	EventTypeScopeSpecificationRemoved string = "scope_specification_removed"

	// EventTypeContractSpecificationCreated is the event type generated when a new contract specification is created.
	EventTypeContractSpecificationCreated string = "contract_specification_created"
	// EventTypeContractSpecificationUpdated is the event type generated when an existing contract specifications is updated.
	EventTypeContractSpecificationUpdated string = "contract_specification_updated"
	// EventTypeContractSpecificationRemoved is the event type generated when a contract specification is removed.
	EventTypeContractSpecificationRemoved string = "contract_specification_removed"

	// AttributeKeyScopeID is the attribute key for a scope ID attribute JSON value.
	AttributeKeyScopeID string = "scope_id"
	// AttributeKeyScope is the attribute key for a scope attribute JSON value.
	AttributeKeyScope string = "scope"
	// AttributeKeyGroupID is the attribute key for a scope ID attribute JSON value.
	AttributeKeyGroupID string = "group_id"
	// AttributeKeyRecordID is the attribute key for a record ID attribute JSON value.
	AttributeKeyRecordID string = "record_id"
	// AttributeKeyExecutionID is the attribute key for a scope ID attribute JSON value.
	AttributeKeyExecutionID string = "execution_id"
	// AttributeKeyModuleName is the attribute key for this module.
	AttributeKeyModuleName string = "module"
	// AttributeKeyTxHash is the attribute for the transaction hash.
	AttributeKeyTxHash = "tx_hash"
	// AttributeKeyScopeID is the attribute key for a scope ID attribute JSON value.
	AttributeKeyScopeSpecID string = "scope_spec_id"
	// AttributeKeyScope is the attribute key for a scope attribute JSON value.
	AttributeKeyScopeSpec string = "scope_spec"

	// AttributeValueCategory indicates the category for this value
	AttributeValueCategory = ModuleName
)
View Source
const (
	// ModuleName is the name of the module
	ModuleName = "metadata"

	// StoreKey is string representation of the store key for metadata
	StoreKey = ModuleName

	// RouterKey to be used for routing msgs
	RouterKey = ModuleName

	// QuerierRoute to be used for queries
	QuerierRoute = ModuleName

	// CoinPoolName to be used for coin pool associated with mint/burn activities.
	CoinPoolName = ModuleName

	// DefaultParamspace is the name used for the parameter subspace for this module.
	DefaultParamspace = ModuleName
)
View Source
const (
	TypeMsgMemorializeContractRequest         = "memorialize_contract_request"
	TypeMsgChangeOwnershipRequest             = "change_ownership_request"
	TypeMsgAddScopeRequest                    = "add_scope_request"
	TypeMsgDeleteScopeRequest                 = "delete_scope_request"
	TypeMsgAddRecordGroupRequest              = "add_recordgroup_request"
	TypeMsgAddRecordRequest                   = "add_record_request"
	TypeMsgAddScopeSpecificationRequest       = "add_scope_specification_request"
	TypeMsgDeleteScopeSpecificationRequest    = "delete_scope_specification_request"
	TypeMsgAddContractSpecificationRequest    = "add_contract_specification_request"
	TypeMsgDeleteContractSpecificationRequest = "delete_contract_specification_request"
)
View Source
const (
	QueryScope     = "scope"
	QueryOwnership = "ownership"
	QueryParams    = "params"
	QueryScopeSpec = "scopespec"
)

query endpoints supported by the auth Querier

Variables

View Source
var (
	ErrInvalidLengthContract        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowContract          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupContract = 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 (
	// ScopeKeyPrefix is the key for scope records in metadata store
	ScopeKeyPrefix = []byte{0x00}
	// GroupKeyPrefix is the key for group records in metadata store
	GroupKeyPrefix = []byte{0x01}
	// RecordKeyPrefix is the key for records within scopes in metadata store
	RecordKeyPrefix = []byte{0x02}
	// ContractSpecificationKeyPrefix is the key for group specification instances in metadata store
	ContractSpecificationKeyPrefix = []byte{0x03}
	// ScopeSpecificationKeyPrefix is the key for scope specifications in metadata store
	ScopeSpecificationKeyPrefix = []byte{0x04}
	// RecordSpecificationKeyPrefix is the key for record specifications in metadata store
	RecordSpecificationKeyPrefix = []byte{0x05}

	// AddressScopeCacheKeyPrefix for scope to address cache lookup
	AddressScopeCacheKeyPrefix = []byte{0x10}
	// ScopeSpecScopeCacheKeyPrefix for scope to scope specification cache lookup
	ScopeSpecScopeCacheKeyPrefix = []byte{0x11}
	// ValueOwnerScopeCacheKeyPrefix for scope to value owner address cache lookup
	ValueOwnerScopeCacheKeyPrefix = []byte{0x12}

	// AddressScopeSpecCacheKeyPrefix for scope spec lookup by address
	AddressScopeSpecCacheKeyPrefix = []byte{0x13}
	// ContractSpecScopeSpecCacheKeyPrefix for scope spec lookup by contract spec
	ContractSpecScopeSpecCacheKeyPrefix = []byte{0x14}
	// AddressContractSpecCacheKeyPrefix for contract spec lookup by address
	AddressContractSpecCacheKeyPrefix = []byte{0x15}
)

KVStore Key Prefixes used for iterator/scans against the store and identification of key types Items are stored with the following key: values these keys are handled using the MetadataAddress class.

- 0x00<scope_key_bytes>: Scope

- 0x01<scope_key_bytes><group_id_bytes>: RecordGroup

- 0x02<scope_key_bytes><record_name_bytes>: Record

- 0x03<group_specification_hash>: ContractSpecification

- 0x04<scope_specification_id_bytes>: ScopeSpecification

- 0x10<party_address><scope_key_bytes>: 0x01

- 0x11<scope_spec_id><scope_id>: 0x01

- 0x12<value_owner_address><scope_id>: 0x01

- 0x13<owner_address><scope_spec_id>: 0x01

- 0x14<contract_spec_id><scope_spec_id>: 0x01

- 0x15<owner_address><contract_spec_id>: 0x01

View Source
var (
	ErrInvalidLengthMetadata        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMetadata          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMetadata = 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 (
	ErrInvalidLengthScope        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowScope          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupScope = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSpecification        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSpecification          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSpecification = 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 DefinitionType_name = map[int32]string{
	0: "DEFINITION_TYPE_UNSPECIFIED",
	1: "DEFINITION_TYPE_PROPOSED",
	2: "DEFINITION_TYPE_RECORD",
	3: "DEFINITION_TYPE_RECORD_LIST",
}
View Source
var DefinitionType_value = map[string]int32{
	"DEFINITION_TYPE_UNSPECIFIED": 0,
	"DEFINITION_TYPE_PROPOSED":    1,
	"DEFINITION_TYPE_RECORD":      2,
	"DEFINITION_TYPE_RECORD_LIST": 3,
}
View Source
var (

	// ModuleCdc references the global x/metadata 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/metadata and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var PartyType_name = map[int32]string{
	0: "PARTY_TYPE_UNSPECIFIED",
	1: "PARTY_TYPE_ORIGINATOR",
	2: "PARTY_TYPE_SERVICER",
	3: "PARTY_TYPE_INVESTOR",
	4: "PARTY_TYPE_CUSTODIAN",
	5: "PARTY_TYPE_OWNER",
	6: "PARTY_TYPE_AFFILIATE",
	7: "PARTY_TYPE_OMNIBUS",
	8: "PARTY_TYPE_PROVENANCE",
}
View Source
var PartyType_value = map[string]int32{
	"PARTY_TYPE_UNSPECIFIED": 0,
	"PARTY_TYPE_ORIGINATOR":  1,
	"PARTY_TYPE_SERVICER":    2,
	"PARTY_TYPE_INVESTOR":    3,
	"PARTY_TYPE_CUSTODIAN":   4,
	"PARTY_TYPE_OWNER":       5,
	"PARTY_TYPE_AFFILIATE":   6,
	"PARTY_TYPE_OMNIBUS":     7,
	"PARTY_TYPE_PROVENANCE":  8,
}
View Source
var RecordInputStatus_name = map[int32]string{
	0: "RECORD_INPUT_STATUS_UNSPECIFIED",
	1: "RECORD_INPUT_STATUS_PROPOSED",
	2: "RECORD_INPUT_STATUS_RECORD",
}
View Source
var RecordInputStatus_value = map[string]int32{
	"RECORD_INPUT_STATUS_UNSPECIFIED": 0,
	"RECORD_INPUT_STATUS_PROPOSED":    1,
	"RECORD_INPUT_STATUS_RECORD":      2,
}
View Source
var ResultStatus_name = map[int32]string{
	0: "RESULT_STATUS_UNSPECIFIED",
	1: "RESULT_STATUS_PASS",
	2: "RESULT_STATUS_SKIP",
	3: "RESULT_STATUS_FAIL",
}
View Source
var ResultStatus_value = map[string]int32{
	"RESULT_STATUS_UNSPECIFIED": 0,
	"RESULT_STATUS_PASS":        1,
	"RESULT_STATUS_SKIP":        2,
	"RESULT_STATUS_FAIL":        3,
}
View Source
var ResultType_name = map[int32]string{
	0: "RESULT_TYPE_UNSPECIFIED",
	1: "RESULT_TYPE_PASS",
	2: "RESULT_TYPE_SKIP",
	3: "RESULT_TYPE_FAIL",
}
View Source
var ResultType_value = map[string]int32{
	"RESULT_TYPE_UNSPECIFIED": 0,
	"RESULT_TYPE_PASS":        1,
	"RESULT_TYPE_SKIP":        2,
	"RESULT_TYPE_FAIL":        3,
}

Functions

func GetAddressContractSpecCacheIteratorPrefix added in v0.1.5

func GetAddressContractSpecCacheIteratorPrefix(addr sdk.AccAddress) []byte

GetAddressContractSpecCacheIteratorPrefix returns an iterator prefix for all contract spec cache entries assigned to a given address

func GetAddressContractSpecCacheKey added in v0.1.5

func GetAddressContractSpecCacheKey(addr sdk.AccAddress, contractSpecID MetadataAddress) []byte

GetAddressContractSpecCacheKey returns the store key for an address + contract spec cache entry

func GetAddressScopeCacheIteratorPrefix added in v0.1.5

func GetAddressScopeCacheIteratorPrefix(addr sdk.AccAddress) []byte

GetAddressScopeCacheIteratorPrefix returns an iterator prefix for all scope cache entries assigned to a given address

func GetAddressScopeCacheKey added in v0.1.5

func GetAddressScopeCacheKey(addr sdk.AccAddress, scopeID MetadataAddress) []byte

GetAddressScopeCacheKey returns the store key for an address cache entry

func GetAddressScopeSpecCacheIteratorPrefix added in v0.1.5

func GetAddressScopeSpecCacheIteratorPrefix(addr sdk.AccAddress) []byte

GetAddressScopeSpecCacheIteratorPrefix returns an iterator prefix for all scope spec cache entries assigned to a given address

func GetAddressScopeSpecCacheKey added in v0.1.5

func GetAddressScopeSpecCacheKey(addr sdk.AccAddress, scopeSpecID MetadataAddress) []byte

GetAddressScopeSpecCacheKey returns the store key for an address + scope spec cache entry

func GetContractSpecScopeSpecCacheIteratorPrefix added in v0.1.5

func GetContractSpecScopeSpecCacheIteratorPrefix(contractSpecID MetadataAddress) []byte

GetContractSpecScopeSpecCacheIteratorPrefix returns an iterator prefix for all scope spec cache entries assigned to a given contract spec

func GetContractSpecScopeSpecCacheKey added in v0.1.5

func GetContractSpecScopeSpecCacheKey(contractSpecID MetadataAddress, scopeSpecID MetadataAddress) []byte

GetContractSpecScopeSpecCacheKey returns the store key for a contract spec + scope spec cache entry

func GetScopeSpecScopeCacheIteratorPrefix added in v0.1.5

func GetScopeSpecScopeCacheIteratorPrefix(scopeSpecID MetadataAddress) []byte

GetScopeSpecScopeCacheIteratorPrefix returns an iterator prefix for all scope cache entries assigned to a given address

func GetScopeSpecScopeCacheKey added in v0.1.5

func GetScopeSpecScopeCacheKey(scopeSpecID MetadataAddress, scopeID MetadataAddress) []byte

GetScopeSpecScopeCacheKey returns the store key for an address cache entry

func GetValueOwnerScopeCacheIteratorPrefix added in v0.1.5

func GetValueOwnerScopeCacheIteratorPrefix(addr sdk.AccAddress) []byte

GetValueOwnerScopeCacheIteratorPrefix returns an iterator prefix for all scope cache entries assigned to a given address

func GetValueOwnerScopeCacheKey added in v0.1.5

func GetValueOwnerScopeCacheKey(addr sdk.AccAddress, scopeID MetadataAddress) []byte

GetValueOwnerScopeCacheKey returns the store key for an address cache entry

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for metadata module

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers implementations for the tx messages

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers concrete types on the Amino codec

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func VerifyMetadataAddressFormat

func VerifyMetadataAddressFormat(bz []byte) (string, error)

VerifyMetadataAddressFormat checks a sequence of bytes for proper format as a MetadataAddress instance returns the associated bech32 hrp/type name or any errors encountered during verification

Types

type AuditFields

type AuditFields struct {
	// the date/time when this entry was created
	CreatedDate time.Time `protobuf:"bytes,1,opt,name=created_date,json=createdDate,proto3,stdtime" json:"created_date" yaml:"created_date"`
	// the address of the account that created this record
	CreatedBy string `protobuf:"bytes,2,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty" yaml:"created_by"`
	// the date/time when this entry was last updated
	UpdatedDate time.Time `protobuf:"bytes,3,opt,name=updated_date,json=updatedDate,proto3,stdtime" json:"updated_date" yaml:"updated_date"`
	// the address of the account that modified this record
	UpdatedBy string `protobuf:"bytes,4,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty" yaml:"updated_by"`
	// an optional version number that is incremented with each update
	Version uint32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"`
	// an optional message associated with the creation/update event
	Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
}

AuditFields capture information about the last account to make modifications and when they were made

func (*AuditFields) Descriptor

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

func (*AuditFields) GetCreatedBy

func (m *AuditFields) GetCreatedBy() string

func (*AuditFields) GetCreatedDate

func (m *AuditFields) GetCreatedDate() time.Time

func (*AuditFields) GetMessage

func (m *AuditFields) GetMessage() string

func (*AuditFields) GetUpdatedBy

func (m *AuditFields) GetUpdatedBy() string

func (*AuditFields) GetUpdatedDate

func (m *AuditFields) GetUpdatedDate() time.Time

func (*AuditFields) GetVersion

func (m *AuditFields) GetVersion() uint32

func (*AuditFields) Marshal

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

func (*AuditFields) MarshalTo

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

func (*AuditFields) MarshalToSizedBuffer

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

func (*AuditFields) ProtoMessage

func (*AuditFields) ProtoMessage()

func (*AuditFields) Reset

func (m *AuditFields) Reset()

func (*AuditFields) Size

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

func (*AuditFields) String

func (m *AuditFields) String() string

func (*AuditFields) Unmarshal

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

func (*AuditFields) XXX_DiscardUnknown

func (m *AuditFields) XXX_DiscardUnknown()

func (*AuditFields) XXX_Marshal

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

func (*AuditFields) XXX_Merge

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

func (*AuditFields) XXX_Size

func (m *AuditFields) XXX_Size() int

func (*AuditFields) XXX_Unmarshal

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

type Condition

type Condition struct {
	// conidtion_name will match the name of a condition listed on the record group specification
	ConditionName string `protobuf:"bytes,1,opt,name=condition_name,json=conditionName,proto3" json:"condition_name,omitempty"`
	// the result of the condition evaluation
	Result ExecutionResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result"`
}

Conditions are constraints that are checked prior to contract execution

func (*Condition) Descriptor

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

func (*Condition) GetConditionName

func (m *Condition) GetConditionName() string

func (*Condition) GetResult

func (m *Condition) GetResult() ExecutionResult

func (*Condition) Marshal

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

func (*Condition) MarshalTo

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

func (*Condition) MarshalToSizedBuffer

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

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) Reset

func (m *Condition) Reset()

func (*Condition) Size

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

func (*Condition) String

func (m *Condition) String() string

func (*Condition) Unmarshal

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

func (*Condition) XXX_DiscardUnknown

func (m *Condition) XXX_DiscardUnknown()

func (*Condition) XXX_Marshal

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

func (*Condition) XXX_Merge

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

func (*Condition) XXX_Size

func (m *Condition) XXX_Size() int

func (*Condition) XXX_Unmarshal

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

type Consideration

type Consideration struct {
	ConsiderationName string `protobuf:"bytes,1,opt,name=consideration_name,json=considerationName,proto3" json:"consideration_name,omitempty"`
	// Data pushed to a consideration that will ultimately match the output_spec of the consideration
	Inputs []ProposedRecord `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs"`
	// result of evaluating this condition
	Result ExecutionResult `protobuf:"bytes,3,opt,name=result,proto3" json:"result"`
}

Considerations are outputs of a contract

func (*Consideration) Descriptor

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

func (*Consideration) GetConsiderationName

func (m *Consideration) GetConsiderationName() string

func (*Consideration) GetInputs

func (m *Consideration) GetInputs() []ProposedRecord

func (*Consideration) GetResult

func (m *Consideration) GetResult() ExecutionResult

func (*Consideration) Marshal

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

func (*Consideration) MarshalTo

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

func (*Consideration) MarshalToSizedBuffer

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

func (*Consideration) ProtoMessage

func (*Consideration) ProtoMessage()

func (*Consideration) Reset

func (m *Consideration) Reset()

func (*Consideration) Size

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

func (*Consideration) String

func (m *Consideration) String() string

func (*Consideration) Unmarshal

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

func (*Consideration) XXX_DiscardUnknown

func (m *Consideration) XXX_DiscardUnknown()

func (*Consideration) XXX_Marshal

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

func (*Consideration) XXX_Merge

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

func (*Consideration) XXX_Size

func (m *Consideration) XXX_Size() int

func (*Consideration) XXX_Unmarshal

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

type Contract

type Contract struct {
	Definition Definition `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition"`
	// Points to the proto for the contractSpec
	Spec RecordReference `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec"`
	// Invoker address of this contract
	Invoker string `protobuf:"bytes,3,opt,name=invoker,proto3" json:"invoker,omitempty"`
	// A repeated list of references both on/off chain used by the contract conditions/considerations
	Inputs []RecordReference `protobuf:"bytes,4,rep,name=inputs,proto3" json:"inputs"`
	// A set of conditions to evaluate first, if these conditions are not all succcessful then the considerations
	// are not evaluated.
	Conditions []Condition `protobuf:"bytes,5,rep,name=conditions,proto3" json:"conditions"`
	// A collection of outputs summarizing the execution of processes that will result in records within the scope
	Considerations []Consideration `protobuf:"bytes,6,rep,name=considerations,proto3" json:"considerations"`
	// The parties and the roles they are performing as associated with the contract that was executed.
	Recitals Recitals `protobuf:"bytes,7,opt,name=recitals,proto3" json:"recitals"`
}

Contracts are the collection results of an execution of code within the P8e execution environment

func (*Contract) Descriptor

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

func (*Contract) GetConditions

func (m *Contract) GetConditions() []Condition

func (*Contract) GetConsiderations

func (m *Contract) GetConsiderations() []Consideration

func (*Contract) GetDefinition

func (m *Contract) GetDefinition() Definition

func (*Contract) GetInputs

func (m *Contract) GetInputs() []RecordReference

func (*Contract) GetInvoker

func (m *Contract) GetInvoker() string

func (*Contract) GetRecitals

func (m *Contract) GetRecitals() Recitals

func (Contract) GetSigners

func (contract Contract) GetSigners() (signers []sdk.AccAddress)

GetSigners returns the required signers for a given contract

func (*Contract) GetSpec

func (m *Contract) GetSpec() RecordReference

func (*Contract) Marshal

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

func (*Contract) MarshalTo

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

func (*Contract) MarshalToSizedBuffer

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

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) Reset

func (m *Contract) Reset()

func (*Contract) Size

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

func (*Contract) String

func (m *Contract) String() string

func (*Contract) Unmarshal

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

func (Contract) ValidateBasic

func (contract Contract) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*Contract) XXX_DiscardUnknown

func (m *Contract) XXX_DiscardUnknown()

func (*Contract) XXX_Marshal

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

func (*Contract) XXX_Merge

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

func (*Contract) XXX_Size

func (m *Contract) XXX_Size() int

func (*Contract) XXX_Unmarshal

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

type ContractSpecification added in v0.1.5

type ContractSpecification struct {
	// unique identifier for this specification on chain
	SpecificationId MetadataAddress `` /* 147-byte string literal not displayed */
	// Description information for this contract specification
	Description *Description `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Address of the account that owns this specificaiton
	OwnerAddresses []string `` /* 126-byte string literal not displayed */
	// a list of party roles that must be fullfilled when signing a transaction for this contract specification
	PartiesInvolved []PartyType `` /* 176-byte string literal not displayed */
	// Reference to a metadata record with a hash and type information for the instance of code that will process this contract
	//
	// Types that are valid to be assigned to Source:
	//	*ContractSpecification_ResourceId
	//	*ContractSpecification_Hash
	Source isContractSpecification_Source `protobuf_oneof:"source"`
	// name of the class/type of this contract executable
	ClassName string `protobuf:"bytes,7,opt,name=class_name,json=className,proto3" json:"class_name,omitempty" yaml:"class_name"`
	// a collection of ids of checks (RecordSpecifications) that must be satisfied against a scope prior to
	// allowing a record to be added under this specification
	RecordSpecIds []MetadataAddress `` /* 142-byte string literal not displayed */
}

ContractSpecification defines the required parties, resources, conditions, and consideration outputs for a contract

func NewContractSpecification added in v0.1.5

func NewContractSpecification(
	specificationID MetadataAddress,
	description *Description,
	ownerAddresses []string,
	partiesInvolved []PartyType,
	source isContractSpecification_Source,
	className string,
	recordSpecIDs []MetadataAddress,
) *ContractSpecification

NewScopeSpecification creates a new ScopeSpecification instance.

func (*ContractSpecification) Descriptor added in v0.1.5

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

func (*ContractSpecification) GetClassName added in v0.1.5

func (m *ContractSpecification) GetClassName() string

func (*ContractSpecification) GetDescription added in v0.1.5

func (m *ContractSpecification) GetDescription() *Description

func (*ContractSpecification) GetHash added in v0.1.5

func (m *ContractSpecification) GetHash() string

func (*ContractSpecification) GetOwnerAddresses added in v0.1.5

func (m *ContractSpecification) GetOwnerAddresses() []string

func (*ContractSpecification) GetPartiesInvolved added in v0.1.5

func (m *ContractSpecification) GetPartiesInvolved() []PartyType

func (*ContractSpecification) GetSource added in v0.1.5

func (m *ContractSpecification) GetSource() isContractSpecification_Source

func (*ContractSpecification) Marshal added in v0.1.5

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

func (*ContractSpecification) MarshalTo added in v0.1.5

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

func (*ContractSpecification) MarshalToSizedBuffer added in v0.1.5

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

func (*ContractSpecification) ProtoMessage added in v0.1.5

func (*ContractSpecification) ProtoMessage()

func (*ContractSpecification) Reset added in v0.1.5

func (m *ContractSpecification) Reset()

func (*ContractSpecification) Size added in v0.1.5

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

func (ContractSpecification) String added in v0.1.5

func (s ContractSpecification) String() string

String implements stringer interface

func (*ContractSpecification) Unmarshal added in v0.1.5

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

func (*ContractSpecification) ValidateBasic added in v0.1.5

func (s *ContractSpecification) ValidateBasic() error

ValidateBasic performs basic format checking of data in a ScopeSpecification

func (*ContractSpecification) XXX_DiscardUnknown added in v0.1.5

func (m *ContractSpecification) XXX_DiscardUnknown()

func (*ContractSpecification) XXX_Marshal added in v0.1.5

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

func (*ContractSpecification) XXX_Merge added in v0.1.5

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

func (*ContractSpecification) XXX_OneofWrappers added in v0.1.5

func (*ContractSpecification) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ContractSpecification) XXX_Size added in v0.1.5

func (m *ContractSpecification) XXX_Size() int

func (*ContractSpecification) XXX_Unmarshal added in v0.1.5

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

type ContractSpecificationRequest added in v0.1.5

type ContractSpecificationRequest struct {
	SpecificationUuid string `` /* 138-byte string literal not displayed */
}

ContractSpecificationRequest is used for requesting a contract specification by uuid

func (*ContractSpecificationRequest) Descriptor added in v0.1.5

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

func (*ContractSpecificationRequest) GetSpecificationUuid added in v0.1.5

func (m *ContractSpecificationRequest) GetSpecificationUuid() string

func (*ContractSpecificationRequest) Marshal added in v0.1.5

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

func (*ContractSpecificationRequest) MarshalTo added in v0.1.5

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

func (*ContractSpecificationRequest) MarshalToSizedBuffer added in v0.1.5

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

func (*ContractSpecificationRequest) ProtoMessage added in v0.1.5

func (*ContractSpecificationRequest) ProtoMessage()

func (*ContractSpecificationRequest) Reset added in v0.1.5

func (m *ContractSpecificationRequest) Reset()

func (*ContractSpecificationRequest) Size added in v0.1.5

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

func (*ContractSpecificationRequest) String added in v0.1.5

func (*ContractSpecificationRequest) Unmarshal added in v0.1.5

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

func (*ContractSpecificationRequest) XXX_DiscardUnknown added in v0.1.5

func (m *ContractSpecificationRequest) XXX_DiscardUnknown()

func (*ContractSpecificationRequest) XXX_Marshal added in v0.1.5

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

func (*ContractSpecificationRequest) XXX_Merge added in v0.1.5

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

func (*ContractSpecificationRequest) XXX_Size added in v0.1.5

func (m *ContractSpecificationRequest) XXX_Size() int

func (*ContractSpecificationRequest) XXX_Unmarshal added in v0.1.5

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

type ContractSpecificationResponse added in v0.1.5

type ContractSpecificationResponse struct {
	ContractSpecification *ContractSpecification `` /* 154-byte string literal not displayed */
}

ContractSpecificationResponse is the response to a contract specification request.

func (*ContractSpecificationResponse) Descriptor added in v0.1.5

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

func (*ContractSpecificationResponse) GetContractSpecification added in v0.1.5

func (m *ContractSpecificationResponse) GetContractSpecification() *ContractSpecification

func (*ContractSpecificationResponse) Marshal added in v0.1.5

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

func (*ContractSpecificationResponse) MarshalTo added in v0.1.5

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

func (*ContractSpecificationResponse) MarshalToSizedBuffer added in v0.1.5

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

func (*ContractSpecificationResponse) ProtoMessage added in v0.1.5

func (*ContractSpecificationResponse) ProtoMessage()

func (*ContractSpecificationResponse) Reset added in v0.1.5

func (m *ContractSpecificationResponse) Reset()

func (*ContractSpecificationResponse) Size added in v0.1.5

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

func (*ContractSpecificationResponse) String added in v0.1.5

func (*ContractSpecificationResponse) Unmarshal added in v0.1.5

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

func (*ContractSpecificationResponse) XXX_DiscardUnknown added in v0.1.5

func (m *ContractSpecificationResponse) XXX_DiscardUnknown()

func (*ContractSpecificationResponse) XXX_Marshal added in v0.1.5

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

func (*ContractSpecificationResponse) XXX_Merge added in v0.1.5

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

func (*ContractSpecificationResponse) XXX_Size added in v0.1.5

func (m *ContractSpecificationResponse) XXX_Size() int

func (*ContractSpecificationResponse) XXX_Unmarshal added in v0.1.5

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

type ContractSpecification_Hash added in v0.1.5

type ContractSpecification_Hash struct {
	Hash string `protobuf:"bytes,6,opt,name=hash,proto3,oneof" json:"hash,omitempty"`
}

func NewSourceHash added in v0.1.5

func NewSourceHash(hash string) *ContractSpecification_Hash

NewSourceHash creates a new source (for a ContractSpecification) with a hash

func (*ContractSpecification_Hash) MarshalTo added in v0.1.5

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

func (*ContractSpecification_Hash) MarshalToSizedBuffer added in v0.1.5

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

func (*ContractSpecification_Hash) Size added in v0.1.5

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

type ContractSpecification_ResourceId added in v0.1.5

type ContractSpecification_ResourceId struct {
	ResourceId MetadataAddress `` /* 143-byte string literal not displayed */
}

func NewSourceResourceID added in v0.1.5

func NewSourceResourceID(resourceID MetadataAddress) *ContractSpecification_ResourceId

NewSourceResourceID creates a new source (for a ContractSpecification) with a resource id

func (*ContractSpecification_ResourceId) MarshalTo added in v0.1.5

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

func (*ContractSpecification_ResourceId) MarshalToSizedBuffer added in v0.1.5

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

func (*ContractSpecification_ResourceId) Size added in v0.1.5

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

type Definition

type Definition struct {
	// a common name given to this definition.  The name is used to match up with references to this part of the spec
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// location of the resource on chain
	ResourceLocation *Reference `protobuf:"bytes,2,opt,name=resource_location,json=resourceLocation,proto3" json:"resource_location,omitempty"`
	// address of the account that created this definition
	CreatorAddress string `protobuf:"bytes,3,opt,name=creator_address,json=creatorAddress,proto3" json:"creator_address,omitempty"`
	// The type of data definition (proposed, fact/recorded, list)
	DefinitionType DefinitionType `` /* 147-byte string literal not displayed */
}

Definition encapsulates the information required to uniquely associate a resource with a type and location

func (*Definition) Descriptor

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

func (*Definition) GetCreatorAddress

func (m *Definition) GetCreatorAddress() string

func (*Definition) GetDefinitionType

func (m *Definition) GetDefinitionType() DefinitionType

func (*Definition) GetName

func (m *Definition) GetName() string

func (*Definition) GetResourceLocation

func (m *Definition) GetResourceLocation() *Reference

func (*Definition) Marshal

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

func (*Definition) MarshalTo

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

func (*Definition) MarshalToSizedBuffer

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

func (*Definition) ProtoMessage

func (*Definition) ProtoMessage()

func (*Definition) Reset

func (m *Definition) Reset()

func (*Definition) Size

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

func (*Definition) String

func (m *Definition) String() string

func (*Definition) Unmarshal

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

func (*Definition) XXX_DiscardUnknown

func (m *Definition) XXX_DiscardUnknown()

func (*Definition) XXX_Marshal

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

func (*Definition) XXX_Merge

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

func (*Definition) XXX_Size

func (m *Definition) XXX_Size() int

func (*Definition) XXX_Unmarshal

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

type DefinitionType

type DefinitionType int32

DefinitionType indicates the required definition type for this value

const (
	// DEFINITION_TYPE_UNSPECIFIED indicates an unknown/invalid value
	DefinitionType_DEFINITION_TYPE_UNSPECIFIED DefinitionType = 0
	// DEFINITION_TYPE_PROPOSED indicates a proposed value is used here (a record that is not on-chain)
	DefinitionType_DEFINITION_TYPE_PROPOSED DefinitionType = 1
	// DEFINITION_TYPE_RECORD indicates the value must be a reference to a record on chain
	DefinitionType_DEFINITION_TYPE_RECORD DefinitionType = 2
	// DEFINITION_TYPE_RECORD_LIST indicates the value maybe a reference to a collection of values on chain having
	// the same name
	DefinitionType_DEFINITION_TYPE_RECORD_LIST DefinitionType = 3
)

func (DefinitionType) EnumDescriptor

func (DefinitionType) EnumDescriptor() ([]byte, []int)

func (DefinitionType) String

func (x DefinitionType) String() string

type Description

type Description struct {
	// A Name for this thing.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A description of this thing.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// URL to find even more info.
	WebsiteUrl string `protobuf:"bytes,4,opt,name=website_url,json=websiteUrl,proto3" json:"website_url,omitempty" yaml:"website_url"`
	// URL of an icon.
	IconUrl string `protobuf:"bytes,5,opt,name=icon_url,json=iconUrl,proto3" json:"icon_url,omitempty" yaml:"icon_url"`
}

Description holds general information that is handy to associate with a structure.

func NewDescription added in v0.1.5

func NewDescription(name, description, websiteURL, iconURL string) *Description

NewDescription creates a new Description instance.

func (*Description) Descriptor

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

func (*Description) GetDescription

func (m *Description) GetDescription() string

func (*Description) GetIconUrl

func (m *Description) GetIconUrl() string

func (*Description) GetName

func (m *Description) GetName() string

func (*Description) GetWebsiteUrl

func (m *Description) GetWebsiteUrl() string

func (*Description) Marshal

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

func (*Description) MarshalTo

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

func (*Description) MarshalToSizedBuffer

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

func (*Description) ProtoMessage

func (*Description) ProtoMessage()

func (*Description) Reset

func (m *Description) Reset()

func (*Description) Size

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

func (Description) String

func (d Description) String() string

String implements stringer interface

func (*Description) Unmarshal

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

func (*Description) ValidateBasic added in v0.1.5

func (d *Description) ValidateBasic(path string) error

ValidateBasic performs basic format checking of data in an Description. The path parameter is used to provide extra context to any error messages. e.g. If the name field is invalid in this description, and the path provided is "ScopeSpecification.Description", the error message will contain "ScopeSpecification.Description.Name" and the problem. Provide "" if there is no context you wish to provide.

func (*Description) XXX_DiscardUnknown

func (m *Description) XXX_DiscardUnknown()

func (*Description) XXX_Marshal

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

func (*Description) XXX_Merge

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

func (*Description) XXX_Size

func (m *Description) XXX_Size() int

func (*Description) XXX_Unmarshal

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

type ExecutionResult

type ExecutionResult struct {
	// output of the execution of the process or method within the contract
	Output ProposedRecord `protobuf:"bytes,1,opt,name=output,proto3" json:"output"`
	// generic result classification (pass/fail/skip)
	Result ResultType `protobuf:"varint,2,opt,name=result,proto3,enum=provenance.metadata.v1.ResultType" json:"result,omitempty"`
	// the timestap of when the execution result was created
	RecordedAt time.Time `protobuf:"bytes,3,opt,name=recorded_at,json=recordedAt,proto3,stdtime" json:"recorded_at" yaml:"recorded_at"`
	// an associated error message (if applicable)
	ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
}

ExecutionResult is a structure that holds the output of a given execution

func (*ExecutionResult) Descriptor

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

func (*ExecutionResult) GetErrorMessage

func (m *ExecutionResult) GetErrorMessage() string

func (*ExecutionResult) GetOutput

func (m *ExecutionResult) GetOutput() ProposedRecord

func (*ExecutionResult) GetRecordedAt

func (m *ExecutionResult) GetRecordedAt() time.Time

func (*ExecutionResult) GetResult

func (m *ExecutionResult) GetResult() ResultType

func (*ExecutionResult) Marshal

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

func (*ExecutionResult) MarshalTo

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

func (*ExecutionResult) MarshalToSizedBuffer

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

func (*ExecutionResult) ProtoMessage

func (*ExecutionResult) ProtoMessage()

func (*ExecutionResult) Reset

func (m *ExecutionResult) Reset()

func (*ExecutionResult) Size

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

func (*ExecutionResult) String

func (m *ExecutionResult) String() string

func (*ExecutionResult) Unmarshal

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

func (*ExecutionResult) XXX_DiscardUnknown

func (m *ExecutionResult) XXX_DiscardUnknown()

func (*ExecutionResult) XXX_Marshal

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

func (*ExecutionResult) XXX_Merge

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

func (*ExecutionResult) XXX_Size

func (m *ExecutionResult) XXX_Size() int

func (*ExecutionResult) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines all the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// A collection of metadata scopes and specs to create on start
	Scopes                 []Scope                 `protobuf:"bytes,2,rep,name=scopes,proto3" json:"scopes"`
	Groups                 []RecordGroup           `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups"`
	Records                []Record                `protobuf:"bytes,4,rep,name=records,proto3" json:"records"`
	ScopeSpecifications    []ScopeSpecification    `protobuf:"bytes,5,rep,name=scope_specifications,json=scopeSpecifications,proto3" json:"scope_specifications"`
	ContractSpecifications []ContractSpecification `protobuf:"bytes,6,rep,name=contract_specifications,json=contractSpecifications,proto3" json:"contract_specifications"`
	RecordSpecifications   []RecordSpecification   `protobuf:"bytes,7,rep,name=record_specifications,json=recordSpecifications,proto3" json:"record_specifications"`
}

GenesisState defines the account module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a zero-value genesis state.

func NewGenesisState

func NewGenesisState(
	params Params,
	scopes []Scope,
	groups []RecordGroup,
	records []Record,
	scopeSpecs []ScopeSpecification,
	contracSpecs []ContractSpecification,
) *GenesisState

NewGenesisState returns a new instance of GenesisState

func (*GenesisState) Descriptor

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

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) Validate

func (state GenesisState) Validate() error

Validate ensures the genesis state is valid.

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 GroupContextRequest

type GroupContextRequest struct {
	ScopeUuid string `protobuf:"bytes,1,opt,name=scope_uuid,json=scopeUuid,proto3" json:"scope_uuid,omitempty" yaml:"scope_uuid"`
	GroupUuid string `protobuf:"bytes,2,opt,name=group_uuid,json=groupUuid,proto3" json:"group_uuid,omitempty" yaml:"group_uuid"`
}

GroupContextRequest returns the record groups for a given scope identifer or optionally a specific record group

func (*GroupContextRequest) Descriptor

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

func (*GroupContextRequest) GetGroupUuid added in v0.1.5

func (m *GroupContextRequest) GetGroupUuid() string

func (*GroupContextRequest) GetScopeUuid added in v0.1.5

func (m *GroupContextRequest) GetScopeUuid() string

func (*GroupContextRequest) Marshal

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

func (*GroupContextRequest) MarshalTo

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

func (*GroupContextRequest) MarshalToSizedBuffer

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

func (*GroupContextRequest) ProtoMessage

func (*GroupContextRequest) ProtoMessage()

func (*GroupContextRequest) Reset

func (m *GroupContextRequest) Reset()

func (*GroupContextRequest) Size

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

func (*GroupContextRequest) String

func (m *GroupContextRequest) String() string

func (*GroupContextRequest) Unmarshal

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

func (*GroupContextRequest) XXX_DiscardUnknown

func (m *GroupContextRequest) XXX_DiscardUnknown()

func (*GroupContextRequest) XXX_Marshal

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

func (*GroupContextRequest) XXX_Merge

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

func (*GroupContextRequest) XXX_Size

func (m *GroupContextRequest) XXX_Size() int

func (*GroupContextRequest) XXX_Unmarshal

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

type GroupContextResponse

type GroupContextResponse struct {
	Groups []*RecordGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
}

GroupContextResponse is the response to a GroupContextRequest

func (*GroupContextResponse) Descriptor

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

func (*GroupContextResponse) GetGroups

func (m *GroupContextResponse) GetGroups() []*RecordGroup

func (*GroupContextResponse) Marshal

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

func (*GroupContextResponse) MarshalTo

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

func (*GroupContextResponse) MarshalToSizedBuffer

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

func (*GroupContextResponse) ProtoMessage

func (*GroupContextResponse) ProtoMessage()

func (*GroupContextResponse) Reset

func (m *GroupContextResponse) Reset()

func (*GroupContextResponse) Size

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

func (*GroupContextResponse) String

func (m *GroupContextResponse) String() string

func (*GroupContextResponse) Unmarshal

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

func (*GroupContextResponse) XXX_DiscardUnknown

func (m *GroupContextResponse) XXX_DiscardUnknown()

func (*GroupContextResponse) XXX_Marshal

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

func (*GroupContextResponse) XXX_Merge

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

func (*GroupContextResponse) XXX_Size

func (m *GroupContextResponse) XXX_Size() int

func (*GroupContextResponse) XXX_Unmarshal

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

type InputSpecification added in v0.1.5

type InputSpecification struct {
	// name for this input
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// a type_name (typically a proto name or class_name)
	TypeName string `protobuf:"bytes,2,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty" yaml:"type_name"`
	// source is either on chain (record_id) or off-chain (hash)
	//
	// Types that are valid to be assigned to Source:
	//	*InputSpecification_RecordId
	//	*InputSpecification_Hash
	Source isInputSpecification_Source `protobuf_oneof:"source"`
}

InputSpecification defines a name, type_name, and source reference (either on or off chain) to define an input parameter

func (*InputSpecification) Descriptor added in v0.1.5

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

func (*InputSpecification) GetHash added in v0.1.5

func (m *InputSpecification) GetHash() string

func (*InputSpecification) GetName added in v0.1.5

func (m *InputSpecification) GetName() string

func (*InputSpecification) GetSource added in v0.1.5

func (m *InputSpecification) GetSource() isInputSpecification_Source

func (*InputSpecification) GetTypeName added in v0.1.5

func (m *InputSpecification) GetTypeName() string

func (*InputSpecification) Marshal added in v0.1.5

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

func (*InputSpecification) MarshalTo added in v0.1.5

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

func (*InputSpecification) MarshalToSizedBuffer added in v0.1.5

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

func (*InputSpecification) ProtoMessage added in v0.1.5

func (*InputSpecification) ProtoMessage()

func (*InputSpecification) Reset added in v0.1.5

func (m *InputSpecification) Reset()

func (*InputSpecification) Size added in v0.1.5

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

func (*InputSpecification) String added in v0.1.5

func (m *InputSpecification) String() string

func (*InputSpecification) Unmarshal added in v0.1.5

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

func (*InputSpecification) XXX_DiscardUnknown added in v0.1.5

func (m *InputSpecification) XXX_DiscardUnknown()

func (*InputSpecification) XXX_Marshal added in v0.1.5

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

func (*InputSpecification) XXX_Merge added in v0.1.5

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

func (*InputSpecification) XXX_OneofWrappers added in v0.1.5

func (*InputSpecification) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*InputSpecification) XXX_Size added in v0.1.5

func (m *InputSpecification) XXX_Size() int

func (*InputSpecification) XXX_Unmarshal added in v0.1.5

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

type InputSpecification_Hash added in v0.1.5

type InputSpecification_Hash struct {
	Hash string `protobuf:"bytes,4,opt,name=hash,proto3,oneof" json:"hash,omitempty"`
}

func (*InputSpecification_Hash) MarshalTo added in v0.1.5

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

func (*InputSpecification_Hash) MarshalToSizedBuffer added in v0.1.5

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

func (*InputSpecification_Hash) Size added in v0.1.5

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

type InputSpecification_RecordId added in v0.1.5

type InputSpecification_RecordId struct {
	RecordId MetadataAddress `` /* 135-byte string literal not displayed */
}

func (*InputSpecification_RecordId) MarshalTo added in v0.1.5

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

func (*InputSpecification_RecordId) MarshalToSizedBuffer added in v0.1.5

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

func (*InputSpecification_RecordId) Size added in v0.1.5

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

type MetadataAddress

type MetadataAddress []byte

MetadataAddress is a blockchain compliant address based on UUIDs

func ContractSpecMetadataAddress added in v0.1.5

func ContractSpecMetadataAddress(specUUID uuid.UUID) MetadataAddress

ContractSpecMetadataAddress creates a MetadataAddress instance for a contract specification

func ConvertHashToAddress

func ConvertHashToAddress(typeCode []byte, hash string) (addr MetadataAddress, err error)

ConvertHashToAddress constructs a MetadataAddress using the provided type code and the first 16 bytes of the base64 decoded hash. Resulting Address is not guaranteed to contain a valid V4 UUID (random only)

func GroupMetadataAddress

func GroupMetadataAddress(scopeUUID uuid.UUID, groupUUID uuid.UUID) MetadataAddress

GroupMetadataAddress creates a MetadataAddress instance for a group within a scope by uuids

func MetadataAddressFromBech32

func MetadataAddressFromBech32(address string) (addr MetadataAddress, err error)

MetadataAddressFromBech32 creates a MetadataAddress from a Bech32 string. The encoded data is checked against the provided bech32 hrp along with an overall verification of the byte format.

func MetadataAddressFromHex

func MetadataAddressFromHex(address string) (MetadataAddress, error)

MetadataAddressFromHex creates a MetadataAddress from a hex string. NOTE: Does not perform validation on address, only performs basic HEX decoding checks. This method matches the sdk.AccAddress approach

func RecordMetadataAddress

func RecordMetadataAddress(scopeUUID uuid.UUID, name string) MetadataAddress

RecordMetadataAddress creates a MetadataAddress instance for a record within a scope by scope uuid/record name

func RecordSpecMetadataAddress added in v0.1.5

func RecordSpecMetadataAddress(contractSpecUUID uuid.UUID, name string) MetadataAddress

RecordSpecMetadataAddress creates a MetadataAddress instance for a record specification

func ScopeMetadataAddress

func ScopeMetadataAddress(scopeUUID uuid.UUID) MetadataAddress

ScopeMetadataAddress creates a MetadataAddress instance for the given scope by its uuid

func ScopeSpecMetadataAddress

func ScopeSpecMetadataAddress(specUUID uuid.UUID) MetadataAddress

ScopeSpecMetadataAddress creates a MetadataAddress instance for a scope specification

func (MetadataAddress) Bytes

func (ma MetadataAddress) Bytes() []byte

Bytes implements Address interface, returns the raw bytes for this Address

func (MetadataAddress) Compare

func (ma MetadataAddress) Compare(other MetadataAddress) int

Compare exists to fit gogoprotobuf custom type interface.

func (MetadataAddress) ContractSpecRecordSpecIteratorPrefix added in v0.1.5

func (ma MetadataAddress) ContractSpecRecordSpecIteratorPrefix() ([]byte, error)

ContractSpecRecordSpecIteratorPrefix returns an iterator prefix that finds all record specifications in the metadata address contract specification if the current address is empty the returns a prefix to iterate through all record specifications

func (MetadataAddress) ContractSpecUUID added in v0.1.5

func (ma MetadataAddress) ContractSpecUUID() (uuid.UUID, error)

func (MetadataAddress) Empty

func (ma MetadataAddress) Empty() bool

Empty returns true if the MetadataAddress is uninitialized

func (MetadataAddress) Equals

func (ma MetadataAddress) Equals(ma2 sdk.Address) bool

Equals determines if the current MetadataAddress is equal to another sdk.Address

func (MetadataAddress) Format

func (ma MetadataAddress) Format(s fmt.State, verb rune)

Format implements fmt.Format interface

func (MetadataAddress) GetRecordAddress

func (ma MetadataAddress) GetRecordAddress(name string) MetadataAddress

GetRecordAddress returns the MetadataAddress for a record with the given name within the current scope context panics if the current context is not associated with a scope.

func (MetadataAddress) GetRecordSpecAddress added in v0.1.5

func (ma MetadataAddress) GetRecordSpecAddress(name string) MetadataAddress

GetRecordSpecAddress returns the MetadataAddress for a record spec given the name within the current contract spec context

func (MetadataAddress) GroupUUID

func (ma MetadataAddress) GroupUUID() (uuid.UUID, error)

GroupUUID returns the group uuid component of a MetadataAddress (if appropriate)

func (MetadataAddress) IsContractSpecificationAddress added in v0.1.5

func (ma MetadataAddress) IsContractSpecificationAddress() bool

IsContractSpecificationAddress returns true is the address is valid and matches this type

func (MetadataAddress) IsGroupAddress

func (ma MetadataAddress) IsGroupAddress() bool

IsGroupAddress returns true is the address is valid and matches this type

func (MetadataAddress) IsRecordAddress

func (ma MetadataAddress) IsRecordAddress() bool

IsRecordAddress returns true is the address is valid and matches this type

func (MetadataAddress) IsRecordSpecificationAddress added in v0.1.5

func (ma MetadataAddress) IsRecordSpecificationAddress() bool

IsRecordSpecificationAddress returns true is the address is valid and matches this type

func (MetadataAddress) IsScopeAddress

func (ma MetadataAddress) IsScopeAddress() bool

IsScopeAddress returns true is the address is valid and matches this type

func (MetadataAddress) IsScopeSpecificationAddress

func (ma MetadataAddress) IsScopeSpecificationAddress() bool

IsScopeSpecificationAddress returns true is the address is valid and matches this type

func (MetadataAddress) Marshal

func (ma MetadataAddress) Marshal() ([]byte, error)

Marshal returns the bytes underlying the MetadataAddress instance

func (MetadataAddress) MarshalJSON

func (ma MetadataAddress) MarshalJSON() ([]byte, error)

MarshalJSON returns a JSON representation for the current address using a bech32 encoded string

func (*MetadataAddress) MarshalTo

func (ma *MetadataAddress) MarshalTo(data []byte) (int, error)

MarshalTo implements gogoproto custom type interface and writes the current bytes into the provided data structure

func (MetadataAddress) MarshalYAML

func (ma MetadataAddress) MarshalYAML() (interface{}, error)

MarshalYAML returns a YAML representation for the current address using a bech32 encoded string

func (MetadataAddress) NameHash added in v0.1.5

func (ma MetadataAddress) NameHash() ([]byte, error)

NameHash returns the hashed name bytes from this MetadataAddress (if applicable). More accurately, this returns a copy of bytes 18 through 49 (inclusive).

func (MetadataAddress) PrimaryUUID added in v0.1.5

func (ma MetadataAddress) PrimaryUUID() (uuid.UUID, error)

PrimaryUUID returns the primary UUID from this MetadataAddress (if applicable). More accurately, this converts bytes 2 to 17 to a UUID. For example, if this MetadataAddress is for a scope specification, this will return the scope specification uuid. But if this MetadataAddress is for a record specification, this will return the contract specification (since that's the first part of those metadata addresses).

func (MetadataAddress) ScopeGroupIteratorPrefix

func (ma MetadataAddress) ScopeGroupIteratorPrefix() ([]byte, error)

ScopeGroupIteratorPrefix returns an iterator prefix that finds all Groups assigned to the metadata address scope if the current address is empty then returns a prefix to iterate through all groups

func (MetadataAddress) ScopeRecordIteratorPrefix

func (ma MetadataAddress) ScopeRecordIteratorPrefix() ([]byte, error)

ScopeRecordIteratorPrefix returns an iterator prefix that finds all Records assigned to the metadata address scope if the current address is empty the returns a prefix to iterate through all records

func (MetadataAddress) ScopeUUID

func (ma MetadataAddress) ScopeUUID() (uuid.UUID, error)

ScopeUUID returns the scope uuid component of a MetadataAddress (if appropriate)

func (MetadataAddress) SecondaryUUID added in v0.1.5

func (ma MetadataAddress) SecondaryUUID() (uuid.UUID, error)

SecondaryUUID returns the secondary UUID from this MetadataAddress (if applicable). More accurately, this converts bytes 18 to 33 (inclusive) to a UUID.

func (MetadataAddress) Size

func (ma MetadataAddress) Size() int

Size implements gogoproto custom type interface and returns the number of bytes in this instance

func (MetadataAddress) String

func (ma MetadataAddress) String() string

String implements the stringer interface and encodes as a bech32

func (*MetadataAddress) Unmarshal

func (ma *MetadataAddress) Unmarshal(data []byte) error

Unmarshal initializes a MetadataAddress instance using the given bytes. An error will be returned if the given bytes do not form a valid Address

func (*MetadataAddress) UnmarshalJSON

func (ma *MetadataAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON creates a MetadataAddress instance from the given JSON data

func (*MetadataAddress) UnmarshalYAML

func (ma *MetadataAddress) UnmarshalYAML(data []byte) error

UnmarshalYAML creates a MetadataAddress instance from the given YAML data

func (MetadataAddress) Validate

func (ma MetadataAddress) Validate() (err error)

Validate determines if the contained bytes form a valid MetadataAddress according to its type

type MsgAddContractSpecificationRequest added in v0.1.5

type MsgAddContractSpecificationRequest struct {
	Specification ContractSpecification `protobuf:"bytes,1,opt,name=specification,proto3" json:"specification"`
	Signers       []string              `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`
}

MsgAddContractSpecificationRequest is a request to add a contract specification

func NewMsgAddContractSpecificationRequest added in v0.1.5

func NewMsgAddContractSpecificationRequest() *MsgAddContractSpecificationRequest

NewMsgAddContractSpecificationRequest creates a new msg instance

func (*MsgAddContractSpecificationRequest) Descriptor added in v0.1.5

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

func (MsgAddContractSpecificationRequest) GetSignBytes added in v0.1.5

func (msg MsgAddContractSpecificationRequest) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgAddContractSpecificationRequest) GetSigners added in v0.1.5

GetSigners returns the address(es) that must sign over msg.GetSignBytes()

func (*MsgAddContractSpecificationRequest) Marshal added in v0.1.5

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

func (*MsgAddContractSpecificationRequest) MarshalTo added in v0.1.5

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

func (*MsgAddContractSpecificationRequest) MarshalToSizedBuffer added in v0.1.5

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

func (*MsgAddContractSpecificationRequest) ProtoMessage added in v0.1.5

func (*MsgAddContractSpecificationRequest) ProtoMessage()

func (*MsgAddContractSpecificationRequest) Reset added in v0.1.5

func (MsgAddContractSpecificationRequest) Route added in v0.1.5

Route returns the module route

func (*MsgAddContractSpecificationRequest) Size added in v0.1.5

func (MsgAddContractSpecificationRequest) String added in v0.1.5

func (MsgAddContractSpecificationRequest) Type added in v0.1.5

Type returns the type name for this msg

func (*MsgAddContractSpecificationRequest) Unmarshal added in v0.1.5

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

func (MsgAddContractSpecificationRequest) ValidateBasic added in v0.1.5

func (msg MsgAddContractSpecificationRequest) ValidateBasic() error

ValidateBasic performs a quick validity check

func (*MsgAddContractSpecificationRequest) XXX_DiscardUnknown added in v0.1.5

func (m *MsgAddContractSpecificationRequest) XXX_DiscardUnknown()

func (*MsgAddContractSpecificationRequest) XXX_Marshal added in v0.1.5

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

func (*MsgAddContractSpecificationRequest) XXX_Merge added in v0.1.5

func (*MsgAddContractSpecificationRequest) XXX_Size added in v0.1.5

func (*MsgAddContractSpecificationRequest) XXX_Unmarshal added in v0.1.5

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

type MsgAddContractSpecificationResponse added in v0.1.5

type MsgAddContractSpecificationResponse struct {
}

AddContractSpecificationResponse from an add contract specification request

func (*MsgAddContractSpecificationResponse) Descriptor added in v0.1.5

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

func (*MsgAddContractSpecificationResponse) Marshal added in v0.1.5

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

func (*MsgAddContractSpecificationResponse) MarshalTo added in v0.1.5

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

func (*MsgAddContractSpecificationResponse) MarshalToSizedBuffer added in v0.1.5

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

func (*MsgAddContractSpecificationResponse) ProtoMessage added in v0.1.5

func (*MsgAddContractSpecificationResponse) ProtoMessage()

func (*MsgAddContractSpecificationResponse) Reset added in v0.1.5

func (*MsgAddContractSpecificationResponse) Size added in v0.1.5

func (*MsgAddContractSpecificationResponse) String added in v0.1.5

func (*MsgAddContractSpecificationResponse) Unmarshal added in v0.1.5

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

func (*MsgAddContractSpecificationResponse) XXX_DiscardUnknown added in v0.1.5

func (m *MsgAddContractSpecificationResponse) XXX_DiscardUnknown()

func (*MsgAddContractSpecificationResponse) XXX_Marshal added in v0.1.5

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

func (*MsgAddContractSpecificationResponse) XXX_Merge added in v0.1.5

func (*MsgAddContractSpecificationResponse) XXX_Size added in v0.1.5

func (*MsgAddContractSpecificationResponse) XXX_Unmarshal added in v0.1.5

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

type MsgAddRecordGroupRequest

type MsgAddRecordGroupRequest struct {
	Group  *RecordGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Notary string       `protobuf:"bytes,2,opt,name=notary,proto3" json:"notary,omitempty"`
}

MsgAddRecordGroupRequest adds a new scope

func NewMsgAddRecordGroupRequest

func NewMsgAddRecordGroupRequest() *MsgAddRecordGroupRequest

NewMsgAddRecordGroupRequest creates a new msg instance

func (*MsgAddRecordGroupRequest) Descriptor

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

func (MsgAddRecordGroupRequest) GetSignBytes

func (msg MsgAddRecordGroupRequest) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgAddRecordGroupRequest) GetSigners

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

GetSigners returns the address(es) that must sign over msg.GetSignBytes()

func (*MsgAddRecordGroupRequest) Marshal

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

func (*MsgAddRecordGroupRequest) MarshalTo

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

func (*MsgAddRecordGroupRequest) MarshalToSizedBuffer

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

func (*MsgAddRecordGroupRequest) ProtoMessage

func (*MsgAddRecordGroupRequest) ProtoMessage()

func (*MsgAddRecordGroupRequest) Reset

func (m *MsgAddRecordGroupRequest) Reset()

func (MsgAddRecordGroupRequest) Route

func (msg MsgAddRecordGroupRequest) Route() string

Route returns the module route

func (*MsgAddRecordGroupRequest) Size

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

func (MsgAddRecordGroupRequest) String

func (msg MsgAddRecordGroupRequest) String() string

func (MsgAddRecordGroupRequest) Type

func (msg MsgAddRecordGroupRequest) Type() string

Type returns the type name for this msg

func (*MsgAddRecordGroupRequest) Unmarshal

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

func (MsgAddRecordGroupRequest) ValidateBasic

func (msg MsgAddRecordGroupRequest) ValidateBasic() error

ValidateBasic performs a quick validity check

func (*MsgAddRecordGroupRequest) XXX_DiscardUnknown

func (m *MsgAddRecordGroupRequest) XXX_DiscardUnknown()

func (*MsgAddRecordGroupRequest) XXX_Marshal

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

func (*MsgAddRecordGroupRequest) XXX_Merge

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

func (*MsgAddRecordGroupRequest) XXX_Size

func (m *MsgAddRecordGroupRequest) XXX_Size() int

func (*MsgAddRecordGroupRequest) XXX_Unmarshal

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

type MsgAddRecordGroupResponse

type MsgAddRecordGroupResponse struct {
}

MsgAddRecordGroupResponse from an add records request

func (*MsgAddRecordGroupResponse) Descriptor

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

func (*MsgAddRecordGroupResponse) Marshal

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

func (*MsgAddRecordGroupResponse) MarshalTo

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

func (*MsgAddRecordGroupResponse) MarshalToSizedBuffer

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

func (*MsgAddRecordGroupResponse) ProtoMessage

func (*MsgAddRecordGroupResponse) ProtoMessage()

func (*MsgAddRecordGroupResponse) Reset

func (m *MsgAddRecordGroupResponse) Reset()

func (*MsgAddRecordGroupResponse) Size

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

func (*MsgAddRecordGroupResponse) String

func (m *MsgAddRecordGroupResponse) String() string

func (*MsgAddRecordGroupResponse) Unmarshal

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

func (*MsgAddRecordGroupResponse) XXX_DiscardUnknown

func (m *MsgAddRecordGroupResponse) XXX_DiscardUnknown()

func (*MsgAddRecordGroupResponse) XXX_Marshal

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

func (*MsgAddRecordGroupResponse) XXX_Merge

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

func (*MsgAddRecordGroupResponse) XXX_Size

func (m *MsgAddRecordGroupResponse) XXX_Size() int

func (*MsgAddRecordGroupResponse) XXX_Unmarshal

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

type MsgAddRecordRequest

type MsgAddRecordRequest struct {
	GroupId MetadataAddress `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3,customtype=MetadataAddress" json:"group_id" yaml:"group_id"`
	Record  *Record         `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"`
	Signers []string        `protobuf:"bytes,3,rep,name=signers,proto3" json:"signers,omitempty"`
}

MsgAddRecordRequest is a request to add a group of records to a scope

func NewMsgAddRecordRequest

func NewMsgAddRecordRequest() *MsgAddRecordRequest

NewMsgAddRecordRequest creates a new msg instance

func (*MsgAddRecordRequest) Descriptor

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

func (MsgAddRecordRequest) GetSignBytes

func (msg MsgAddRecordRequest) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgAddRecordRequest) GetSigners

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

GetSigners returns the address(es) that must sign over msg.GetSignBytes()

func (*MsgAddRecordRequest) Marshal

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

func (*MsgAddRecordRequest) MarshalTo

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

func (*MsgAddRecordRequest) MarshalToSizedBuffer

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

func (*MsgAddRecordRequest) ProtoMessage

func (*MsgAddRecordRequest) ProtoMessage()

func (*MsgAddRecordRequest) Reset

func (m *MsgAddRecordRequest) Reset()

func (MsgAddRecordRequest) Route

func (msg MsgAddRecordRequest) Route() string

Route returns the module route

func (*MsgAddRecordRequest) Size

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

func (MsgAddRecordRequest) String

func (msg MsgAddRecordRequest) String() string

func (MsgAddRecordRequest) Type

func (msg MsgAddRecordRequest) Type() string

Type returns the type name for this msg

func (*MsgAddRecordRequest) Unmarshal

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

func (MsgAddRecordRequest) ValidateBasic

func (msg MsgAddRecordRequest) ValidateBasic() error

ValidateBasic performs a quick validity check

func (*MsgAddRecordRequest) XXX_DiscardUnknown

func (m *MsgAddRecordRequest) XXX_DiscardUnknown()

func (*MsgAddRecordRequest) XXX_Marshal

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

func (*MsgAddRecordRequest) XXX_Merge

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

func (*MsgAddRecordRequest) XXX_Size

func (m *MsgAddRecordRequest) XXX_Size() int

func (*MsgAddRecordRequest) XXX_Unmarshal

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

type MsgAddRecordResponse

type MsgAddRecordResponse struct {
}

MsgAddRecordResponse from an add records request

func (*MsgAddRecordResponse) Descriptor

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

func (*MsgAddRecordResponse) Marshal

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

func (*MsgAddRecordResponse) MarshalTo

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

func (*MsgAddRecordResponse) MarshalToSizedBuffer

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

func (*MsgAddRecordResponse) ProtoMessage

func (*MsgAddRecordResponse) ProtoMessage()

func (*MsgAddRecordResponse) Reset

func (m *MsgAddRecordResponse) Reset()

func (*MsgAddRecordResponse) Size

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

func (*MsgAddRecordResponse) String

func (m *MsgAddRecordResponse) String() string

func (*MsgAddRecordResponse) Unmarshal

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

func (*MsgAddRecordResponse) XXX_DiscardUnknown

func (m *MsgAddRecordResponse) XXX_DiscardUnknown()

func (*MsgAddRecordResponse) XXX_Marshal

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

func (*MsgAddRecordResponse) XXX_Merge

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

func (*MsgAddRecordResponse) XXX_Size

func (m *MsgAddRecordResponse) XXX_Size() int

func (*MsgAddRecordResponse) XXX_Unmarshal

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

type MsgAddScopeRequest

type MsgAddScopeRequest struct {
	Scope   Scope    `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope"`
	Signers []string `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`
}

MsgAddScopeRequest adds a new scope

func NewMsgAddScopeRequest

func NewMsgAddScopeRequest(scope Scope, signers []string) *MsgAddScopeRequest

NewMsgAddScopeRequest creates a new msg instance

func (*MsgAddScopeRequest) Descriptor

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

func (MsgAddScopeRequest) GetSignBytes

func (msg MsgAddScopeRequest) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgAddScopeRequest) GetSigners

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

GetSigners returns the address(es) that must sign over msg.GetSignBytes()

func (*MsgAddScopeRequest) Marshal

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

func (*MsgAddScopeRequest) MarshalTo

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

func (*MsgAddScopeRequest) MarshalToSizedBuffer

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

func (*MsgAddScopeRequest) ProtoMessage

func (*MsgAddScopeRequest) ProtoMessage()

func (*MsgAddScopeRequest) Reset

func (m *MsgAddScopeRequest) Reset()

func (MsgAddScopeRequest) Route

func (msg MsgAddScopeRequest) Route() string

Route returns the module route

func (*MsgAddScopeRequest) Size

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

func (MsgAddScopeRequest) String

func (msg MsgAddScopeRequest) String() string

func (MsgAddScopeRequest) Type

func (msg MsgAddScopeRequest) Type() string

Type returns the type name for this msg

func (*MsgAddScopeRequest) Unmarshal

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

func (MsgAddScopeRequest) ValidateBasic

func (msg MsgAddScopeRequest) ValidateBasic() error

ValidateBasic performs a quick validity check

func (*MsgAddScopeRequest) XXX_DiscardUnknown

func (m *MsgAddScopeRequest) XXX_DiscardUnknown()

func (*MsgAddScopeRequest) XXX_Marshal

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

func (*MsgAddScopeRequest) XXX_Merge

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

func (*MsgAddScopeRequest) XXX_Size

func (m *MsgAddScopeRequest) XXX_Size() int

func (*MsgAddScopeRequest) XXX_Unmarshal

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

type MsgAddScopeResponse

type MsgAddScopeResponse struct {
}

MsgAddScopeResponse from an add scope request

func (*MsgAddScopeResponse) Descriptor

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

func (*MsgAddScopeResponse) Marshal

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

func (*MsgAddScopeResponse) MarshalTo

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

func (*MsgAddScopeResponse) MarshalToSizedBuffer

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

func (*MsgAddScopeResponse) ProtoMessage

func (*MsgAddScopeResponse) ProtoMessage()

func (*MsgAddScopeResponse) Reset

func (m *MsgAddScopeResponse) Reset()

func (*MsgAddScopeResponse) Size

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

func (*MsgAddScopeResponse) String

func (m *MsgAddScopeResponse) String() string

func (*MsgAddScopeResponse) Unmarshal

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

func (*MsgAddScopeResponse) XXX_DiscardUnknown

func (m *MsgAddScopeResponse) XXX_DiscardUnknown()

func (*MsgAddScopeResponse) XXX_Marshal

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

func (*MsgAddScopeResponse) XXX_Merge

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

func (*MsgAddScopeResponse) XXX_Size

func (m *MsgAddScopeResponse) XXX_Size() int

func (*MsgAddScopeResponse) XXX_Unmarshal

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

type MsgAddScopeSpecificationRequest

type MsgAddScopeSpecificationRequest struct {
	Specification ScopeSpecification `protobuf:"bytes,1,opt,name=specification,proto3" json:"specification"`
	Signers       []string           `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`
}

MsgAddScopeSpecificationRequest is a request to add a scope specification

func NewMsgAddScopeSpecificationRequest

func NewMsgAddScopeSpecificationRequest() *MsgAddScopeSpecificationRequest

NewMsgAddScopeSpecificationRequest creates a new msg instance

func (*MsgAddScopeSpecificationRequest) Descriptor

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

func (MsgAddScopeSpecificationRequest) GetSignBytes

func (msg MsgAddScopeSpecificationRequest) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgAddScopeSpecificationRequest) GetSigners

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

GetSigners returns the address(es) that must sign over msg.GetSignBytes()

func (*MsgAddScopeSpecificationRequest) Marshal

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

func (*MsgAddScopeSpecificationRequest) MarshalTo

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

func (*MsgAddScopeSpecificationRequest) MarshalToSizedBuffer

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

func (*MsgAddScopeSpecificationRequest) ProtoMessage

func (*MsgAddScopeSpecificationRequest) ProtoMessage()

func (*MsgAddScopeSpecificationRequest) Reset

func (MsgAddScopeSpecificationRequest) Route

Route returns the module route

func (*MsgAddScopeSpecificationRequest) Size

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

func (MsgAddScopeSpecificationRequest) String

func (MsgAddScopeSpecificationRequest) Type

Type returns the type name for this msg

func (*MsgAddScopeSpecificationRequest) Unmarshal

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

func (MsgAddScopeSpecificationRequest) ValidateBasic

func (msg MsgAddScopeSpecificationRequest) ValidateBasic() error

ValidateBasic performs a quick validity check

func (*MsgAddScopeSpecificationRequest) XXX_DiscardUnknown

func (m *MsgAddScopeSpecificationRequest) XXX_DiscardUnknown()

func (*MsgAddScopeSpecificationRequest) XXX_Marshal

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

func (*MsgAddScopeSpecificationRequest) XXX_Merge

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

func (*MsgAddScopeSpecificationRequest) XXX_Size

func (m *MsgAddScopeSpecificationRequest) XXX_Size() int

func (*MsgAddScopeSpecificationRequest) XXX_Unmarshal

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

type MsgAddScopeSpecificationResponse

type MsgAddScopeSpecificationResponse struct {
}

MsgAddScopeSpecificationResponse from an add scope specification request

func (*MsgAddScopeSpecificationResponse) Descriptor

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

func (*MsgAddScopeSpecificationResponse) Marshal

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

func (*MsgAddScopeSpecificationResponse) MarshalTo

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

func (*MsgAddScopeSpecificationResponse) MarshalToSizedBuffer

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

func (*MsgAddScopeSpecificationResponse) ProtoMessage

func (*MsgAddScopeSpecificationResponse) ProtoMessage()

func (*MsgAddScopeSpecificationResponse) Reset

func (*MsgAddScopeSpecificationResponse) Size

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

func (*MsgAddScopeSpecificationResponse) String

func (*MsgAddScopeSpecificationResponse) Unmarshal

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

func (*MsgAddScopeSpecificationResponse) XXX_DiscardUnknown

func (m *MsgAddScopeSpecificationResponse) XXX_DiscardUnknown()

func (*MsgAddScopeSpecificationResponse) XXX_Marshal

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

func (*MsgAddScopeSpecificationResponse) XXX_Merge

func (*MsgAddScopeSpecificationResponse) XXX_Size

func (m *MsgAddScopeSpecificationResponse) XXX_Size() int

func (*MsgAddScopeSpecificationResponse) XXX_Unmarshal

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

type MsgChangeOwnershipRequest

type MsgChangeOwnershipRequest struct {
	// The scope of the object being modified on blockchain.
	ScopeId string `protobuf:"bytes,1,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" yaml:"scope_id"`
	// The uuid of the contract execution.
	GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	// Unique identifier for determining contract/group execution instance
	ExecutionId string `protobuf:"bytes,3,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty" yaml:"execution_id"`
	// The recitals to use for the scope parties
	Recitals *Recitals `protobuf:"bytes,4,opt,name=recitals,proto3" json:"recitals,omitempty"`
	// The executed contract.
	Contract *Contract `protobuf:"bytes,5,opt,name=contract,proto3" json:"contract,omitempty"`
	// The contract signatures
	Signatures signing.SignatureDescriptors `protobuf:"bytes,6,opt,name=signatures,proto3" json:"signatures"`
	// The address of the notary (ie the broadcaster of this message).
	Notary string `protobuf:"bytes,7,opt,name=notary,proto3" json:"notary,omitempty"`
}

MsgChangeOwnershipRequest records the result of a change ownership p8e contract execution

func NewMsgChangeOwnershipRequest

func NewMsgChangeOwnershipRequest() *MsgChangeOwnershipRequest

NewMsgChangeOwnershipRequest creates a new msg instance

func (*MsgChangeOwnershipRequest) Descriptor

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

func (MsgChangeOwnershipRequest) GetSignBytes

func (msg MsgChangeOwnershipRequest) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgChangeOwnershipRequest) GetSigners

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

GetSigners returns the address(es) that must sign over msg.GetSignBytes()

func (*MsgChangeOwnershipRequest) Marshal

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

func (*MsgChangeOwnershipRequest) MarshalTo

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

func (*MsgChangeOwnershipRequest) MarshalToSizedBuffer

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

func (*MsgChangeOwnershipRequest) ProtoMessage

func (*MsgChangeOwnershipRequest) ProtoMessage()

func (*MsgChangeOwnershipRequest) Reset

func (m *MsgChangeOwnershipRequest) Reset()

func (MsgChangeOwnershipRequest) Route

func (msg MsgChangeOwnershipRequest) Route() string

Route returns the module route

func (*MsgChangeOwnershipRequest) Size

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

func (MsgChangeOwnershipRequest) String

func (msg MsgChangeOwnershipRequest) String() string

func (MsgChangeOwnershipRequest) Type

func (msg MsgChangeOwnershipRequest) Type() string

Type returns the type name for this msg

func (*MsgChangeOwnershipRequest) Unmarshal

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

func (MsgChangeOwnershipRequest) ValidateBasic

func (msg MsgChangeOwnershipRequest) ValidateBasic() error

ValidateBasic performs a quick validity check

func (*MsgChangeOwnershipRequest) XXX_DiscardUnknown

func (m *MsgChangeOwnershipRequest) XXX_DiscardUnknown()

func (*MsgChangeOwnershipRequest) XXX_Marshal

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

func (*MsgChangeOwnershipRequest) XXX_Merge

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

func (*MsgChangeOwnershipRequest) XXX_Size

func (m *MsgChangeOwnershipRequest) XXX_Size() int

func (*MsgChangeOwnershipRequest) XXX_Unmarshal

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

type MsgChangeOwnershipResponse

type MsgChangeOwnershipResponse struct {
}

MsgChangeOwnershipResponse from a contract execution ownership change request

func (*MsgChangeOwnershipResponse) Descriptor

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

func (*MsgChangeOwnershipResponse) Marshal

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

func (*MsgChangeOwnershipResponse) MarshalTo

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

func (*MsgChangeOwnershipResponse) MarshalToSizedBuffer

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

func (*MsgChangeOwnershipResponse) ProtoMessage

func (*MsgChangeOwnershipResponse) ProtoMessage()

func (*MsgChangeOwnershipResponse) Reset

func (m *MsgChangeOwnershipResponse) Reset()

func (*MsgChangeOwnershipResponse) Size

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

func (*MsgChangeOwnershipResponse) String

func (m *MsgChangeOwnershipResponse) String() string

func (*MsgChangeOwnershipResponse) Unmarshal

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

func (*MsgChangeOwnershipResponse) XXX_DiscardUnknown

func (m *MsgChangeOwnershipResponse) XXX_DiscardUnknown()

func (*MsgChangeOwnershipResponse) XXX_Marshal

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

func (*MsgChangeOwnershipResponse) XXX_Merge

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

func (*MsgChangeOwnershipResponse) XXX_Size

func (m *MsgChangeOwnershipResponse) XXX_Size() int

func (*MsgChangeOwnershipResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// MemorializeContract records the results of a P8e contract execution as a record group and set of records in a scope
	MemorializeContract(ctx context.Context, in *MsgMemorializeContractRequest, opts ...grpc.CallOption) (*MsgMemorializeContractResponse, error)
	// ChangeOwnership allows P8e contracts to record a new set of owners on a scope
	ChangeOwnership(ctx context.Context, in *MsgChangeOwnershipRequest, opts ...grpc.CallOption) (*MsgChangeOwnershipResponse, error)
	// AddScope adds a new scope
	AddScope(ctx context.Context, in *MsgAddScopeRequest, opts ...grpc.CallOption) (*MsgAddScopeResponse, error)
	// DeleteScope deletes a scope and all associated Records, RecordGroups
	DeleteScope(ctx context.Context, in *MsgDeleteScopeRequest, opts ...grpc.CallOption) (*MsgDeleteScopeResponse, error)
	// AddRecordGroup adds a new record group context to a scope
	AddRecordGroup(ctx context.Context, in *MsgAddRecordGroupRequest, opts ...grpc.CallOption) (*MsgAddRecordGroupResponse, error)
	// AddRecord adds a set of records in a record group within a scope
	AddRecord(ctx context.Context, in *MsgAddRecordRequest, opts ...grpc.CallOption) (*MsgAddRecordResponse, error)
	// AddScopeSpecification adds a scope specification
	AddScopeSpecification(ctx context.Context, in *MsgAddScopeSpecificationRequest, opts ...grpc.CallOption) (*MsgAddScopeSpecificationResponse, error)
	// DeleteScopeSpecification deletes a scope specification
	DeleteScopeSpecification(ctx context.Context, in *MsgDeleteScopeSpecificationRequest, opts ...grpc.CallOption) (*MsgDeleteScopeSpecificationResponse, error)
	// AddContractSpecification adds a contract specification
	AddContractSpecification(ctx context.Context, in *MsgAddContractSpecificationRequest, opts ...grpc.CallOption) (*MsgAddContractSpecificationResponse, error)
	// DeleteContractSpecification deletes a contract specification
	DeleteContractSpecification(ctx context.Context, in *MsgDeleteContractSpecificationRequest, opts ...grpc.CallOption) (*MsgDeleteContractSpecificationResponse, 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 MsgDeleteContractSpecificationRequest added in v0.1.5

type MsgDeleteContractSpecificationRequest struct {
	// Unique ID for the scope specification to delete.
	SpecificationId MetadataAddress `` /* 147-byte string literal not displayed */
	Signers         []string        `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`
}

MsgDeleteContractSpecificationRequest deletes a contract specification

func NewMsgDeleteContractSpecificationRequest added in v0.1.5

func NewMsgDeleteContractSpecificationRequest() *MsgDeleteContractSpecificationRequest

NewMsgDeleteContractSpecificationRequest creates a new msg instance

func (*MsgDeleteContractSpecificationRequest) Descriptor added in v0.1.5

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

func (MsgDeleteContractSpecificationRequest) GetSignBytes added in v0.1.5

func (msg MsgDeleteContractSpecificationRequest) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgDeleteContractSpecificationRequest) GetSigners added in v0.1.5

GetSigners returns the address(es) that must sign over msg.GetSignBytes()

func (*MsgDeleteContractSpecificationRequest) Marshal added in v0.1.5

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

func (*MsgDeleteContractSpecificationRequest) MarshalTo added in v0.1.5

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

func (*MsgDeleteContractSpecificationRequest) MarshalToSizedBuffer added in v0.1.5

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

func (*MsgDeleteContractSpecificationRequest) ProtoMessage added in v0.1.5

func (*MsgDeleteContractSpecificationRequest) ProtoMessage()

func (*MsgDeleteContractSpecificationRequest) Reset added in v0.1.5

func (MsgDeleteContractSpecificationRequest) Route added in v0.1.5

Route returns the module route

func (*MsgDeleteContractSpecificationRequest) Size added in v0.1.5

func (MsgDeleteContractSpecificationRequest) String added in v0.1.5

func (MsgDeleteContractSpecificationRequest) Type added in v0.1.5

Type returns the type name for this msg

func (*MsgDeleteContractSpecificationRequest) Unmarshal added in v0.1.5

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

func (MsgDeleteContractSpecificationRequest) ValidateBasic added in v0.1.5

func (msg MsgDeleteContractSpecificationRequest) ValidateBasic() error

ValidateBasic performs a quick validity check

func (*MsgDeleteContractSpecificationRequest) XXX_DiscardUnknown added in v0.1.5

func (m *MsgDeleteContractSpecificationRequest) XXX_DiscardUnknown()

func (*MsgDeleteContractSpecificationRequest) XXX_Marshal added in v0.1.5

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

func (*MsgDeleteContractSpecificationRequest) XXX_Merge added in v0.1.5

func (*MsgDeleteContractSpecificationRequest) XXX_Size added in v0.1.5

func (*MsgDeleteContractSpecificationRequest) XXX_Unmarshal added in v0.1.5

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

type MsgDeleteContractSpecificationResponse added in v0.1.5

type MsgDeleteContractSpecificationResponse struct {
}

MsgDeleteContractSpecificationResponse from a delete contract specification request

func (*MsgDeleteContractSpecificationResponse) Descriptor added in v0.1.5

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

func (*MsgDeleteContractSpecificationResponse) Marshal added in v0.1.5

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

func (*MsgDeleteContractSpecificationResponse) MarshalTo added in v0.1.5

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

func (*MsgDeleteContractSpecificationResponse) MarshalToSizedBuffer added in v0.1.5

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

func (*MsgDeleteContractSpecificationResponse) ProtoMessage added in v0.1.5

func (*MsgDeleteContractSpecificationResponse) Reset added in v0.1.5

func (*MsgDeleteContractSpecificationResponse) Size added in v0.1.5

func (*MsgDeleteContractSpecificationResponse) String added in v0.1.5

func (*MsgDeleteContractSpecificationResponse) Unmarshal added in v0.1.5

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

func (*MsgDeleteContractSpecificationResponse) XXX_DiscardUnknown added in v0.1.5

func (m *MsgDeleteContractSpecificationResponse) XXX_DiscardUnknown()

func (*MsgDeleteContractSpecificationResponse) XXX_Marshal added in v0.1.5

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

func (*MsgDeleteContractSpecificationResponse) XXX_Merge added in v0.1.5

func (*MsgDeleteContractSpecificationResponse) XXX_Size added in v0.1.5

func (*MsgDeleteContractSpecificationResponse) XXX_Unmarshal added in v0.1.5

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

type MsgDeleteScopeRequest added in v0.1.5

type MsgDeleteScopeRequest struct {
	// Unique ID for the scope to delete
	ScopeId MetadataAddress `protobuf:"bytes,1,opt,name=scope_id,json=scopeId,proto3,customtype=MetadataAddress" json:"scope_id" yaml:"scope_id"`
	Signers []string        `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`
}

MsgDeleteScopeRequest deletes a scope

func NewMsgDeleteScopeRequest added in v0.1.5

func NewMsgDeleteScopeRequest(scopeID MetadataAddress, signers []string) *MsgDeleteScopeRequest

NewMsgDeleteScopeRequest creates a new msg instance

func (*MsgDeleteScopeRequest) Descriptor added in v0.1.5

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

func (MsgDeleteScopeRequest) GetSignBytes added in v0.1.5

func (msg MsgDeleteScopeRequest) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgDeleteScopeRequest) GetSigners added in v0.1.5

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

GetSigners returns the address(es) that must sign over msg.GetSignBytes()

func (*MsgDeleteScopeRequest) Marshal added in v0.1.5

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

func (*MsgDeleteScopeRequest) MarshalTo added in v0.1.5

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

func (*MsgDeleteScopeRequest) MarshalToSizedBuffer added in v0.1.5

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

func (*MsgDeleteScopeRequest) ProtoMessage added in v0.1.5

func (*MsgDeleteScopeRequest) ProtoMessage()

func (*MsgDeleteScopeRequest) Reset added in v0.1.5

func (m *MsgDeleteScopeRequest) Reset()

func (MsgDeleteScopeRequest) Route added in v0.1.5

func (msg MsgDeleteScopeRequest) Route() string

Route returns the module route

func (*MsgDeleteScopeRequest) Size added in v0.1.5

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

func (MsgDeleteScopeRequest) String added in v0.1.5

func (msg MsgDeleteScopeRequest) String() string

func (MsgDeleteScopeRequest) Type added in v0.1.5

func (msg MsgDeleteScopeRequest) Type() string

Type returns the type name for this msg

func (*MsgDeleteScopeRequest) Unmarshal added in v0.1.5

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

func (MsgDeleteScopeRequest) ValidateBasic added in v0.1.5

func (msg MsgDeleteScopeRequest) ValidateBasic() error

ValidateBasic performs a quick validity check

func (*MsgDeleteScopeRequest) XXX_DiscardUnknown added in v0.1.5

func (m *MsgDeleteScopeRequest) XXX_DiscardUnknown()

func (*MsgDeleteScopeRequest) XXX_Marshal added in v0.1.5

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

func (*MsgDeleteScopeRequest) XXX_Merge added in v0.1.5

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

func (*MsgDeleteScopeRequest) XXX_Size added in v0.1.5

func (m *MsgDeleteScopeRequest) XXX_Size() int

func (*MsgDeleteScopeRequest) XXX_Unmarshal added in v0.1.5

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

type MsgDeleteScopeResponse added in v0.1.5

type MsgDeleteScopeResponse struct {
}

MsgDeleteScopeResponse from a delete scope request

func (*MsgDeleteScopeResponse) Descriptor added in v0.1.5

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

func (*MsgDeleteScopeResponse) Marshal added in v0.1.5

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

func (*MsgDeleteScopeResponse) MarshalTo added in v0.1.5

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

func (*MsgDeleteScopeResponse) MarshalToSizedBuffer added in v0.1.5

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

func (*MsgDeleteScopeResponse) ProtoMessage added in v0.1.5

func (*MsgDeleteScopeResponse) ProtoMessage()

func (*MsgDeleteScopeResponse) Reset added in v0.1.5

func (m *MsgDeleteScopeResponse) Reset()

func (*MsgDeleteScopeResponse) Size added in v0.1.5

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

func (*MsgDeleteScopeResponse) String added in v0.1.5

func (m *MsgDeleteScopeResponse) String() string

func (*MsgDeleteScopeResponse) Unmarshal added in v0.1.5

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

func (*MsgDeleteScopeResponse) XXX_DiscardUnknown added in v0.1.5

func (m *MsgDeleteScopeResponse) XXX_DiscardUnknown()

func (*MsgDeleteScopeResponse) XXX_Marshal added in v0.1.5

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

func (*MsgDeleteScopeResponse) XXX_Merge added in v0.1.5

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

func (*MsgDeleteScopeResponse) XXX_Size added in v0.1.5

func (m *MsgDeleteScopeResponse) XXX_Size() int

func (*MsgDeleteScopeResponse) XXX_Unmarshal added in v0.1.5

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

type MsgDeleteScopeSpecificationRequest added in v0.1.5

type MsgDeleteScopeSpecificationRequest struct {
	// Unique ID for the scope specification to delete.
	SpecificationId MetadataAddress `` /* 147-byte string literal not displayed */
	Signers         []string        `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`
}

MsgDeleteScopeSpecificationRequest deletes a scope specification

func NewMsgDeleteScopeSpecificationRequest added in v0.1.5

func NewMsgDeleteScopeSpecificationRequest() *MsgDeleteScopeSpecificationRequest

NewMsgDeleteScopeSpecificationRequest creates a new msg instance

func (*MsgDeleteScopeSpecificationRequest) Descriptor added in v0.1.5

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

func (MsgDeleteScopeSpecificationRequest) GetSignBytes added in v0.1.5

func (msg MsgDeleteScopeSpecificationRequest) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgDeleteScopeSpecificationRequest) GetSigners added in v0.1.5

GetSigners returns the address(es) that must sign over msg.GetSignBytes()

func (*MsgDeleteScopeSpecificationRequest) Marshal added in v0.1.5

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

func (*MsgDeleteScopeSpecificationRequest) MarshalTo added in v0.1.5

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

func (*MsgDeleteScopeSpecificationRequest) MarshalToSizedBuffer added in v0.1.5

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

func (*MsgDeleteScopeSpecificationRequest) ProtoMessage added in v0.1.5

func (*MsgDeleteScopeSpecificationRequest) ProtoMessage()

func (*MsgDeleteScopeSpecificationRequest) Reset added in v0.1.5

func (MsgDeleteScopeSpecificationRequest) Route added in v0.1.5

Route returns the module route

func (*MsgDeleteScopeSpecificationRequest) Size added in v0.1.5

func (MsgDeleteScopeSpecificationRequest) String added in v0.1.5

func (MsgDeleteScopeSpecificationRequest) Type added in v0.1.5

Type returns the type name for this msg

func (*MsgDeleteScopeSpecificationRequest) Unmarshal added in v0.1.5

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

func (MsgDeleteScopeSpecificationRequest) ValidateBasic added in v0.1.5

func (msg MsgDeleteScopeSpecificationRequest) ValidateBasic() error

ValidateBasic performs a quick validity check

func (*MsgDeleteScopeSpecificationRequest) XXX_DiscardUnknown added in v0.1.5

func (m *MsgDeleteScopeSpecificationRequest) XXX_DiscardUnknown()

func (*MsgDeleteScopeSpecificationRequest) XXX_Marshal added in v0.1.5

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

func (*MsgDeleteScopeSpecificationRequest) XXX_Merge added in v0.1.5

func (*MsgDeleteScopeSpecificationRequest) XXX_Size added in v0.1.5

func (*MsgDeleteScopeSpecificationRequest) XXX_Unmarshal added in v0.1.5

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

type MsgDeleteScopeSpecificationResponse added in v0.1.5

type MsgDeleteScopeSpecificationResponse struct {
}

MsgDeleteScopeSpecificationResponse from a delete scope specification request

func (*MsgDeleteScopeSpecificationResponse) Descriptor added in v0.1.5

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

func (*MsgDeleteScopeSpecificationResponse) Marshal added in v0.1.5

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

func (*MsgDeleteScopeSpecificationResponse) MarshalTo added in v0.1.5

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

func (*MsgDeleteScopeSpecificationResponse) MarshalToSizedBuffer added in v0.1.5

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

func (*MsgDeleteScopeSpecificationResponse) ProtoMessage added in v0.1.5

func (*MsgDeleteScopeSpecificationResponse) ProtoMessage()

func (*MsgDeleteScopeSpecificationResponse) Reset added in v0.1.5

func (*MsgDeleteScopeSpecificationResponse) Size added in v0.1.5

func (*MsgDeleteScopeSpecificationResponse) String added in v0.1.5

func (*MsgDeleteScopeSpecificationResponse) Unmarshal added in v0.1.5

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

func (*MsgDeleteScopeSpecificationResponse) XXX_DiscardUnknown added in v0.1.5

func (m *MsgDeleteScopeSpecificationResponse) XXX_DiscardUnknown()

func (*MsgDeleteScopeSpecificationResponse) XXX_Marshal added in v0.1.5

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

func (*MsgDeleteScopeSpecificationResponse) XXX_Merge added in v0.1.5

func (*MsgDeleteScopeSpecificationResponse) XXX_Size added in v0.1.5

func (*MsgDeleteScopeSpecificationResponse) XXX_Unmarshal added in v0.1.5

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

type MsgMemorializeContractRequest

type MsgMemorializeContractRequest struct {
	// The scope of the object being modified on blockchain.
	ScopeId string `protobuf:"bytes,1,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty"`
	// The uuid of the contract execution.
	GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// Unique identifier for determining contract/group execution instance
	ExecutionId string `protobuf:"bytes,3,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"`
	// The executed contract.
	Contract Contract `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract"`
	// The contract signatures
	Signatures signing.SignatureDescriptors `protobuf:"bytes,5,opt,name=signatures,proto3" json:"signatures"`
	// The address of the notary (ie the broadcaster of this message).
	Notary string `protobuf:"bytes,6,opt,name=notary,proto3" json:"notary,omitempty"`
}

MsgMemorializeContractRequest is a request from a P8e execution environment to record results of a contract

func NewMsgMemorializeContractRequest

func NewMsgMemorializeContractRequest() *MsgMemorializeContractRequest

NewMsgMemorializeContractRequest creates a new msg instance

func (*MsgMemorializeContractRequest) Descriptor

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

func (MsgMemorializeContractRequest) GetSignBytes

func (msg MsgMemorializeContractRequest) GetSignBytes() []byte

GetSignBytes gets the bytes for the message signer to sign on

func (MsgMemorializeContractRequest) GetSigners

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

GetSigners returns the address(es) that must sign over msg.GetSignBytes()

func (*MsgMemorializeContractRequest) Marshal

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

func (*MsgMemorializeContractRequest) MarshalTo

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

func (*MsgMemorializeContractRequest) MarshalToSizedBuffer

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

func (*MsgMemorializeContractRequest) ProtoMessage

func (*MsgMemorializeContractRequest) ProtoMessage()

func (*MsgMemorializeContractRequest) Reset

func (m *MsgMemorializeContractRequest) Reset()

func (MsgMemorializeContractRequest) Route

Route returns the module route

func (*MsgMemorializeContractRequest) Size

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

func (MsgMemorializeContractRequest) String

func (MsgMemorializeContractRequest) Type

Type returns the type name for this msg

func (*MsgMemorializeContractRequest) Unmarshal

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

func (MsgMemorializeContractRequest) ValidateBasic

func (msg MsgMemorializeContractRequest) ValidateBasic() error

ValidateBasic quick validity check

func (*MsgMemorializeContractRequest) XXX_DiscardUnknown

func (m *MsgMemorializeContractRequest) XXX_DiscardUnknown()

func (*MsgMemorializeContractRequest) XXX_Marshal

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

func (*MsgMemorializeContractRequest) XXX_Merge

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

func (*MsgMemorializeContractRequest) XXX_Size

func (m *MsgMemorializeContractRequest) XXX_Size() int

func (*MsgMemorializeContractRequest) XXX_Unmarshal

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

type MsgMemorializeContractResponse

type MsgMemorializeContractResponse struct {
}

MsgMemorializeContractResponse from a contract execution memorialization request

func (*MsgMemorializeContractResponse) Descriptor

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

func (*MsgMemorializeContractResponse) Marshal

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

func (*MsgMemorializeContractResponse) MarshalTo

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

func (*MsgMemorializeContractResponse) MarshalToSizedBuffer

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

func (*MsgMemorializeContractResponse) ProtoMessage

func (*MsgMemorializeContractResponse) ProtoMessage()

func (*MsgMemorializeContractResponse) Reset

func (m *MsgMemorializeContractResponse) Reset()

func (*MsgMemorializeContractResponse) Size

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

func (*MsgMemorializeContractResponse) String

func (*MsgMemorializeContractResponse) Unmarshal

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

func (*MsgMemorializeContractResponse) XXX_DiscardUnknown

func (m *MsgMemorializeContractResponse) XXX_DiscardUnknown()

func (*MsgMemorializeContractResponse) XXX_Marshal

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

func (*MsgMemorializeContractResponse) XXX_Merge

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

func (*MsgMemorializeContractResponse) XXX_Size

func (m *MsgMemorializeContractResponse) XXX_Size() int

func (*MsgMemorializeContractResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// MemorializeContract records the results of a P8e contract execution as a record group and set of records in a scope
	MemorializeContract(context.Context, *MsgMemorializeContractRequest) (*MsgMemorializeContractResponse, error)
	// ChangeOwnership allows P8e contracts to record a new set of owners on a scope
	ChangeOwnership(context.Context, *MsgChangeOwnershipRequest) (*MsgChangeOwnershipResponse, error)
	// AddScope adds a new scope
	AddScope(context.Context, *MsgAddScopeRequest) (*MsgAddScopeResponse, error)
	// DeleteScope deletes a scope and all associated Records, RecordGroups
	DeleteScope(context.Context, *MsgDeleteScopeRequest) (*MsgDeleteScopeResponse, error)
	// AddRecordGroup adds a new record group context to a scope
	AddRecordGroup(context.Context, *MsgAddRecordGroupRequest) (*MsgAddRecordGroupResponse, error)
	// AddRecord adds a set of records in a record group within a scope
	AddRecord(context.Context, *MsgAddRecordRequest) (*MsgAddRecordResponse, error)
	// AddScopeSpecification adds a scope specification
	AddScopeSpecification(context.Context, *MsgAddScopeSpecificationRequest) (*MsgAddScopeSpecificationResponse, error)
	// DeleteScopeSpecification deletes a scope specification
	DeleteScopeSpecification(context.Context, *MsgDeleteScopeSpecificationRequest) (*MsgDeleteScopeSpecificationResponse, error)
	// AddContractSpecification adds a contract specification
	AddContractSpecification(context.Context, *MsgAddContractSpecificationRequest) (*MsgAddContractSpecificationResponse, error)
	// DeleteContractSpecification deletes a contract specification
	DeleteContractSpecification(context.Context, *MsgDeleteContractSpecificationRequest) (*MsgDeleteContractSpecificationResponse, error)
}

MsgServer is the server API for Msg service.

type OwnershipRequest

type OwnershipRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

OwnershipRequest looks for all scope level resources associated with the given addrss

func (*OwnershipRequest) Descriptor

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

func (*OwnershipRequest) GetAddress

func (m *OwnershipRequest) GetAddress() string

func (*OwnershipRequest) GetPagination

func (m *OwnershipRequest) GetPagination() *query.PageRequest

func (*OwnershipRequest) Marshal

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

func (*OwnershipRequest) MarshalTo

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

func (*OwnershipRequest) MarshalToSizedBuffer

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

func (*OwnershipRequest) ProtoMessage

func (*OwnershipRequest) ProtoMessage()

func (*OwnershipRequest) Reset

func (m *OwnershipRequest) Reset()

func (*OwnershipRequest) Size

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

func (*OwnershipRequest) String

func (m *OwnershipRequest) String() string

func (*OwnershipRequest) Unmarshal

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

func (*OwnershipRequest) XXX_DiscardUnknown

func (m *OwnershipRequest) XXX_DiscardUnknown()

func (*OwnershipRequest) XXX_Marshal

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

func (*OwnershipRequest) XXX_Merge

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

func (*OwnershipRequest) XXX_Size

func (m *OwnershipRequest) XXX_Size() int

func (*OwnershipRequest) XXX_Unmarshal

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

type OwnershipResponse

type OwnershipResponse struct {
	// A list of scope ids (uuid) associated with the given address.
	ScopeUuids []string `protobuf:"bytes,1,rep,name=scope_uuids,json=scopeUuids,proto3" json:"scope_uuids,omitempty" yaml:"scope_uuids"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

OwnershipResponse is the reponse to the ownership request and includes a list of scope identifiers

func (*OwnershipResponse) Descriptor

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

func (*OwnershipResponse) GetPagination

func (m *OwnershipResponse) GetPagination() *query.PageResponse

func (*OwnershipResponse) GetScopeUuids added in v0.1.5

func (m *OwnershipResponse) GetScopeUuids() []string

func (*OwnershipResponse) Marshal

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

func (*OwnershipResponse) MarshalTo

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

func (*OwnershipResponse) MarshalToSizedBuffer

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

func (*OwnershipResponse) ProtoMessage

func (*OwnershipResponse) ProtoMessage()

func (*OwnershipResponse) Reset

func (m *OwnershipResponse) Reset()

func (*OwnershipResponse) Size

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

func (*OwnershipResponse) String

func (m *OwnershipResponse) String() string

func (*OwnershipResponse) Unmarshal

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

func (*OwnershipResponse) XXX_DiscardUnknown

func (m *OwnershipResponse) XXX_DiscardUnknown()

func (*OwnershipResponse) XXX_Marshal

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

func (*OwnershipResponse) XXX_Merge

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

func (*OwnershipResponse) XXX_Size

func (m *OwnershipResponse) XXX_Size() int

func (*OwnershipResponse) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the set of params for the account module.

func DefaultParams

func DefaultParams() Params

DefaultParams defines the parameters for this module

func NewParams

func NewParams() Params

NewParams creates a new parameter object

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

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() paramtypes.ParamSetPairs

ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of auth module's parameters.

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 (p Params) String() string

String implements stringer interface

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 Party

type Party struct {
	// address of the account (on chain)
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// a role for this account within the context of the processes used
	Role PartyType `protobuf:"varint,2,opt,name=role,proto3,enum=provenance.metadata.v1.PartyType" json:"role,omitempty"`
}

A Party is an address with/in a given role associated with a contract

func (*Party) Descriptor

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

func (*Party) GetAddress

func (m *Party) GetAddress() string

func (*Party) GetRole

func (m *Party) GetRole() PartyType

func (*Party) Marshal

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

func (*Party) MarshalTo

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

func (*Party) MarshalToSizedBuffer

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

func (*Party) ProtoMessage

func (*Party) ProtoMessage()

func (*Party) Reset

func (m *Party) Reset()

func (*Party) Size

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

func (Party) String

func (p Party) String() string

String implements stringer interface

func (*Party) Unmarshal

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

func (Party) ValidateBasic

func (p Party) ValidateBasic() error

ValidateBasic performs static checking of Party format

func (*Party) XXX_DiscardUnknown

func (m *Party) XXX_DiscardUnknown()

func (*Party) XXX_Marshal

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

func (*Party) XXX_Merge

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

func (*Party) XXX_Size

func (m *Party) XXX_Size() int

func (*Party) XXX_Unmarshal

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

type PartyType

type PartyType int32

PartyType are the different roles parties on a contract may use

const (
	// PARTY_TYPE_UNSPECIFIED is an error condition
	PartyType_PARTY_TYPE_UNSPECIFIED PartyType = 0
	// PARTY_TYPE_ORIGINATOR is an asset originator
	PartyType_PARTY_TYPE_ORIGINATOR PartyType = 1
	// PARTY_TYPE_SERVICER provides debt servicing functions
	PartyType_PARTY_TYPE_SERVICER PartyType = 2
	// PARTY_TYPE_INVESTOR is a generic investor
	PartyType_PARTY_TYPE_INVESTOR PartyType = 3
	// PARTY_TYPE_CUSTODIAN is an entity that provides custodian services for assets
	PartyType_PARTY_TYPE_CUSTODIAN PartyType = 4
	// PARTY_TYPE_OWNER indicates this party is an owner of the item
	PartyType_PARTY_TYPE_OWNER PartyType = 5
	// PARTY_TYPE_AFFILIATE is a party with an affiliate agreement
	PartyType_PARTY_TYPE_AFFILIATE PartyType = 6
	// PARTY_TYPE_OMNIBUS is a special type of party that controls an omnibus bank account
	PartyType_PARTY_TYPE_OMNIBUS PartyType = 7
	// PARTY_TYPE_PROVENANCE is used to indicate this party represents the blockchain or a smart contract action
	PartyType_PARTY_TYPE_PROVENANCE PartyType = 8
)

func (PartyType) EnumDescriptor

func (PartyType) EnumDescriptor() ([]byte, []int)

func (PartyType) String

func (x PartyType) String() string

type Process

type Process struct {
	// unique identifier for this process
	//
	// Types that are valid to be assigned to ProcessId:
	//	*Process_Address
	//	*Process_Hash
	ProcessId isProcess_ProcessId `protobuf_oneof:"process_id"`
	// a name associated with the process (type_name, classname or smart contract common name)
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// method is a name or reference to a specific operation (method) within a class/contract that was invoked
	Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
}

Process contains information used to uniquely identify what was used to generate this record

func NewProcess added in v0.1.5

func NewProcess(name string, processID isProcess_ProcessId, method string) *Process

NewProcess creates a new instance of Process

func (*Process) Descriptor

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

func (*Process) GetAddress

func (m *Process) GetAddress() string

func (*Process) GetHash

func (m *Process) GetHash() string

func (*Process) GetMethod

func (m *Process) GetMethod() string

func (*Process) GetName

func (m *Process) GetName() string

func (*Process) GetProcessId

func (m *Process) GetProcessId() isProcess_ProcessId

func (*Process) Marshal

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

func (*Process) MarshalTo

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

func (*Process) MarshalToSizedBuffer

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

func (*Process) ProtoMessage

func (*Process) ProtoMessage()

func (*Process) Reset

func (m *Process) Reset()

func (*Process) Size

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

func (Process) String

func (ps Process) String() string

String implements stringer interface

func (*Process) Unmarshal

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

func (Process) ValidateBasic added in v0.1.5

func (ps Process) ValidateBasic() error

ValidateBasic performs a static check over the process format

func (*Process) XXX_DiscardUnknown

func (m *Process) XXX_DiscardUnknown()

func (*Process) XXX_Marshal

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

func (*Process) XXX_Merge

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

func (*Process) XXX_OneofWrappers

func (*Process) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Process) XXX_Size

func (m *Process) XXX_Size() int

func (*Process) XXX_Unmarshal

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

type Process_Address

type Process_Address struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3,oneof" json:"address,omitempty"`
}

func (*Process_Address) MarshalTo

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

func (*Process_Address) MarshalToSizedBuffer

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

func (*Process_Address) Size

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

type Process_Hash

type Process_Hash struct {
	Hash string `protobuf:"bytes,2,opt,name=hash,proto3,oneof" json:"hash,omitempty"`
}

func (*Process_Hash) MarshalTo

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

func (*Process_Hash) MarshalToSizedBuffer

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

func (*Process_Hash) Size

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

type ProposedRecord

type ProposedRecord struct {
	// name to use for the record within the scope
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// hash of the actual value (off-chain) this record is referencing
	Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// Type information for the proposed record
	TypeName string `protobuf:"bytes,3,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
	// If this proposed fact is intended to replace an existing value, the existing record must be referenced explicitly
	Ancestor Reference `protobuf:"bytes,4,opt,name=ancestor,proto3" json:"ancestor"`
}

ProposedRecord is an input to a consideration defined at runtime, and emitted as a proposed fact for inclusion on the blockchain. If this contract is successfully processed this value will be stored as a record within the scope

func (*ProposedRecord) Descriptor

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

func (*ProposedRecord) GetAncestor

func (m *ProposedRecord) GetAncestor() Reference

func (*ProposedRecord) GetHash

func (m *ProposedRecord) GetHash() string

func (*ProposedRecord) GetName

func (m *ProposedRecord) GetName() string

func (*ProposedRecord) GetTypeName

func (m *ProposedRecord) GetTypeName() string

func (*ProposedRecord) Marshal

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

func (*ProposedRecord) MarshalTo

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

func (*ProposedRecord) MarshalToSizedBuffer

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

func (*ProposedRecord) ProtoMessage

func (*ProposedRecord) ProtoMessage()

func (*ProposedRecord) Reset

func (m *ProposedRecord) Reset()

func (*ProposedRecord) Size

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

func (*ProposedRecord) String

func (m *ProposedRecord) String() string

func (*ProposedRecord) Unmarshal

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

func (*ProposedRecord) XXX_DiscardUnknown

func (m *ProposedRecord) XXX_DiscardUnknown()

func (*ProposedRecord) XXX_Marshal

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

func (*ProposedRecord) XXX_Merge

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

func (*ProposedRecord) XXX_Size

func (m *ProposedRecord) XXX_Size() int

func (*ProposedRecord) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params queries the parameters of x/metadata module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Scope returns a specific scope by id
	Scope(ctx context.Context, in *ScopeRequest, opts ...grpc.CallOption) (*ScopeResponse, error)
	// GroupContext returns a specific group context within a scope (or all groups)
	GroupContext(ctx context.Context, in *GroupContextRequest, opts ...grpc.CallOption) (*GroupContextResponse, error)
	// RecordsByScopeUUID returns a collection of the records in a scope by scope uuid or a specific one by name
	RecordsByScopeUUID(ctx context.Context, in *RecordsByScopeUUIDRequest, opts ...grpc.CallOption) (*RecordsByScopeUUIDResponse, error)
	// RecordsByScopeID returns a collection of the records in a scope by scope bech32 id or a specific one by name
	RecordsByScopeID(ctx context.Context, in *RecordsByScopeIDRequest, opts ...grpc.CallOption) (*RecordsByScopeIDResponse, error)
	// Ownership returns a list of scope identifiers that list the given address as a data or value owner
	Ownership(ctx context.Context, in *OwnershipRequest, opts ...grpc.CallOption) (*OwnershipResponse, error)
	// ValueOwnership returns a list of scope identifiers that list the given address as the value owner
	ValueOwnership(ctx context.Context, in *ValueOwnershipRequest, opts ...grpc.CallOption) (*ValueOwnershipResponse, error)
	// ScopeSpecification returns a scope specification for the given specification id
	ScopeSpecification(ctx context.Context, in *ScopeSpecificationRequest, opts ...grpc.CallOption) (*ScopeSpecificationResponse, error)
	// ContractSpecification returns a contract specification for the given specification id
	ContractSpecification(ctx context.Context, in *ContractSpecificationRequest, opts ...grpc.CallOption) (*ContractSpecificationResponse, error)
}

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 QueryMetadataParams

type QueryMetadataParams struct {
	Page, Limit int
}

QueryMetadataParams defines the params for queries that support paging (get by scope)

func NewQueryMetadataParams

func NewQueryMetadataParams(page, limit int) QueryMetadataParams

NewQueryMetadataParams object

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryResOwnership

type QueryResOwnership struct {
	Address sdk.AccAddress `json:"address" yaml:"address"`
	ScopeID []string       `json:"scope_id" yaml:"scope_id"`
}

QueryResOwnership is the result of a query for scopes associated with a given address query: 'custom/metadata/ownership/{address}

func (QueryResOwnership) String

func (qor QueryResOwnership) String() string

String representation of the query for address ownership scope IDs.

type QueryResScope

type QueryResScope struct {
	Scope []byte `json:"scope"`
}

QueryResScope is the result for legacy scope queries.

func (QueryResScope) MarshalYAML

func (qr QueryResScope) MarshalYAML() (interface{}, error)

MarshalYAML returns the YAML representation of a QueryResScope.

func (QueryResScope) String

func (qr QueryResScope) String() string

String implements fmt.Stringer

type QueryResScopeSpec added in v0.1.5

type QueryResScopeSpec struct {
	ScopeSpecification ScopeSpecification `json:"scope_specification" yaml:"scope_specification"`
}

QueryResScopeSpec is the result of a query for a scope specification.

func NewQueryResScopeSpec added in v0.1.5

func NewQueryResScopeSpec(
	scopeSpecification ScopeSpecification,
) *QueryResScopeSpec

NewQueryResScopeSpec creates a new QueryResScopeSpec object.

type QueryServer

type QueryServer interface {
	// Params queries the parameters of x/metadata module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Scope returns a specific scope by id
	Scope(context.Context, *ScopeRequest) (*ScopeResponse, error)
	// GroupContext returns a specific group context within a scope (or all groups)
	GroupContext(context.Context, *GroupContextRequest) (*GroupContextResponse, error)
	// RecordsByScopeUUID returns a collection of the records in a scope by scope uuid or a specific one by name
	RecordsByScopeUUID(context.Context, *RecordsByScopeUUIDRequest) (*RecordsByScopeUUIDResponse, error)
	// RecordsByScopeID returns a collection of the records in a scope by scope bech32 id or a specific one by name
	RecordsByScopeID(context.Context, *RecordsByScopeIDRequest) (*RecordsByScopeIDResponse, error)
	// Ownership returns a list of scope identifiers that list the given address as a data or value owner
	Ownership(context.Context, *OwnershipRequest) (*OwnershipResponse, error)
	// ValueOwnership returns a list of scope identifiers that list the given address as the value owner
	ValueOwnership(context.Context, *ValueOwnershipRequest) (*ValueOwnershipResponse, error)
	// ScopeSpecification returns a scope specification for the given specification id
	ScopeSpecification(context.Context, *ScopeSpecificationRequest) (*ScopeSpecificationResponse, error)
	// ContractSpecification returns a contract specification for the given specification id
	ContractSpecification(context.Context, *ContractSpecificationRequest) (*ContractSpecificationResponse, error)
}

QueryServer is the server API for Query service.

type Recital

type Recital struct {
	// the role this address is performing for this contract execution
	SignerRole PartyType `` /* 130-byte string literal not displayed */
	// address of the account performing the role above
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

Recital is an address with/in a given role associated with a contract

func (*Recital) Descriptor

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

func (*Recital) GetAddress

func (m *Recital) GetAddress() string

func (*Recital) GetSignerRole

func (m *Recital) GetSignerRole() PartyType

func (*Recital) Marshal

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

func (*Recital) MarshalTo

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

func (*Recital) MarshalToSizedBuffer

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

func (*Recital) ProtoMessage

func (*Recital) ProtoMessage()

func (*Recital) Reset

func (m *Recital) Reset()

func (*Recital) Size

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

func (*Recital) String

func (m *Recital) String() string

func (*Recital) Unmarshal

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

func (*Recital) XXX_DiscardUnknown

func (m *Recital) XXX_DiscardUnknown()

func (*Recital) XXX_Marshal

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

func (*Recital) XXX_Merge

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

func (*Recital) XXX_Size

func (m *Recital) XXX_Size() int

func (*Recital) XXX_Unmarshal

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

type Recitals

type Recitals struct {
	Parties []*Recital `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"`
}

Recitals is a list of recital

func (*Recitals) Descriptor

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

func (*Recitals) GetParties

func (m *Recitals) GetParties() []*Recital

func (*Recitals) Marshal

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

func (*Recitals) MarshalTo

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

func (*Recitals) MarshalToSizedBuffer

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

func (*Recitals) ProtoMessage

func (*Recitals) ProtoMessage()

func (*Recitals) Reset

func (m *Recitals) Reset()

func (*Recitals) Size

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

func (*Recitals) String

func (m *Recitals) String() string

func (*Recitals) Unmarshal

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

func (*Recitals) XXX_DiscardUnknown

func (m *Recitals) XXX_DiscardUnknown()

func (*Recitals) XXX_Marshal

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

func (*Recitals) XXX_Merge

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

func (*Recitals) XXX_Size

func (m *Recitals) XXX_Size() int

func (*Recitals) XXX_Unmarshal

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

type Record

type Record struct {
	// name/identifier for this record.  Value must be unique within the scope.  Also known as a Fact name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"id" yaml:"id"`
	// id of the group context that was used to create this record (use with filtered kvprefix iterator)
	GroupId MetadataAddress `` /* 131-byte string literal not displayed */
	// process contain information used to uniquely identify an execution on or off chain that generated this record
	Process Process `protobuf:"bytes,3,opt,name=process,proto3" json:"process"`
	// inputs used with the process to achieve the output on this record
	Inputs []RecordInput `protobuf:"bytes,4,rep,name=inputs,proto3" json:"inputs"`
	// output(s) is the results of executing the process on the given process indicated in this record
	Outputs []RecordOutput `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs"`
}

A record (of fact) is attached to a group or each consideration output from a contract

func NewRecord added in v0.1.5

func NewRecord(name string, groupID MetadataAddress, process Process, inputs []RecordInput, outputs []RecordOutput) *Record

NewRecord creates new instance of Record

func (*Record) Descriptor

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

func (*Record) GetInputs

func (m *Record) GetInputs() []RecordInput

func (*Record) GetName

func (m *Record) GetName() string

func (*Record) GetOutputs added in v0.1.5

func (m *Record) GetOutputs() []RecordOutput

func (*Record) GetProcess

func (m *Record) GetProcess() Process

func (*Record) Marshal

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

func (*Record) MarshalTo

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

func (*Record) MarshalToSizedBuffer

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

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) Reset

func (m *Record) Reset()

func (*Record) Size

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

func (Record) String

func (r Record) String() string

String implements stringer interface

func (*Record) Unmarshal

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

func (Record) ValidateBasic

func (r Record) ValidateBasic() error

ValidateBasic performs static checking of Record format

func (*Record) XXX_DiscardUnknown

func (m *Record) XXX_DiscardUnknown()

func (*Record) XXX_Marshal

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

func (*Record) XXX_Merge

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

func (*Record) XXX_Size

func (m *Record) XXX_Size() int

func (*Record) XXX_Unmarshal

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

type RecordGroup

type RecordGroup struct {
	GroupId MetadataAddress `` /* 131-byte string literal not displayed */
	// unique id of the contract specification that was used to create this group.
	SpecificationId MetadataAddress `` /* 147-byte string literal not displayed */
	// Set of identities that signed this contract
	Parties []Party `protobuf:"bytes,3,rep,name=parties,proto3" json:"parties"`
	// name to associate with this record group execution context, typically classname
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"type" yaml:"type"`
	// Created by, updated by, timestamps, version number, and related info.
	Audit AuditFields `protobuf:"bytes,99,opt,name=audit,proto3" json:"audit"`
}

A RecordGroup is created for an execution context against a specific specification instance

The context will have a specification and set of parties involved. The RecordGroup may be updated several times so long as the parties listed are signers on the transaction. NOTE: When there are no Records within a Scope that reference a RecordGroup it is removed.

func NewRecordGroup

func NewRecordGroup(name string, groupID, contractSpecification MetadataAddress, parties []Party) *RecordGroup

NewRecordGroup creates a new instance

func (*RecordGroup) Descriptor

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

func (*RecordGroup) GetAudit

func (m *RecordGroup) GetAudit() AuditFields

func (*RecordGroup) GetName

func (m *RecordGroup) GetName() string

func (*RecordGroup) GetParties

func (m *RecordGroup) GetParties() []Party

func (*RecordGroup) Marshal

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

func (*RecordGroup) MarshalTo

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

func (*RecordGroup) MarshalToSizedBuffer

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

func (*RecordGroup) ProtoMessage

func (*RecordGroup) ProtoMessage()

func (*RecordGroup) Reset

func (m *RecordGroup) Reset()

func (*RecordGroup) Size

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

func (RecordGroup) String

func (rg RecordGroup) String() string

String implements stringer interface

func (*RecordGroup) Unmarshal

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

func (*RecordGroup) ValidateBasic

func (rg *RecordGroup) ValidateBasic() error

ValidateBasic performs basic format checking of data within a scope

func (*RecordGroup) XXX_DiscardUnknown

func (m *RecordGroup) XXX_DiscardUnknown()

func (*RecordGroup) XXX_Marshal

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

func (*RecordGroup) XXX_Merge

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

func (*RecordGroup) XXX_Size

func (m *RecordGroup) XXX_Size() int

func (*RecordGroup) XXX_Unmarshal

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

type RecordInput

type RecordInput struct {
	// Name value included to link back to the definition spec.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// data source
	//
	// Types that are valid to be assigned to Source:
	//	*RecordInput_RecordId
	//	*RecordInput_Hash
	Source isRecordInput_Source `protobuf_oneof:"source"`
	// from proposed fact structure to unmarshal
	TypeName string `protobuf:"bytes,4,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty" yaml:"type_name"`
	// Indicates if this input was a recorded fact on chain or just a given hashed input
	Status RecordInputStatus `protobuf:"varint,5,opt,name=status,proto3,enum=provenance.metadata.v1.RecordInputStatus" json:"status,omitempty"`
}

Tracks the inputs used to establish this record

func NewRecordInput added in v0.1.5

func NewRecordInput(name string, source isRecordInput_Source, typeName string, status RecordInputStatus) *RecordInput

NewRecordInput creates new instance of RecordInput

func (*RecordInput) Descriptor

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

func (*RecordInput) GetHash

func (m *RecordInput) GetHash() string

func (*RecordInput) GetName

func (m *RecordInput) GetName() string

func (*RecordInput) GetSource

func (m *RecordInput) GetSource() isRecordInput_Source

func (*RecordInput) GetStatus

func (m *RecordInput) GetStatus() RecordInputStatus

func (*RecordInput) GetTypeName

func (m *RecordInput) GetTypeName() string

func (*RecordInput) Marshal

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

func (*RecordInput) MarshalTo

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

func (*RecordInput) MarshalToSizedBuffer

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

func (*RecordInput) ProtoMessage

func (*RecordInput) ProtoMessage()

func (*RecordInput) Reset

func (m *RecordInput) Reset()

func (*RecordInput) Size

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

func (RecordInput) String

func (ri RecordInput) String() string

String implements stringer interface

func (*RecordInput) Unmarshal

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

func (RecordInput) ValidateBasic

func (ri RecordInput) ValidateBasic() error

ValidateBasic performs a static check over the record input format

func (*RecordInput) XXX_DiscardUnknown

func (m *RecordInput) XXX_DiscardUnknown()

func (*RecordInput) XXX_Marshal

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

func (*RecordInput) XXX_Merge

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

func (*RecordInput) XXX_OneofWrappers

func (*RecordInput) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*RecordInput) XXX_Size

func (m *RecordInput) XXX_Size() int

func (*RecordInput) XXX_Unmarshal

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

type RecordInputStatus

type RecordInputStatus int32

A set of types for inputs on a record (of fact)

const (
	// RECORD_INPUT_STATUS_UNSPECIFIED indicates an invalid/unknown input type
	RecordInputStatus_Unknown RecordInputStatus = 0
	// RECORD_INPUT_STATUS_PROPOSED indicates this input was an arbitrary piece of data that was hashed
	RecordInputStatus_Proposed RecordInputStatus = 1
	// RECORD_INPUT_STATUS_RECORD indicates this input is a reference to a previously recorded fact on blockchain
	RecordInputStatus_Record RecordInputStatus = 2
)

func (RecordInputStatus) EnumDescriptor

func (RecordInputStatus) EnumDescriptor() ([]byte, []int)

func (RecordInputStatus) String

func (x RecordInputStatus) String() string

type RecordInput_Hash

type RecordInput_Hash struct {
	Hash string `protobuf:"bytes,3,opt,name=hash,proto3,oneof" json:"hash,omitempty"`
}

func (*RecordInput_Hash) MarshalTo

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

func (*RecordInput_Hash) MarshalToSizedBuffer

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

func (*RecordInput_Hash) Size

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

type RecordInput_RecordId

type RecordInput_RecordId struct {
	RecordId MetadataAddress `` /* 152-byte string literal not displayed */
}

func (*RecordInput_RecordId) MarshalTo

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

func (*RecordInput_RecordId) MarshalToSizedBuffer

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

func (*RecordInput_RecordId) Size

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

type RecordOutput

type RecordOutput struct {
	// Hash of the data output that was output/generated for this record
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// Status of the process execution associated with this output indicating success,failure, or pending
	Status ResultStatus `protobuf:"varint,2,opt,name=status,proto3,enum=provenance.metadata.v1.ResultStatus" json:"status,omitempty"`
}

RecordOutput encapsulates the output of a process recorded on chain

func NewRecordOutput added in v0.1.5

func NewRecordOutput(hash string, status ResultStatus) *RecordOutput

NewRecordOutput creates a new instance of RecordOutput

func (*RecordOutput) Descriptor

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

func (*RecordOutput) GetHash

func (m *RecordOutput) GetHash() string

func (*RecordOutput) GetStatus

func (m *RecordOutput) GetStatus() ResultStatus

func (*RecordOutput) Marshal

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

func (*RecordOutput) MarshalTo

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

func (*RecordOutput) MarshalToSizedBuffer

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

func (*RecordOutput) ProtoMessage

func (*RecordOutput) ProtoMessage()

func (*RecordOutput) Reset

func (m *RecordOutput) Reset()

func (*RecordOutput) Size

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

func (RecordOutput) String

func (ro RecordOutput) String() string

String implements stringer interface

func (*RecordOutput) Unmarshal

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

func (RecordOutput) ValidateBasic added in v0.1.5

func (ro RecordOutput) ValidateBasic() error

ValidateBasic performs a static check over the record output format

func (*RecordOutput) XXX_DiscardUnknown

func (m *RecordOutput) XXX_DiscardUnknown()

func (*RecordOutput) XXX_Marshal

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

func (*RecordOutput) XXX_Merge

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

func (*RecordOutput) XXX_Size

func (m *RecordOutput) XXX_Size() int

func (*RecordOutput) XXX_Unmarshal

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

type RecordReference

type RecordReference struct {
	// name of the record (used to map against the contract's specification)
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// reference to an existing record on chain
	Reference Reference `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference"`
}

RecordReference wrap a factual data element.

func (*RecordReference) Descriptor

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

func (*RecordReference) GetName

func (m *RecordReference) GetName() string

func (*RecordReference) GetReference

func (m *RecordReference) GetReference() Reference

func (*RecordReference) Marshal

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

func (*RecordReference) MarshalTo

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

func (*RecordReference) MarshalToSizedBuffer

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

func (*RecordReference) ProtoMessage

func (*RecordReference) ProtoMessage()

func (*RecordReference) Reset

func (m *RecordReference) Reset()

func (*RecordReference) Size

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

func (*RecordReference) String

func (m *RecordReference) String() string

func (*RecordReference) Unmarshal

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

func (*RecordReference) XXX_DiscardUnknown

func (m *RecordReference) XXX_DiscardUnknown()

func (*RecordReference) XXX_Marshal

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

func (*RecordReference) XXX_Merge

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

func (*RecordReference) XXX_Size

func (m *RecordReference) XXX_Size() int

func (*RecordReference) XXX_Unmarshal

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

type RecordSpecification

type RecordSpecification struct {
	// unique identifier for this specification on chain
	SpecificationId MetadataAddress `` /* 147-byte string literal not displayed */
	// Name of Record that will be created when this specification is used
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// A set of inputs that must be satisified to apply this RecordSpecification and create a Record
	Inputs []*InputSpecification `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// A type name for data associated with this record (typically a class or proto name)
	TypeName string `protobuf:"bytes,4,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty" yaml:"type_name"`
	// Type of result for this record specification (must be RECORD or RECORD_LIST)
	ResultType DefinitionType `` /* 154-byte string literal not displayed */
	// Type of party responsible for this record
	ResponsibleParty PartyType `` /* 173-byte string literal not displayed */
}

RecordSpecification defines the specification for a Record including allowed/required inputs/outputs

func (*RecordSpecification) Descriptor

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

func (*RecordSpecification) GetInputs added in v0.1.5

func (m *RecordSpecification) GetInputs() []*InputSpecification

func (*RecordSpecification) GetName added in v0.1.5

func (m *RecordSpecification) GetName() string

func (*RecordSpecification) GetResponsibleParty added in v0.1.5

func (m *RecordSpecification) GetResponsibleParty() PartyType

func (*RecordSpecification) GetResultType added in v0.1.5

func (m *RecordSpecification) GetResultType() DefinitionType

func (*RecordSpecification) GetTypeName added in v0.1.5

func (m *RecordSpecification) GetTypeName() string

func (*RecordSpecification) Marshal

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

func (*RecordSpecification) MarshalTo

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

func (*RecordSpecification) MarshalToSizedBuffer

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

func (*RecordSpecification) ProtoMessage

func (*RecordSpecification) ProtoMessage()

func (*RecordSpecification) Reset

func (m *RecordSpecification) Reset()

func (*RecordSpecification) Size

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

func (*RecordSpecification) String

func (m *RecordSpecification) String() string

func (*RecordSpecification) Unmarshal

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

func (*RecordSpecification) ValidateBasic added in v0.1.5

func (s *RecordSpecification) ValidateBasic() error

func (*RecordSpecification) XXX_DiscardUnknown

func (m *RecordSpecification) XXX_DiscardUnknown()

func (*RecordSpecification) XXX_Marshal

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

func (*RecordSpecification) XXX_Merge

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

func (*RecordSpecification) XXX_Size

func (m *RecordSpecification) XXX_Size() int

func (*RecordSpecification) XXX_Unmarshal

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

type RecordsByScopeIDRequest added in v0.1.5

type RecordsByScopeIDRequest struct {
	ScopeId string `protobuf:"bytes,1,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" yaml:"scope_id"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}

RecordsByScopeIDRequest is a request for all of the records in a specific scope by bech32 id or a specific record if a name is given.

func (*RecordsByScopeIDRequest) Descriptor added in v0.1.5

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

func (*RecordsByScopeIDRequest) GetName added in v0.1.5

func (m *RecordsByScopeIDRequest) GetName() string

func (*RecordsByScopeIDRequest) GetScopeId added in v0.1.5

func (m *RecordsByScopeIDRequest) GetScopeId() string

func (*RecordsByScopeIDRequest) Marshal added in v0.1.5

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

func (*RecordsByScopeIDRequest) MarshalTo added in v0.1.5

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

func (*RecordsByScopeIDRequest) MarshalToSizedBuffer added in v0.1.5

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

func (*RecordsByScopeIDRequest) ProtoMessage added in v0.1.5

func (*RecordsByScopeIDRequest) ProtoMessage()

func (*RecordsByScopeIDRequest) Reset added in v0.1.5

func (m *RecordsByScopeIDRequest) Reset()

func (*RecordsByScopeIDRequest) Size added in v0.1.5

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

func (*RecordsByScopeIDRequest) String added in v0.1.5

func (m *RecordsByScopeIDRequest) String() string

func (*RecordsByScopeIDRequest) Unmarshal added in v0.1.5

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

func (*RecordsByScopeIDRequest) XXX_DiscardUnknown added in v0.1.5

func (m *RecordsByScopeIDRequest) XXX_DiscardUnknown()

func (*RecordsByScopeIDRequest) XXX_Marshal added in v0.1.5

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

func (*RecordsByScopeIDRequest) XXX_Merge added in v0.1.5

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

func (*RecordsByScopeIDRequest) XXX_Size added in v0.1.5

func (m *RecordsByScopeIDRequest) XXX_Size() int

func (*RecordsByScopeIDRequest) XXX_Unmarshal added in v0.1.5

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

type RecordsByScopeIDResponse added in v0.1.5

type RecordsByScopeIDResponse struct {
	ScopeUuid string    `protobuf:"bytes,1,opt,name=scope_uuid,json=scopeUuid,proto3" json:"scope_uuid,omitempty" yaml:"scope_uuid"`
	ScopeId   string    `protobuf:"bytes,2,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" yaml:"scope_id"`
	Records   []*Record `protobuf:"bytes,3,rep,name=records,proto3" json:"records,omitempty"`
}

RecordsByScopeIDResponse is the response to a RecordsByScopeIDRequest

func (*RecordsByScopeIDResponse) Descriptor added in v0.1.5

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

func (*RecordsByScopeIDResponse) GetRecords added in v0.1.5

func (m *RecordsByScopeIDResponse) GetRecords() []*Record

func (*RecordsByScopeIDResponse) GetScopeId added in v0.1.5

func (m *RecordsByScopeIDResponse) GetScopeId() string

func (*RecordsByScopeIDResponse) GetScopeUuid added in v0.1.5

func (m *RecordsByScopeIDResponse) GetScopeUuid() string

func (*RecordsByScopeIDResponse) Marshal added in v0.1.5

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

func (*RecordsByScopeIDResponse) MarshalTo added in v0.1.5

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

func (*RecordsByScopeIDResponse) MarshalToSizedBuffer added in v0.1.5

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

func (*RecordsByScopeIDResponse) ProtoMessage added in v0.1.5

func (*RecordsByScopeIDResponse) ProtoMessage()

func (*RecordsByScopeIDResponse) Reset added in v0.1.5

func (m *RecordsByScopeIDResponse) Reset()

func (*RecordsByScopeIDResponse) Size added in v0.1.5

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

func (*RecordsByScopeIDResponse) String added in v0.1.5

func (m *RecordsByScopeIDResponse) String() string

func (*RecordsByScopeIDResponse) Unmarshal added in v0.1.5

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

func (*RecordsByScopeIDResponse) XXX_DiscardUnknown added in v0.1.5

func (m *RecordsByScopeIDResponse) XXX_DiscardUnknown()

func (*RecordsByScopeIDResponse) XXX_Marshal added in v0.1.5

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

func (*RecordsByScopeIDResponse) XXX_Merge added in v0.1.5

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

func (*RecordsByScopeIDResponse) XXX_Size added in v0.1.5

func (m *RecordsByScopeIDResponse) XXX_Size() int

func (*RecordsByScopeIDResponse) XXX_Unmarshal added in v0.1.5

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

type RecordsByScopeUUIDRequest added in v0.1.5

type RecordsByScopeUUIDRequest struct {
	ScopeUuid string `protobuf:"bytes,1,opt,name=scope_uuid,json=scopeUuid,proto3" json:"scope_uuid,omitempty" yaml:"scope_uuid"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}

RecordsByScopeUUIDRequest is a request for all of the records in a specific scope by uuid or a specific record if a name is given.

func (*RecordsByScopeUUIDRequest) Descriptor added in v0.1.5

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

func (*RecordsByScopeUUIDRequest) GetName added in v0.1.5

func (m *RecordsByScopeUUIDRequest) GetName() string

func (*RecordsByScopeUUIDRequest) GetScopeUuid added in v0.1.5

func (m *RecordsByScopeUUIDRequest) GetScopeUuid() string

func (*RecordsByScopeUUIDRequest) Marshal added in v0.1.5

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

func (*RecordsByScopeUUIDRequest) MarshalTo added in v0.1.5

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

func (*RecordsByScopeUUIDRequest) MarshalToSizedBuffer added in v0.1.5

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

func (*RecordsByScopeUUIDRequest) ProtoMessage added in v0.1.5

func (*RecordsByScopeUUIDRequest) ProtoMessage()

func (*RecordsByScopeUUIDRequest) Reset added in v0.1.5

func (m *RecordsByScopeUUIDRequest) Reset()

func (*RecordsByScopeUUIDRequest) Size added in v0.1.5

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

func (*RecordsByScopeUUIDRequest) String added in v0.1.5

func (m *RecordsByScopeUUIDRequest) String() string

func (*RecordsByScopeUUIDRequest) Unmarshal added in v0.1.5

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

func (*RecordsByScopeUUIDRequest) XXX_DiscardUnknown added in v0.1.5

func (m *RecordsByScopeUUIDRequest) XXX_DiscardUnknown()

func (*RecordsByScopeUUIDRequest) XXX_Marshal added in v0.1.5

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

func (*RecordsByScopeUUIDRequest) XXX_Merge added in v0.1.5

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

func (*RecordsByScopeUUIDRequest) XXX_Size added in v0.1.5

func (m *RecordsByScopeUUIDRequest) XXX_Size() int

func (*RecordsByScopeUUIDRequest) XXX_Unmarshal added in v0.1.5

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

type RecordsByScopeUUIDResponse added in v0.1.5

type RecordsByScopeUUIDResponse struct {
	ScopeUuid string    `protobuf:"bytes,1,opt,name=scope_uuid,json=scopeUuid,proto3" json:"scope_uuid,omitempty" yaml:"scope_uuid"`
	ScopeId   string    `protobuf:"bytes,2,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" yaml:"scope_id"`
	Records   []*Record `protobuf:"bytes,3,rep,name=records,proto3" json:"records,omitempty"`
}

RecordsByScopeUUIDResponse is the response to a RecordsByScopeUUIDRequest

func (*RecordsByScopeUUIDResponse) Descriptor added in v0.1.5

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

func (*RecordsByScopeUUIDResponse) GetRecords added in v0.1.5

func (m *RecordsByScopeUUIDResponse) GetRecords() []*Record

func (*RecordsByScopeUUIDResponse) GetScopeId added in v0.1.5

func (m *RecordsByScopeUUIDResponse) GetScopeId() string

func (*RecordsByScopeUUIDResponse) GetScopeUuid added in v0.1.5

func (m *RecordsByScopeUUIDResponse) GetScopeUuid() string

func (*RecordsByScopeUUIDResponse) Marshal added in v0.1.5

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

func (*RecordsByScopeUUIDResponse) MarshalTo added in v0.1.5

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

func (*RecordsByScopeUUIDResponse) MarshalToSizedBuffer added in v0.1.5

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

func (*RecordsByScopeUUIDResponse) ProtoMessage added in v0.1.5

func (*RecordsByScopeUUIDResponse) ProtoMessage()

func (*RecordsByScopeUUIDResponse) Reset added in v0.1.5

func (m *RecordsByScopeUUIDResponse) Reset()

func (*RecordsByScopeUUIDResponse) Size added in v0.1.5

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

func (*RecordsByScopeUUIDResponse) String added in v0.1.5

func (m *RecordsByScopeUUIDResponse) String() string

func (*RecordsByScopeUUIDResponse) Unmarshal added in v0.1.5

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

func (*RecordsByScopeUUIDResponse) XXX_DiscardUnknown added in v0.1.5

func (m *RecordsByScopeUUIDResponse) XXX_DiscardUnknown()

func (*RecordsByScopeUUIDResponse) XXX_Marshal added in v0.1.5

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

func (*RecordsByScopeUUIDResponse) XXX_Merge added in v0.1.5

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

func (*RecordsByScopeUUIDResponse) XXX_Size added in v0.1.5

func (m *RecordsByScopeUUIDResponse) XXX_Size() int

func (*RecordsByScopeUUIDResponse) XXX_Unmarshal added in v0.1.5

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

type Reference

type Reference struct {
	// unique identifer for the scope being referenced
	ScopeId string `protobuf:"bytes,1,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty"`
	// require record to be within a specific group (optional)
	GroupId string `protobuf:"bytes,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// specify a specific record inside a scope (and group) by result-hash (optional)
	Hash string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	// specify a result-name of a record within a scope (optional)
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// type/classname of the target data (optional)
	TypeName string `protobuf:"bytes,6,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
}

Reference is a multipart structure that defines a reference to a piece of data recorded within a scope

func (*Reference) Descriptor

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

func (*Reference) GetGroupId

func (m *Reference) GetGroupId() string

func (*Reference) GetHash

func (m *Reference) GetHash() string

func (*Reference) GetName

func (m *Reference) GetName() string

func (*Reference) GetScopeId

func (m *Reference) GetScopeId() string

func (*Reference) GetTypeName

func (m *Reference) GetTypeName() string

func (*Reference) Marshal

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

func (*Reference) MarshalTo

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

func (*Reference) MarshalToSizedBuffer

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

func (*Reference) ProtoMessage

func (*Reference) ProtoMessage()

func (*Reference) Reset

func (m *Reference) Reset()

func (*Reference) Size

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

func (*Reference) String

func (m *Reference) String() string

func (*Reference) Unmarshal

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

func (*Reference) XXX_DiscardUnknown

func (m *Reference) XXX_DiscardUnknown()

func (*Reference) XXX_Marshal

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

func (*Reference) XXX_Merge

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

func (*Reference) XXX_Size

func (m *Reference) XXX_Size() int

func (*Reference) XXX_Unmarshal

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

type ResultStatus

type ResultStatus int32

ResultStatus indicates the various states of execution of a record

const (
	// RESULT_STATUS_UNSPECIFIED indicates an unset condition
	ResultStatus_RESULT_STATUS_UNSPECIFIED ResultStatus = 0
	// RESULT_STATUS_PASS indicates the execution was successfult
	ResultStatus_RESULT_STATUS_PASS ResultStatus = 1
	// RESULT_STATUS_SKIP indicates condition/consideration was skipped due to missing inputs or delayed execution
	ResultStatus_RESULT_STATUS_SKIP ResultStatus = 2
	// RESULT_STATUS_FAIL indicates the execution of the condition/consideration failed.
	ResultStatus_RESULT_STATUS_FAIL ResultStatus = 3
)

func (ResultStatus) EnumDescriptor

func (ResultStatus) EnumDescriptor() ([]byte, []int)

func (ResultStatus) String

func (x ResultStatus) String() string

type ResultType

type ResultType int32

Result indicates the various states of execution of a record

const (
	// RESULT_TYPE_UNSPECIFIED indicates an unset condition
	ResultType_RESULT_TYPE_UNSPECIFIED ResultType = 0
	// RESULT_TYPE_PASS indicates the execution was successfult
	ResultType_RESULT_TYPE_PASS ResultType = 1
	// RESULT_TYPE_SKIP indicates condition/consideration was skipped due to missing inputs or delayed execution
	ResultType_RESULT_TYPE_SKIP ResultType = 2
	// RESULT_TYPE_FAIL indicates the execution of the condition/consideration failed.
	ResultType_RESULT_TYPE_FAIL ResultType = 3
)

func (ResultType) EnumDescriptor

func (ResultType) EnumDescriptor() ([]byte, []int)

func (ResultType) String

func (x ResultType) String() string

type Scope

type Scope struct {
	// Unique ID for this scope.  Implements sdk.Address interface for use where addresses are required in Cosmos
	ScopeId MetadataAddress `protobuf:"bytes,1,opt,name=scope_id,json=scopeId,proto3,customtype=MetadataAddress" json:"scope_id" yaml:"scope_id"`
	// the scope specification that contains the specifications for data elements allowed within this scope
	SpecificationId MetadataAddress `` /* 147-byte string literal not displayed */
	// These parties represent top level owners of the records within.  These parties must sign any requests that modify
	// the data within the scope.  These addresses are in union with parties listed on the record groups.
	Owners []Party `protobuf:"bytes,3,rep,name=owners,proto3" json:"owners"`
	// Addessses in this list are authorized to recieve off-chain data associated with this scope.
	DataAccess []string `protobuf:"bytes,4,rep,name=data_access,json=dataAccess,proto3" json:"data_access,omitempty" yaml:"data_access"`
	// An address that controls the value associated with this scope.  Standard blockchain accounts and marker accounts
	// are supported for this value.  This attribute may only be changed by the entity indicated once it is set.
	ValueOwnerAddress string `` /* 141-byte string literal not displayed */
}

Scope defines a root reference for a collection of records owned by one or more parties.

func NewScope

func NewScope(
	scopeID,
	scopeSpecification MetadataAddress,
	owners []Party,
	dataAccess []string,
	valueOwner string,
) *Scope

NewScope creates a new instance.

func (*Scope) Descriptor

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

func (*Scope) GetDataAccess

func (m *Scope) GetDataAccess() []string

func (*Scope) GetOwners

func (m *Scope) GetOwners() []Party

func (*Scope) GetValueOwnerAddress

func (m *Scope) GetValueOwnerAddress() string

func (*Scope) Marshal

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

func (*Scope) MarshalTo

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

func (*Scope) MarshalToSizedBuffer

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

func (*Scope) ProtoMessage

func (*Scope) ProtoMessage()

func (*Scope) Reset

func (m *Scope) Reset()

func (*Scope) Size

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

func (Scope) String

func (s Scope) String() string

String implements stringer interface

func (*Scope) Unmarshal

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

func (*Scope) ValidateBasic

func (s *Scope) ValidateBasic() error

ValidateBasic performs basic format checking of data within a scope

func (*Scope) XXX_DiscardUnknown

func (m *Scope) XXX_DiscardUnknown()

func (*Scope) XXX_Marshal

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

func (*Scope) XXX_Merge

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

func (*Scope) XXX_Size

func (m *Scope) XXX_Size() int

func (*Scope) XXX_Unmarshal

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

type ScopeRequest

type ScopeRequest struct {
	ScopeUuid string `protobuf:"bytes,1,opt,name=scope_uuid,json=scopeUuid,proto3" json:"scope_uuid,omitempty" yaml:"scope_uuid"`
}

ScopeRequest is used for requesting a scope by id

func (*ScopeRequest) Descriptor

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

func (*ScopeRequest) GetScopeUuid added in v0.1.5

func (m *ScopeRequest) GetScopeUuid() string

func (*ScopeRequest) Marshal

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

func (*ScopeRequest) MarshalTo

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

func (*ScopeRequest) MarshalToSizedBuffer

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

func (*ScopeRequest) ProtoMessage

func (*ScopeRequest) ProtoMessage()

func (*ScopeRequest) Reset

func (m *ScopeRequest) Reset()

func (*ScopeRequest) Size

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

func (*ScopeRequest) String

func (m *ScopeRequest) String() string

func (*ScopeRequest) Unmarshal

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

func (*ScopeRequest) XXX_DiscardUnknown

func (m *ScopeRequest) XXX_DiscardUnknown()

func (*ScopeRequest) XXX_Marshal

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

func (*ScopeRequest) XXX_Merge

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

func (*ScopeRequest) XXX_Size

func (m *ScopeRequest) XXX_Size() int

func (*ScopeRequest) XXX_Unmarshal

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

type ScopeResponse

type ScopeResponse struct {
	Scope        *Scope         `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
	RecordGroups []*RecordGroup `protobuf:"bytes,2,rep,name=record_groups,json=recordGroups,proto3" json:"record_groups,omitempty" yaml:"record_groups"`
	Records      []*Record      `protobuf:"bytes,3,rep,name=records,proto3" json:"records,omitempty"`
}

ScopeResponse is the response to a scope request.

func (*ScopeResponse) Descriptor

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

func (*ScopeResponse) GetRecordGroups

func (m *ScopeResponse) GetRecordGroups() []*RecordGroup

func (*ScopeResponse) GetRecords

func (m *ScopeResponse) GetRecords() []*Record

func (*ScopeResponse) GetScope

func (m *ScopeResponse) GetScope() *Scope

func (*ScopeResponse) Marshal

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

func (*ScopeResponse) MarshalTo

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

func (*ScopeResponse) MarshalToSizedBuffer

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

func (*ScopeResponse) ProtoMessage

func (*ScopeResponse) ProtoMessage()

func (*ScopeResponse) Reset

func (m *ScopeResponse) Reset()

func (*ScopeResponse) Size

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

func (*ScopeResponse) String

func (m *ScopeResponse) String() string

func (*ScopeResponse) Unmarshal

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

func (*ScopeResponse) XXX_DiscardUnknown

func (m *ScopeResponse) XXX_DiscardUnknown()

func (*ScopeResponse) XXX_Marshal

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

func (*ScopeResponse) XXX_Merge

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

func (*ScopeResponse) XXX_Size

func (m *ScopeResponse) XXX_Size() int

func (*ScopeResponse) XXX_Unmarshal

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

type ScopeSpecification

type ScopeSpecification struct {
	// unique identifier for this specification on chain
	SpecificationId MetadataAddress `` /* 147-byte string literal not displayed */
	// General information about this scope specification.
	Description *Description `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Addresses of the owners of this scope specification.
	OwnerAddresses []string `` /* 126-byte string literal not displayed */
	// A list of parties that must be present on a scope (and their associated roles)
	PartiesInvolved []PartyType `` /* 176-byte string literal not displayed */
	// A list of contract specification ids allowed for a scope based on this specification.
	ContractSpecIds []MetadataAddress `` /* 150-byte string literal not displayed */
}

ScopeSpecification defines the required parties, resources, conditions, and consideration outputs for a contract

func NewScopeSpecification added in v0.1.5

func NewScopeSpecification(
	specificationID MetadataAddress,
	description *Description,
	ownerAddresses []string,
	partiesInvolved []PartyType,
	contractSpecIDs []MetadataAddress,
) *ScopeSpecification

NewScopeSpecification creates a new ScopeSpecification instance.

func (*ScopeSpecification) Descriptor

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

func (*ScopeSpecification) GetDescription

func (m *ScopeSpecification) GetDescription() *Description

func (*ScopeSpecification) GetOwnerAddresses

func (m *ScopeSpecification) GetOwnerAddresses() []string

func (*ScopeSpecification) GetPartiesInvolved

func (m *ScopeSpecification) GetPartiesInvolved() []PartyType

func (*ScopeSpecification) Marshal

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

func (*ScopeSpecification) MarshalTo

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

func (*ScopeSpecification) MarshalToSizedBuffer

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

func (*ScopeSpecification) ProtoMessage

func (*ScopeSpecification) ProtoMessage()

func (*ScopeSpecification) Reset

func (m *ScopeSpecification) Reset()

func (*ScopeSpecification) Size

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

func (ScopeSpecification) String

func (s ScopeSpecification) String() string

String implements stringer interface

func (*ScopeSpecification) Unmarshal

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

func (*ScopeSpecification) ValidateBasic added in v0.1.5

func (s *ScopeSpecification) ValidateBasic() error

ValidateBasic performs basic format checking of data in a ScopeSpecification

func (*ScopeSpecification) XXX_DiscardUnknown

func (m *ScopeSpecification) XXX_DiscardUnknown()

func (*ScopeSpecification) XXX_Marshal

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

func (*ScopeSpecification) XXX_Merge

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

func (*ScopeSpecification) XXX_Size

func (m *ScopeSpecification) XXX_Size() int

func (*ScopeSpecification) XXX_Unmarshal

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

type ScopeSpecificationRequest added in v0.1.5

type ScopeSpecificationRequest struct {
	SpecificationUuid string `` /* 138-byte string literal not displayed */
}

ScopeSpecificationRequest is used for requesting a scope specification by uuid

func (*ScopeSpecificationRequest) Descriptor added in v0.1.5

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

func (*ScopeSpecificationRequest) GetSpecificationUuid added in v0.1.5

func (m *ScopeSpecificationRequest) GetSpecificationUuid() string

func (*ScopeSpecificationRequest) Marshal added in v0.1.5

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

func (*ScopeSpecificationRequest) MarshalTo added in v0.1.5

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

func (*ScopeSpecificationRequest) MarshalToSizedBuffer added in v0.1.5

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

func (*ScopeSpecificationRequest) ProtoMessage added in v0.1.5

func (*ScopeSpecificationRequest) ProtoMessage()

func (*ScopeSpecificationRequest) Reset added in v0.1.5

func (m *ScopeSpecificationRequest) Reset()

func (*ScopeSpecificationRequest) Size added in v0.1.5

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

func (*ScopeSpecificationRequest) String added in v0.1.5

func (m *ScopeSpecificationRequest) String() string

func (*ScopeSpecificationRequest) Unmarshal added in v0.1.5

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

func (*ScopeSpecificationRequest) XXX_DiscardUnknown added in v0.1.5

func (m *ScopeSpecificationRequest) XXX_DiscardUnknown()

func (*ScopeSpecificationRequest) XXX_Marshal added in v0.1.5

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

func (*ScopeSpecificationRequest) XXX_Merge added in v0.1.5

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

func (*ScopeSpecificationRequest) XXX_Size added in v0.1.5

func (m *ScopeSpecificationRequest) XXX_Size() int

func (*ScopeSpecificationRequest) XXX_Unmarshal added in v0.1.5

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

type ScopeSpecificationResponse added in v0.1.5

type ScopeSpecificationResponse struct {
	ScopeSpecification *ScopeSpecification `` /* 142-byte string literal not displayed */
}

ScopeSpecification is the response to a scope specification request.

func (*ScopeSpecificationResponse) Descriptor added in v0.1.5

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

func (*ScopeSpecificationResponse) GetScopeSpecification added in v0.1.5

func (m *ScopeSpecificationResponse) GetScopeSpecification() *ScopeSpecification

func (*ScopeSpecificationResponse) Marshal added in v0.1.5

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

func (*ScopeSpecificationResponse) MarshalTo added in v0.1.5

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

func (*ScopeSpecificationResponse) MarshalToSizedBuffer added in v0.1.5

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

func (*ScopeSpecificationResponse) ProtoMessage added in v0.1.5

func (*ScopeSpecificationResponse) ProtoMessage()

func (*ScopeSpecificationResponse) Reset added in v0.1.5

func (m *ScopeSpecificationResponse) Reset()

func (*ScopeSpecificationResponse) Size added in v0.1.5

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

func (*ScopeSpecificationResponse) String added in v0.1.5

func (m *ScopeSpecificationResponse) String() string

func (*ScopeSpecificationResponse) Unmarshal added in v0.1.5

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

func (*ScopeSpecificationResponse) XXX_DiscardUnknown added in v0.1.5

func (m *ScopeSpecificationResponse) XXX_DiscardUnknown()

func (*ScopeSpecificationResponse) XXX_Marshal added in v0.1.5

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

func (*ScopeSpecificationResponse) XXX_Merge added in v0.1.5

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

func (*ScopeSpecificationResponse) XXX_Size added in v0.1.5

func (m *ScopeSpecificationResponse) XXX_Size() int

func (*ScopeSpecificationResponse) XXX_Unmarshal added in v0.1.5

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddContractSpecification added in v0.1.5

func (*UnimplementedMsgServer) AddRecord

func (*UnimplementedMsgServer) AddRecordGroup

func (*UnimplementedMsgServer) AddScope

func (*UnimplementedMsgServer) AddScopeSpecification

func (*UnimplementedMsgServer) ChangeOwnership

func (*UnimplementedMsgServer) DeleteContractSpecification added in v0.1.5

func (*UnimplementedMsgServer) DeleteScope added in v0.1.5

func (*UnimplementedMsgServer) DeleteScopeSpecification added in v0.1.5

func (*UnimplementedMsgServer) MemorializeContract

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ContractSpecification added in v0.1.5

func (*UnimplementedQueryServer) GroupContext

func (*UnimplementedQueryServer) Ownership

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) RecordsByScopeID added in v0.1.5

func (*UnimplementedQueryServer) RecordsByScopeUUID added in v0.1.5

func (*UnimplementedQueryServer) Scope

func (*UnimplementedQueryServer) ScopeSpecification added in v0.1.5

func (*UnimplementedQueryServer) ValueOwnership

type ValueOwnershipRequest

type ValueOwnershipRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

ValueOwnershipRequest looks for all scope level resources that have the address as the value owner

func (*ValueOwnershipRequest) Descriptor

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

func (*ValueOwnershipRequest) GetAddress

func (m *ValueOwnershipRequest) GetAddress() string

func (*ValueOwnershipRequest) GetPagination

func (m *ValueOwnershipRequest) GetPagination() *query.PageRequest

func (*ValueOwnershipRequest) Marshal

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

func (*ValueOwnershipRequest) MarshalTo

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

func (*ValueOwnershipRequest) MarshalToSizedBuffer

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

func (*ValueOwnershipRequest) ProtoMessage

func (*ValueOwnershipRequest) ProtoMessage()

func (*ValueOwnershipRequest) Reset

func (m *ValueOwnershipRequest) Reset()

func (*ValueOwnershipRequest) Size

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

func (*ValueOwnershipRequest) String

func (m *ValueOwnershipRequest) String() string

func (*ValueOwnershipRequest) Unmarshal

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

func (*ValueOwnershipRequest) XXX_DiscardUnknown

func (m *ValueOwnershipRequest) XXX_DiscardUnknown()

func (*ValueOwnershipRequest) XXX_Marshal

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

func (*ValueOwnershipRequest) XXX_Merge

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

func (*ValueOwnershipRequest) XXX_Size

func (m *ValueOwnershipRequest) XXX_Size() int

func (*ValueOwnershipRequest) XXX_Unmarshal

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

type ValueOwnershipResponse

type ValueOwnershipResponse struct {
	// A list of scope ids (uuid) associated with the given address.
	ScopeUuids []string `protobuf:"bytes,1,rep,name=scope_uuids,json=scopeUuids,proto3" json:"scope_uuids,omitempty" yaml:"scope_uuids"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

ValueOwnershipResponse is the reponse to the Valueownership request and includes a list of scope identifiers

func (*ValueOwnershipResponse) Descriptor

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

func (*ValueOwnershipResponse) GetPagination

func (m *ValueOwnershipResponse) GetPagination() *query.PageResponse

func (*ValueOwnershipResponse) GetScopeUuids added in v0.1.5

func (m *ValueOwnershipResponse) GetScopeUuids() []string

func (*ValueOwnershipResponse) Marshal

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

func (*ValueOwnershipResponse) MarshalTo

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

func (*ValueOwnershipResponse) MarshalToSizedBuffer

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

func (*ValueOwnershipResponse) ProtoMessage

func (*ValueOwnershipResponse) ProtoMessage()

func (*ValueOwnershipResponse) Reset

func (m *ValueOwnershipResponse) Reset()

func (*ValueOwnershipResponse) Size

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

func (*ValueOwnershipResponse) String

func (m *ValueOwnershipResponse) String() string

func (*ValueOwnershipResponse) Unmarshal

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

func (*ValueOwnershipResponse) XXX_DiscardUnknown

func (m *ValueOwnershipResponse) XXX_DiscardUnknown()

func (*ValueOwnershipResponse) XXX_Marshal

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

func (*ValueOwnershipResponse) XXX_Merge

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

func (*ValueOwnershipResponse) XXX_Size

func (m *ValueOwnershipResponse) XXX_Size() int

func (*ValueOwnershipResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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