/
fee.go
282 lines (225 loc) · 6.78 KB
/
fee.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
//nolint:revive,golint,stylecheck
package swap
import (
"github.com/ethereum/go-ethereum/common"
ethTypes "github.com/ethereum/go-ethereum/core/types"
"github.com/synapsecns/sanguine/core"
"github.com/synapsecns/sanguine/services/explorer/types/swap"
"math/big"
)
// GetRaw gets the raw event logs from the redeem and remove event.
func (s SwapFlashLoanNewAdminFee) GetRaw() ethTypes.Log {
return s.Raw
}
// GetTxHash gets the unique identifier (txhash) for the withdraw.
func (s SwapFlashLoanNewAdminFee) GetTxHash() common.Hash {
return s.Raw.TxHash
}
// GetBlockNumber gets the block number for the event.
func (s SwapFlashLoanNewAdminFee) GetBlockNumber() uint64 {
return s.Raw.BlockNumber
}
// GetContractAddress gets the contract address the event occurred on.
func (s SwapFlashLoanNewAdminFee) GetContractAddress() common.Address {
return s.Raw.Address
}
// GetEventType gets the type of the redeem event.
func (s SwapFlashLoanNewAdminFee) GetEventType() swap.EventType {
return swap.NewAdminFeeEvent
}
// GetNewAdminFee gets the admin fee.
func (s SwapFlashLoanNewAdminFee) GetNewAdminFee() *big.Int {
return core.CopyBigInt(s.NewAdminFee)
}
// GetSoldID gets the solid id.
func (s SwapFlashLoanNewAdminFee) GetSoldID() *big.Int {
return nil
}
// GetAmount gets the amount(s).
func (s SwapFlashLoanNewAdminFee) GetAmount() map[uint8]string {
return nil
}
// GetAmountFee gets the fee amount(s).
func (s SwapFlashLoanNewAdminFee) GetAmountFee() map[uint8]string {
return map[uint8]string{}
}
// GetProtocolFee gets the protocol fee of the tx.
func (s SwapFlashLoanNewAdminFee) GetProtocolFee() *big.Int {
return nil
}
// GetBuyer gets the buyer.
func (s SwapFlashLoanNewAdminFee) GetBuyer() *common.Address {
return nil
}
// GetTokensSold gets the tokens sold.
func (s SwapFlashLoanNewAdminFee) GetTokensSold() *big.Int {
return nil
}
// GetInitialTime gets the initial time.
func (s SwapFlashLoanNewAdminFee) GetInitialTime() *big.Int {
return nil
}
// GetFutureTime gets the future time.
func (s SwapFlashLoanNewAdminFee) GetFutureTime() *big.Int {
return nil
}
// GetOldA gets the old A.
func (s SwapFlashLoanNewAdminFee) GetOldA() *big.Int {
return nil
}
// GetLPTokenAmount gets the LP token supply.
func (s SwapFlashLoanNewAdminFee) GetLPTokenAmount() *big.Int {
return nil
}
// GetNewA gets the new A.
func (s SwapFlashLoanNewAdminFee) GetNewA() *big.Int {
return nil
}
// GetCurrentA gets the current A.
func (s SwapFlashLoanNewAdminFee) GetCurrentA() *big.Int {
return nil
}
// GetTime gets the current time.
func (s SwapFlashLoanNewAdminFee) GetTime() *big.Int {
return nil
}
// GetBoughtID gets the bought id.
func (s SwapFlashLoanNewAdminFee) GetBoughtID() *big.Int {
return nil
}
// GetTokensBought gets the amount of tokens bought.
func (s SwapFlashLoanNewAdminFee) GetTokensBought() *big.Int {
return nil
}
// GetProvider gets the Provider of the swap.
func (s SwapFlashLoanNewAdminFee) GetProvider() *common.Address {
return nil
}
// GetInvariant gets the invariant of the swap.
func (s SwapFlashLoanNewAdminFee) GetInvariant() *big.Int {
return nil
}
// GetLPTokenSupply gets the LP token supply.
func (s SwapFlashLoanNewAdminFee) GetLPTokenSupply() *big.Int {
return nil
}
// GetNewSwapFee gets the new swap fee.
func (s SwapFlashLoanNewAdminFee) GetNewSwapFee() *big.Int {
return nil
}
// GetReceiver gets the receiver.
func (s SwapFlashLoanNewAdminFee) GetReceiver() *common.Address {
return nil
}
func (s SwapFlashLoanNewAdminFee) GetEventIndex() uint64 {
return uint64(s.Raw.Index)
}
var _ swap.EventLog = &SwapFlashLoanNewAdminFee{}
// GetRaw gets the raw event logs from the redeem and remove event.
func (s SwapFlashLoanNewSwapFee) GetRaw() ethTypes.Log {
return s.Raw
}
// GetTxHash gets the unique identifier (txhash) for the withdraw.
func (s SwapFlashLoanNewSwapFee) GetTxHash() common.Hash {
return s.Raw.TxHash
}
// GetBlockNumber gets the block number for the event.
func (s SwapFlashLoanNewSwapFee) GetBlockNumber() uint64 {
return s.Raw.BlockNumber
}
// GetContractAddress gets the contract address the event occurred on.
func (s SwapFlashLoanNewSwapFee) GetContractAddress() common.Address {
return s.Raw.Address
}
// GetEventType gets the type of the redeem event.
func (s SwapFlashLoanNewSwapFee) GetEventType() swap.EventType {
return swap.NewSwapFeeEvent
}
// GetNewSwapFee gets the admin fee.
func (s SwapFlashLoanNewSwapFee) GetNewSwapFee() *big.Int {
return core.CopyBigInt(s.NewSwapFee)
}
// GetSoldID gets the solid id.
func (s SwapFlashLoanNewSwapFee) GetSoldID() *big.Int {
return nil
}
// GetAmount gets the amount.
func (s SwapFlashLoanNewSwapFee) GetAmount() map[uint8]string {
return nil
}
// GetAmountFee gets the amount.
func (s SwapFlashLoanNewSwapFee) GetAmountFee() map[uint8]string {
return map[uint8]string{}
}
// GetProtocolFee gets the protocol fee of the tx.
func (s SwapFlashLoanNewSwapFee) GetProtocolFee() *big.Int {
return nil
}
// GetBuyer gets the buyer.
func (s SwapFlashLoanNewSwapFee) GetBuyer() *common.Address {
return nil
}
// GetNewAdminFee gets the new admin fee.
func (s SwapFlashLoanNewSwapFee) GetNewAdminFee() *big.Int {
return nil
}
// GetTokensSold gets the tokens sold.
func (s SwapFlashLoanNewSwapFee) GetTokensSold() *big.Int {
return nil
}
// GetInitialTime gets the initial time.
func (s SwapFlashLoanNewSwapFee) GetInitialTime() *big.Int {
return nil
}
// GetFutureTime gets the future time.
func (s SwapFlashLoanNewSwapFee) GetFutureTime() *big.Int {
return nil
}
// GetOldA gets the old A.
func (s SwapFlashLoanNewSwapFee) GetOldA() *big.Int {
return nil
}
// GetLPTokenAmount gets the LP token supply.
func (s SwapFlashLoanNewSwapFee) GetLPTokenAmount() *big.Int {
return nil
}
// GetNewA gets the new A.
func (s SwapFlashLoanNewSwapFee) GetNewA() *big.Int {
return nil
}
// GetCurrentA gets the current A.
func (s SwapFlashLoanNewSwapFee) GetCurrentA() *big.Int {
return nil
}
// GetTime gets the current time.
func (s SwapFlashLoanNewSwapFee) GetTime() *big.Int {
return nil
}
// GetBoughtID gets the bought id.
func (s SwapFlashLoanNewSwapFee) GetBoughtID() *big.Int {
return nil
}
// GetTokensBought gets the amount of tokens bought.
func (s SwapFlashLoanNewSwapFee) GetTokensBought() *big.Int {
return nil
}
// GetProvider gets the Provider of the swap.
func (s SwapFlashLoanNewSwapFee) GetProvider() *common.Address {
return nil
}
// GetInvariant gets the invariant of the swap.
func (s SwapFlashLoanNewSwapFee) GetInvariant() *big.Int {
return nil
}
// GetLPTokenSupply gets the LP token supply.
func (s SwapFlashLoanNewSwapFee) GetLPTokenSupply() *big.Int {
return nil
}
// GetReceiver gets the receiver.
func (s SwapFlashLoanNewSwapFee) GetReceiver() *common.Address {
return nil
}
func (s SwapFlashLoanNewSwapFee) GetEventIndex() uint64 {
return uint64(s.Raw.Index)
}
var _ swap.EventLog = &SwapFlashLoanNewSwapFee{}