This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
/
types.go
34 lines (29 loc) · 1.48 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package rest
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/bandprotocol/d3n/chain/x/zoracle/internal/types"
)
type ReportDetail struct {
Reporter sdk.ValAddress `json:"reporter"`
Value []types.RawDataReportWithID `json:"value"`
Tx TxDetail `json:"tx,omitempty"`
}
type RequestRESTInfo struct {
ID types.RequestID `json:"id"`
OracleScriptID types.OracleScriptID `json:"oracleScriptID"`
Calldata []byte `json:"calldata"`
RequestedValidators []sdk.ValAddress `json:"requestedValidators"`
SufficientValidatorCount int64 `json:"sufficientValidatorCount"`
ExpirationHeight int64 `json:"expirationHeight"`
ResolveStatus types.ResolveStatus `json:"resolveStatus"`
Requester sdk.AccAddress `json:"requester"`
RequestTx TxDetail `json:"requestTx,omitempty"`
RawDataRequests []types.RawDataRequestWithExternalID `json:"rawDataRequests"`
Reports []ReportDetail `json:"reports"`
Result types.Result `json:"result"`
}
type TxDetail struct {
Hash string `json:"hash"`
Height int64 `json:"height"`
Timestamp string `json:"timestamp"`
}