-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructs.go
More file actions
71 lines (61 loc) · 1.95 KB
/
structs.go
File metadata and controls
71 lines (61 loc) · 1.95 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package main
type getUIDResult struct {
UID string `json:"uid,omitempty"`
Token string `json:"token,omitempty"`
Expire string `json:"expire,omitempty"`
EcosystemID string `json:"ecosystem_id,omitempty"`
KeyID string `json:"key_id,omitempty"`
Address string `json:"address,omitempty"`
}
type signTestResult struct {
Signature string `json:"signature"`
Public string `json:"pubkey"`
}
type loginResult struct {
Token string `json:"token,omitempty"`
Refresh string `json:"refresh,omitempty"`
EcosystemID string `json:"ecosystem_id,omitempty"`
KeyID string `json:"key_id,omitempty"`
Address string `json:"address,omitempty"`
NotifyKey string `json:"notify_key,omitempty"`
IsNode bool `json:"isnode,omitempty"`
IsOwner bool `json:"isowner,omitempty"`
IsVDE bool `json:"vde,omitempty"`
}
type prepareResult struct {
RequestID string `json:"request_id"`
ForSign string `json:"forsign"`
Signs []TxSignJSON `json:"signs"`
Values map[string]string `json:"values"`
Time string `json:"time"`
}
type TxSignJSON struct {
ForSign string `json:"forsign"`
Field string `json:"field"`
Title string `json:"title"`
Params []SignRes `json:"params"`
}
type SignRes struct {
Param string `json:"name"`
Text string `json:"text"`
}
type contractResult struct {
Hash string `json:"hash"`
Message *txstatusError `json:"errmsg,omitempty"`
Result string `json:"result,omitempty"`
}
type txstatusResult struct {
BlockID string `json:"blockid"`
Message *txstatusError `json:"errmsg,omitempty"`
Result string `json:"result"`
}
type txstatusError struct {
Type string `json:"type,omitempty"`
Error string `json:"error,omitempty"`
}
type nodeValue struct {
TCPAddr string `json:"tcp_address"`
APIAddr string `json:"api_address"`
KeyID string `json:"key_id"`
PubKey string `json:"public_key"`
}