Documentation ¶
Index ¶
- Variables
- func MigrateTaskStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
- func UpdateParams(ctx sdk.Context, paramSubspace types.ParamSubspace)
- type CoinsProto
- func (*CoinsProto) Descriptor() ([]byte, []int)
- func (m *CoinsProto) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *CoinsProto) Marshal() (dAtA []byte, err error)
- func (m *CoinsProto) MarshalTo(dAtA []byte) (int, error)
- func (m *CoinsProto) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CoinsProto) ProtoMessage()
- func (m *CoinsProto) Reset()
- func (m *CoinsProto) Size() (n int)
- func (m *CoinsProto) String() string
- func (m *CoinsProto) Unmarshal(dAtA []byte) error
- func (m *CoinsProto) XXX_DiscardUnknown()
- func (m *CoinsProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CoinsProto) XXX_Merge(src proto.Message)
- func (m *CoinsProto) XXX_Size() int
- func (m *CoinsProto) XXX_Unmarshal(b []byte) error
- type LockedPoolParams
- func (*LockedPoolParams) Descriptor() ([]byte, []int)
- func (m *LockedPoolParams) Marshal() (dAtA []byte, err error)
- func (m *LockedPoolParams) MarshalTo(dAtA []byte) (int, error)
- func (m *LockedPoolParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LockedPoolParams) ProtoMessage()
- func (m *LockedPoolParams) Reset()
- func (m *LockedPoolParams) Size() (n int)
- func (m *LockedPoolParams) String() string
- func (m *LockedPoolParams) Unmarshal(dAtA []byte) error
- func (m *LockedPoolParams) XXX_DiscardUnknown()
- func (m *LockedPoolParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LockedPoolParams) XXX_Merge(src proto.Message)
- func (m *LockedPoolParams) XXX_Size() int
- func (m *LockedPoolParams) XXX_Unmarshal(b []byte) error
- type Operator
- func (*Operator) Descriptor() ([]byte, []int)
- func (m *Operator) Marshal() (dAtA []byte, err error)
- func (m *Operator) MarshalTo(dAtA []byte) (int, error)
- func (m *Operator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Operator) ProtoMessage()
- func (m *Operator) Reset()
- func (m *Operator) Size() (n int)
- func (m *Operator) String() string
- func (m *Operator) Unmarshal(dAtA []byte) error
- func (m *Operator) XXX_DiscardUnknown()
- func (m *Operator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Operator) XXX_Merge(src proto.Message)
- func (m *Operator) XXX_Size() int
- func (m *Operator) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type Responses
- type Task
- func (*Task) Descriptor() ([]byte, []int)
- func (m *Task) Marshal() (dAtA []byte, err error)
- func (m *Task) MarshalTo(dAtA []byte) (int, error)
- func (m *Task) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Task) ProtoMessage()
- func (m *Task) Reset()
- func (m *Task) Size() (n int)
- func (m *Task) String() string
- func (m *Task) Unmarshal(dAtA []byte) error
- func (m *Task) XXX_DiscardUnknown()
- func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Task) XXX_Merge(src proto.Message)
- func (m *Task) XXX_Size() int
- func (m *Task) XXX_Unmarshal(b []byte) error
- type TaskID
- func (*TaskID) Descriptor() ([]byte, []int)
- func (m *TaskID) Marshal() (dAtA []byte, err error)
- func (m *TaskID) MarshalTo(dAtA []byte) (int, error)
- func (m *TaskID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TaskID) ProtoMessage()
- func (m *TaskID) Reset()
- func (m *TaskID) Size() (n int)
- func (m *TaskID) String() string
- func (m *TaskID) Unmarshal(dAtA []byte) error
- func (m *TaskID) XXX_DiscardUnknown()
- func (m *TaskID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TaskID) XXX_Merge(src proto.Message)
- func (m *TaskID) XXX_Size() int
- func (m *TaskID) XXX_Unmarshal(b []byte) error
- type TaskIDs
- func (*TaskIDs) Descriptor() ([]byte, []int)
- func (m *TaskIDs) GetTaskIds() []TaskID
- func (m *TaskIDs) Marshal() (dAtA []byte, err error)
- func (m *TaskIDs) MarshalTo(dAtA []byte) (int, error)
- func (m *TaskIDs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TaskIDs) ProtoMessage()
- func (m *TaskIDs) Reset()
- func (m *TaskIDs) Size() (n int)
- func (m *TaskIDs) String() string
- func (m *TaskIDs) Unmarshal(dAtA []byte) error
- func (m *TaskIDs) XXX_DiscardUnknown()
- func (m *TaskIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TaskIDs) XXX_Merge(src proto.Message)
- func (m *TaskIDs) XXX_Size() int
- func (m *TaskIDs) XXX_Unmarshal(b []byte) error
- type TaskParams
- func (*TaskParams) Descriptor() ([]byte, []int)
- func (m *TaskParams) Marshal() (dAtA []byte, err error)
- func (m *TaskParams) MarshalTo(dAtA []byte) (int, error)
- func (m *TaskParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TaskParams) ProtoMessage()
- func (m *TaskParams) Reset()
- func (m *TaskParams) Size() (n int)
- func (m *TaskParams) String() string
- func (m *TaskParams) Unmarshal(dAtA []byte) error
- func (m *TaskParams) XXX_DiscardUnknown()
- func (m *TaskParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TaskParams) XXX_Merge(src proto.Message)
- func (m *TaskParams) XXX_Size() int
- func (m *TaskParams) XXX_Unmarshal(b []byte) error
- type TaskStatus
- type Withdraw
- func (*Withdraw) Descriptor() ([]byte, []int)
- func (m *Withdraw) Marshal() (dAtA []byte, err error)
- func (m *Withdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *Withdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Withdraw) ProtoMessage()
- func (m *Withdraw) Reset()
- func (m *Withdraw) Size() (n int)
- func (m *Withdraw) String() string
- func (m *Withdraw) Unmarshal(dAtA []byte) error
- func (m *Withdraw) XXX_DiscardUnknown()
- func (m *Withdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Withdraw) XXX_Merge(src proto.Message)
- func (m *Withdraw) XXX_Size() int
- func (m *Withdraw) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthOracle = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOracle = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupOracle = fmt.Errorf("proto: unexpected end of group") )
View Source
var TaskStatus_name = map[int32]string{
0: "TASK_STATUS_UNSPECIFIED",
1: "TASK_STATUS_PENDING",
2: "TASK_STATUS_SUCCEEDED",
3: "TASK_STATUS_FAILED",
}
View Source
var TaskStatus_value = map[string]int32{
"TASK_STATUS_UNSPECIFIED": 0,
"TASK_STATUS_PENDING": 1,
"TASK_STATUS_SUCCEEDED": 2,
"TASK_STATUS_FAILED": 3,
}
Functions ¶
func MigrateTaskStore ¶
func MigrateTaskStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
func UpdateParams ¶
func UpdateParams(ctx sdk.Context, paramSubspace types.ParamSubspace)
Types ¶
type CoinsProto ¶
type CoinsProto struct {
Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"amount"`
}
func (*CoinsProto) Descriptor ¶
func (*CoinsProto) Descriptor() ([]byte, []int)
func (*CoinsProto) GetCoins ¶
func (m *CoinsProto) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*CoinsProto) Marshal ¶
func (m *CoinsProto) Marshal() (dAtA []byte, err error)
func (*CoinsProto) MarshalToSizedBuffer ¶
func (m *CoinsProto) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CoinsProto) ProtoMessage ¶
func (*CoinsProto) ProtoMessage()
func (*CoinsProto) Reset ¶
func (m *CoinsProto) Reset()
func (*CoinsProto) Size ¶
func (m *CoinsProto) Size() (n int)
func (*CoinsProto) String ¶
func (m *CoinsProto) String() string
func (*CoinsProto) Unmarshal ¶
func (m *CoinsProto) Unmarshal(dAtA []byte) error
func (*CoinsProto) XXX_DiscardUnknown ¶
func (m *CoinsProto) XXX_DiscardUnknown()
func (*CoinsProto) XXX_Marshal ¶
func (m *CoinsProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CoinsProto) XXX_Merge ¶
func (m *CoinsProto) XXX_Merge(src proto.Message)
func (*CoinsProto) XXX_Size ¶
func (m *CoinsProto) XXX_Size() int
func (*CoinsProto) XXX_Unmarshal ¶
func (m *CoinsProto) XXX_Unmarshal(b []byte) error
type LockedPoolParams ¶
type LockedPoolParams struct { LockedInBlocks int64 `` /* 130-byte string literal not displayed */ MinimumCollateral int64 `` /* 139-byte string literal not displayed */ }
func (*LockedPoolParams) Descriptor ¶
func (*LockedPoolParams) Descriptor() ([]byte, []int)
func (*LockedPoolParams) Marshal ¶
func (m *LockedPoolParams) Marshal() (dAtA []byte, err error)
func (*LockedPoolParams) MarshalToSizedBuffer ¶
func (m *LockedPoolParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LockedPoolParams) ProtoMessage ¶
func (*LockedPoolParams) ProtoMessage()
func (*LockedPoolParams) Reset ¶
func (m *LockedPoolParams) Reset()
func (*LockedPoolParams) Size ¶
func (m *LockedPoolParams) Size() (n int)
func (*LockedPoolParams) String ¶
func (m *LockedPoolParams) String() string
func (*LockedPoolParams) Unmarshal ¶
func (m *LockedPoolParams) Unmarshal(dAtA []byte) error
func (*LockedPoolParams) XXX_DiscardUnknown ¶
func (m *LockedPoolParams) XXX_DiscardUnknown()
func (*LockedPoolParams) XXX_Marshal ¶
func (m *LockedPoolParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LockedPoolParams) XXX_Merge ¶
func (m *LockedPoolParams) XXX_Merge(src proto.Message)
func (*LockedPoolParams) XXX_Size ¶
func (m *LockedPoolParams) XXX_Size() int
func (*LockedPoolParams) XXX_Unmarshal ¶
func (m *LockedPoolParams) XXX_Unmarshal(b []byte) error
type Operator ¶
type Operator struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty" yaml:"proposer"` Collateral github_com_cosmos_cosmos_sdk_types.Coins `` /* 135-byte string literal not displayed */ AccumulatedRewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 186-byte string literal not displayed */ Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` }
func (*Operator) Descriptor ¶
func (*Operator) MarshalToSizedBuffer ¶
func (*Operator) ProtoMessage ¶
func (*Operator) ProtoMessage()
func (*Operator) XXX_DiscardUnknown ¶
func (m *Operator) XXX_DiscardUnknown()
func (*Operator) XXX_Marshal ¶
func (*Operator) XXX_Unmarshal ¶
type Response ¶
type Response struct { Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty" yaml:"operator"` Score github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=score,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"score" yaml:"score"` Weight github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"weight" yaml:"weight"` Reward github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward" yaml:"reward"` }
func (*Response) Descriptor ¶
func (*Response) MarshalToSizedBuffer ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type Task ¶
type Task struct { Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty" yaml:"contract"` Function string `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty" yaml:"function"` BeginBlock int64 `protobuf:"varint,3,opt,name=begin_block,json=beginBlock,proto3" json:"begin_block,omitempty" yaml:"begin_block"` Bounty github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=bounty,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"bounty" yaml:"bounty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` Expiration time.Time `protobuf:"bytes,6,opt,name=expiration,proto3,stdtime" json:"expiration" yaml:"expiration"` Creator string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` Responses Responses `protobuf:"bytes,8,rep,name=responses,proto3,castrepeated=Responses" json:"responses" yaml:"responses"` Result github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=result,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"result" yaml:"result"` ClosingBlock int64 `protobuf:"varint,10,opt,name=closing_block,json=closingBlock,proto3" json:"closing_block,omitempty" yaml:"closing_block"` WaitingBlocks int64 `protobuf:"varint,11,opt,name=waiting_blocks,json=waitingBlocks,proto3" json:"waiting_blocks,omitempty" yaml:"waiting_blocks"` Status TaskStatus `protobuf:"varint,12,opt,name=status,proto3,enum=shentu.oracle.v1alpha1.TaskStatus" json:"status,omitempty" yaml:"status"` }
func (*Task) Descriptor ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) XXX_DiscardUnknown ¶
func (m *Task) XXX_DiscardUnknown()
func (*Task) XXX_Unmarshal ¶
type TaskID ¶
type TaskID struct { Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty" yaml:"contract"` Function string `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty" yaml:"function"` }
func (*TaskID) Descriptor ¶
func (*TaskID) MarshalToSizedBuffer ¶
func (*TaskID) ProtoMessage ¶
func (*TaskID) ProtoMessage()
func (*TaskID) XXX_DiscardUnknown ¶
func (m *TaskID) XXX_DiscardUnknown()
func (*TaskID) XXX_Marshal ¶
func (*TaskID) XXX_Unmarshal ¶
type TaskIDs ¶
type TaskIDs struct {
TaskIds []TaskID `protobuf:"bytes,1,rep,name=task_ids,json=taskIds,proto3" json:"task_ids"`
}
func (*TaskIDs) Descriptor ¶
func (*TaskIDs) GetTaskIds ¶
func (*TaskIDs) MarshalToSizedBuffer ¶
func (*TaskIDs) ProtoMessage ¶
func (*TaskIDs) ProtoMessage()
func (*TaskIDs) XXX_DiscardUnknown ¶
func (m *TaskIDs) XXX_DiscardUnknown()
func (*TaskIDs) XXX_Marshal ¶
func (*TaskIDs) XXX_Unmarshal ¶
type TaskParams ¶
type TaskParams struct { ExpirationDuration time.Duration `` /* 144-byte string literal not displayed */ AggregationWindow int64 `` /* 139-byte string literal not displayed */ AggregationResult github_com_cosmos_cosmos_sdk_types.Int `` /* 178-byte string literal not displayed */ ThresholdScore github_com_cosmos_cosmos_sdk_types.Int `` /* 166-byte string literal not displayed */ Epsilon1 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=epsilon1,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"epsilon1" yaml:"epsilon1"` Epsilon2 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=epsilon2,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"epsilon2" yaml:"epsilon2"` }
func (*TaskParams) Descriptor ¶
func (*TaskParams) Descriptor() ([]byte, []int)
func (*TaskParams) Marshal ¶
func (m *TaskParams) Marshal() (dAtA []byte, err error)
func (*TaskParams) MarshalToSizedBuffer ¶
func (m *TaskParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TaskParams) ProtoMessage ¶
func (*TaskParams) ProtoMessage()
func (*TaskParams) Reset ¶
func (m *TaskParams) Reset()
func (*TaskParams) Size ¶
func (m *TaskParams) Size() (n int)
func (*TaskParams) String ¶
func (m *TaskParams) String() string
func (*TaskParams) Unmarshal ¶
func (m *TaskParams) Unmarshal(dAtA []byte) error
func (*TaskParams) XXX_DiscardUnknown ¶
func (m *TaskParams) XXX_DiscardUnknown()
func (*TaskParams) XXX_Marshal ¶
func (m *TaskParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TaskParams) XXX_Merge ¶
func (m *TaskParams) XXX_Merge(src proto.Message)
func (*TaskParams) XXX_Size ¶
func (m *TaskParams) XXX_Size() int
func (*TaskParams) XXX_Unmarshal ¶
func (m *TaskParams) XXX_Unmarshal(b []byte) error
type TaskStatus ¶
type TaskStatus int32
TaskStatus enumerates the valid statuses of a task.
const ( TaskStatusNil TaskStatus = 0 TaskStatusPending TaskStatus = 1 TaskStatusSucceeded TaskStatus = 2 TaskStatusFailed TaskStatus = 3 )
func (TaskStatus) EnumDescriptor ¶
func (TaskStatus) EnumDescriptor() ([]byte, []int)
func (TaskStatus) String ¶
func (x TaskStatus) String() string
type Withdraw ¶
type Withdraw struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"` DueBlock int64 `protobuf:"varint,3,opt,name=due_block,json=dueBlock,proto3" json:"due_block,omitempty" yaml:"due_block"` }
Withdraw stores a withdraw of "Amount" scheduled for a given "DueBlock."
func (*Withdraw) Descriptor ¶
func (*Withdraw) MarshalToSizedBuffer ¶
func (*Withdraw) ProtoMessage ¶
func (*Withdraw) ProtoMessage()
func (*Withdraw) XXX_DiscardUnknown ¶
func (m *Withdraw) XXX_DiscardUnknown()
func (*Withdraw) XXX_Marshal ¶
func (*Withdraw) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.