-
Notifications
You must be signed in to change notification settings - Fork 22
/
stubs.go
120 lines (97 loc) · 3.44 KB
/
stubs.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Copyright (c) 2022 Gobalsky Labs Limited
//
// Use of this software is governed by the Business Source License included
// in the LICENSE.DATANODE file and at https://www.mariadb.com/bsl11.
//
// Change Date: 18 months from the later of the date of the first publicly
// available Distribution of this version of the repository, and 25 June 2022.
//
// On the date above, in accordance with the Business Source License, use
// of this software will be governed by version 3 or later of the GNU General
// Public License.
package service
import (
"code.vegaprotocol.io/vega/datanode/sqlstore"
)
type (
Asset struct{ *sqlstore.Assets }
Block struct{ *sqlstore.Blocks }
Party struct{ *sqlstore.Parties }
NetworkLimits struct{ *sqlstore.NetworkLimits }
Epoch struct{ *sqlstore.Epochs }
Deposit struct{ *sqlstore.Deposits }
Withdrawal struct{ *sqlstore.Withdrawals }
RiskFactor struct{ *sqlstore.RiskFactors }
NetworkParameter struct{ *sqlstore.NetworkParameters }
Checkpoint struct{ *sqlstore.Checkpoints }
OracleSpec struct{ *sqlstore.OracleSpec }
OracleData struct{ *sqlstore.OracleData }
LiquidityProvision struct{ *sqlstore.LiquidityProvision }
Transfer struct{ *sqlstore.Transfers }
StakeLinking struct{ *sqlstore.StakeLinking }
Notary struct{ *sqlstore.Notary }
MultiSig struct {
*sqlstore.ERC20MultiSigSignerEvent
}
)
type (
KeyRotations struct{ *sqlstore.KeyRotations }
Node struct{ *sqlstore.Node }
)
func NewAsset(store *sqlstore.Assets) *Asset {
return &Asset{Assets: store}
}
func NewBlock(store *sqlstore.Blocks) *Block {
return &Block{Blocks: store}
}
func NewParty(store *sqlstore.Parties) *Party {
return &Party{Parties: store}
}
func NewNetworkLimits(store *sqlstore.NetworkLimits) *NetworkLimits {
return &NetworkLimits{NetworkLimits: store}
}
func NewEpoch(store *sqlstore.Epochs) *Epoch {
return &Epoch{Epochs: store}
}
func NewDeposit(store *sqlstore.Deposits) *Deposit {
return &Deposit{Deposits: store}
}
func NewWithdrawal(store *sqlstore.Withdrawals) *Withdrawal {
return &Withdrawal{Withdrawals: store}
}
func NewRiskFactor(store *sqlstore.RiskFactors) *RiskFactor {
return &RiskFactor{RiskFactors: store}
}
func NewNetworkParameter(store *sqlstore.NetworkParameters) *NetworkParameter {
return &NetworkParameter{NetworkParameters: store}
}
func NewCheckpoint(store *sqlstore.Checkpoints) *Checkpoint {
return &Checkpoint{Checkpoints: store}
}
func NewOracleSpec(store *sqlstore.OracleSpec) *OracleSpec {
return &OracleSpec{OracleSpec: store}
}
func NewOracleData(store *sqlstore.OracleData) *OracleData {
return &OracleData{OracleData: store}
}
func NewLiquidityProvision(store *sqlstore.LiquidityProvision) *LiquidityProvision {
return &LiquidityProvision{LiquidityProvision: store}
}
func NewTransfer(store *sqlstore.Transfers) *Transfer {
return &Transfer{Transfers: store}
}
func NewStakeLinking(store *sqlstore.StakeLinking) *StakeLinking {
return &StakeLinking{StakeLinking: store}
}
func NewNotary(store *sqlstore.Notary) *Notary {
return &Notary{Notary: store}
}
func NewMultiSig(store *sqlstore.ERC20MultiSigSignerEvent) *MultiSig {
return &MultiSig{ERC20MultiSigSignerEvent: store}
}
func NewKeyRotations(store *sqlstore.KeyRotations) *KeyRotations {
return &KeyRotations{KeyRotations: store}
}
func NewNode(store *sqlstore.Node) *Node {
return &Node{Node: store}
}