v2claims

package
v4.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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",
}
View Source
var EvaluationStatus_value = map[string]int32{
	"PENDING":  0,
	"APPROVED": 1,
	"REJECTED": 2,
	"DISPUTED": 3,
}
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) error

MigrateStore performs in-place store migrations from ConsensusVersion 1 to 2.

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) Descriptor() ([]byte, []int)

func (*Claim) GetAgentAddress

func (m *Claim) GetAgentAddress() string

func (*Claim) GetAgentDid

func (m *Claim) GetAgentDid() string

func (*Claim) GetClaimId

func (m *Claim) GetClaimId() string

func (*Claim) GetCollectionId

func (m *Claim) GetCollectionId() string

func (*Claim) GetEvaluation

func (m *Claim) GetEvaluation() *Evaluation

func (*Claim) GetPaymentsStatus

func (m *Claim) GetPaymentsStatus() *ClaimPayments

func (*Claim) GetSubmissionDate

func (m *Claim) GetSubmissionDate() *time.Time

func (*Claim) Marshal

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

func (*Claim) MarshalTo

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

func (*Claim) MarshalToSizedBuffer

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

func (*Claim) ProtoMessage

func (*Claim) ProtoMessage()

func (*Claim) Reset

func (m *Claim) Reset()

func (*Claim) Size

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

func (*Claim) String

func (m *Claim) String() string

func (*Claim) Unmarshal

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

func (*Claim) XXX_DiscardUnknown

func (m *Claim) XXX_DiscardUnknown()

func (*Claim) XXX_Marshal

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

func (*Claim) XXX_Merge

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

func (*Claim) XXX_Size

func (m *Claim) XXX_Size() int

func (*Claim) XXX_Unmarshal

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

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

func (m *ClaimPayments) MarshalTo(dAtA []byte) (int, 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)
	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"`
}

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

func (m *Collection) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Dispute) GetData

func (m *Dispute) GetData() *DisputeData

func (*Dispute) GetSubjectId

func (m *Dispute) GetSubjectId() string

func (*Dispute) GetType

func (m *Dispute) GetType() int32

func (*Dispute) Marshal

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

func (*Dispute) MarshalTo

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

func (*Dispute) MarshalToSizedBuffer

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

func (*Dispute) ProtoMessage

func (*Dispute) ProtoMessage()

func (*Dispute) Reset

func (m *Dispute) Reset()

func (*Dispute) Size

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

func (*Dispute) String

func (m *Dispute) String() string

func (*Dispute) Unmarshal

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

func (*Dispute) XXX_DiscardUnknown

func (m *Dispute) XXX_DiscardUnknown()

func (*Dispute) XXX_Marshal

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

func (*Dispute) XXX_Merge

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

func (*Dispute) XXX_Size

func (m *Dispute) XXX_Size() int

func (*Dispute) XXX_Unmarshal

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

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

func (m *DisputeData) MarshalTo(dAtA []byte) (int, 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 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() 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) MarshalTo

func (m *Evaluation) MarshalTo(dAtA []byte) (int, 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
)

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 math.LegacyDec `` /* 163-byte string literal not displayed */
	NodeFeePercentage    math.LegacyDec `` /* 154-byte string literal not displayed */
}

func (*Params) Descriptor

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

func (*Params) GetCollectionSequence

func (m *Params) GetCollectionSequence() uint64

func (*Params) GetIxoAccount

func (m *Params) GetIxoAccount() string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type 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  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) Descriptor() ([]byte, []int)

func (*Payment) GetAccount

func (m *Payment) GetAccount() string

func (*Payment) GetAmount

func (m *Payment) GetAmount() types.Coins

func (*Payment) GetContract_1155Payment

func (m *Payment) GetContract_1155Payment() *Contract1155Payment

func (*Payment) GetTimeoutNs

func (m *Payment) GetTimeoutNs() time.Duration

func (*Payment) Marshal

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

func (*Payment) MarshalTo

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

func (*Payment) MarshalToSizedBuffer

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

func (*Payment) ProtoMessage

func (*Payment) ProtoMessage()

func (*Payment) Reset

func (m *Payment) Reset()

func (*Payment) Size

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

func (*Payment) String

func (m *Payment) String() string

func (*Payment) Unmarshal

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

func (*Payment) XXX_DiscardUnknown

func (m *Payment) XXX_DiscardUnknown()

func (*Payment) XXX_Marshal

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

func (*Payment) XXX_Merge

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

func (*Payment) XXX_Size

func (m *Payment) XXX_Size() int

func (*Payment) XXX_Unmarshal

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

type PaymentStatus

type PaymentStatus int32
const (
	PaymentStatus_no_payment PaymentStatus = 0
	PaymentStatus_promised   PaymentStatus = 1
	PaymentStatus_authorized PaymentStatus = 2
	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) Descriptor() ([]byte, []int)

func (*Payments) GetApproval

func (m *Payments) GetApproval() *Payment

func (*Payments) GetEvaluation

func (m *Payments) GetEvaluation() *Payment

func (*Payments) GetRejection

func (m *Payments) GetRejection() *Payment

func (*Payments) GetSubmission

func (m *Payments) GetSubmission() *Payment

func (*Payments) Marshal

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

func (*Payments) MarshalTo

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

func (*Payments) MarshalToSizedBuffer

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

func (*Payments) ProtoMessage

func (*Payments) ProtoMessage()

func (*Payments) Reset

func (m *Payments) Reset()

func (*Payments) Size

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

func (*Payments) String

func (m *Payments) String() string

func (*Payments) Unmarshal

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

func (*Payments) XXX_DiscardUnknown

func (m *Payments) XXX_DiscardUnknown()

func (*Payments) XXX_Marshal

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

func (*Payments) XXX_Merge

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

func (*Payments) XXX_Size

func (m *Payments) XXX_Size() int

func (*Payments) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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