-
Notifications
You must be signed in to change notification settings - Fork 0
/
response.go
39 lines (36 loc) · 1.37 KB
/
response.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
35
36
37
38
39
package voltasdk
type Log struct {
Address string `json:"address"`
Topics []string `json:"topics"`
Data string `json:"data"`
BlockNumber string `json:"blockNumber"`
TransactionHash string `json:"transactionHash"`
TransactionIndex string `json:"transactionIndex"`
BlockHash string `json:"blockHash"`
LogIndex string `json:"logIndex"`
Removed bool `json:"removed"`
}
type Receipt struct {
BlockHash string `json:"blockHash"`
BlockNumber string `json:"blockNumber"`
From string `json:"from"`
CumulativeGasUsed string `json:"cumulativeGasUsed"`
GasUsed string `json:"gasUsed"`
LogsBloom string `json:"logsBloom"`
TransactionHash string `json:"transactionHash"`
TransactionIndex string `json:"transactionIndex"`
EffectiveGasPrice string `json:"effectiveGasPrice"`
Logs []Log `json:"logs"`
}
type GetUserOpReceiptResponse struct {
UserOpHash string `json:"userOpHash"`
Sender string `json:"sender"`
Paymaster string `json:"paymaster"`
Nonce string `json:"nonce"`
Success bool `json:"success"`
ActualGasCost string `json:"actualGasCost"`
ActualGasUsed string `json:"actualGasUsed"`
From string `json:"from"`
Receipt Receipt `json:"receipt"`
Logs []Log `json:"logs"`
}