-
Notifications
You must be signed in to change notification settings - Fork 4
/
operations.go
75 lines (62 loc) · 2.68 KB
/
operations.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
package api
import "context"
// GetEndorsements -
func (tzkt *API) GetEndorsements(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/endorsements", filters, &operations)
return
}
// GetBallots -
func (tzkt *API) GetBallots(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/ballots", filters, &operations)
return
}
// GetProposals -
func (tzkt *API) GetProposals(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/proposals", filters, &operations)
return
}
// GetActivations -
func (tzkt *API) GetActivations(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/activations", filters, &operations)
return
}
// GetDoubleBakings -
func (tzkt *API) GetDoubleBakings(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/double_baking", filters, &operations)
return
}
// GetDoubleEndorsings -
func (tzkt *API) GetDoubleEndorsings(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/double_endorsing", filters, &operations)
return
}
// GetNonceRevelations -
func (tzkt *API) GetNonceRevelations(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/nonce_revelations", filters, &operations)
return
}
// GetDelegations -
func (tzkt *API) GetDelegations(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/delegations", filters, &operations)
return
}
// GetOriginations -
func (tzkt *API) GetOriginations(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/originations", filters, &operations)
return
}
// GetTransactions -
func (tzkt *API) GetTransactions(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/transactions", filters, &operations)
return
}
// GetReveals -
func (tzkt *API) GetReveals(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/reveals", filters, &operations)
return
}
// GetRegisterConstants -
func (tzkt *API) GetRegisterConstants(ctx context.Context, filters map[string]string) (operations []Operation, err error) {
err = tzkt.json(ctx, "/v1/operations/register_constants", filters, &operations)
return
}