Documentation ¶
Index ¶
- Variables
- func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec, ...) error
- type Claim
- func (*Claim) Descriptor() ([]byte, []int)
- func (m *Claim) GetAgentAddress() string
- func (m *Claim) GetAgentDid() string
- func (m *Claim) GetClaimId() string
- func (m *Claim) GetCollectionId() string
- func (m *Claim) GetEvaluation() *Evaluation
- func (m *Claim) GetPaymentsStatus() *ClaimPayments
- func (m *Claim) GetSubmissionDate() *time.Time
- func (m *Claim) Marshal() (dAtA []byte, err error)
- func (m *Claim) MarshalTo(dAtA []byte) (int, error)
- func (m *Claim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Claim) ProtoMessage()
- func (m *Claim) Reset()
- func (m *Claim) Size() (n int)
- func (m *Claim) String() string
- func (m *Claim) Unmarshal(dAtA []byte) error
- func (m *Claim) XXX_DiscardUnknown()
- func (m *Claim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Claim) XXX_Merge(src proto.Message)
- func (m *Claim) XXX_Size() int
- func (m *Claim) XXX_Unmarshal(b []byte) error
- type ClaimPayments
- func (*ClaimPayments) Descriptor() ([]byte, []int)
- func (m *ClaimPayments) GetApproval() PaymentStatus
- func (m *ClaimPayments) GetEvaluation() PaymentStatus
- func (m *ClaimPayments) GetRejection() PaymentStatus
- func (m *ClaimPayments) GetSubmission() PaymentStatus
- func (m *ClaimPayments) Marshal() (dAtA []byte, err error)
- func (m *ClaimPayments) MarshalTo(dAtA []byte) (int, error)
- func (m *ClaimPayments) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClaimPayments) ProtoMessage()
- func (m *ClaimPayments) Reset()
- func (m *ClaimPayments) Size() (n int)
- func (m *ClaimPayments) String() string
- func (m *ClaimPayments) Unmarshal(dAtA []byte) error
- func (m *ClaimPayments) XXX_DiscardUnknown()
- func (m *ClaimPayments) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClaimPayments) XXX_Merge(src proto.Message)
- func (m *ClaimPayments) XXX_Size() int
- func (m *ClaimPayments) XXX_Unmarshal(b []byte) error
- type Collection
- func (*Collection) Descriptor() ([]byte, []int)
- func (m *Collection) GetAdmin() string
- func (m *Collection) GetApproved() uint64
- func (m *Collection) GetCount() uint64
- func (m *Collection) GetDisputed() uint64
- func (m *Collection) GetEndDate() *time.Time
- func (m *Collection) GetEntity() string
- func (m *Collection) GetEvaluated() uint64
- func (m *Collection) GetId() string
- func (m *Collection) GetInvalidated() uint64
- func (m *Collection) GetPayments() *Payments
- func (m *Collection) GetProtocol() string
- func (m *Collection) GetQuota() uint64
- func (m *Collection) GetRejected() uint64
- func (m *Collection) GetSigner() string
- func (m *Collection) GetStartDate() *time.Time
- func (m *Collection) GetState() CollectionState
- func (m *Collection) Marshal() (dAtA []byte, err error)
- func (m *Collection) MarshalTo(dAtA []byte) (int, error)
- func (m *Collection) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Collection) ProtoMessage()
- func (m *Collection) Reset()
- func (m *Collection) Size() (n int)
- func (m *Collection) String() string
- func (m *Collection) Unmarshal(dAtA []byte) error
- func (m *Collection) XXX_DiscardUnknown()
- func (m *Collection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Collection) XXX_Merge(src proto.Message)
- func (m *Collection) XXX_Size() int
- func (m *Collection) XXX_Unmarshal(b []byte) error
- type CollectionState
- type Contract1155Payment
- func (*Contract1155Payment) Descriptor() ([]byte, []int)
- func (this *Contract1155Payment) Equal(that interface{}) bool
- func (m *Contract1155Payment) GetAddress() string
- func (m *Contract1155Payment) GetAmount() uint32
- func (m *Contract1155Payment) GetTokenId() string
- func (m *Contract1155Payment) Marshal() (dAtA []byte, err error)
- func (m *Contract1155Payment) MarshalTo(dAtA []byte) (int, error)
- func (m *Contract1155Payment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Contract1155Payment) ProtoMessage()
- func (m *Contract1155Payment) Reset()
- func (m *Contract1155Payment) Size() (n int)
- func (m *Contract1155Payment) String() string
- func (m *Contract1155Payment) Unmarshal(dAtA []byte) error
- func (m *Contract1155Payment) XXX_DiscardUnknown()
- func (m *Contract1155Payment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Contract1155Payment) XXX_Merge(src proto.Message)
- func (m *Contract1155Payment) XXX_Size() int
- func (m *Contract1155Payment) XXX_Unmarshal(b []byte) error
- type Dispute
- func (*Dispute) Descriptor() ([]byte, []int)
- func (m *Dispute) GetData() *DisputeData
- func (m *Dispute) GetSubjectId() string
- func (m *Dispute) GetType() int32
- func (m *Dispute) Marshal() (dAtA []byte, err error)
- func (m *Dispute) MarshalTo(dAtA []byte) (int, error)
- func (m *Dispute) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Dispute) ProtoMessage()
- func (m *Dispute) Reset()
- func (m *Dispute) Size() (n int)
- func (m *Dispute) String() string
- func (m *Dispute) Unmarshal(dAtA []byte) error
- func (m *Dispute) XXX_DiscardUnknown()
- func (m *Dispute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Dispute) XXX_Merge(src proto.Message)
- func (m *Dispute) XXX_Size() int
- func (m *Dispute) XXX_Unmarshal(b []byte) error
- type DisputeData
- func (*DisputeData) Descriptor() ([]byte, []int)
- func (m *DisputeData) GetEncrypted() bool
- func (m *DisputeData) GetProof() string
- func (m *DisputeData) GetType() string
- func (m *DisputeData) GetUri() string
- func (m *DisputeData) Marshal() (dAtA []byte, err error)
- func (m *DisputeData) MarshalTo(dAtA []byte) (int, error)
- func (m *DisputeData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DisputeData) ProtoMessage()
- func (m *DisputeData) Reset()
- func (m *DisputeData) Size() (n int)
- func (m *DisputeData) String() string
- func (m *DisputeData) Unmarshal(dAtA []byte) error
- func (m *DisputeData) XXX_DiscardUnknown()
- func (m *DisputeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DisputeData) XXX_Merge(src proto.Message)
- func (m *DisputeData) XXX_Size() int
- func (m *DisputeData) XXX_Unmarshal(b []byte) error
- type Evaluation
- func (*Evaluation) Descriptor() ([]byte, []int)
- func (m *Evaluation) GetAgentAddress() string
- func (m *Evaluation) GetAgentDid() string
- func (m *Evaluation) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Evaluation) GetClaimId() string
- func (m *Evaluation) GetCollectionId() string
- func (m *Evaluation) GetEvaluationDate() *time.Time
- func (m *Evaluation) GetOracle() string
- func (m *Evaluation) GetReason() uint32
- func (m *Evaluation) GetStatus() EvaluationStatus
- func (m *Evaluation) GetVerificationProof() string
- func (m *Evaluation) Marshal() (dAtA []byte, err error)
- func (m *Evaluation) MarshalTo(dAtA []byte) (int, error)
- func (m *Evaluation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Evaluation) ProtoMessage()
- func (m *Evaluation) Reset()
- func (m *Evaluation) Size() (n int)
- func (m *Evaluation) String() string
- func (m *Evaluation) Unmarshal(dAtA []byte) error
- func (m *Evaluation) XXX_DiscardUnknown()
- func (m *Evaluation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Evaluation) XXX_Merge(src proto.Message)
- func (m *Evaluation) XXX_Size() int
- func (m *Evaluation) XXX_Unmarshal(b []byte) error
- type EvaluationStatus
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetCollectionSequence() uint64
- func (m *Params) GetIxoAccount() string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Payment
- func (*Payment) Descriptor() ([]byte, []int)
- func (m *Payment) GetAccount() string
- func (m *Payment) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Payment) GetContract_1155Payment() *Contract1155Payment
- func (m *Payment) GetTimeoutNs() time.Duration
- func (m *Payment) Marshal() (dAtA []byte, err error)
- func (m *Payment) MarshalTo(dAtA []byte) (int, error)
- func (m *Payment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Payment) ProtoMessage()
- func (m *Payment) Reset()
- func (m *Payment) Size() (n int)
- func (m *Payment) String() string
- func (m *Payment) Unmarshal(dAtA []byte) error
- func (m *Payment) XXX_DiscardUnknown()
- func (m *Payment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payment) XXX_Merge(src proto.Message)
- func (m *Payment) XXX_Size() int
- func (m *Payment) XXX_Unmarshal(b []byte) error
- type PaymentStatus
- type PaymentType
- type Payments
- func (*Payments) Descriptor() ([]byte, []int)
- func (m *Payments) GetApproval() *Payment
- func (m *Payments) GetEvaluation() *Payment
- func (m *Payments) GetRejection() *Payment
- func (m *Payments) GetSubmission() *Payment
- func (m *Payments) Marshal() (dAtA []byte, err error)
- func (m *Payments) MarshalTo(dAtA []byte) (int, error)
- func (m *Payments) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Payments) ProtoMessage()
- func (m *Payments) Reset()
- func (m *Payments) Size() (n int)
- func (m *Payments) String() string
- func (m *Payments) Unmarshal(dAtA []byte) error
- func (m *Payments) XXX_DiscardUnknown()
- func (m *Payments) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payments) XXX_Merge(src proto.Message)
- func (m *Payments) XXX_Size() int
- func (m *Payments) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthClaims = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClaims = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupClaims = fmt.Errorf("proto: unexpected end of group") )
View Source
var CollectionState_name = map[int32]string{
0: "OPEN",
1: "PAUSED",
2: "CLOSED",
}
View Source
var CollectionState_value = map[string]int32{
"OPEN": 0,
"PAUSED": 1,
"CLOSED": 2,
}
View Source
var EvaluationStatus_name = map[int32]string{
0: "PENDING",
1: "APPROVED",
2: "REJECTED",
3: "DISPUTED",
4: "INVALIDATED",
}
View Source
var EvaluationStatus_value = map[string]int32{
"PENDING": 0,
"APPROVED": 1,
"REJECTED": 2,
"DISPUTED": 3,
"INVALIDATED": 4,
}
View Source
var PaymentStatus_name = map[int32]string{
0: "NO_PAYMENT",
1: "PROMISED",
2: "AUTHORIZED",
3: "GAURANTEED",
4: "PAID",
5: "FAILED",
6: "DISPUTED",
}
View Source
var PaymentStatus_value = map[string]int32{
"NO_PAYMENT": 0,
"PROMISED": 1,
"AUTHORIZED": 2,
"GAURANTEED": 3,
"PAID": 4,
"FAILED": 5,
"DISPUTED": 6,
}
View Source
var PaymentType_name = map[int32]string{
0: "SUBMISSION",
1: "APPROVAL",
2: "EVALUATION",
3: "REJECTION",
}
View Source
var PaymentType_value = map[string]int32{
"SUBMISSION": 0,
"APPROVAL": 1,
"EVALUATION": 2,
"REJECTION": 3,
}
Functions ¶
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec, paramstore paramstypes.Subspace, accKeeper types.AccountKeeper) error
MigrateStore performs in-place store migrations from ConsensusVersion 2 to 3.
Types ¶
type Claim ¶
type Claim struct { // collection_id indicates to which Collection this claim belongs CollectionId string `protobuf:"bytes,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` // agent is the DID of the agent submitting the claim AgentDid string `protobuf:"bytes,2,opt,name=agent_did,json=agentDid,proto3" json:"agent_did,omitempty"` AgentAddress string `protobuf:"bytes,3,opt,name=agent_address,json=agentAddress,proto3" json:"agent_address,omitempty"` // submissionDate is the date and time that the claim was submitted on-chain SubmissionDate *time.Time `protobuf:"bytes,4,opt,name=submission_date,json=submissionDate,proto3,stdtime" json:"submission_date,omitempty"` // claimID is the unique identifier of the claim in the cid hash format ClaimId string `protobuf:"bytes,5,opt,name=claim_id,json=claimId,proto3" json:"claim_id,omitempty"` // evaluation is the result of one or more claim evaluations Evaluation *Evaluation `protobuf:"bytes,6,opt,name=evaluation,proto3" json:"evaluation,omitempty"` PaymentsStatus *ClaimPayments `protobuf:"bytes,7,opt,name=payments_status,json=paymentsStatus,proto3" json:"payments_status,omitempty"` }
func (*Claim) Descriptor ¶
func (*Claim) GetAgentAddress ¶
func (*Claim) GetAgentDid ¶
func (*Claim) GetClaimId ¶
func (*Claim) GetCollectionId ¶
func (*Claim) GetEvaluation ¶
func (m *Claim) GetEvaluation() *Evaluation
func (*Claim) GetPaymentsStatus ¶
func (m *Claim) GetPaymentsStatus() *ClaimPayments
func (*Claim) GetSubmissionDate ¶
func (*Claim) ProtoMessage ¶
func (*Claim) ProtoMessage()
func (*Claim) XXX_DiscardUnknown ¶
func (m *Claim) XXX_DiscardUnknown()
func (*Claim) XXX_Marshal ¶
func (*Claim) XXX_Unmarshal ¶
type ClaimPayments ¶
type ClaimPayments struct { Submission PaymentStatus `protobuf:"varint,1,opt,name=submission,proto3,enum=ixo.claims.v1beta1.PaymentStatus" json:"submission,omitempty"` Evaluation PaymentStatus `protobuf:"varint,2,opt,name=evaluation,proto3,enum=ixo.claims.v1beta1.PaymentStatus" json:"evaluation,omitempty"` Approval PaymentStatus `protobuf:"varint,3,opt,name=approval,proto3,enum=ixo.claims.v1beta1.PaymentStatus" json:"approval,omitempty"` Rejection PaymentStatus `protobuf:"varint,4,opt,name=rejection,proto3,enum=ixo.claims.v1beta1.PaymentStatus" json:"rejection,omitempty"` }
func (*ClaimPayments) Descriptor ¶
func (*ClaimPayments) Descriptor() ([]byte, []int)
func (*ClaimPayments) GetApproval ¶
func (m *ClaimPayments) GetApproval() PaymentStatus
func (*ClaimPayments) GetEvaluation ¶
func (m *ClaimPayments) GetEvaluation() PaymentStatus
func (*ClaimPayments) GetRejection ¶
func (m *ClaimPayments) GetRejection() PaymentStatus
func (*ClaimPayments) GetSubmission ¶
func (m *ClaimPayments) GetSubmission() PaymentStatus
func (*ClaimPayments) Marshal ¶
func (m *ClaimPayments) Marshal() (dAtA []byte, err error)
func (*ClaimPayments) MarshalToSizedBuffer ¶
func (m *ClaimPayments) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClaimPayments) ProtoMessage ¶
func (*ClaimPayments) ProtoMessage()
func (*ClaimPayments) Reset ¶
func (m *ClaimPayments) Reset()
func (*ClaimPayments) Size ¶
func (m *ClaimPayments) Size() (n int)
func (*ClaimPayments) String ¶
func (m *ClaimPayments) String() string
func (*ClaimPayments) Unmarshal ¶
func (m *ClaimPayments) Unmarshal(dAtA []byte) error
func (*ClaimPayments) XXX_DiscardUnknown ¶
func (m *ClaimPayments) XXX_DiscardUnknown()
func (*ClaimPayments) XXX_Marshal ¶
func (m *ClaimPayments) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClaimPayments) XXX_Merge ¶
func (m *ClaimPayments) XXX_Merge(src proto.Message)
func (*ClaimPayments) XXX_Size ¶
func (m *ClaimPayments) XXX_Size() int
func (*ClaimPayments) XXX_Unmarshal ¶
func (m *ClaimPayments) XXX_Unmarshal(b []byte) error
type Collection ¶
type Collection struct { // collection id is the incremented internal id for the collection of claims Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // entity is the DID of the entity for which the claims are being created Entity string `protobuf:"bytes,2,opt,name=entity,proto3" json:"entity,omitempty"` // admin is the account address that will authorize or revoke agents and // payments (the grantor), and can update the collection Admin string `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"` // protocol is the DID of the claim protocol Protocol string `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"` // startDate is the date after which claims may be submitted StartDate *time.Time `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"` // endDate is the date after which no more claims may be submitted (no endDate // is allowed) EndDate *time.Time `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date,omitempty"` // quota is the maximum number of claims that may be submitted, 0 is unlimited Quota uint64 `protobuf:"varint,7,opt,name=quota,proto3" json:"quota,omitempty"` // count is the number of claims already submitted (internally calculated) Count uint64 `protobuf:"varint,8,opt,name=count,proto3" json:"count,omitempty"` // evaluated is the number of claims that have been evaluated (internally // calculated) Evaluated uint64 `protobuf:"varint,9,opt,name=evaluated,proto3" json:"evaluated,omitempty"` // approved is the number of claims that have been evaluated and approved // (internally calculated) Approved uint64 `protobuf:"varint,10,opt,name=approved,proto3" json:"approved,omitempty"` // rejected is the number of claims that have been evaluated and rejected // (internally calculated) Rejected uint64 `protobuf:"varint,11,opt,name=rejected,proto3" json:"rejected,omitempty"` // disputed is the number of claims that have disputed status (internally // calculated) Disputed uint64 `protobuf:"varint,12,opt,name=disputed,proto3" json:"disputed,omitempty"` // state is the current state of this Collection (open, paused, closed) State CollectionState `protobuf:"varint,13,opt,name=state,proto3,enum=ixo.claims.v1beta1.CollectionState" json:"state,omitempty"` // payments is the amount paid for claim submission, evaluation, approval, or // rejection Payments *Payments `protobuf:"bytes,14,opt,name=payments,proto3" json:"payments,omitempty"` // signer address Signer string `protobuf:"bytes,15,opt,name=signer,proto3" json:"signer,omitempty"` // invalidated is the number of claims that have been evaluated as invalid // (internally calculated) Invalidated uint64 `protobuf:"varint,16,opt,name=invalidated,proto3" json:"invalidated,omitempty"` }
func (*Collection) Descriptor ¶
func (*Collection) Descriptor() ([]byte, []int)
func (*Collection) GetAdmin ¶
func (m *Collection) GetAdmin() string
func (*Collection) GetApproved ¶
func (m *Collection) GetApproved() uint64
func (*Collection) GetCount ¶
func (m *Collection) GetCount() uint64
func (*Collection) GetDisputed ¶
func (m *Collection) GetDisputed() uint64
func (*Collection) GetEndDate ¶
func (m *Collection) GetEndDate() *time.Time
func (*Collection) GetEntity ¶
func (m *Collection) GetEntity() string
func (*Collection) GetEvaluated ¶
func (m *Collection) GetEvaluated() uint64
func (*Collection) GetId ¶
func (m *Collection) GetId() string
func (*Collection) GetInvalidated ¶
func (m *Collection) GetInvalidated() uint64
func (*Collection) GetPayments ¶
func (m *Collection) GetPayments() *Payments
func (*Collection) GetProtocol ¶
func (m *Collection) GetProtocol() string
func (*Collection) GetQuota ¶
func (m *Collection) GetQuota() uint64
func (*Collection) GetRejected ¶
func (m *Collection) GetRejected() uint64
func (*Collection) GetSigner ¶
func (m *Collection) GetSigner() string
func (*Collection) GetStartDate ¶
func (m *Collection) GetStartDate() *time.Time
func (*Collection) GetState ¶
func (m *Collection) GetState() CollectionState
func (*Collection) Marshal ¶
func (m *Collection) Marshal() (dAtA []byte, err error)
func (*Collection) MarshalToSizedBuffer ¶
func (m *Collection) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Collection) ProtoMessage ¶
func (*Collection) ProtoMessage()
func (*Collection) Reset ¶
func (m *Collection) Reset()
func (*Collection) Size ¶
func (m *Collection) Size() (n int)
func (*Collection) String ¶
func (m *Collection) String() string
func (*Collection) Unmarshal ¶
func (m *Collection) Unmarshal(dAtA []byte) error
func (*Collection) XXX_DiscardUnknown ¶
func (m *Collection) XXX_DiscardUnknown()
func (*Collection) XXX_Marshal ¶
func (m *Collection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Collection) XXX_Merge ¶
func (m *Collection) XXX_Merge(src proto.Message)
func (*Collection) XXX_Size ¶
func (m *Collection) XXX_Size() int
func (*Collection) XXX_Unmarshal ¶
func (m *Collection) XXX_Unmarshal(b []byte) error
type CollectionState ¶
type CollectionState int32
const ( CollectionState_open CollectionState = 0 CollectionState_paused CollectionState = 1 CollectionState_closed CollectionState = 2 )
func (CollectionState) EnumDescriptor ¶
func (CollectionState) EnumDescriptor() ([]byte, []int)
func (CollectionState) String ¶
func (x CollectionState) String() string
type Contract1155Payment ¶
type Contract1155Payment struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` Amount uint32 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` }
func (*Contract1155Payment) Descriptor ¶
func (*Contract1155Payment) Descriptor() ([]byte, []int)
func (*Contract1155Payment) Equal ¶
func (this *Contract1155Payment) Equal(that interface{}) bool
func (*Contract1155Payment) GetAddress ¶
func (m *Contract1155Payment) GetAddress() string
func (*Contract1155Payment) GetAmount ¶
func (m *Contract1155Payment) GetAmount() uint32
func (*Contract1155Payment) GetTokenId ¶
func (m *Contract1155Payment) GetTokenId() string
func (*Contract1155Payment) Marshal ¶
func (m *Contract1155Payment) Marshal() (dAtA []byte, err error)
func (*Contract1155Payment) MarshalTo ¶
func (m *Contract1155Payment) MarshalTo(dAtA []byte) (int, error)
func (*Contract1155Payment) MarshalToSizedBuffer ¶
func (m *Contract1155Payment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Contract1155Payment) ProtoMessage ¶
func (*Contract1155Payment) ProtoMessage()
func (*Contract1155Payment) Reset ¶
func (m *Contract1155Payment) Reset()
func (*Contract1155Payment) Size ¶
func (m *Contract1155Payment) Size() (n int)
func (*Contract1155Payment) String ¶
func (m *Contract1155Payment) String() string
func (*Contract1155Payment) Unmarshal ¶
func (m *Contract1155Payment) Unmarshal(dAtA []byte) error
func (*Contract1155Payment) XXX_DiscardUnknown ¶
func (m *Contract1155Payment) XXX_DiscardUnknown()
func (*Contract1155Payment) XXX_Marshal ¶
func (m *Contract1155Payment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Contract1155Payment) XXX_Merge ¶
func (m *Contract1155Payment) XXX_Merge(src proto.Message)
func (*Contract1155Payment) XXX_Size ¶
func (m *Contract1155Payment) XXX_Size() int
func (*Contract1155Payment) XXX_Unmarshal ¶
func (m *Contract1155Payment) XXX_Unmarshal(b []byte) error
type Dispute ¶
type Dispute struct { SubjectId string `protobuf:"bytes,1,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"` // type is expressed as an integer, interpreted by the client Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` Data *DisputeData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
func (*Dispute) Descriptor ¶
func (*Dispute) GetData ¶
func (m *Dispute) GetData() *DisputeData
func (*Dispute) GetSubjectId ¶
func (*Dispute) MarshalToSizedBuffer ¶
func (*Dispute) ProtoMessage ¶
func (*Dispute) ProtoMessage()
func (*Dispute) XXX_DiscardUnknown ¶
func (m *Dispute) XXX_DiscardUnknown()
func (*Dispute) XXX_Marshal ¶
func (*Dispute) XXX_Unmarshal ¶
type DisputeData ¶
type DisputeData struct { Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Proof string `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` Encrypted bool `protobuf:"varint,4,opt,name=encrypted,proto3" json:"encrypted,omitempty"` }
func (*DisputeData) Descriptor ¶
func (*DisputeData) Descriptor() ([]byte, []int)
func (*DisputeData) GetEncrypted ¶
func (m *DisputeData) GetEncrypted() bool
func (*DisputeData) GetProof ¶
func (m *DisputeData) GetProof() string
func (*DisputeData) GetType ¶
func (m *DisputeData) GetType() string
func (*DisputeData) GetUri ¶
func (m *DisputeData) GetUri() string
func (*DisputeData) Marshal ¶
func (m *DisputeData) Marshal() (dAtA []byte, err error)
func (*DisputeData) MarshalToSizedBuffer ¶
func (m *DisputeData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DisputeData) ProtoMessage ¶
func (*DisputeData) ProtoMessage()
func (*DisputeData) Reset ¶
func (m *DisputeData) Reset()
func (*DisputeData) Size ¶
func (m *DisputeData) Size() (n int)
func (*DisputeData) String ¶
func (m *DisputeData) String() string
func (*DisputeData) Unmarshal ¶
func (m *DisputeData) Unmarshal(dAtA []byte) error
func (*DisputeData) XXX_DiscardUnknown ¶
func (m *DisputeData) XXX_DiscardUnknown()
func (*DisputeData) XXX_Marshal ¶
func (m *DisputeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DisputeData) XXX_Merge ¶
func (m *DisputeData) XXX_Merge(src proto.Message)
func (*DisputeData) XXX_Size ¶
func (m *DisputeData) XXX_Size() int
func (*DisputeData) XXX_Unmarshal ¶
func (m *DisputeData) XXX_Unmarshal(b []byte) error
type Evaluation ¶
type Evaluation struct { // claim_id indicates which Claim this evaluation is for ClaimId string `protobuf:"bytes,1,opt,name=claim_id,json=claimId,proto3" json:"claim_id,omitempty"` // collection_id indicates to which Collection the claim being evaluated // belongs to CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` // oracle is the DID of the Oracle entity that evaluates the claim Oracle string `protobuf:"bytes,3,opt,name=oracle,proto3" json:"oracle,omitempty"` // agent is the DID of the agent that submits the evaluation AgentDid string `protobuf:"bytes,4,opt,name=agent_did,json=agentDid,proto3" json:"agent_did,omitempty"` AgentAddress string `protobuf:"bytes,5,opt,name=agent_address,json=agentAddress,proto3" json:"agent_address,omitempty"` // status is the evaluation status expressed as an integer (2=approved, // 3=rejected, ...) Status EvaluationStatus `protobuf:"varint,6,opt,name=status,proto3,enum=ixo.claims.v1beta1.EvaluationStatus" json:"status,omitempty"` // reason is the code expressed as an integer, for why the evaluation result // was given (codes defined by evaluator) Reason uint32 `protobuf:"varint,7,opt,name=reason,proto3" json:"reason,omitempty"` // verificationProof is the cid of the evaluation Verfiable Credential VerificationProof string `protobuf:"bytes,8,opt,name=verification_proof,json=verificationProof,proto3" json:"verification_proof,omitempty"` // evaluationDate is the date and time that the claim evaluation was submitted // on-chain EvaluationDate *time.Time `protobuf:"bytes,9,opt,name=evaluation_date,json=evaluationDate,proto3,stdtime" json:"evaluation_date,omitempty"` // custom amount specified by evaluator for claim approval, if empty list then // use default by Collection Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,10,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
func (*Evaluation) Descriptor ¶
func (*Evaluation) Descriptor() ([]byte, []int)
func (*Evaluation) GetAgentAddress ¶
func (m *Evaluation) GetAgentAddress() string
func (*Evaluation) GetAgentDid ¶
func (m *Evaluation) GetAgentDid() string
func (*Evaluation) GetAmount ¶
func (m *Evaluation) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*Evaluation) GetClaimId ¶
func (m *Evaluation) GetClaimId() string
func (*Evaluation) GetCollectionId ¶
func (m *Evaluation) GetCollectionId() string
func (*Evaluation) GetEvaluationDate ¶
func (m *Evaluation) GetEvaluationDate() *time.Time
func (*Evaluation) GetOracle ¶
func (m *Evaluation) GetOracle() string
func (*Evaluation) GetReason ¶
func (m *Evaluation) GetReason() uint32
func (*Evaluation) GetStatus ¶
func (m *Evaluation) GetStatus() EvaluationStatus
func (*Evaluation) GetVerificationProof ¶
func (m *Evaluation) GetVerificationProof() string
func (*Evaluation) Marshal ¶
func (m *Evaluation) Marshal() (dAtA []byte, err error)
func (*Evaluation) MarshalToSizedBuffer ¶
func (m *Evaluation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Evaluation) ProtoMessage ¶
func (*Evaluation) ProtoMessage()
func (*Evaluation) Reset ¶
func (m *Evaluation) Reset()
func (*Evaluation) Size ¶
func (m *Evaluation) Size() (n int)
func (*Evaluation) String ¶
func (m *Evaluation) String() string
func (*Evaluation) Unmarshal ¶
func (m *Evaluation) Unmarshal(dAtA []byte) error
func (*Evaluation) XXX_DiscardUnknown ¶
func (m *Evaluation) XXX_DiscardUnknown()
func (*Evaluation) XXX_Marshal ¶
func (m *Evaluation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Evaluation) XXX_Merge ¶
func (m *Evaluation) XXX_Merge(src proto.Message)
func (*Evaluation) XXX_Size ¶
func (m *Evaluation) XXX_Size() int
func (*Evaluation) XXX_Unmarshal ¶
func (m *Evaluation) XXX_Unmarshal(b []byte) error
type EvaluationStatus ¶
type EvaluationStatus int32
const ( EvaluationStatus_pending EvaluationStatus = 0 EvaluationStatus_approved EvaluationStatus = 1 EvaluationStatus_rejected EvaluationStatus = 2 EvaluationStatus_disputed EvaluationStatus = 3 EvaluationStatus_invalidated EvaluationStatus = 4 )
func (EvaluationStatus) EnumDescriptor ¶
func (EvaluationStatus) EnumDescriptor() ([]byte, []int)
func (EvaluationStatus) String ¶
func (x EvaluationStatus) String() string
type Params ¶
type Params struct { CollectionSequence uint64 `protobuf:"varint,1,opt,name=collection_sequence,json=collectionSequence,proto3" json:"collection_sequence,omitempty"` IxoAccount string `protobuf:"bytes,2,opt,name=ixo_account,json=ixoAccount,proto3" json:"ixo_account,omitempty"` NetworkFeePercentage cosmossdk_io_math.LegacyDec `` /* 152-byte string literal not displayed */ NodeFeePercentage cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */ }
func (*Params) Descriptor ¶
func (*Params) GetCollectionSequence ¶
func (*Params) GetIxoAccount ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Payment ¶
type Payment struct { // account is the entity account address from which the payment will be made Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` // if empty(nil) then no contract payment, not allowed for Evaluation Payment Contract_1155Payment *Contract1155Payment `protobuf:"bytes,3,opt,name=contract_1155_payment,json=contract1155Payment,proto3" json:"contract_1155_payment,omitempty"` // timeout after claim/evaluation to create authZ for payment, if 0 then // immidiate direct payment TimeoutNs time.Duration `protobuf:"bytes,4,opt,name=timeout_ns,json=timeoutNs,proto3,stdduration" json:"timeout_ns"` }
func (*Payment) Descriptor ¶
func (*Payment) GetAccount ¶
func (*Payment) GetAmount ¶
func (m *Payment) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*Payment) GetContract_1155Payment ¶
func (m *Payment) GetContract_1155Payment() *Contract1155Payment
func (*Payment) GetTimeoutNs ¶
func (*Payment) MarshalToSizedBuffer ¶
func (*Payment) ProtoMessage ¶
func (*Payment) ProtoMessage()
func (*Payment) XXX_DiscardUnknown ¶
func (m *Payment) XXX_DiscardUnknown()
func (*Payment) XXX_Marshal ¶
func (*Payment) XXX_Unmarshal ¶
type PaymentStatus ¶
type PaymentStatus int32
const ( PaymentStatus_no_payment PaymentStatus = 0 PaymentStatus_promised PaymentStatus = 1 PaymentStatus_gauranteed PaymentStatus = 3 PaymentStatus_paid PaymentStatus = 4 PaymentStatus_failed PaymentStatus = 5 PaymentStatus_disputed PaymentStatus = 6 )
func (PaymentStatus) EnumDescriptor ¶
func (PaymentStatus) EnumDescriptor() ([]byte, []int)
func (PaymentStatus) String ¶
func (x PaymentStatus) String() string
type PaymentType ¶
type PaymentType int32
const ( PaymentType_submission PaymentType = 0 PaymentType_approval PaymentType = 1 PaymentType_evaluation PaymentType = 2 PaymentType_rejection PaymentType = 3 )
func (PaymentType) EnumDescriptor ¶
func (PaymentType) EnumDescriptor() ([]byte, []int)
func (PaymentType) String ¶
func (x PaymentType) String() string
type Payments ¶
type Payments struct { Submission *Payment `protobuf:"bytes,1,opt,name=submission,proto3" json:"submission,omitempty"` Evaluation *Payment `protobuf:"bytes,2,opt,name=evaluation,proto3" json:"evaluation,omitempty"` Approval *Payment `protobuf:"bytes,3,opt,name=approval,proto3" json:"approval,omitempty"` Rejection *Payment `protobuf:"bytes,4,opt,name=rejection,proto3" json:"rejection,omitempty"` }
func (*Payments) Descriptor ¶
func (*Payments) GetApproval ¶
func (*Payments) GetEvaluation ¶
func (*Payments) GetRejection ¶
func (*Payments) GetSubmission ¶
func (*Payments) MarshalToSizedBuffer ¶
func (*Payments) ProtoMessage ¶
func (*Payments) ProtoMessage()
func (*Payments) XXX_DiscardUnknown ¶
func (m *Payments) XXX_DiscardUnknown()
func (*Payments) XXX_Marshal ¶
func (*Payments) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.