-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessages.go
80 lines (80 loc) · 1.93 KB
/
messages.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
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
72
73
74
75
76
77
78
79
80
///*
// * Copyright 2018 Idealnaya rabota LLC
// * Licensed under Multy.io license.
// * See LICENSE for details
// */
//
package api
//
//import (
// "encoding/json"
//
// "github.com/asuleymanov/rpc/types"
//)
//
//// OkErrResponse is a basic completion response with optional error
//type OkErrResponse struct {
// Ok bool `json:"ok"`
// Error string `json:"error,omitempty"`
//}
//
//type AccountCheckRequest struct {
// Name string `json:"name"`
//}
//
//type AccountCheckResponse struct {
// Exist bool `json:"exist"`
// Error string `json:"error"`
//}
//
//type GetBalancesRequest struct {
// Accounts []string `json:"accounts"`
//}
//
//type GetBalancesResponse struct {
// Balances []*Balance `json:"balances"`
// Error string `json:"error"`
//}
//
//type AccountCreateRequest struct {
// Account string `json:"account"`
// Owner string `json:"owner"`
// Active string `json:"active"`
// Posting string `json:"posting"`
// Memo string `json:"memo"`
//}
//
//type AccountCreateResponse = OkErrResponse
//
//type BalancesChangedMessage struct {
// Balances []*Balance `json:"balances"`
//}
//
//type NewBlockMessage struct {
// Height uint32 `json:"height,omitempty"`
// ID string `json:"id,omitempty"`
// Time int64 `json:"time,omitempty"`
// Transactions []*types.Transaction `json:"transactions"`
//}
//
//type TrackAddressesRequest struct {
// Adresses []string `json:"adresses,omitempty"`
//}
//
//type TrackAddressesResponse = OkErrResponse
//
//type GetTrackedAddressesRequest struct {
//}
//
//type GetTrackedAddressesResponse struct {
// Accounts []string `json:"accounts"`
// Error string `json:"error,omitempty"`
//}
//
//type SendTransactionRequest = types.Transaction
//
//type SendTransactionResponse struct {
// Ok bool `json:"ok"`
// Error string `json:"error,omitempty"`
// Response *json.RawMessage `json:"response,omitempty"`
//}