-
Notifications
You must be signed in to change notification settings - Fork 12
/
vmValues.go
33 lines (28 loc) · 1 KB
/
vmValues.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
package data
import (
"github.com/ElrondNetwork/elrond-go-core/data/vm"
)
// VmValuesResponseData follows the format of the data field in an API response for a VM values query
type VmValuesResponseData struct {
Data *vm.VMOutputApi `json:"data"`
}
// ResponseVmValue defines a wrapper over string containing returned data in hex format
type ResponseVmValue struct {
Data VmValuesResponseData `json:"data"`
Error string `json:"error"`
Code string `json:"code"`
}
// VmValueRequest defines the request struct for values available in a VM
type VmValueRequest struct {
Address string `json:"scAddress"`
FuncName string `json:"funcName"`
CallerAddr string `json:"caller"`
CallValue string `json:"value"`
Args []string `json:"args"`
}
// VmValueRequest defines the request struct for values available in a VM
type VmValueRequestWithOptionalParameters struct {
*VmValueRequest
SameScState bool `json:"sameScState"`
ShouldBeSynced bool `json:"shouldBeSynced"`
}