types

package
v0.1.0-xco.1 Latest Latest
Warning

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

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

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreateProject       = "create_project"
	EventTypeUpdateProjectStatus = "update_project_status"
	EventTypeUpdateProjectDoc    = "update_project_doc"
	EventTypeCreateAgent         = "create_agent"
	EventTypeUpdateAgent         = "update_agent"
	EventTypeCreateClaim         = "create_claim"
	EventTypeCreateEvaluation    = "create_evaluation"
	EventTypeWithdrawFunds       = "withdraw_funds"

	AttributeKeyTxHash          = "tx_hash"
	AttributeKeySenderDid       = "sender_did"
	AttributeKeyProjectDid      = "project_did"
	AttributeKeyPubKey          = "pub_key"
	AttributeKeyRecipientDid    = "recipient_did"
	AttributeKeyAmount          = "amount"
	AttributeKeyIsRefund        = "is_refund"
	AttributeKeyClaimID         = "claim_id"
	AttributeKeyClaimTemplateID = "claim_template_id"
	AttributeKeyClaimStatus     = "claim_status"
	AttributeKeyAgentDid        = "agent_did"
	AttributeKeyAgentRole       = "role"
	AttributeKeyEthFundingTxnID = "eth_funding_txn_id"
	AttributeKeyUpdatedStatus   = "updated_status"

	AttributeValueCategory = ModuleName
)
View Source
const (
	ModuleName        = "project"
	DefaultParamspace = ModuleName
	StoreKey          = ModuleName
	RouterKey         = ModuleName
	QuerierRoute      = ModuleName
)
View Source
const (
	TypeMsgCreateProject       = "create-project"
	TypeMsgUpdateProjectStatus = "update-project-status"
	TypeMsgCreateAgent         = "create-agent"
	TypeMsgUpdateAgent         = "update-agent"
	TypeMsgCreateClaim         = "create-claim"
	TypeMsgCreateEvaluation    = "create-evaluation"
	TypeMsgWithdrawFunds       = "withdraw-funds"
	TypeMsgUpdateProjectDoc    = "update-project-doc"

	MsgCreateProjectTotalFee       = int64(1000000)
	MsgCreateProjectTransactionFee = int64(10000)
)

Variables

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 (
	ProjectKey     = []byte{0x01}
	DocKey         = []byte{0x02}
	AccountMapKey  = []byte{0x03}
	WithdrawalsKey = []byte{0x04}
	ClaimsKey      = []byte{0x05}
)
View Source
var (
	Keyxcodid                       = []byte("xcodid")
	KeyProjectMinimumInitialFunding = []byte("ProjectMinimumInitialFunding")
	KeyOracleFeePercentage          = []byte("OracleFeePercentage")
	KeyNodeFeePercentage            = []byte("NodeFeePercentage")
)

Parameter store keys

View Source
var (
	ErrInvalidLengthProject        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProject          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProject = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (

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

Functions

func CheckNotEmpty

func CheckNotEmpty(value string, name string) (valid bool, err error)

func GetAccountMapKey

func GetAccountMapKey(projectDid didexported.Did) []byte

func GetClaimKey

func GetClaimKey(projectDid didexported.Did, claimId string) []byte

func GetClaimsKey

func GetClaimsKey(projectDid didexported.Did) []byte

func GetProjectKey

func GetProjectKey(projectDid didexported.Did) []byte

func GetWithdrawalsKey

func GetWithdrawalsKey(projectDid didexported.Did) []byte

func ParamKeyTable

func ParamKeyTable() params.KeyTable

ParamTable for project module.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

Types

type AccountMap

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

AccountMap maps a specific project's account names to the accounts' addresses.

func (*AccountMap) Descriptor

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

func (*AccountMap) GetMap

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

func (*AccountMap) Marshal

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

func (*AccountMap) MarshalTo

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

func (*AccountMap) MarshalToSizedBuffer

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

func (*AccountMap) ProtoMessage

func (*AccountMap) ProtoMessage()

func (*AccountMap) Reset

func (m *AccountMap) Reset()

func (*AccountMap) Size

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

func (*AccountMap) String

func (m *AccountMap) String() string

func (*AccountMap) Unmarshal

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

func (*AccountMap) XXX_DiscardUnknown

func (m *AccountMap) XXX_DiscardUnknown()

func (*AccountMap) XXX_Marshal

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

func (*AccountMap) XXX_Merge

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

func (*AccountMap) XXX_Size

func (m *AccountMap) XXX_Size() int

func (*AccountMap) XXX_Unmarshal

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

type AgentStatus

type AgentStatus = string
const (
	PendingAgent  AgentStatus = "0"
	ApprovedAgent AgentStatus = "1"
	RevokedAgent  AgentStatus = "2"
)

type Claim

type Claim struct {
	Id         string                                                           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	TemplateId string                                                           `protobuf:"bytes,2,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty" yaml:"template_id"`
	ClaimerDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 184-byte string literal not displayed */
	Status     string                                                           `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty" yaml:"status"`
}

Claim contains details required to start a claim on a project.

func NewClaim

func NewClaim(id string, templateId string, claimerDid iidtypes.DIDFragment) Claim

func (*Claim) Descriptor

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

func (*Claim) GetId

func (m *Claim) GetId() string

func (*Claim) GetStatus

func (m *Claim) GetStatus() string

func (*Claim) GetTemplateId

func (m *Claim) GetTemplateId() string

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 ClaimStatus

type ClaimStatus string
const (
	PendingClaim  ClaimStatus = "0"
	ApprovedClaim ClaimStatus = "1"
	RejectedClaim ClaimStatus = "2"
)

type Claims

type Claims struct {
	ClaimsList []Claim `protobuf:"bytes,1,rep,name=claims_list,json=claimsList,proto3" json:"claims_list" yaml:"claims_list"`
}

Claims contains a list of type Claim.

func AppendClaims

func AppendClaims(list Claims, claim Claim) Claims

func (*Claims) Descriptor

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

func (*Claims) GetClaimsList

func (m *Claims) GetClaimsList() []Claim

func (*Claims) Marshal

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

func (*Claims) MarshalTo

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

func (*Claims) MarshalToSizedBuffer

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

func (*Claims) ProtoMessage

func (*Claims) ProtoMessage()

func (*Claims) Reset

func (m *Claims) Reset()

func (*Claims) Size

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

func (*Claims) String

func (m *Claims) String() string

func (*Claims) Unmarshal

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

func (*Claims) XXX_DiscardUnknown

func (m *Claims) XXX_DiscardUnknown()

func (*Claims) XXX_Marshal

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

func (*Claims) XXX_Merge

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

func (*Claims) XXX_Size

func (m *Claims) XXX_Size() int

func (*Claims) XXX_Unmarshal

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

type CreateAgentDoc

type CreateAgentDoc struct {
	AgentDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 154-byte string literal not displayed */
	Role     string                                                           `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty" yaml:"role"`
}

CreateAgentDoc contains details required to create an agent.

func NewCreateAgentDoc

func NewCreateAgentDoc(agentDid didexported.Did, role string) CreateAgentDoc

func (*CreateAgentDoc) Descriptor

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

func (*CreateAgentDoc) GetRole

func (m *CreateAgentDoc) GetRole() string

func (*CreateAgentDoc) Marshal

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

func (*CreateAgentDoc) MarshalTo

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

func (*CreateAgentDoc) MarshalToSizedBuffer

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

func (*CreateAgentDoc) ProtoMessage

func (*CreateAgentDoc) ProtoMessage()

func (*CreateAgentDoc) Reset

func (m *CreateAgentDoc) Reset()

func (*CreateAgentDoc) Size

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

func (*CreateAgentDoc) String

func (m *CreateAgentDoc) String() string

func (*CreateAgentDoc) Unmarshal

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

func (*CreateAgentDoc) XXX_DiscardUnknown

func (m *CreateAgentDoc) XXX_DiscardUnknown()

func (*CreateAgentDoc) XXX_Marshal

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

func (*CreateAgentDoc) XXX_Merge

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

func (*CreateAgentDoc) XXX_Size

func (m *CreateAgentDoc) XXX_Size() int

func (*CreateAgentDoc) XXX_Unmarshal

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

type CreateClaimDoc

type CreateClaimDoc struct {
	ClaimId         string `protobuf:"bytes,1,opt,name=claim_id,json=claimId,proto3" json:"claimID" yaml:"claimID"`
	ClaimTemplateId string `protobuf:"bytes,2,opt,name=claim_template_id,json=claimTemplateId,proto3" json:"claimTemplateID" yaml:"claimTemplateID"`
}

CreateClaimDoc contains details required to create a claim on a project.

func NewCreateClaimDoc

func NewCreateClaimDoc(claimId string, claimTemplateID string) CreateClaimDoc

func (*CreateClaimDoc) Descriptor

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

func (*CreateClaimDoc) GetClaimId

func (m *CreateClaimDoc) GetClaimId() string

func (*CreateClaimDoc) GetClaimTemplateId

func (m *CreateClaimDoc) GetClaimTemplateId() string

func (*CreateClaimDoc) Marshal

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

func (*CreateClaimDoc) MarshalTo

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

func (*CreateClaimDoc) MarshalToSizedBuffer

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

func (*CreateClaimDoc) ProtoMessage

func (*CreateClaimDoc) ProtoMessage()

func (*CreateClaimDoc) Reset

func (m *CreateClaimDoc) Reset()

func (*CreateClaimDoc) Size

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

func (*CreateClaimDoc) String

func (m *CreateClaimDoc) String() string

func (*CreateClaimDoc) Unmarshal

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

func (*CreateClaimDoc) XXX_DiscardUnknown

func (m *CreateClaimDoc) XXX_DiscardUnknown()

func (*CreateClaimDoc) XXX_Marshal

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

func (*CreateClaimDoc) XXX_Merge

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

func (*CreateClaimDoc) XXX_Size

func (m *CreateClaimDoc) XXX_Size() int

func (*CreateClaimDoc) XXX_Unmarshal

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

type CreateEvaluationDoc

type CreateEvaluationDoc struct {
	ClaimId string `protobuf:"bytes,1,opt,name=claim_id,json=claimId,proto3" json:"claimID" yaml:"claimID"`
	Status  string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty" yaml:"status"`
}

CreateEvaluationDoc contains details required to create an evaluation for a specific claim on a project.

func NewCreateEvaluationDoc

func NewCreateEvaluationDoc(claimId string, status ClaimStatus) CreateEvaluationDoc

func (*CreateEvaluationDoc) Descriptor

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

func (*CreateEvaluationDoc) GetClaimId

func (m *CreateEvaluationDoc) GetClaimId() string

func (*CreateEvaluationDoc) GetStatus

func (m *CreateEvaluationDoc) GetStatus() string

func (*CreateEvaluationDoc) Marshal

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

func (*CreateEvaluationDoc) MarshalTo

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

func (*CreateEvaluationDoc) MarshalToSizedBuffer

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

func (*CreateEvaluationDoc) ProtoMessage

func (*CreateEvaluationDoc) ProtoMessage()

func (*CreateEvaluationDoc) Reset

func (m *CreateEvaluationDoc) Reset()

func (*CreateEvaluationDoc) Size

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

func (*CreateEvaluationDoc) String

func (m *CreateEvaluationDoc) String() string

func (*CreateEvaluationDoc) Unmarshal

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

func (*CreateEvaluationDoc) XXX_DiscardUnknown

func (m *CreateEvaluationDoc) XXX_DiscardUnknown()

func (*CreateEvaluationDoc) XXX_Marshal

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

func (*CreateEvaluationDoc) XXX_Merge

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

func (*CreateEvaluationDoc) XXX_Size

func (m *CreateEvaluationDoc) XXX_Size() int

func (*CreateEvaluationDoc) XXX_Unmarshal

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

type FeeType

type FeeType string
const (
	FeeForService      FeeType = "FeeForService"
	OracleFee          FeeType = "OracleFee"
	Subscription       FeeType = "Subscription"
	RentalFee          FeeType = "RentalFee"
	OutcomePayment     FeeType = "OutcomePayment"
	InterestRepayment  FeeType = "InterestRepayment"
	LoanRepayment      FeeType = "LoanRepayment"
	IncomeDistribution FeeType = "IncomeDistribution"
	DisputeSettlement  FeeType = "DisputeSettlement"
)

type GenesisAccountMap

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

GenesisAccountMap is a type used at genesis that maps a specific project's account names to the accounts' addresses.

func (*GenesisAccountMap) Descriptor

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

func (*GenesisAccountMap) GetMap

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

func (*GenesisAccountMap) Marshal

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

func (*GenesisAccountMap) MarshalTo

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

func (*GenesisAccountMap) MarshalToSizedBuffer

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

func (*GenesisAccountMap) ProtoMessage

func (*GenesisAccountMap) ProtoMessage()

func (*GenesisAccountMap) Reset

func (m *GenesisAccountMap) Reset()

func (*GenesisAccountMap) Size

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

func (*GenesisAccountMap) String

func (m *GenesisAccountMap) String() string

func (*GenesisAccountMap) Unmarshal

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

func (*GenesisAccountMap) XXX_DiscardUnknown

func (m *GenesisAccountMap) XXX_DiscardUnknown()

func (*GenesisAccountMap) XXX_Marshal

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

func (*GenesisAccountMap) XXX_Merge

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

func (*GenesisAccountMap) XXX_Size

func (m *GenesisAccountMap) XXX_Size() int

func (*GenesisAccountMap) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	ProjectDocs      []ProjectDoc         `protobuf:"bytes,1,rep,name=project_docs,json=projectDocs,proto3" json:"project_docs" yaml:"project_docs"`
	AccountMaps      []GenesisAccountMap  `protobuf:"bytes,2,rep,name=account_maps,json=accountMaps,proto3" json:"account_maps" yaml:"account_maps"`
	WithdrawalsInfos []WithdrawalInfoDocs `protobuf:"bytes,3,rep,name=withdrawals_infos,json=withdrawalsInfos,proto3" json:"withdrawal_infos" yaml:"withdrawal_infos"`
	Claims           []Claims             `protobuf:"bytes,4,rep,name=claims,proto3" json:"claims" yaml:"claims"`
	Params           Params               `protobuf:"bytes,5,opt,name=params,proto3" json:"params" yaml:"params"`
}

GenesisState defines the project module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func NewGenesisState

func NewGenesisState(projectDocs []ProjectDoc, accountMaps []GenesisAccountMap,
	withdrawalInfos []WithdrawalInfoDocs, claims []Claims, params Params) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAccountMaps

func (m *GenesisState) GetAccountMaps() []GenesisAccountMap

func (*GenesisState) GetClaims

func (m *GenesisState) GetClaims() []Claims

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetProjectDocs

func (m *GenesisState) GetProjectDocs() []ProjectDoc

func (*GenesisState) GetWithdrawalsInfos

func (m *GenesisState) GetWithdrawalsInfos() []WithdrawalInfoDocs

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type InternalAccountID

type InternalAccountID string

func (InternalAccountID) ToAddressKey

func (id InternalAccountID) ToAddressKey(projectDid didexported.Did) string

type MsgClient

type MsgClient interface {
	// CreateProject defines a method for creating a project.
	CreateProject(ctx context.Context, in *MsgCreateProject, opts ...grpc.CallOption) (*MsgCreateProjectResponse, error)
	// UpdateProjectStatus defines a method for updating a project's current status.
	UpdateProjectStatus(ctx context.Context, in *MsgUpdateProjectStatus, opts ...grpc.CallOption) (*MsgUpdateProjectStatusResponse, error)
	// CreateAgent defines a method for creating an agent on a project.
	CreateAgent(ctx context.Context, in *MsgCreateAgent, opts ...grpc.CallOption) (*MsgCreateAgentResponse, error)
	// UpdateAgent defines a method for updating an agent on a project.
	UpdateAgent(ctx context.Context, in *MsgUpdateAgent, opts ...grpc.CallOption) (*MsgUpdateAgentResponse, error)
	// CreateClaim defines a method for creating a claim on a project.
	CreateClaim(ctx context.Context, in *MsgCreateClaim, opts ...grpc.CallOption) (*MsgCreateClaimResponse, error)
	// CreateEvaluation defines a method for creating an evaluation for a specific claim on a project.
	CreateEvaluation(ctx context.Context, in *MsgCreateEvaluation, opts ...grpc.CallOption) (*MsgCreateEvaluationResponse, error)
	// WithdrawFunds defines a method for project agents to withdraw their funds from a project.
	WithdrawFunds(ctx context.Context, in *MsgWithdrawFunds, opts ...grpc.CallOption) (*MsgWithdrawFundsResponse, error)
	// UpdateProjectDoc defines a method for updating a project's data.
	UpdateProjectDoc(ctx context.Context, in *MsgUpdateProjectDoc, opts ...grpc.CallOption) (*MsgUpdateProjectDocResponse, 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 MsgCreateAgent

type MsgCreateAgent struct {
	TxHash         string                                                           `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"txHash" yaml:"txHash"`
	SenderDid      github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 168-byte string literal not displayed */
	ProjectDid     string                                                           `protobuf:"bytes,3,opt,name=project_did,json=projectDid,proto3" json:"projectDid" yaml:"projectDid"`
	Data           CreateAgentDoc                                                   `protobuf:"bytes,4,opt,name=data,proto3" json:"data" yaml:"iid"`
	ProjectAddress string                                                           `protobuf:"bytes,5,opt,name=project_address,json=projectAddress,proto3" json:"project_address" yaml:"project_address"`
}

MsgCreateAgent defines a message for creating an agent on a project.

func NewMsgCreateAgent

func NewMsgCreateAgent(txHash string, senderDid iidtypes.DIDFragment, createAgentDoc CreateAgentDoc, projectDid didexported.Did, projectAddress string) *MsgCreateAgent

func (*MsgCreateAgent) Descriptor

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

func (*MsgCreateAgent) GetData

func (m *MsgCreateAgent) GetData() CreateAgentDoc

func (MsgCreateAgent) GetIidController

func (msg MsgCreateAgent) GetIidController() iidtypes.DIDFragment

func (*MsgCreateAgent) GetProjectAddress

func (m *MsgCreateAgent) GetProjectAddress() string

func (*MsgCreateAgent) GetProjectDid

func (m *MsgCreateAgent) GetProjectDid() string

func (MsgCreateAgent) GetSignBytes

func (msg MsgCreateAgent) GetSignBytes() []byte

func (MsgCreateAgent) GetSignerDid

func (msg MsgCreateAgent) GetSignerDid() didexported.Did

func (MsgCreateAgent) GetSigners

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

func (*MsgCreateAgent) GetTxHash

func (m *MsgCreateAgent) GetTxHash() string

func (*MsgCreateAgent) Marshal

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

func (*MsgCreateAgent) MarshalTo

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

func (*MsgCreateAgent) MarshalToSizedBuffer

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

func (*MsgCreateAgent) ProtoMessage

func (*MsgCreateAgent) ProtoMessage()

func (*MsgCreateAgent) Reset

func (m *MsgCreateAgent) Reset()

func (MsgCreateAgent) Route

func (msg MsgCreateAgent) Route() string

func (*MsgCreateAgent) Size

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

func (MsgCreateAgent) String

func (msg MsgCreateAgent) String() string

func (MsgCreateAgent) Type

func (msg MsgCreateAgent) Type() string

func (*MsgCreateAgent) Unmarshal

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

func (MsgCreateAgent) ValidateBasic

func (msg MsgCreateAgent) ValidateBasic() error

func (*MsgCreateAgent) XXX_DiscardUnknown

func (m *MsgCreateAgent) XXX_DiscardUnknown()

func (*MsgCreateAgent) XXX_Marshal

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

func (*MsgCreateAgent) XXX_Merge

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

func (*MsgCreateAgent) XXX_Size

func (m *MsgCreateAgent) XXX_Size() int

func (*MsgCreateAgent) XXX_Unmarshal

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

type MsgCreateAgentResponse

type MsgCreateAgentResponse struct {
}

MsgCreateAgentResponse defines the Msg/CreateAgent response type.

func (*MsgCreateAgentResponse) Descriptor

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

func (*MsgCreateAgentResponse) Marshal

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

func (*MsgCreateAgentResponse) MarshalTo

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

func (*MsgCreateAgentResponse) MarshalToSizedBuffer

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

func (*MsgCreateAgentResponse) ProtoMessage

func (*MsgCreateAgentResponse) ProtoMessage()

func (*MsgCreateAgentResponse) Reset

func (m *MsgCreateAgentResponse) Reset()

func (*MsgCreateAgentResponse) Size

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

func (*MsgCreateAgentResponse) String

func (m *MsgCreateAgentResponse) String() string

func (*MsgCreateAgentResponse) Unmarshal

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

func (*MsgCreateAgentResponse) XXX_DiscardUnknown

func (m *MsgCreateAgentResponse) XXX_DiscardUnknown()

func (*MsgCreateAgentResponse) XXX_Marshal

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

func (*MsgCreateAgentResponse) XXX_Merge

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

func (*MsgCreateAgentResponse) XXX_Size

func (m *MsgCreateAgentResponse) XXX_Size() int

func (*MsgCreateAgentResponse) XXX_Unmarshal

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

type MsgCreateClaim

type MsgCreateClaim struct {
	TxHash         string                                                           `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"txHash" yaml:"txHash"`
	SenderDid      github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 168-byte string literal not displayed */
	ProjectDid     string                                                           `protobuf:"bytes,3,opt,name=project_did,json=projectDid,proto3" json:"projectDid" yaml:"projectDid"`
	Data           CreateClaimDoc                                                   `protobuf:"bytes,4,opt,name=data,proto3" json:"data" yaml:"iid"`
	ProjectAddress string                                                           `protobuf:"bytes,5,opt,name=project_address,json=projectAddress,proto3" json:"project_address" yaml:"project_address"`
}

MsgCreateClaim defines a message for creating a claim on a project.

func NewMsgCreateClaim

func NewMsgCreateClaim(txHash string, senderDid iidtypes.DIDFragment, createClaimDoc CreateClaimDoc, projectDid didexported.Did, projectAddress string) *MsgCreateClaim

func (*MsgCreateClaim) Descriptor

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

func (*MsgCreateClaim) GetData

func (m *MsgCreateClaim) GetData() CreateClaimDoc

func (MsgCreateClaim) GetIidController

func (msg MsgCreateClaim) GetIidController() iidtypes.DIDFragment

func (*MsgCreateClaim) GetProjectAddress

func (m *MsgCreateClaim) GetProjectAddress() string

func (*MsgCreateClaim) GetProjectDid

func (m *MsgCreateClaim) GetProjectDid() string

func (MsgCreateClaim) GetSignBytes

func (msg MsgCreateClaim) GetSignBytes() []byte

func (MsgCreateClaim) GetSignerDid

func (msg MsgCreateClaim) GetSignerDid() didexported.Did

func (MsgCreateClaim) GetSigners

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

func (*MsgCreateClaim) GetTxHash

func (m *MsgCreateClaim) GetTxHash() string

func (*MsgCreateClaim) Marshal

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

func (*MsgCreateClaim) MarshalTo

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

func (*MsgCreateClaim) MarshalToSizedBuffer

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

func (*MsgCreateClaim) ProtoMessage

func (*MsgCreateClaim) ProtoMessage()

func (*MsgCreateClaim) Reset

func (m *MsgCreateClaim) Reset()

func (MsgCreateClaim) Route

func (msg MsgCreateClaim) Route() string

func (*MsgCreateClaim) Size

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

func (MsgCreateClaim) String

func (msg MsgCreateClaim) String() string

func (MsgCreateClaim) Type

func (msg MsgCreateClaim) Type() string

func (*MsgCreateClaim) Unmarshal

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

func (MsgCreateClaim) ValidateBasic

func (msg MsgCreateClaim) ValidateBasic() error

func (*MsgCreateClaim) XXX_DiscardUnknown

func (m *MsgCreateClaim) XXX_DiscardUnknown()

func (*MsgCreateClaim) XXX_Marshal

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

func (*MsgCreateClaim) XXX_Merge

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

func (*MsgCreateClaim) XXX_Size

func (m *MsgCreateClaim) XXX_Size() int

func (*MsgCreateClaim) XXX_Unmarshal

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

type MsgCreateClaimResponse

type MsgCreateClaimResponse struct {
}

MsgCreateClaimResponse defines the Msg/CreateClaim response type.

func (*MsgCreateClaimResponse) Descriptor

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

func (*MsgCreateClaimResponse) Marshal

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

func (*MsgCreateClaimResponse) MarshalTo

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

func (*MsgCreateClaimResponse) MarshalToSizedBuffer

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

func (*MsgCreateClaimResponse) ProtoMessage

func (*MsgCreateClaimResponse) ProtoMessage()

func (*MsgCreateClaimResponse) Reset

func (m *MsgCreateClaimResponse) Reset()

func (*MsgCreateClaimResponse) Size

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

func (*MsgCreateClaimResponse) String

func (m *MsgCreateClaimResponse) String() string

func (*MsgCreateClaimResponse) Unmarshal

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

func (*MsgCreateClaimResponse) XXX_DiscardUnknown

func (m *MsgCreateClaimResponse) XXX_DiscardUnknown()

func (*MsgCreateClaimResponse) XXX_Marshal

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

func (*MsgCreateClaimResponse) XXX_Merge

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

func (*MsgCreateClaimResponse) XXX_Size

func (m *MsgCreateClaimResponse) XXX_Size() int

func (*MsgCreateClaimResponse) XXX_Unmarshal

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

type MsgCreateEvaluation

type MsgCreateEvaluation struct {
	TxHash         string                                                           `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"txHash" yaml:"txHash"`
	SenderDid      github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 168-byte string literal not displayed */
	ProjectDid     string                                                           `protobuf:"bytes,3,opt,name=project_did,json=projectDid,proto3" json:"projectDid" yaml:"projectDid"`
	Data           CreateEvaluationDoc                                              `protobuf:"bytes,4,opt,name=data,proto3" json:"data" yaml:"iid"`
	ProjectAddress string                                                           `protobuf:"bytes,5,opt,name=project_address,json=projectAddress,proto3" json:"project_address" yaml:"project_address"`
}

MsgCreateEvaluation defines a message for creating an evaluation for a specific claim on a project.

func NewMsgCreateEvaluation

func NewMsgCreateEvaluation(txHash string, senderDid iidtypes.DIDFragment, createEvaluationDoc CreateEvaluationDoc, projectDid didexported.Did, projectAddress string) *MsgCreateEvaluation

func (*MsgCreateEvaluation) Descriptor

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

func (*MsgCreateEvaluation) GetData

func (MsgCreateEvaluation) GetIidController

func (msg MsgCreateEvaluation) GetIidController() iidtypes.DIDFragment

func (*MsgCreateEvaluation) GetProjectAddress

func (m *MsgCreateEvaluation) GetProjectAddress() string

func (*MsgCreateEvaluation) GetProjectDid

func (m *MsgCreateEvaluation) GetProjectDid() string

func (MsgCreateEvaluation) GetSignBytes

func (msg MsgCreateEvaluation) GetSignBytes() []byte

func (MsgCreateEvaluation) GetSignerDid

func (msg MsgCreateEvaluation) GetSignerDid() didexported.Did

func (MsgCreateEvaluation) GetSigners

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

func (*MsgCreateEvaluation) GetTxHash

func (m *MsgCreateEvaluation) GetTxHash() string

func (*MsgCreateEvaluation) Marshal

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

func (*MsgCreateEvaluation) MarshalTo

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

func (*MsgCreateEvaluation) MarshalToSizedBuffer

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

func (*MsgCreateEvaluation) ProtoMessage

func (*MsgCreateEvaluation) ProtoMessage()

func (*MsgCreateEvaluation) Reset

func (m *MsgCreateEvaluation) Reset()

func (MsgCreateEvaluation) Route

func (msg MsgCreateEvaluation) Route() string

func (*MsgCreateEvaluation) Size

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

func (MsgCreateEvaluation) String

func (msg MsgCreateEvaluation) String() string

func (MsgCreateEvaluation) Type

func (msg MsgCreateEvaluation) Type() string

func (*MsgCreateEvaluation) Unmarshal

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

func (MsgCreateEvaluation) ValidateBasic

func (msg MsgCreateEvaluation) ValidateBasic() error

func (*MsgCreateEvaluation) XXX_DiscardUnknown

func (m *MsgCreateEvaluation) XXX_DiscardUnknown()

func (*MsgCreateEvaluation) XXX_Marshal

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

func (*MsgCreateEvaluation) XXX_Merge

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

func (*MsgCreateEvaluation) XXX_Size

func (m *MsgCreateEvaluation) XXX_Size() int

func (*MsgCreateEvaluation) XXX_Unmarshal

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

type MsgCreateEvaluationResponse

type MsgCreateEvaluationResponse struct {
}

MsgCreateEvaluationResponse defines the Msg/CreateEvaluation response type.

func (*MsgCreateEvaluationResponse) Descriptor

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

func (*MsgCreateEvaluationResponse) Marshal

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

func (*MsgCreateEvaluationResponse) MarshalTo

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

func (*MsgCreateEvaluationResponse) MarshalToSizedBuffer

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

func (*MsgCreateEvaluationResponse) ProtoMessage

func (*MsgCreateEvaluationResponse) ProtoMessage()

func (*MsgCreateEvaluationResponse) Reset

func (m *MsgCreateEvaluationResponse) Reset()

func (*MsgCreateEvaluationResponse) Size

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

func (*MsgCreateEvaluationResponse) String

func (m *MsgCreateEvaluationResponse) String() string

func (*MsgCreateEvaluationResponse) Unmarshal

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

func (*MsgCreateEvaluationResponse) XXX_DiscardUnknown

func (m *MsgCreateEvaluationResponse) XXX_DiscardUnknown()

func (*MsgCreateEvaluationResponse) XXX_Marshal

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

func (*MsgCreateEvaluationResponse) XXX_Merge

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

func (*MsgCreateEvaluationResponse) XXX_Size

func (m *MsgCreateEvaluationResponse) XXX_Size() int

func (*MsgCreateEvaluationResponse) XXX_Unmarshal

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

type MsgCreateProject

type MsgCreateProject struct {
	TxHash         string                                                           `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"txHash" yaml:"txHash"`
	SenderDid      github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 168-byte string literal not displayed */
	ProjectDid     string                                                           `protobuf:"bytes,3,opt,name=project_did,json=projectDid,proto3" json:"projectDid" yaml:"projectDid"`
	PubKey         string                                                           `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3" json:"pubKey" yaml:"pubKey"`
	Data           encoding_json.RawMessage                                         `protobuf:"bytes,5,opt,name=data,proto3,casttype=encoding/json.RawMessage" json:"data,omitempty" yaml:"iid"`
	ProjectAddress string                                                           `protobuf:"bytes,6,opt,name=project_address,json=projectAddress,proto3" json:"project_address" yaml:"project_address"`
}

MsgCreateProject defines a message for creating a project.

func NewMsgCreateProject

func NewMsgCreateProject(senderDid iidtypes.DIDFragment, projectData json.RawMessage,
	projectDid didexported.Did, pubKey string, projectAddress string) *MsgCreateProject

func (*MsgCreateProject) Descriptor

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

func (*MsgCreateProject) GetData

func (MsgCreateProject) GetIidController

func (msg MsgCreateProject) GetIidController() iidtypes.DIDFragment

func (*MsgCreateProject) GetProjectAddress

func (m *MsgCreateProject) GetProjectAddress() string

func (*MsgCreateProject) GetProjectDid

func (m *MsgCreateProject) GetProjectDid() string

func (*MsgCreateProject) GetPubKey

func (m *MsgCreateProject) GetPubKey() string

func (MsgCreateProject) GetSignBytes

func (msg MsgCreateProject) GetSignBytes() []byte

func (MsgCreateProject) GetSignerDid

func (msg MsgCreateProject) GetSignerDid() didexported.Did

func (MsgCreateProject) GetSigners

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

func (*MsgCreateProject) GetTxHash

func (m *MsgCreateProject) GetTxHash() string

func (*MsgCreateProject) Marshal

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

func (*MsgCreateProject) MarshalTo

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

func (*MsgCreateProject) MarshalToSizedBuffer

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

func (*MsgCreateProject) ProtoMessage

func (*MsgCreateProject) ProtoMessage()

func (*MsgCreateProject) Reset

func (m *MsgCreateProject) Reset()

func (MsgCreateProject) Route

func (msg MsgCreateProject) Route() string

func (*MsgCreateProject) Size

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

func (MsgCreateProject) String

func (msg MsgCreateProject) String() string

func (MsgCreateProject) ToStdSignMsg

func (msg MsgCreateProject) ToStdSignMsg(fee int64) legacytx.StdSignMsg

func (MsgCreateProject) Type

func (msg MsgCreateProject) Type() string

func (*MsgCreateProject) Unmarshal

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

func (MsgCreateProject) ValidateBasic

func (msg MsgCreateProject) ValidateBasic() error

func (*MsgCreateProject) XXX_DiscardUnknown

func (m *MsgCreateProject) XXX_DiscardUnknown()

func (*MsgCreateProject) XXX_Marshal

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

func (*MsgCreateProject) XXX_Merge

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

func (*MsgCreateProject) XXX_Size

func (m *MsgCreateProject) XXX_Size() int

func (*MsgCreateProject) XXX_Unmarshal

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

type MsgCreateProjectResponse

type MsgCreateProjectResponse struct {
}

MsgCreateProjectResponse defines the Msg/CreateProject response type.

func (*MsgCreateProjectResponse) Descriptor

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

func (*MsgCreateProjectResponse) Marshal

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

func (*MsgCreateProjectResponse) MarshalTo

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

func (*MsgCreateProjectResponse) MarshalToSizedBuffer

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

func (*MsgCreateProjectResponse) ProtoMessage

func (*MsgCreateProjectResponse) ProtoMessage()

func (*MsgCreateProjectResponse) Reset

func (m *MsgCreateProjectResponse) Reset()

func (*MsgCreateProjectResponse) Size

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

func (*MsgCreateProjectResponse) String

func (m *MsgCreateProjectResponse) String() string

func (*MsgCreateProjectResponse) Unmarshal

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

func (*MsgCreateProjectResponse) XXX_DiscardUnknown

func (m *MsgCreateProjectResponse) XXX_DiscardUnknown()

func (*MsgCreateProjectResponse) XXX_Marshal

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

func (*MsgCreateProjectResponse) XXX_Merge

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

func (*MsgCreateProjectResponse) XXX_Size

func (m *MsgCreateProjectResponse) XXX_Size() int

func (*MsgCreateProjectResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateProject defines a method for creating a project.
	CreateProject(context.Context, *MsgCreateProject) (*MsgCreateProjectResponse, error)
	// UpdateProjectStatus defines a method for updating a project's current status.
	UpdateProjectStatus(context.Context, *MsgUpdateProjectStatus) (*MsgUpdateProjectStatusResponse, error)
	// CreateAgent defines a method for creating an agent on a project.
	CreateAgent(context.Context, *MsgCreateAgent) (*MsgCreateAgentResponse, error)
	// UpdateAgent defines a method for updating an agent on a project.
	UpdateAgent(context.Context, *MsgUpdateAgent) (*MsgUpdateAgentResponse, error)
	// CreateClaim defines a method for creating a claim on a project.
	CreateClaim(context.Context, *MsgCreateClaim) (*MsgCreateClaimResponse, error)
	// CreateEvaluation defines a method for creating an evaluation for a specific claim on a project.
	CreateEvaluation(context.Context, *MsgCreateEvaluation) (*MsgCreateEvaluationResponse, error)
	// WithdrawFunds defines a method for project agents to withdraw their funds from a project.
	WithdrawFunds(context.Context, *MsgWithdrawFunds) (*MsgWithdrawFundsResponse, error)
	// UpdateProjectDoc defines a method for updating a project's data.
	UpdateProjectDoc(context.Context, *MsgUpdateProjectDoc) (*MsgUpdateProjectDocResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateAgent

type MsgUpdateAgent struct {
	TxHash         string                                                           `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"txHash" yaml:"txHash"`
	SenderDid      github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 168-byte string literal not displayed */
	ProjectDid     string                                                           `protobuf:"bytes,3,opt,name=project_did,json=projectDid,proto3" json:"projectDid" yaml:"projectDid"`
	Data           UpdateAgentDoc                                                   `protobuf:"bytes,4,opt,name=data,proto3" json:"data" yaml:"iid"`
	ProjectAddress string                                                           `protobuf:"bytes,5,opt,name=project_address,json=projectAddress,proto3" json:"sender_address" yaml:"sender_address"`
}

MsgUpdateAgent defines a message for updating an agent on a project.

func NewMsgUpdateAgent

func NewMsgUpdateAgent(txHash string, senderDid iidtypes.DIDFragment, updateAgentDoc UpdateAgentDoc, projectDid didexported.Did, projectAddress string) *MsgUpdateAgent

func (*MsgUpdateAgent) Descriptor

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

func (*MsgUpdateAgent) GetData

func (m *MsgUpdateAgent) GetData() UpdateAgentDoc

func (MsgUpdateAgent) GetIidController

func (msg MsgUpdateAgent) GetIidController() iidtypes.DIDFragment

func (*MsgUpdateAgent) GetProjectAddress

func (m *MsgUpdateAgent) GetProjectAddress() string

func (*MsgUpdateAgent) GetProjectDid

func (m *MsgUpdateAgent) GetProjectDid() string

func (MsgUpdateAgent) GetSignBytes

func (msg MsgUpdateAgent) GetSignBytes() []byte

func (MsgUpdateAgent) GetSignerDid

func (msg MsgUpdateAgent) GetSignerDid() didexported.Did

func (MsgUpdateAgent) GetSigners

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

func (*MsgUpdateAgent) GetTxHash

func (m *MsgUpdateAgent) GetTxHash() string

func (*MsgUpdateAgent) Marshal

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

func (*MsgUpdateAgent) MarshalTo

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

func (*MsgUpdateAgent) MarshalToSizedBuffer

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

func (*MsgUpdateAgent) ProtoMessage

func (*MsgUpdateAgent) ProtoMessage()

func (*MsgUpdateAgent) Reset

func (m *MsgUpdateAgent) Reset()

func (MsgUpdateAgent) Route

func (msg MsgUpdateAgent) Route() string

func (*MsgUpdateAgent) Size

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

func (MsgUpdateAgent) String

func (msg MsgUpdateAgent) String() string

func (MsgUpdateAgent) Type

func (msg MsgUpdateAgent) Type() string

func (*MsgUpdateAgent) Unmarshal

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

func (MsgUpdateAgent) ValidateBasic

func (msg MsgUpdateAgent) ValidateBasic() error

func (*MsgUpdateAgent) XXX_DiscardUnknown

func (m *MsgUpdateAgent) XXX_DiscardUnknown()

func (*MsgUpdateAgent) XXX_Marshal

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

func (*MsgUpdateAgent) XXX_Merge

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

func (*MsgUpdateAgent) XXX_Size

func (m *MsgUpdateAgent) XXX_Size() int

func (*MsgUpdateAgent) XXX_Unmarshal

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

type MsgUpdateAgentResponse

type MsgUpdateAgentResponse struct {
}

MsgUpdateAgentResponse defines the Msg/UpdateAgent response type.

func (*MsgUpdateAgentResponse) Descriptor

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

func (*MsgUpdateAgentResponse) Marshal

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

func (*MsgUpdateAgentResponse) MarshalTo

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

func (*MsgUpdateAgentResponse) MarshalToSizedBuffer

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

func (*MsgUpdateAgentResponse) ProtoMessage

func (*MsgUpdateAgentResponse) ProtoMessage()

func (*MsgUpdateAgentResponse) Reset

func (m *MsgUpdateAgentResponse) Reset()

func (*MsgUpdateAgentResponse) Size

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

func (*MsgUpdateAgentResponse) String

func (m *MsgUpdateAgentResponse) String() string

func (*MsgUpdateAgentResponse) Unmarshal

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

func (*MsgUpdateAgentResponse) XXX_DiscardUnknown

func (m *MsgUpdateAgentResponse) XXX_DiscardUnknown()

func (*MsgUpdateAgentResponse) XXX_Marshal

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

func (*MsgUpdateAgentResponse) XXX_Merge

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

func (*MsgUpdateAgentResponse) XXX_Size

func (m *MsgUpdateAgentResponse) XXX_Size() int

func (*MsgUpdateAgentResponse) XXX_Unmarshal

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

type MsgUpdateProjectDoc

type MsgUpdateProjectDoc struct {
	TxHash         string                                                           `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"txHash" yaml:"txHash"`
	SenderDid      github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 168-byte string literal not displayed */
	ProjectDid     string                                                           `protobuf:"bytes,3,opt,name=project_did,json=projectDid,proto3" json:"projectDid" yaml:"projectDid"`
	Data           encoding_json.RawMessage                                         `protobuf:"bytes,4,opt,name=data,proto3,casttype=encoding/json.RawMessage" json:"data,omitempty" yaml:"iid"`
	ProjectAddress string                                                           `protobuf:"bytes,5,opt,name=project_address,json=projectAddress,proto3" json:"project_address" yaml:"project_address"`
}

MsgUpdateProjectDoc defines a message for updating a project's data.

func NewMsgUpdateProjectDoc

func NewMsgUpdateProjectDoc(senderDid iidtypes.DIDFragment, projectData json.RawMessage, projectDid didexported.Did, projectAddress string) *MsgUpdateProjectDoc

func (*MsgUpdateProjectDoc) Descriptor

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

func (*MsgUpdateProjectDoc) GetData

func (MsgUpdateProjectDoc) GetIidController

func (msg MsgUpdateProjectDoc) GetIidController() iidtypes.DIDFragment

func (*MsgUpdateProjectDoc) GetProjectAddress

func (m *MsgUpdateProjectDoc) GetProjectAddress() string

func (*MsgUpdateProjectDoc) GetProjectDid

func (m *MsgUpdateProjectDoc) GetProjectDid() string

func (MsgUpdateProjectDoc) GetSignBytes

func (msg MsgUpdateProjectDoc) GetSignBytes() []byte

func (MsgUpdateProjectDoc) GetSignerDid

func (msg MsgUpdateProjectDoc) GetSignerDid() didexported.Did

func (MsgUpdateProjectDoc) GetSigners

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

func (*MsgUpdateProjectDoc) GetTxHash

func (m *MsgUpdateProjectDoc) GetTxHash() string

func (*MsgUpdateProjectDoc) Marshal

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

func (*MsgUpdateProjectDoc) MarshalTo

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

func (*MsgUpdateProjectDoc) MarshalToSizedBuffer

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

func (*MsgUpdateProjectDoc) ProtoMessage

func (*MsgUpdateProjectDoc) ProtoMessage()

func (*MsgUpdateProjectDoc) Reset

func (m *MsgUpdateProjectDoc) Reset()

func (MsgUpdateProjectDoc) Route

func (msg MsgUpdateProjectDoc) Route() string

func (*MsgUpdateProjectDoc) Size

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

func (*MsgUpdateProjectDoc) String

func (m *MsgUpdateProjectDoc) String() string

func (MsgUpdateProjectDoc) Type

func (msg MsgUpdateProjectDoc) Type() string

func (*MsgUpdateProjectDoc) Unmarshal

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

func (MsgUpdateProjectDoc) ValidateBasic

func (msg MsgUpdateProjectDoc) ValidateBasic() error

func (*MsgUpdateProjectDoc) XXX_DiscardUnknown

func (m *MsgUpdateProjectDoc) XXX_DiscardUnknown()

func (*MsgUpdateProjectDoc) XXX_Marshal

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

func (*MsgUpdateProjectDoc) XXX_Merge

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

func (*MsgUpdateProjectDoc) XXX_Size

func (m *MsgUpdateProjectDoc) XXX_Size() int

func (*MsgUpdateProjectDoc) XXX_Unmarshal

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

type MsgUpdateProjectDocResponse

type MsgUpdateProjectDocResponse struct {
}

MsgUpdateProjectDocResponse defines the Msg/UpdateProjectDoc response type.

func (*MsgUpdateProjectDocResponse) Descriptor

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

func (*MsgUpdateProjectDocResponse) Marshal

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

func (*MsgUpdateProjectDocResponse) MarshalTo

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

func (*MsgUpdateProjectDocResponse) MarshalToSizedBuffer

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

func (*MsgUpdateProjectDocResponse) ProtoMessage

func (*MsgUpdateProjectDocResponse) ProtoMessage()

func (*MsgUpdateProjectDocResponse) Reset

func (m *MsgUpdateProjectDocResponse) Reset()

func (*MsgUpdateProjectDocResponse) Size

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

func (*MsgUpdateProjectDocResponse) String

func (m *MsgUpdateProjectDocResponse) String() string

func (*MsgUpdateProjectDocResponse) Unmarshal

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

func (*MsgUpdateProjectDocResponse) XXX_DiscardUnknown

func (m *MsgUpdateProjectDocResponse) XXX_DiscardUnknown()

func (*MsgUpdateProjectDocResponse) XXX_Marshal

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

func (*MsgUpdateProjectDocResponse) XXX_Merge

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

func (*MsgUpdateProjectDocResponse) XXX_Size

func (m *MsgUpdateProjectDocResponse) XXX_Size() int

func (*MsgUpdateProjectDocResponse) XXX_Unmarshal

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

type MsgUpdateProjectStatus

type MsgUpdateProjectStatus struct {
	TxHash         string                                                           `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"txHash" yaml:"txHash"`
	SenderDid      github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 168-byte string literal not displayed */
	ProjectDid     string                                                           `protobuf:"bytes,3,opt,name=project_did,json=projectDid,proto3" json:"projectDid" yaml:"projectDid"`
	Data           UpdateProjectStatusDoc                                           `protobuf:"bytes,4,opt,name=data,proto3" json:"data" yaml:"iid"`
	ProjectAddress string                                                           `protobuf:"bytes,5,opt,name=project_address,json=projectAddress,proto3" json:"project_address" yaml:"project_address"`
}

MsgUpdateProjectStatus defines a message for updating a project's current status.

func NewMsgUpdateProjectStatus

func NewMsgUpdateProjectStatus(senderDid iidtypes.DIDFragment, updateProjectStatusDoc UpdateProjectStatusDoc, projectDid didexported.Did, projectAddress string) *MsgUpdateProjectStatus

func (*MsgUpdateProjectStatus) Descriptor

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

func (*MsgUpdateProjectStatus) GetData

func (MsgUpdateProjectStatus) GetIidController

func (msg MsgUpdateProjectStatus) GetIidController() iidtypes.DIDFragment

func (*MsgUpdateProjectStatus) GetProjectAddress

func (m *MsgUpdateProjectStatus) GetProjectAddress() string

func (*MsgUpdateProjectStatus) GetProjectDid

func (m *MsgUpdateProjectStatus) GetProjectDid() string

func (MsgUpdateProjectStatus) GetSignBytes

func (msg MsgUpdateProjectStatus) GetSignBytes() []byte

func (MsgUpdateProjectStatus) GetSignerDid

func (msg MsgUpdateProjectStatus) GetSignerDid() didexported.Did

func (MsgUpdateProjectStatus) GetSigners

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

func (*MsgUpdateProjectStatus) GetTxHash

func (m *MsgUpdateProjectStatus) GetTxHash() string

func (*MsgUpdateProjectStatus) Marshal

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

func (*MsgUpdateProjectStatus) MarshalTo

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

func (*MsgUpdateProjectStatus) MarshalToSizedBuffer

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

func (*MsgUpdateProjectStatus) ProtoMessage

func (*MsgUpdateProjectStatus) ProtoMessage()

func (*MsgUpdateProjectStatus) Reset

func (m *MsgUpdateProjectStatus) Reset()

func (MsgUpdateProjectStatus) Route

func (msg MsgUpdateProjectStatus) Route() string

func (*MsgUpdateProjectStatus) Size

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

func (*MsgUpdateProjectStatus) String

func (m *MsgUpdateProjectStatus) String() string

func (MsgUpdateProjectStatus) Type

func (msg MsgUpdateProjectStatus) Type() string

func (*MsgUpdateProjectStatus) Unmarshal

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

func (MsgUpdateProjectStatus) ValidateBasic

func (msg MsgUpdateProjectStatus) ValidateBasic() error

func (*MsgUpdateProjectStatus) XXX_DiscardUnknown

func (m *MsgUpdateProjectStatus) XXX_DiscardUnknown()

func (*MsgUpdateProjectStatus) XXX_Marshal

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

func (*MsgUpdateProjectStatus) XXX_Merge

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

func (*MsgUpdateProjectStatus) XXX_Size

func (m *MsgUpdateProjectStatus) XXX_Size() int

func (*MsgUpdateProjectStatus) XXX_Unmarshal

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

type MsgUpdateProjectStatusResponse

type MsgUpdateProjectStatusResponse struct {
}

MsgUpdateProjectStatusResponse defines the Msg/UpdateProjectStatus response type.

func (*MsgUpdateProjectStatusResponse) Descriptor

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

func (*MsgUpdateProjectStatusResponse) Marshal

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

func (*MsgUpdateProjectStatusResponse) MarshalTo

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

func (*MsgUpdateProjectStatusResponse) MarshalToSizedBuffer

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

func (*MsgUpdateProjectStatusResponse) ProtoMessage

func (*MsgUpdateProjectStatusResponse) ProtoMessage()

func (*MsgUpdateProjectStatusResponse) Reset

func (m *MsgUpdateProjectStatusResponse) Reset()

func (*MsgUpdateProjectStatusResponse) Size

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

func (*MsgUpdateProjectStatusResponse) String

func (*MsgUpdateProjectStatusResponse) Unmarshal

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

func (*MsgUpdateProjectStatusResponse) XXX_DiscardUnknown

func (m *MsgUpdateProjectStatusResponse) XXX_DiscardUnknown()

func (*MsgUpdateProjectStatusResponse) XXX_Marshal

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

func (*MsgUpdateProjectStatusResponse) XXX_Merge

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

func (*MsgUpdateProjectStatusResponse) XXX_Size

func (m *MsgUpdateProjectStatusResponse) XXX_Size() int

func (*MsgUpdateProjectStatusResponse) XXX_Unmarshal

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

type MsgWithdrawFunds

type MsgWithdrawFunds struct {
	SenderDid     github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 168-byte string literal not displayed */
	Data          WithdrawFundsDoc                                                 `protobuf:"bytes,2,opt,name=data,proto3" json:"data" yaml:"iid"`
	SenderAddress string                                                           `protobuf:"bytes,5,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address" yaml:"sender_address"`
}

MsgWithdrawFunds defines a message for project agents to withdraw their funds from a project.

func NewMsgWithdrawFunds

func NewMsgWithdrawFunds(senderDid iidtypes.DIDFragment, data WithdrawFundsDoc, senderAddress string) *MsgWithdrawFunds

func (*MsgWithdrawFunds) Descriptor

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

func (*MsgWithdrawFunds) GetData

func (m *MsgWithdrawFunds) GetData() WithdrawFundsDoc

func (MsgWithdrawFunds) GetIidController

func (msg MsgWithdrawFunds) GetIidController() iidtypes.DIDFragment

func (*MsgWithdrawFunds) GetSenderAddress

func (m *MsgWithdrawFunds) GetSenderAddress() string

func (MsgWithdrawFunds) GetSignBytes

func (msg MsgWithdrawFunds) GetSignBytes() []byte

func (MsgWithdrawFunds) GetSignerDid

func (msg MsgWithdrawFunds) GetSignerDid() didexported.Did

func (MsgWithdrawFunds) GetSigners

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

func (*MsgWithdrawFunds) Marshal

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

func (*MsgWithdrawFunds) MarshalTo

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

func (*MsgWithdrawFunds) MarshalToSizedBuffer

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

func (*MsgWithdrawFunds) ProtoMessage

func (*MsgWithdrawFunds) ProtoMessage()

func (*MsgWithdrawFunds) Reset

func (m *MsgWithdrawFunds) Reset()

func (MsgWithdrawFunds) Route

func (msg MsgWithdrawFunds) Route() string

func (*MsgWithdrawFunds) Size

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

func (MsgWithdrawFunds) String

func (msg MsgWithdrawFunds) String() string

func (MsgWithdrawFunds) Type

func (msg MsgWithdrawFunds) Type() string

func (*MsgWithdrawFunds) Unmarshal

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

func (MsgWithdrawFunds) ValidateBasic

func (msg MsgWithdrawFunds) ValidateBasic() error

func (*MsgWithdrawFunds) XXX_DiscardUnknown

func (m *MsgWithdrawFunds) XXX_DiscardUnknown()

func (*MsgWithdrawFunds) XXX_Marshal

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

func (*MsgWithdrawFunds) XXX_Merge

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

func (*MsgWithdrawFunds) XXX_Size

func (m *MsgWithdrawFunds) XXX_Size() int

func (*MsgWithdrawFunds) XXX_Unmarshal

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

type MsgWithdrawFundsResponse

type MsgWithdrawFundsResponse struct {
}

MsgWithdrawFundsResponse defines the Msg/WithdrawFunds response type.

func (*MsgWithdrawFundsResponse) Descriptor

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

func (*MsgWithdrawFundsResponse) Marshal

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

func (*MsgWithdrawFundsResponse) MarshalTo

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

func (*MsgWithdrawFundsResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawFundsResponse) ProtoMessage

func (*MsgWithdrawFundsResponse) ProtoMessage()

func (*MsgWithdrawFundsResponse) Reset

func (m *MsgWithdrawFundsResponse) Reset()

func (*MsgWithdrawFundsResponse) Size

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

func (*MsgWithdrawFundsResponse) String

func (m *MsgWithdrawFundsResponse) String() string

func (*MsgWithdrawFundsResponse) Unmarshal

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

func (*MsgWithdrawFundsResponse) XXX_DiscardUnknown

func (m *MsgWithdrawFundsResponse) XXX_DiscardUnknown()

func (*MsgWithdrawFundsResponse) XXX_Marshal

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

func (*MsgWithdrawFundsResponse) XXX_Merge

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

func (*MsgWithdrawFundsResponse) XXX_Size

func (m *MsgWithdrawFundsResponse) XXX_Size() int

func (*MsgWithdrawFundsResponse) XXX_Unmarshal

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

type Params

type Params struct {
	ProjectMinimumInitialFunding github_com_cosmos_cosmos_sdk_types.Coins `` /* 232-byte string literal not displayed */
	OracleFeePercentage          github_com_cosmos_cosmos_sdk_types.Dec   `` /* 189-byte string literal not displayed */
	NodeFeePercentage            github_com_cosmos_cosmos_sdk_types.Dec   `` /* 181-byte string literal not displayed */
	// contains filtered or unexported fields
}

Params defines the parameters for the project module.

func DefaultParams

func DefaultParams() Params

default project module parameters

func NewParams

func NewParams(projectMinimumInitialFunding sdk.Coins, xcodid didexported.Did,
	oracleFeePercentage, nodeFeePercentage sdk.Dec) Params

func (*Params) Descriptor

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

func (*Params) GetProjectMinimumInitialFunding

func (m *Params) GetProjectMinimumInitialFunding() github_com_cosmos_cosmos_sdk_types.Coins

func (*Params) Getxcodid

func (m *Params) Getxcodid() string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

Implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type ProjectDataMap

type ProjectDataMap map[string]json.RawMessage

type ProjectDoc

type ProjectDoc struct {
	TxHash     string                                                           `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"txHash" yaml:"txHash"`
	ProjectDid string                                                           `protobuf:"bytes,2,opt,name=project_did,json=projectDid,proto3" json:"projectDid" yaml:"projectDid"`
	SenderDid  github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 168-byte string literal not displayed */
	PubKey     string                                                           `protobuf:"bytes,4,opt,name=pub_key,json=pubKey,proto3" json:"pubKey" yaml:"pubKey"`
	Status     string                                                           `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty" yaml:"status"`
	Data       encoding_json.RawMessage                                         `protobuf:"bytes,6,opt,name=data,proto3,casttype=encoding/json.RawMessage" json:"data,omitempty" yaml:"iid"`
}

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

func NewProjectDoc

func NewProjectDoc(txHash string, projectDid string, senderDid iidtypes.DIDFragment,
	pubKey string, status ProjectStatus, data json.RawMessage) ProjectDoc

func (*ProjectDoc) Descriptor

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

func (*ProjectDoc) GetData

func (m *ProjectDoc) GetData() encoding_json.RawMessage

func (ProjectDoc) GetProjectData

func (pd ProjectDoc) GetProjectData() (dataMap ProjectDataMap)

func (*ProjectDoc) GetProjectDid

func (m *ProjectDoc) GetProjectDid() string

func (ProjectDoc) GetProjectFeesMap

func (pd ProjectDoc) GetProjectFeesMap() (feesMap ProjectFeesMap)

func (*ProjectDoc) GetPubKey

func (m *ProjectDoc) GetPubKey() string

func (*ProjectDoc) GetStatus

func (m *ProjectDoc) GetStatus() string

func (*ProjectDoc) GetTxHash

func (m *ProjectDoc) GetTxHash() string

func (*ProjectDoc) Marshal

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

func (*ProjectDoc) MarshalTo

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

func (*ProjectDoc) MarshalToSizedBuffer

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

func (*ProjectDoc) ProtoMessage

func (*ProjectDoc) ProtoMessage()

func (*ProjectDoc) Reset

func (m *ProjectDoc) Reset()

func (*ProjectDoc) Size

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

func (*ProjectDoc) String

func (m *ProjectDoc) String() string

func (*ProjectDoc) Unmarshal

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

func (*ProjectDoc) XXX_DiscardUnknown

func (m *ProjectDoc) XXX_DiscardUnknown()

func (*ProjectDoc) XXX_Marshal

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

func (*ProjectDoc) XXX_Merge

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

func (*ProjectDoc) XXX_Size

func (m *ProjectDoc) XXX_Size() int

func (*ProjectDoc) XXX_Unmarshal

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

type ProjectFeesMap

type ProjectFeesMap struct {
	Context string `json:"@context" yaml:"@context"`
	Items   []ProjectFeesMapItem
}

func (ProjectFeesMap) GetPayTemplateId

func (pfm ProjectFeesMap) GetPayTemplateId(feeType FeeType) (string, error)

type ProjectFeesMapItem

type ProjectFeesMapItem struct {
	Type              FeeType `json:"@type" yaml:"@type"`
	PaymentTemplateId string  `json:"id" yaml:"id"`
}

type ProjectStatus

type ProjectStatus string
const (
	NullStatus     ProjectStatus = ""
	CreatedProject ProjectStatus = "CREATED"
	PendingStatus  ProjectStatus = "PENDING"
	FundedStatus   ProjectStatus = "FUNDED"
	StartedStatus  ProjectStatus = "STARTED"
	StoppedStatus  ProjectStatus = "STOPPED"
	PaidoutStatus  ProjectStatus = "PAIDOUT"
)

func ProjectStatusFromString

func ProjectStatusFromString(s string) ProjectStatus

func (ProjectStatus) IsValidProgressionFrom

func (next ProjectStatus) IsValidProgressionFrom(prev ProjectStatus) bool

type ProjectStatusTransitionMap

type ProjectStatusTransitionMap map[ProjectStatus][]ProjectStatus

type QueryClient

type QueryClient interface {
	// ProjectDoc queries info of a specific project.
	ProjectDoc(ctx context.Context, in *QueryProjectDocRequest, opts ...grpc.CallOption) (*QueryProjectDocResponse, error)
	// ProjectAccounts lists a specific project's accounts.
	ProjectAccounts(ctx context.Context, in *QueryProjectAccountsRequest, opts ...grpc.CallOption) (*QueryProjectAccountsResponse, error)
	// ProjectTx lists a specific project's transactions.
	ProjectTx(ctx context.Context, in *QueryProjectTxRequest, opts ...grpc.CallOption) (*QueryProjectTxResponse, error)
	// Params queries the paramaters of x/project module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"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 QueryProjectAccountsRequest

type QueryProjectAccountsRequest struct {
	ProjectDid string `protobuf:"bytes,1,opt,name=project_did,json=projectDid,proto3" json:"project_did,omitempty" yaml:"project_did"`
}

QueryProjectAccountsRequest is the request type for the Query/ProjectAccounts RPC method.

func (*QueryProjectAccountsRequest) Descriptor

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

func (*QueryProjectAccountsRequest) GetProjectDid

func (m *QueryProjectAccountsRequest) GetProjectDid() string

func (*QueryProjectAccountsRequest) Marshal

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

func (*QueryProjectAccountsRequest) MarshalTo

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

func (*QueryProjectAccountsRequest) MarshalToSizedBuffer

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

func (*QueryProjectAccountsRequest) ProtoMessage

func (*QueryProjectAccountsRequest) ProtoMessage()

func (*QueryProjectAccountsRequest) Reset

func (m *QueryProjectAccountsRequest) Reset()

func (*QueryProjectAccountsRequest) Size

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

func (*QueryProjectAccountsRequest) String

func (m *QueryProjectAccountsRequest) String() string

func (*QueryProjectAccountsRequest) Unmarshal

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

func (*QueryProjectAccountsRequest) XXX_DiscardUnknown

func (m *QueryProjectAccountsRequest) XXX_DiscardUnknown()

func (*QueryProjectAccountsRequest) XXX_Marshal

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

func (*QueryProjectAccountsRequest) XXX_Merge

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

func (*QueryProjectAccountsRequest) XXX_Size

func (m *QueryProjectAccountsRequest) XXX_Size() int

func (*QueryProjectAccountsRequest) XXX_Unmarshal

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

type QueryProjectAccountsResponse

type QueryProjectAccountsResponse struct {
	AccountMap *AccountMap `protobuf:"bytes,1,opt,name=account_map,json=accountMap,proto3" json:"account_map,omitempty" yaml:"account_map"`
}

QueryProjectAccountsResponse is the response type for the Query/ProjectAccounts RPC method.

func (*QueryProjectAccountsResponse) Descriptor

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

func (*QueryProjectAccountsResponse) GetAccountMap

func (m *QueryProjectAccountsResponse) GetAccountMap() *AccountMap

func (*QueryProjectAccountsResponse) Marshal

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

func (*QueryProjectAccountsResponse) MarshalTo

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

func (*QueryProjectAccountsResponse) MarshalToSizedBuffer

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

func (*QueryProjectAccountsResponse) ProtoMessage

func (*QueryProjectAccountsResponse) ProtoMessage()

func (*QueryProjectAccountsResponse) Reset

func (m *QueryProjectAccountsResponse) Reset()

func (*QueryProjectAccountsResponse) Size

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

func (*QueryProjectAccountsResponse) String

func (*QueryProjectAccountsResponse) Unmarshal

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

func (*QueryProjectAccountsResponse) XXX_DiscardUnknown

func (m *QueryProjectAccountsResponse) XXX_DiscardUnknown()

func (*QueryProjectAccountsResponse) XXX_Marshal

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

func (*QueryProjectAccountsResponse) XXX_Merge

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

func (*QueryProjectAccountsResponse) XXX_Size

func (m *QueryProjectAccountsResponse) XXX_Size() int

func (*QueryProjectAccountsResponse) XXX_Unmarshal

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

type QueryProjectDocRequest

type QueryProjectDocRequest struct {
	ProjectDid string `protobuf:"bytes,1,opt,name=project_did,json=projectDid,proto3" json:"project_did,omitempty" yaml:"project_did"`
}

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

func (*QueryProjectDocRequest) Descriptor

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

func (*QueryProjectDocRequest) GetProjectDid

func (m *QueryProjectDocRequest) GetProjectDid() string

func (*QueryProjectDocRequest) Marshal

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

func (*QueryProjectDocRequest) MarshalTo

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

func (*QueryProjectDocRequest) MarshalToSizedBuffer

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

func (*QueryProjectDocRequest) ProtoMessage

func (*QueryProjectDocRequest) ProtoMessage()

func (*QueryProjectDocRequest) Reset

func (m *QueryProjectDocRequest) Reset()

func (*QueryProjectDocRequest) Size

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

func (*QueryProjectDocRequest) String

func (m *QueryProjectDocRequest) String() string

func (*QueryProjectDocRequest) Unmarshal

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

func (*QueryProjectDocRequest) XXX_DiscardUnknown

func (m *QueryProjectDocRequest) XXX_DiscardUnknown()

func (*QueryProjectDocRequest) XXX_Marshal

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

func (*QueryProjectDocRequest) XXX_Merge

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

func (*QueryProjectDocRequest) XXX_Size

func (m *QueryProjectDocRequest) XXX_Size() int

func (*QueryProjectDocRequest) XXX_Unmarshal

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

type QueryProjectDocResponse

type QueryProjectDocResponse struct {
	ProjectDoc *ProjectDoc `protobuf:"bytes,1,opt,name=project_doc,json=projectDoc,proto3" json:"project_doc,omitempty" yaml:"project_doc"`
}

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

func (*QueryProjectDocResponse) Descriptor

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

func (*QueryProjectDocResponse) GetProjectDoc

func (m *QueryProjectDocResponse) GetProjectDoc() *ProjectDoc

func (*QueryProjectDocResponse) Marshal

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

func (*QueryProjectDocResponse) MarshalTo

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

func (*QueryProjectDocResponse) MarshalToSizedBuffer

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

func (*QueryProjectDocResponse) ProtoMessage

func (*QueryProjectDocResponse) ProtoMessage()

func (*QueryProjectDocResponse) Reset

func (m *QueryProjectDocResponse) Reset()

func (*QueryProjectDocResponse) Size

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

func (*QueryProjectDocResponse) String

func (m *QueryProjectDocResponse) String() string

func (*QueryProjectDocResponse) Unmarshal

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

func (*QueryProjectDocResponse) XXX_DiscardUnknown

func (m *QueryProjectDocResponse) XXX_DiscardUnknown()

func (*QueryProjectDocResponse) XXX_Marshal

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

func (*QueryProjectDocResponse) XXX_Merge

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

func (*QueryProjectDocResponse) XXX_Size

func (m *QueryProjectDocResponse) XXX_Size() int

func (*QueryProjectDocResponse) XXX_Unmarshal

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

type QueryProjectTxRequest

type QueryProjectTxRequest struct {
	ProjectDid string `protobuf:"bytes,1,opt,name=project_did,json=projectDid,proto3" json:"project_did,omitempty" yaml:"project_did"`
}

QueryProjectTxRequest is the request type for the Query/ProjectTx RPC method.

func (*QueryProjectTxRequest) Descriptor

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

func (*QueryProjectTxRequest) GetProjectDid

func (m *QueryProjectTxRequest) GetProjectDid() string

func (*QueryProjectTxRequest) Marshal

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

func (*QueryProjectTxRequest) MarshalTo

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

func (*QueryProjectTxRequest) MarshalToSizedBuffer

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

func (*QueryProjectTxRequest) ProtoMessage

func (*QueryProjectTxRequest) ProtoMessage()

func (*QueryProjectTxRequest) Reset

func (m *QueryProjectTxRequest) Reset()

func (*QueryProjectTxRequest) Size

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

func (*QueryProjectTxRequest) String

func (m *QueryProjectTxRequest) String() string

func (*QueryProjectTxRequest) Unmarshal

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

func (*QueryProjectTxRequest) XXX_DiscardUnknown

func (m *QueryProjectTxRequest) XXX_DiscardUnknown()

func (*QueryProjectTxRequest) XXX_Marshal

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

func (*QueryProjectTxRequest) XXX_Merge

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

func (*QueryProjectTxRequest) XXX_Size

func (m *QueryProjectTxRequest) XXX_Size() int

func (*QueryProjectTxRequest) XXX_Unmarshal

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

type QueryProjectTxResponse

type QueryProjectTxResponse struct {
	Txs *WithdrawalInfoDocs `protobuf:"bytes,1,opt,name=txs,proto3" json:"txs,omitempty" yaml:"txs"`
}

QueryProjectTxResponse is the response type for the Query/ProjectTx RPC method.

func (*QueryProjectTxResponse) Descriptor

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

func (*QueryProjectTxResponse) GetTxs

func (*QueryProjectTxResponse) Marshal

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

func (*QueryProjectTxResponse) MarshalTo

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

func (*QueryProjectTxResponse) MarshalToSizedBuffer

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

func (*QueryProjectTxResponse) ProtoMessage

func (*QueryProjectTxResponse) ProtoMessage()

func (*QueryProjectTxResponse) Reset

func (m *QueryProjectTxResponse) Reset()

func (*QueryProjectTxResponse) Size

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

func (*QueryProjectTxResponse) String

func (m *QueryProjectTxResponse) String() string

func (*QueryProjectTxResponse) Unmarshal

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

func (*QueryProjectTxResponse) XXX_DiscardUnknown

func (m *QueryProjectTxResponse) XXX_DiscardUnknown()

func (*QueryProjectTxResponse) XXX_Marshal

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

func (*QueryProjectTxResponse) XXX_Merge

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

func (*QueryProjectTxResponse) XXX_Size

func (m *QueryProjectTxResponse) XXX_Size() int

func (*QueryProjectTxResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// ProjectDoc queries info of a specific project.
	ProjectDoc(context.Context, *QueryProjectDocRequest) (*QueryProjectDocResponse, error)
	// ProjectAccounts lists a specific project's accounts.
	ProjectAccounts(context.Context, *QueryProjectAccountsRequest) (*QueryProjectAccountsResponse, error)
	// ProjectTx lists a specific project's transactions.
	ProjectTx(context.Context, *QueryProjectTxRequest) (*QueryProjectTxResponse, error)
	// Params queries the paramaters of x/project module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateAgent

func (*UnimplementedMsgServer) CreateClaim

func (*UnimplementedMsgServer) CreateEvaluation

func (*UnimplementedMsgServer) CreateProject

func (*UnimplementedMsgServer) UpdateAgent

func (*UnimplementedMsgServer) UpdateProjectDoc

func (*UnimplementedMsgServer) UpdateProjectStatus

func (*UnimplementedMsgServer) WithdrawFunds

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) ProjectAccounts

func (*UnimplementedQueryServer) ProjectDoc

func (*UnimplementedQueryServer) ProjectTx

type UpdateAgentDoc

type UpdateAgentDoc struct {
	Did    string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" yaml:"did"`
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty" yaml:"status"`
	Role   string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty" yaml:"role"`
}

UpdateAgentDoc contains details required to update an agent.

func NewUpdateAgentDoc

func NewUpdateAgentDoc(did didexported.Did, status AgentStatus, role string) UpdateAgentDoc

func (*UpdateAgentDoc) Descriptor

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

func (*UpdateAgentDoc) GetDid

func (m *UpdateAgentDoc) GetDid() string

func (*UpdateAgentDoc) GetRole

func (m *UpdateAgentDoc) GetRole() string

func (*UpdateAgentDoc) GetStatus

func (m *UpdateAgentDoc) GetStatus() string

func (*UpdateAgentDoc) Marshal

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

func (*UpdateAgentDoc) MarshalTo

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

func (*UpdateAgentDoc) MarshalToSizedBuffer

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

func (*UpdateAgentDoc) ProtoMessage

func (*UpdateAgentDoc) ProtoMessage()

func (*UpdateAgentDoc) Reset

func (m *UpdateAgentDoc) Reset()

func (*UpdateAgentDoc) Size

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

func (*UpdateAgentDoc) String

func (m *UpdateAgentDoc) String() string

func (*UpdateAgentDoc) Unmarshal

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

func (*UpdateAgentDoc) XXX_DiscardUnknown

func (m *UpdateAgentDoc) XXX_DiscardUnknown()

func (*UpdateAgentDoc) XXX_Marshal

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

func (*UpdateAgentDoc) XXX_Merge

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

func (*UpdateAgentDoc) XXX_Size

func (m *UpdateAgentDoc) XXX_Size() int

func (*UpdateAgentDoc) XXX_Unmarshal

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

type UpdateProjectStatusDoc

type UpdateProjectStatusDoc struct {
	Status          string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty" yaml:"status"`
	EthFundingTxnId string `protobuf:"bytes,2,opt,name=eth_funding_txn_id,json=ethFundingTxnId,proto3" json:"ethFundingTxnID" yaml:"ethFundingTxnID"`
}

UpdateProjectStatusDoc contains details required to update a project's status.

func NewUpdateProjectStatusDoc

func NewUpdateProjectStatusDoc(status ProjectStatus, ethFundingTxnID string) UpdateProjectStatusDoc

func (*UpdateProjectStatusDoc) Descriptor

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

func (*UpdateProjectStatusDoc) GetEthFundingTxnId

func (m *UpdateProjectStatusDoc) GetEthFundingTxnId() string

func (*UpdateProjectStatusDoc) GetStatus

func (m *UpdateProjectStatusDoc) GetStatus() string

func (*UpdateProjectStatusDoc) Marshal

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

func (*UpdateProjectStatusDoc) MarshalTo

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

func (*UpdateProjectStatusDoc) MarshalToSizedBuffer

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

func (*UpdateProjectStatusDoc) ProtoMessage

func (*UpdateProjectStatusDoc) ProtoMessage()

func (*UpdateProjectStatusDoc) Reset

func (m *UpdateProjectStatusDoc) Reset()

func (*UpdateProjectStatusDoc) Size

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

func (*UpdateProjectStatusDoc) String

func (m *UpdateProjectStatusDoc) String() string

func (*UpdateProjectStatusDoc) Unmarshal

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

func (*UpdateProjectStatusDoc) XXX_DiscardUnknown

func (m *UpdateProjectStatusDoc) XXX_DiscardUnknown()

func (*UpdateProjectStatusDoc) XXX_Marshal

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

func (*UpdateProjectStatusDoc) XXX_Merge

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

func (*UpdateProjectStatusDoc) XXX_Size

func (m *UpdateProjectStatusDoc) XXX_Size() int

func (*UpdateProjectStatusDoc) XXX_Unmarshal

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

type WithdrawFundsDoc

type WithdrawFundsDoc struct {
	ProjectDid   string                                                           `protobuf:"bytes,1,opt,name=project_did,json=projectDid,proto3" json:"projectDid" yaml:"projectDid"`
	RecipientDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 180-byte string literal not displayed */
	Amount       github_com_cosmos_cosmos_sdk_types.Int                           `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"`
	IsRefund     bool                                                             `protobuf:"varint,4,opt,name=is_refund,json=isRefund,proto3" json:"isRefund" yaml:"isRefund"`
}

WithdrawFundsDoc contains details required to withdraw funds from a specific project.

func NewWithdrawFundsDoc

func NewWithdrawFundsDoc(projectDid didexported.Did, recipientDid iidtypes.DIDFragment, amount sdk.Int, isRefund bool) WithdrawFundsDoc

func (*WithdrawFundsDoc) Descriptor

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

func (*WithdrawFundsDoc) GetIsRefund

func (m *WithdrawFundsDoc) GetIsRefund() bool

func (*WithdrawFundsDoc) GetProjectDid

func (m *WithdrawFundsDoc) GetProjectDid() string

func (*WithdrawFundsDoc) Marshal

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

func (*WithdrawFundsDoc) MarshalTo

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

func (*WithdrawFundsDoc) MarshalToSizedBuffer

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

func (*WithdrawFundsDoc) ProtoMessage

func (*WithdrawFundsDoc) ProtoMessage()

func (*WithdrawFundsDoc) Reset

func (m *WithdrawFundsDoc) Reset()

func (*WithdrawFundsDoc) Size

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

func (*WithdrawFundsDoc) String

func (m *WithdrawFundsDoc) String() string

func (*WithdrawFundsDoc) Unmarshal

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

func (*WithdrawFundsDoc) XXX_DiscardUnknown

func (m *WithdrawFundsDoc) XXX_DiscardUnknown()

func (*WithdrawFundsDoc) XXX_Marshal

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

func (*WithdrawFundsDoc) XXX_Merge

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

func (*WithdrawFundsDoc) XXX_Size

func (m *WithdrawFundsDoc) XXX_Size() int

func (*WithdrawFundsDoc) XXX_Unmarshal

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

type WithdrawalInfoDoc

type WithdrawalInfoDoc struct {
	ProjectDid   string                                                           `protobuf:"bytes,1,opt,name=project_did,json=projectDid,proto3" json:"projectDid" yaml:"projectDid"`
	RecipientDid github_com_furylockerroom_xco_blockchain_x_iid_types.DIDFragment `` /* 180-byte string literal not displayed */
	Amount       types.Coin                                                       `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount" yaml:"amount"`
}

WithdrawalInfoDoc contains details required to withdraw from a specific project.

func NewWithdrawalInfoDoc

func NewWithdrawalInfoDoc(projectDid didexported.Did, recipientDid iidtypes.DIDFragment, amount sdk.Coin) WithdrawalInfoDoc

func (*WithdrawalInfoDoc) Descriptor

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

func (*WithdrawalInfoDoc) GetAmount

func (m *WithdrawalInfoDoc) GetAmount() types.Coin

func (*WithdrawalInfoDoc) GetProjectDid

func (m *WithdrawalInfoDoc) GetProjectDid() string

func (*WithdrawalInfoDoc) Marshal

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

func (*WithdrawalInfoDoc) MarshalTo

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

func (*WithdrawalInfoDoc) MarshalToSizedBuffer

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

func (*WithdrawalInfoDoc) ProtoMessage

func (*WithdrawalInfoDoc) ProtoMessage()

func (*WithdrawalInfoDoc) Reset

func (m *WithdrawalInfoDoc) Reset()

func (*WithdrawalInfoDoc) Size

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

func (*WithdrawalInfoDoc) String

func (m *WithdrawalInfoDoc) String() string

func (*WithdrawalInfoDoc) Unmarshal

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

func (*WithdrawalInfoDoc) XXX_DiscardUnknown

func (m *WithdrawalInfoDoc) XXX_DiscardUnknown()

func (*WithdrawalInfoDoc) XXX_Marshal

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

func (*WithdrawalInfoDoc) XXX_Merge

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

func (*WithdrawalInfoDoc) XXX_Size

func (m *WithdrawalInfoDoc) XXX_Size() int

func (*WithdrawalInfoDoc) XXX_Unmarshal

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

type WithdrawalInfoDocs

type WithdrawalInfoDocs struct {
	DocsList []WithdrawalInfoDoc `protobuf:"bytes,1,rep,name=docs_list,json=docsList,proto3" json:"docs_list" yaml:"docs_list"`
}

WithdrawalInfoDocs contains a list of type WithdrawalInfoDoc.

func (*WithdrawalInfoDocs) Descriptor

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

func (*WithdrawalInfoDocs) GetDocsList

func (m *WithdrawalInfoDocs) GetDocsList() []WithdrawalInfoDoc

func (*WithdrawalInfoDocs) Marshal

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

func (*WithdrawalInfoDocs) MarshalTo

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

func (*WithdrawalInfoDocs) MarshalToSizedBuffer

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

func (*WithdrawalInfoDocs) ProtoMessage

func (*WithdrawalInfoDocs) ProtoMessage()

func (*WithdrawalInfoDocs) Reset

func (m *WithdrawalInfoDocs) Reset()

func (*WithdrawalInfoDocs) Size

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

func (*WithdrawalInfoDocs) String

func (m *WithdrawalInfoDocs) String() string

func (*WithdrawalInfoDocs) Unmarshal

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

func (*WithdrawalInfoDocs) XXX_DiscardUnknown

func (m *WithdrawalInfoDocs) XXX_DiscardUnknown()

func (*WithdrawalInfoDocs) XXX_Marshal

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

func (*WithdrawalInfoDocs) XXX_Merge

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

func (*WithdrawalInfoDocs) XXX_Size

func (m *WithdrawalInfoDocs) XXX_Size() int

func (*WithdrawalInfoDocs) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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