-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathscresult.go
More file actions
48 lines (47 loc) · 2.37 KB
/
scresult.go
File metadata and controls
48 lines (47 loc) · 2.37 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package data
// ScResult is a structure containing all the fields that need to be saved for a smart contract result
type ScResult struct {
UUID string `json:"uuid"`
Hash string `json:"-"`
MBHash string `json:"miniBlockHash,omitempty"`
Nonce uint64 `json:"nonce"`
GasLimit uint64 `json:"gasLimit"`
GasPrice uint64 `json:"gasPrice"`
Value string `json:"value"`
ValueNum float64 `json:"valueNum"`
Sender string `json:"sender"`
Receiver string `json:"receiver"`
SenderShard uint32 `json:"senderShard"`
ReceiverShard uint32 `json:"receiverShard"`
RelayerAddr string `json:"relayerAddr,omitempty"`
RelayedValue string `json:"relayedValue,omitempty"`
Code string `json:"code,omitempty"`
Data []byte `json:"data,omitempty"`
PrevTxHash string `json:"prevTxHash"`
OriginalTxHash string `json:"originalTxHash"`
CallType string `json:"callType"`
CodeMetadata []byte `json:"codeMetaData,omitempty"`
ReturnMessage string `json:"returnMessage,omitempty"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
HasOperations bool `json:"hasOperations,omitempty"`
Type string `json:"type,omitempty"`
Status string `json:"status,omitempty"`
Tokens []string `json:"tokens,omitempty"`
ESDTValues []string `json:"esdtValues,omitempty"`
ESDTValuesNum []float64 `json:"esdtValuesNum,omitempty"`
Receivers []string `json:"receivers,omitempty"`
ReceiversShardIDs []uint32 `json:"receiversShardIDs,omitempty"`
Operation string `json:"operation,omitempty"`
Function string `json:"function,omitempty"`
IsRelayed bool `json:"isRelayed,omitempty"`
CanBeIgnored bool `json:"canBeIgnored,omitempty"`
OriginalSender string `json:"originalSender,omitempty"`
HasLogs bool `json:"hasLogs,omitempty"`
Epoch uint32 `json:"epoch"`
ExecutionOrder int `json:"-"`
SenderAddressBytes []byte `json:"-"`
InitialTxGasUsed uint64 `json:"-"`
InitialTxFee string `json:"-"`
GasRefunded uint64 `json:"-"`
}