|
1 | 1 | package data |
2 | 2 |
|
3 | | -import "time" |
4 | | - |
5 | 3 | // ScResult is a structure containing all the fields that need to be saved for a smart contract result |
6 | 4 | type ScResult struct { |
7 | | - UUID string `json:"uuid"` |
8 | | - Hash string `json:"-"` |
9 | | - MBHash string `json:"miniBlockHash,omitempty"` |
10 | | - Nonce uint64 `json:"nonce"` |
11 | | - GasLimit uint64 `json:"gasLimit"` |
12 | | - GasPrice uint64 `json:"gasPrice"` |
13 | | - Value string `json:"value"` |
14 | | - ValueNum float64 `json:"valueNum"` |
15 | | - Sender string `json:"sender"` |
16 | | - Receiver string `json:"receiver"` |
17 | | - SenderShard uint32 `json:"senderShard"` |
18 | | - ReceiverShard uint32 `json:"receiverShard"` |
19 | | - RelayerAddr string `json:"relayerAddr,omitempty"` |
20 | | - RelayedValue string `json:"relayedValue,omitempty"` |
21 | | - Code string `json:"code,omitempty"` |
22 | | - Data []byte `json:"data,omitempty"` |
23 | | - PrevTxHash string `json:"prevTxHash"` |
24 | | - OriginalTxHash string `json:"originalTxHash"` |
25 | | - CallType string `json:"callType"` |
26 | | - CodeMetadata []byte `json:"codeMetaData,omitempty"` |
27 | | - ReturnMessage string `json:"returnMessage,omitempty"` |
28 | | - Timestamp time.Duration `json:"timestamp"` |
29 | | - HasOperations bool `json:"hasOperations,omitempty"` |
30 | | - Type string `json:"type,omitempty"` |
31 | | - Status string `json:"status,omitempty"` |
32 | | - Tokens []string `json:"tokens,omitempty"` |
33 | | - ESDTValues []string `json:"esdtValues,omitempty"` |
34 | | - ESDTValuesNum []float64 `json:"esdtValuesNum,omitempty"` |
35 | | - Receivers []string `json:"receivers,omitempty"` |
36 | | - ReceiversShardIDs []uint32 `json:"receiversShardIDs,omitempty"` |
37 | | - Operation string `json:"operation,omitempty"` |
38 | | - Function string `json:"function,omitempty"` |
39 | | - IsRelayed bool `json:"isRelayed,omitempty"` |
40 | | - CanBeIgnored bool `json:"canBeIgnored,omitempty"` |
41 | | - OriginalSender string `json:"originalSender,omitempty"` |
42 | | - HasLogs bool `json:"hasLogs,omitempty"` |
43 | | - Epoch uint32 `json:"epoch"` |
44 | | - ExecutionOrder int `json:"-"` |
45 | | - SenderAddressBytes []byte `json:"-"` |
46 | | - InitialTxGasUsed uint64 `json:"-"` |
47 | | - InitialTxFee string `json:"-"` |
48 | | - GasRefunded uint64 `json:"-"` |
| 5 | + UUID string `json:"uuid"` |
| 6 | + Hash string `json:"-"` |
| 7 | + MBHash string `json:"miniBlockHash,omitempty"` |
| 8 | + Nonce uint64 `json:"nonce"` |
| 9 | + GasLimit uint64 `json:"gasLimit"` |
| 10 | + GasPrice uint64 `json:"gasPrice"` |
| 11 | + Value string `json:"value"` |
| 12 | + ValueNum float64 `json:"valueNum"` |
| 13 | + Sender string `json:"sender"` |
| 14 | + Receiver string `json:"receiver"` |
| 15 | + SenderShard uint32 `json:"senderShard"` |
| 16 | + ReceiverShard uint32 `json:"receiverShard"` |
| 17 | + RelayerAddr string `json:"relayerAddr,omitempty"` |
| 18 | + RelayedValue string `json:"relayedValue,omitempty"` |
| 19 | + Code string `json:"code,omitempty"` |
| 20 | + Data []byte `json:"data,omitempty"` |
| 21 | + PrevTxHash string `json:"prevTxHash"` |
| 22 | + OriginalTxHash string `json:"originalTxHash"` |
| 23 | + CallType string `json:"callType"` |
| 24 | + CodeMetadata []byte `json:"codeMetaData,omitempty"` |
| 25 | + ReturnMessage string `json:"returnMessage,omitempty"` |
| 26 | + Timestamp uint64 `json:"timestamp"` |
| 27 | + TimestampMs uint64 `json:"timestampMs,omitempty"` |
| 28 | + HasOperations bool `json:"hasOperations,omitempty"` |
| 29 | + Type string `json:"type,omitempty"` |
| 30 | + Status string `json:"status,omitempty"` |
| 31 | + Tokens []string `json:"tokens,omitempty"` |
| 32 | + ESDTValues []string `json:"esdtValues,omitempty"` |
| 33 | + ESDTValuesNum []float64 `json:"esdtValuesNum,omitempty"` |
| 34 | + Receivers []string `json:"receivers,omitempty"` |
| 35 | + ReceiversShardIDs []uint32 `json:"receiversShardIDs,omitempty"` |
| 36 | + Operation string `json:"operation,omitempty"` |
| 37 | + Function string `json:"function,omitempty"` |
| 38 | + IsRelayed bool `json:"isRelayed,omitempty"` |
| 39 | + CanBeIgnored bool `json:"canBeIgnored,omitempty"` |
| 40 | + OriginalSender string `json:"originalSender,omitempty"` |
| 41 | + HasLogs bool `json:"hasLogs,omitempty"` |
| 42 | + Epoch uint32 `json:"epoch"` |
| 43 | + ExecutionOrder int `json:"-"` |
| 44 | + SenderAddressBytes []byte `json:"-"` |
| 45 | + InitialTxGasUsed uint64 `json:"-"` |
| 46 | + InitialTxFee string `json:"-"` |
| 47 | + GasRefunded uint64 `json:"-"` |
49 | 48 | } |
0 commit comments