@sonarwatch/portfolio-plugins 0.14.80 → 0.14.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1912 -1904
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/divvy/constants.d.ts +9 -0
- package/src/plugins/divvy/constants.js +21 -0
- package/src/plugins/divvy/constants.js.map +1 -0
- package/src/plugins/divvy/houseJob.d.ts +3 -0
- package/src/plugins/divvy/houseJob.js +64 -0
- package/src/plugins/divvy/houseJob.js.map +1 -0
- package/src/plugins/divvy/housePoolFetcher.d.ts +3 -0
- package/src/plugins/divvy/housePoolFetcher.js +59 -0
- package/src/plugins/divvy/housePoolFetcher.js.map +1 -0
- package/src/plugins/divvy/idl.d.ts +185 -0
- package/src/plugins/divvy/idl.js +1071 -0
- package/src/plugins/divvy/idl.js.map +1 -0
- package/src/plugins/divvy/index.d.ts +6 -0
- package/src/plugins/divvy/index.js +14 -0
- package/src/plugins/divvy/index.js.map +1 -0
- package/src/plugins/divvy/stakingFetcher.d.ts +3 -0
- package/src/plugins/divvy/stakingFetcher.js +50 -0
- package/src/plugins/divvy/stakingFetcher.js.map +1 -0
- package/src/plugins/divvy/types.d.ts +27 -0
- package/src/plugins/divvy/types.js +3 -0
- package/src/plugins/divvy/types.js.map +1 -0
- package/src/plugins/drift-market-maker-vault/depositsFetcher.js +1 -1
- package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
- package/src/plugins/fragmetric/pricingJob.js +2 -2
- package/src/plugins/fragmetric/pricingJob.js.map +1 -1
- package/src/plugins/pyth/pricingJob.js +23 -1
- package/src/plugins/pyth/pricingJob.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/pyth/helpers.js +2 -0
- package/src/utils/solana/pyth/helpers.js.map +1 -1
@@ -0,0 +1,1071 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DivvyIdl = void 0;
|
4
|
+
exports.DivvyIdl = {
|
5
|
+
version: '0.27.0',
|
6
|
+
name: 'divvy_house',
|
7
|
+
instructions: [
|
8
|
+
{
|
9
|
+
name: 'initialize',
|
10
|
+
accounts: [
|
11
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
12
|
+
{ name: 'houseMint', isMut: false, isSigner: false },
|
13
|
+
{ name: 'house', isMut: true, isSigner: false },
|
14
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
15
|
+
],
|
16
|
+
args: [
|
17
|
+
{ name: 'foreman', type: 'publicKey' },
|
18
|
+
{ name: 'beneficiary', type: 'publicKey' },
|
19
|
+
{ name: 'beneficiaryFeeBps', type: 'u16' },
|
20
|
+
{ name: 'dvypassFeeBps', type: 'u16' },
|
21
|
+
],
|
22
|
+
},
|
23
|
+
{
|
24
|
+
name: 'deposit',
|
25
|
+
accounts: [
|
26
|
+
{ name: 'user', isMut: false, isSigner: true },
|
27
|
+
{
|
28
|
+
name: 'userPoolToken',
|
29
|
+
isMut: true,
|
30
|
+
isSigner: false,
|
31
|
+
isOptional: true,
|
32
|
+
},
|
33
|
+
{ name: 'houseMint', isMut: true, isSigner: false },
|
34
|
+
{ name: 'house', isMut: true, isSigner: false },
|
35
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
36
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
37
|
+
],
|
38
|
+
args: [{ name: 'amount', type: 'u64' }],
|
39
|
+
},
|
40
|
+
{
|
41
|
+
name: 'withdraw',
|
42
|
+
accounts: [
|
43
|
+
{ name: 'user', isMut: false, isSigner: true },
|
44
|
+
{ name: 'userPoolToken', isMut: true, isSigner: false },
|
45
|
+
{ name: 'houseMint', isMut: true, isSigner: false },
|
46
|
+
{ name: 'house', isMut: true, isSigner: false },
|
47
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
48
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
49
|
+
],
|
50
|
+
args: [{ name: 'amount', type: 'u64' }],
|
51
|
+
},
|
52
|
+
{
|
53
|
+
name: 'createDepositPosition',
|
54
|
+
accounts: [
|
55
|
+
{ name: 'user', isMut: false, isSigner: true },
|
56
|
+
{ name: 'position', isMut: true, isSigner: false },
|
57
|
+
{ name: 'house', isMut: false, isSigner: false },
|
58
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
59
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
60
|
+
],
|
61
|
+
args: [
|
62
|
+
{ name: 'amount', type: 'u64' },
|
63
|
+
{ name: 'minAmountOut', type: 'u64' },
|
64
|
+
],
|
65
|
+
},
|
66
|
+
{
|
67
|
+
name: 'closeDepositPosition',
|
68
|
+
accounts: [
|
69
|
+
{ name: 'user', isMut: true, isSigner: false },
|
70
|
+
{ name: 'userPoolToken', isMut: true, isSigner: false },
|
71
|
+
{ name: 'houseMint', isMut: true, isSigner: false },
|
72
|
+
{ name: 'position', isMut: true, isSigner: false },
|
73
|
+
{ name: 'house', isMut: true, isSigner: false },
|
74
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
75
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
76
|
+
],
|
77
|
+
args: [],
|
78
|
+
},
|
79
|
+
{
|
80
|
+
name: 'cancelDepositPosition',
|
81
|
+
accounts: [
|
82
|
+
{ name: 'user', isMut: true, isSigner: true },
|
83
|
+
{ name: 'position', isMut: true, isSigner: false },
|
84
|
+
{ name: 'house', isMut: false, isSigner: false },
|
85
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
86
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
87
|
+
],
|
88
|
+
args: [],
|
89
|
+
},
|
90
|
+
{
|
91
|
+
name: 'createWithdrawPosition',
|
92
|
+
accounts: [
|
93
|
+
{ name: 'user', isMut: false, isSigner: true },
|
94
|
+
{ name: 'userPoolToken', isMut: true, isSigner: false },
|
95
|
+
{ name: 'housePoolToken', isMut: true, isSigner: false },
|
96
|
+
{ name: 'position', isMut: true, isSigner: false },
|
97
|
+
{ name: 'house', isMut: false, isSigner: false },
|
98
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
99
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
100
|
+
],
|
101
|
+
args: [
|
102
|
+
{ name: 'amount', type: 'u64' },
|
103
|
+
{ name: 'minAmountOut', type: 'u64' },
|
104
|
+
],
|
105
|
+
},
|
106
|
+
{
|
107
|
+
name: 'closeWithdrawPosition',
|
108
|
+
accounts: [
|
109
|
+
{ name: 'user', isMut: true, isSigner: false },
|
110
|
+
{ name: 'housePoolToken', isMut: true, isSigner: false },
|
111
|
+
{ name: 'houseMint', isMut: true, isSigner: false },
|
112
|
+
{ name: 'position', isMut: true, isSigner: false },
|
113
|
+
{ name: 'house', isMut: true, isSigner: false },
|
114
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
115
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
116
|
+
],
|
117
|
+
args: [],
|
118
|
+
},
|
119
|
+
{
|
120
|
+
name: 'cancelWithdrawPosition',
|
121
|
+
accounts: [
|
122
|
+
{ name: 'user', isMut: true, isSigner: true },
|
123
|
+
{ name: 'userPoolToken', isMut: true, isSigner: false },
|
124
|
+
{ name: 'housePoolToken', isMut: true, isSigner: false },
|
125
|
+
{ name: 'position', isMut: true, isSigner: false },
|
126
|
+
{ name: 'house', isMut: false, isSigner: false },
|
127
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
128
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
129
|
+
],
|
130
|
+
args: [],
|
131
|
+
},
|
132
|
+
{
|
133
|
+
name: 'closeGame',
|
134
|
+
accounts: [
|
135
|
+
{ name: 'authority', isMut: false, isSigner: true },
|
136
|
+
{ name: 'game', isMut: true, isSigner: false },
|
137
|
+
{ name: 'house', isMut: true, isSigner: false },
|
138
|
+
{ name: 'rentCollector', isMut: true, isSigner: false },
|
139
|
+
],
|
140
|
+
args: [{ name: 'profitAmount', type: 'u64' }],
|
141
|
+
},
|
142
|
+
{
|
143
|
+
name: 'updateBetV2',
|
144
|
+
accounts: [
|
145
|
+
{ name: 'authority', isMut: false, isSigner: true },
|
146
|
+
{ name: 'bet', isMut: true, isSigner: false },
|
147
|
+
{ name: 'house', isMut: true, isSigner: false },
|
148
|
+
],
|
149
|
+
args: [
|
150
|
+
{ name: 'status', type: { defined: 'BetStatus' } },
|
151
|
+
{ name: 'isHalf', type: { option: 'bool' } },
|
152
|
+
],
|
153
|
+
},
|
154
|
+
{
|
155
|
+
name: 'closeBetV2',
|
156
|
+
accounts: [
|
157
|
+
{ name: 'authority', isMut: false, isSigner: true },
|
158
|
+
{ name: 'bet', isMut: true, isSigner: false },
|
159
|
+
{ name: 'house', isMut: false, isSigner: false },
|
160
|
+
{ name: 'rentCollector', isMut: true, isSigner: false },
|
161
|
+
],
|
162
|
+
args: [],
|
163
|
+
},
|
164
|
+
{
|
165
|
+
name: 'createSlipV3',
|
166
|
+
accounts: [
|
167
|
+
{ name: 'bettor', isMut: true, isSigner: true },
|
168
|
+
{ name: 'slip', isMut: true, isSigner: false },
|
169
|
+
{ name: 'bet', isMut: true, isSigner: false },
|
170
|
+
{ name: 'game', isMut: true, isSigner: false },
|
171
|
+
{ name: 'house', isMut: true, isSigner: false },
|
172
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
173
|
+
{
|
174
|
+
name: 'foreman',
|
175
|
+
isMut: false,
|
176
|
+
isSigner: true,
|
177
|
+
docs: [
|
178
|
+
'offchain data provider',
|
179
|
+
'foreman signs off transaction to ensure given max_amount, min_amount, payout_amount are provided by him',
|
180
|
+
],
|
181
|
+
},
|
182
|
+
{ name: 'payer', isMut: true, isSigner: true },
|
183
|
+
{ name: 'systemProgram', isMut: false, isSigner: false },
|
184
|
+
],
|
185
|
+
args: [
|
186
|
+
{ name: 'gameId', type: 'u64' },
|
187
|
+
{ name: 'typeId', type: 'u16' },
|
188
|
+
{ name: 'points', type: 'i64' },
|
189
|
+
{ name: 'createdTs', type: 'u32' },
|
190
|
+
{ name: 'odds', type: 'u32' },
|
191
|
+
{ name: 'betAmount', type: 'u64' },
|
192
|
+
{ name: 'maxLockedLiquidity', type: 'u64' },
|
193
|
+
{ name: 'unitLockedLiquidity', type: 'u64' },
|
194
|
+
{ name: 'unitOffset', type: 'u16' },
|
195
|
+
{ name: 'oddsOffset', type: { option: 'i32' } },
|
196
|
+
{ name: 'remainingOdds', type: { vec: 'u32' } },
|
197
|
+
],
|
198
|
+
},
|
199
|
+
{
|
200
|
+
name: 'closeSlip',
|
201
|
+
accounts: [
|
202
|
+
{ name: 'bettor', isMut: true, isSigner: false },
|
203
|
+
{ name: 'slip', isMut: true, isSigner: false },
|
204
|
+
{ name: 'bet', isMut: true, isSigner: false },
|
205
|
+
{ name: 'house', isMut: true, isSigner: false },
|
206
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
207
|
+
],
|
208
|
+
args: [],
|
209
|
+
},
|
210
|
+
{
|
211
|
+
name: 'createParlay',
|
212
|
+
accounts: [
|
213
|
+
{ name: 'bettor', isMut: true, isSigner: true },
|
214
|
+
{ name: 'parlay', isMut: true, isSigner: false },
|
215
|
+
{ name: 'house', isMut: true, isSigner: false },
|
216
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
217
|
+
{
|
218
|
+
name: 'foreman',
|
219
|
+
isMut: false,
|
220
|
+
isSigner: true,
|
221
|
+
docs: [
|
222
|
+
'offchain data provider',
|
223
|
+
'foreman signs off transaction to ensure given max_amount, min_amount, payout_amount are provided by him',
|
224
|
+
],
|
225
|
+
},
|
226
|
+
{ name: 'systemProgram', isMut: false, isSigner: false },
|
227
|
+
],
|
228
|
+
args: [
|
229
|
+
{ name: 'slipId', type: 'u64' },
|
230
|
+
{ name: 'odds', type: 'u32' },
|
231
|
+
{ name: 'betAmount', type: 'u64' },
|
232
|
+
],
|
233
|
+
},
|
234
|
+
{
|
235
|
+
name: 'closeParlay',
|
236
|
+
accounts: [
|
237
|
+
{ name: 'bettor', isMut: true, isSigner: false },
|
238
|
+
{ name: 'parlay', isMut: true, isSigner: false },
|
239
|
+
{ name: 'house', isMut: true, isSigner: false },
|
240
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
241
|
+
{
|
242
|
+
name: 'foreman',
|
243
|
+
isMut: false,
|
244
|
+
isSigner: true,
|
245
|
+
docs: [
|
246
|
+
'offchain data provider',
|
247
|
+
'foreman signs off transaction to ensure given max_amount, min_amount, payout_amount are provided by him',
|
248
|
+
],
|
249
|
+
},
|
250
|
+
],
|
251
|
+
args: [{ name: 'payoutAmount', type: 'u64' }],
|
252
|
+
},
|
253
|
+
{
|
254
|
+
name: 'createDvypassV2',
|
255
|
+
accounts: [
|
256
|
+
{ name: 'authority', isMut: true, isSigner: true },
|
257
|
+
{ name: 'dvypass', isMut: true, isSigner: false },
|
258
|
+
{ name: 'emission', isMut: true, isSigner: false },
|
259
|
+
{ name: 'mint', isMut: false, isSigner: false },
|
260
|
+
{ name: 'metadata', isMut: true, isSigner: false },
|
261
|
+
{ name: 'edition', isMut: false, isSigner: false },
|
262
|
+
{ name: 'token', isMut: true, isSigner: false },
|
263
|
+
{ name: 'tokenRecord', isMut: true, isSigner: false },
|
264
|
+
{ name: 'authRules', isMut: false, isSigner: false },
|
265
|
+
{ name: 'authRulesProgram', isMut: false, isSigner: false },
|
266
|
+
{ name: 'sysvarInstructions', isMut: false, isSigner: false },
|
267
|
+
{ name: 'systemProgram', isMut: false, isSigner: false },
|
268
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
269
|
+
{ name: 'metadataProgram', isMut: false, isSigner: false },
|
270
|
+
],
|
271
|
+
args: [],
|
272
|
+
},
|
273
|
+
{
|
274
|
+
name: 'closeDvypassV2',
|
275
|
+
accounts: [
|
276
|
+
{ name: 'authority', isMut: true, isSigner: true },
|
277
|
+
{ name: 'dvypass', isMut: true, isSigner: false },
|
278
|
+
{ name: 'emission', isMut: true, isSigner: false },
|
279
|
+
{ name: 'mint', isMut: false, isSigner: false },
|
280
|
+
{ name: 'metadata', isMut: true, isSigner: false },
|
281
|
+
{ name: 'edition', isMut: false, isSigner: false },
|
282
|
+
{ name: 'token', isMut: true, isSigner: false },
|
283
|
+
{ name: 'tokenRecord', isMut: true, isSigner: false },
|
284
|
+
{ name: 'authRules', isMut: false, isSigner: false },
|
285
|
+
{ name: 'authRulesProgram', isMut: false, isSigner: false },
|
286
|
+
{ name: 'sysvarInstructions', isMut: false, isSigner: false },
|
287
|
+
{ name: 'systemProgram', isMut: false, isSigner: false },
|
288
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
289
|
+
{ name: 'metadataProgram', isMut: false, isSigner: false },
|
290
|
+
],
|
291
|
+
args: [],
|
292
|
+
},
|
293
|
+
{
|
294
|
+
name: 'stakeDvypass',
|
295
|
+
accounts: [
|
296
|
+
{ name: 'authority', isMut: true, isSigner: true },
|
297
|
+
{ name: 'metadata', isMut: false, isSigner: false },
|
298
|
+
{ name: 'house', isMut: true, isSigner: false },
|
299
|
+
{ name: 'dvypass', isMut: true, isSigner: false },
|
300
|
+
{ name: 'reward', isMut: true, isSigner: false },
|
301
|
+
{ name: 'stake', isMut: true, isSigner: false },
|
302
|
+
{ name: 'systemProgram', isMut: false, isSigner: false },
|
303
|
+
],
|
304
|
+
args: [],
|
305
|
+
},
|
306
|
+
{
|
307
|
+
name: 'unstakeDvypass',
|
308
|
+
accounts: [
|
309
|
+
{ name: 'authority', isMut: true, isSigner: true },
|
310
|
+
{ name: 'house', isMut: true, isSigner: false },
|
311
|
+
{ name: 'dvypass', isMut: true, isSigner: false },
|
312
|
+
{ name: 'stake', isMut: true, isSigner: false },
|
313
|
+
{ name: 'reward', isMut: true, isSigner: false },
|
314
|
+
],
|
315
|
+
args: [],
|
316
|
+
},
|
317
|
+
{
|
318
|
+
name: 'claimDvypass',
|
319
|
+
accounts: [
|
320
|
+
{ name: 'authority', isMut: true, isSigner: true },
|
321
|
+
{ name: 'house', isMut: true, isSigner: false },
|
322
|
+
{ name: 'houseAuthority', isMut: true, isSigner: false },
|
323
|
+
{ name: 'reward', isMut: true, isSigner: false },
|
324
|
+
{
|
325
|
+
name: 'authorityToken',
|
326
|
+
isMut: true,
|
327
|
+
isSigner: false,
|
328
|
+
isOptional: true,
|
329
|
+
},
|
330
|
+
{ name: 'vaultToken', isMut: true, isSigner: false, isOptional: true },
|
331
|
+
{
|
332
|
+
name: 'tokenProgram',
|
333
|
+
isMut: false,
|
334
|
+
isSigner: false,
|
335
|
+
isOptional: true,
|
336
|
+
},
|
337
|
+
{
|
338
|
+
name: 'systemProgram',
|
339
|
+
isMut: false,
|
340
|
+
isSigner: false,
|
341
|
+
isOptional: true,
|
342
|
+
},
|
343
|
+
],
|
344
|
+
args: [],
|
345
|
+
},
|
346
|
+
{
|
347
|
+
name: 'closeDvypass',
|
348
|
+
accounts: [
|
349
|
+
{ name: 'authority', isMut: true, isSigner: true },
|
350
|
+
{ name: 'dvypass', isMut: true, isSigner: false },
|
351
|
+
{ name: 'mint', isMut: false, isSigner: false },
|
352
|
+
{ name: 'metadata', isMut: true, isSigner: false },
|
353
|
+
{ name: 'edition', isMut: false, isSigner: false },
|
354
|
+
{ name: 'token', isMut: true, isSigner: false },
|
355
|
+
{ name: 'tokenRecord', isMut: true, isSigner: false },
|
356
|
+
{ name: 'authRules', isMut: false, isSigner: false },
|
357
|
+
{ name: 'authRulesProgram', isMut: false, isSigner: false },
|
358
|
+
{ name: 'sysvarInstructions', isMut: false, isSigner: false },
|
359
|
+
{ name: 'systemProgram', isMut: false, isSigner: false },
|
360
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
361
|
+
{ name: 'metadataProgram', isMut: false, isSigner: false },
|
362
|
+
],
|
363
|
+
args: [],
|
364
|
+
},
|
365
|
+
{
|
366
|
+
name: 'claimDvypassEmission',
|
367
|
+
accounts: [
|
368
|
+
{ name: 'authority', isMut: false, isSigner: true },
|
369
|
+
{ name: 'dvypass', isMut: true, isSigner: false },
|
370
|
+
{ name: 'emission', isMut: true, isSigner: false },
|
371
|
+
{ name: 'house', isMut: false, isSigner: false },
|
372
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
373
|
+
{ name: 'sourceToken', isMut: true, isSigner: false },
|
374
|
+
{ name: 'destToken', isMut: true, isSigner: false },
|
375
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
376
|
+
],
|
377
|
+
args: [],
|
378
|
+
},
|
379
|
+
{
|
380
|
+
name: 'createDvypassEmission',
|
381
|
+
accounts: [
|
382
|
+
{ name: 'foreman', isMut: false, isSigner: true },
|
383
|
+
{ name: 'house', isMut: false, isSigner: false },
|
384
|
+
{ name: 'payer', isMut: true, isSigner: true },
|
385
|
+
{ name: 'emission', isMut: true, isSigner: false },
|
386
|
+
{ name: 'metadata', isMut: false, isSigner: false },
|
387
|
+
{ name: 'systemProgram', isMut: false, isSigner: false },
|
388
|
+
],
|
389
|
+
args: [
|
390
|
+
{ name: 'emissionsReleased', type: 'u64' },
|
391
|
+
{ name: 'emissionsRate', type: 'u64' },
|
392
|
+
],
|
393
|
+
},
|
394
|
+
{
|
395
|
+
name: 'createMiner',
|
396
|
+
accounts: [
|
397
|
+
{ name: 'authority', isMut: true, isSigner: true },
|
398
|
+
{ name: 'rewarder', isMut: false, isSigner: false },
|
399
|
+
{ name: 'miner', isMut: true, isSigner: false },
|
400
|
+
{ name: 'systemProgram', isMut: false, isSigner: false },
|
401
|
+
],
|
402
|
+
args: [],
|
403
|
+
},
|
404
|
+
{
|
405
|
+
name: 'depositMiner',
|
406
|
+
accounts: [
|
407
|
+
{ name: 'authority', isMut: false, isSigner: true },
|
408
|
+
{ name: 'miner', isMut: true, isSigner: false },
|
409
|
+
{ name: 'rewarderAuthority', isMut: false, isSigner: false },
|
410
|
+
{ name: 'rewarder', isMut: true, isSigner: false },
|
411
|
+
{ name: 'house', isMut: false, isSigner: false },
|
412
|
+
{ name: 'minerToken', isMut: true, isSigner: false },
|
413
|
+
{ name: 'rewarderToken', isMut: true, isSigner: false },
|
414
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
415
|
+
],
|
416
|
+
args: [{ name: 'amount', type: 'u64' }],
|
417
|
+
},
|
418
|
+
{
|
419
|
+
name: 'withdrawMiner',
|
420
|
+
accounts: [
|
421
|
+
{ name: 'authority', isMut: false, isSigner: true },
|
422
|
+
{ name: 'miner', isMut: true, isSigner: false },
|
423
|
+
{ name: 'rewarderAuthority', isMut: false, isSigner: false },
|
424
|
+
{ name: 'rewarder', isMut: true, isSigner: false },
|
425
|
+
{ name: 'house', isMut: false, isSigner: false },
|
426
|
+
{ name: 'minerToken', isMut: true, isSigner: false },
|
427
|
+
{ name: 'rewarderToken', isMut: true, isSigner: false },
|
428
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
429
|
+
],
|
430
|
+
args: [],
|
431
|
+
},
|
432
|
+
{
|
433
|
+
name: 'createRevshareMiner',
|
434
|
+
accounts: [
|
435
|
+
{ name: 'payer', isMut: true, isSigner: true },
|
436
|
+
{ name: 'revshare', isMut: true, isSigner: false },
|
437
|
+
{ name: 'miner', isMut: true, isSigner: false },
|
438
|
+
{ name: 'revshareMiner', isMut: true, isSigner: false },
|
439
|
+
{ name: 'systemProgram', isMut: false, isSigner: false },
|
440
|
+
],
|
441
|
+
args: [],
|
442
|
+
},
|
443
|
+
{
|
444
|
+
name: 'updateRevshareMiner',
|
445
|
+
accounts: [
|
446
|
+
{ name: 'revshare', isMut: true, isSigner: false },
|
447
|
+
{ name: 'miner', isMut: false, isSigner: false },
|
448
|
+
{ name: 'revshareMiner', isMut: true, isSigner: false },
|
449
|
+
],
|
450
|
+
args: [],
|
451
|
+
},
|
452
|
+
{
|
453
|
+
name: 'closeRevshareMiner',
|
454
|
+
accounts: [
|
455
|
+
{ name: 'authority', isMut: true, isSigner: true },
|
456
|
+
{ name: 'revshare', isMut: true, isSigner: false },
|
457
|
+
{ name: 'miner', isMut: true, isSigner: false },
|
458
|
+
{ name: 'revshareMiner', isMut: true, isSigner: false },
|
459
|
+
{ name: 'systemProgram', isMut: false, isSigner: false },
|
460
|
+
],
|
461
|
+
args: [],
|
462
|
+
},
|
463
|
+
{
|
464
|
+
name: 'claimRevshareMiner',
|
465
|
+
accounts: [
|
466
|
+
{ name: 'authority', isMut: true, isSigner: true },
|
467
|
+
{ name: 'house', isMut: true, isSigner: false },
|
468
|
+
{ name: 'rewarder', isMut: true, isSigner: false },
|
469
|
+
{ name: 'revshare', isMut: true, isSigner: false },
|
470
|
+
{ name: 'miner', isMut: true, isSigner: false },
|
471
|
+
{ name: 'revshareMiner', isMut: true, isSigner: false },
|
472
|
+
{ name: 'tokenProgram', isMut: false, isSigner: false },
|
473
|
+
],
|
474
|
+
args: [],
|
475
|
+
},
|
476
|
+
{
|
477
|
+
name: 'changeAdmin',
|
478
|
+
accounts: [
|
479
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
480
|
+
{ name: 'house', isMut: true, isSigner: false },
|
481
|
+
],
|
482
|
+
args: [{ name: 'newAdmin', type: 'publicKey' }],
|
483
|
+
},
|
484
|
+
{
|
485
|
+
name: 'changeForeman',
|
486
|
+
accounts: [
|
487
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
488
|
+
{ name: 'house', isMut: true, isSigner: false },
|
489
|
+
],
|
490
|
+
args: [{ name: 'newForeman', type: 'publicKey' }],
|
491
|
+
},
|
492
|
+
{
|
493
|
+
name: 'changeBeneficiary',
|
494
|
+
accounts: [
|
495
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
496
|
+
{ name: 'house', isMut: true, isSigner: false },
|
497
|
+
],
|
498
|
+
args: [{ name: 'newBeneficiary', type: 'publicKey' }],
|
499
|
+
},
|
500
|
+
{
|
501
|
+
name: 'changeBeneficiaryFee',
|
502
|
+
accounts: [
|
503
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
504
|
+
{ name: 'house', isMut: true, isSigner: false },
|
505
|
+
],
|
506
|
+
args: [{ name: 'newBeneficiaryFeeBps', type: 'u16' }],
|
507
|
+
},
|
508
|
+
{
|
509
|
+
name: 'changeDvypassFee',
|
510
|
+
accounts: [
|
511
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
512
|
+
{ name: 'house', isMut: true, isSigner: false },
|
513
|
+
],
|
514
|
+
args: [{ name: 'newDvypassFeeBps', type: 'u16' }],
|
515
|
+
},
|
516
|
+
{
|
517
|
+
name: 'changeDvypass',
|
518
|
+
accounts: [
|
519
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
520
|
+
{ name: 'house', isMut: true, isSigner: false },
|
521
|
+
],
|
522
|
+
args: [{ name: 'newDvypass', type: 'publicKey' }],
|
523
|
+
},
|
524
|
+
{
|
525
|
+
name: 'changeMaxUtilization',
|
526
|
+
accounts: [
|
527
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
528
|
+
{ name: 'house', isMut: true, isSigner: false },
|
529
|
+
],
|
530
|
+
args: [{ name: 'newMaxUtilizationBps', type: 'u16' }],
|
531
|
+
},
|
532
|
+
{
|
533
|
+
name: 'pause',
|
534
|
+
accounts: [
|
535
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
536
|
+
{ name: 'house', isMut: true, isSigner: false },
|
537
|
+
],
|
538
|
+
args: [],
|
539
|
+
},
|
540
|
+
{
|
541
|
+
name: 'unpause',
|
542
|
+
accounts: [
|
543
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
544
|
+
{ name: 'house', isMut: true, isSigner: false },
|
545
|
+
],
|
546
|
+
args: [],
|
547
|
+
},
|
548
|
+
{
|
549
|
+
name: 'kaminoInit',
|
550
|
+
accounts: [
|
551
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
552
|
+
{ name: 'house', isMut: false, isSigner: false },
|
553
|
+
{ name: 'delegateAuthority', isMut: false, isSigner: false },
|
554
|
+
{ name: 'reserve', isMut: false, isSigner: false },
|
555
|
+
{ name: 'strategy', isMut: true, isSigner: false },
|
556
|
+
],
|
557
|
+
args: [{ name: 'newMaxDelegateBps', type: 'u16' }],
|
558
|
+
},
|
559
|
+
{
|
560
|
+
name: 'kaminoUpdateMaxDelegate',
|
561
|
+
accounts: [
|
562
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
563
|
+
{ name: 'house', isMut: false, isSigner: false },
|
564
|
+
{ name: 'strategy', isMut: true, isSigner: false },
|
565
|
+
],
|
566
|
+
args: [{ name: 'newMaxDelegateBps', type: 'u16' }],
|
567
|
+
},
|
568
|
+
{
|
569
|
+
name: 'kaminoUpdateDelegateAuthority',
|
570
|
+
accounts: [
|
571
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
572
|
+
{ name: 'house', isMut: false, isSigner: false },
|
573
|
+
{ name: 'strategy', isMut: true, isSigner: false },
|
574
|
+
],
|
575
|
+
args: [{ name: 'delegateAuthority', type: 'publicKey' }],
|
576
|
+
},
|
577
|
+
{
|
578
|
+
name: 'kaminoClose',
|
579
|
+
accounts: [
|
580
|
+
{ name: 'delegateAuthority', isMut: false, isSigner: true },
|
581
|
+
{ name: 'rentCollector', isMut: true, isSigner: false },
|
582
|
+
{ name: 'strategy', isMut: true, isSigner: false },
|
583
|
+
],
|
584
|
+
args: [],
|
585
|
+
},
|
586
|
+
{
|
587
|
+
name: 'kaminoClaimRewards',
|
588
|
+
accounts: [
|
589
|
+
{ name: 'reserve', isMut: false, isSigner: false },
|
590
|
+
{ name: 'strategy', isMut: true, isSigner: false },
|
591
|
+
{ name: 'house', isMut: true, isSigner: false },
|
592
|
+
{ name: 'houseAuthority', isMut: false, isSigner: false },
|
593
|
+
{ name: 'houseCollateralToken', isMut: false, isSigner: false },
|
594
|
+
],
|
595
|
+
args: [],
|
596
|
+
},
|
597
|
+
{
|
598
|
+
name: 'kaminoDepositReserveLiquidity',
|
599
|
+
accounts: [
|
600
|
+
{ name: 'house', isMut: true, isSigner: false },
|
601
|
+
{ name: 'houseAuthority', isMut: true, isSigner: false },
|
602
|
+
{ name: 'strategy', isMut: true, isSigner: false },
|
603
|
+
{ name: 'delegateAuthority', isMut: false, isSigner: true },
|
604
|
+
{ name: 'reserve', isMut: true, isSigner: false },
|
605
|
+
{ name: 'lendingMarket', isMut: false, isSigner: false },
|
606
|
+
{ name: 'lendingMarketAuthority', isMut: false, isSigner: false },
|
607
|
+
{ name: 'reserveLiquidityMint', isMut: true, isSigner: false },
|
608
|
+
{ name: 'reserveLiquiditySupply', isMut: true, isSigner: false },
|
609
|
+
{ name: 'reserveCollateralMint', isMut: true, isSigner: false },
|
610
|
+
{ name: 'userSourceLiquidity', isMut: true, isSigner: false },
|
611
|
+
{ name: 'userDestinationCollateral', isMut: true, isSigner: false },
|
612
|
+
{ name: 'collateralTokenProgram', isMut: false, isSigner: false },
|
613
|
+
{ name: 'liquidityTokenProgram', isMut: false, isSigner: false },
|
614
|
+
{ name: 'instructionSysvarAccount', isMut: false, isSigner: false },
|
615
|
+
{ name: 'kaminoLendingProgram', isMut: false, isSigner: false },
|
616
|
+
],
|
617
|
+
args: [{ name: 'amount', type: 'u64' }],
|
618
|
+
},
|
619
|
+
{
|
620
|
+
name: 'kaminoRedeemReserveCollateral',
|
621
|
+
accounts: [
|
622
|
+
{ name: 'house', isMut: true, isSigner: false },
|
623
|
+
{ name: 'houseAuthority', isMut: true, isSigner: false },
|
624
|
+
{ name: 'strategy', isMut: true, isSigner: false },
|
625
|
+
{ name: 'delegateAuthority', isMut: false, isSigner: true },
|
626
|
+
{ name: 'reserve', isMut: true, isSigner: false },
|
627
|
+
{ name: 'lendingMarket', isMut: false, isSigner: false },
|
628
|
+
{ name: 'lendingMarketAuthority', isMut: false, isSigner: false },
|
629
|
+
{ name: 'reserveLiquidityMint', isMut: true, isSigner: false },
|
630
|
+
{ name: 'reserveCollateralMint', isMut: true, isSigner: false },
|
631
|
+
{ name: 'reserveLiquiditySupply', isMut: true, isSigner: false },
|
632
|
+
{ name: 'userSourceCollateral', isMut: true, isSigner: false },
|
633
|
+
{ name: 'userDestinationLiquidity', isMut: true, isSigner: false },
|
634
|
+
{ name: 'collateralTokenProgram', isMut: false, isSigner: false },
|
635
|
+
{ name: 'liquidityTokenProgram', isMut: false, isSigner: false },
|
636
|
+
{ name: 'instructionSysvarAccount', isMut: false, isSigner: false },
|
637
|
+
{ name: 'kaminoLendingProgram', isMut: false, isSigner: false },
|
638
|
+
],
|
639
|
+
args: [{ name: 'amount', type: 'u64' }],
|
640
|
+
},
|
641
|
+
{
|
642
|
+
name: 'reallocateHouseAccount',
|
643
|
+
docs: ['reallocate house account size to store more data'],
|
644
|
+
accounts: [
|
645
|
+
{ name: 'admin', isMut: false, isSigner: true },
|
646
|
+
{ name: 'house', isMut: true, isSigner: false },
|
647
|
+
{ name: 'payer', isMut: true, isSigner: true },
|
648
|
+
{ name: 'systemProgram', isMut: false, isSigner: false },
|
649
|
+
],
|
650
|
+
args: [],
|
651
|
+
},
|
652
|
+
],
|
653
|
+
accounts: [
|
654
|
+
{
|
655
|
+
name: 'BetV2',
|
656
|
+
docs: ['Betting type given an event'],
|
657
|
+
type: {
|
658
|
+
kind: 'struct',
|
659
|
+
fields: [
|
660
|
+
{ name: 'house', type: 'publicKey' },
|
661
|
+
{ name: 'gameId', type: 'u64' },
|
662
|
+
{ name: 'typeId', type: 'u16' },
|
663
|
+
{ name: 'points', type: 'i64' },
|
664
|
+
{ name: 'betAmount', docs: ['total bet amount'], type: 'u64' },
|
665
|
+
{
|
666
|
+
name: 'payoutAmount',
|
667
|
+
docs: ['total payout amount if win'],
|
668
|
+
type: 'u64',
|
669
|
+
},
|
670
|
+
{ name: 'activeSlips', docs: ['unique bettors'], type: 'u32' },
|
671
|
+
{ name: 'status', docs: ['result'], type: { defined: 'BetStatus' } },
|
672
|
+
{
|
673
|
+
name: 'isHalf',
|
674
|
+
docs: ['half win or half lose for Asian Handicap'],
|
675
|
+
type: 'bool',
|
676
|
+
},
|
677
|
+
],
|
678
|
+
},
|
679
|
+
},
|
680
|
+
{
|
681
|
+
name: 'Kamino',
|
682
|
+
type: {
|
683
|
+
kind: 'struct',
|
684
|
+
fields: [
|
685
|
+
{ name: 'house', type: 'publicKey' },
|
686
|
+
{ name: 'delegateAuthority', type: 'publicKey' },
|
687
|
+
{ name: 'maxDelegateBps', type: 'u16' },
|
688
|
+
{ name: 'delegatedAmount', type: 'u64' },
|
689
|
+
{ name: 'interestAmount', type: 'u64' },
|
690
|
+
{ name: 'reserve', type: 'publicKey' },
|
691
|
+
],
|
692
|
+
},
|
693
|
+
},
|
694
|
+
{
|
695
|
+
name: 'DvypassV2',
|
696
|
+
type: {
|
697
|
+
kind: 'struct',
|
698
|
+
fields: [
|
699
|
+
{ name: 'authority', type: 'publicKey' },
|
700
|
+
{ name: 'mint', type: 'publicKey' },
|
701
|
+
{ name: 'bump', type: 'u8' },
|
702
|
+
{ name: 'activeStakes', type: 'u8' },
|
703
|
+
],
|
704
|
+
},
|
705
|
+
},
|
706
|
+
{
|
707
|
+
name: 'DvypassReward',
|
708
|
+
docs: ['PDA - seeded by authority, house'],
|
709
|
+
type: {
|
710
|
+
kind: 'struct',
|
711
|
+
fields: [
|
712
|
+
{ name: 'rewardBeforeStake', type: 'u64' },
|
713
|
+
{ name: 'rewardClaimed', type: 'u64' },
|
714
|
+
{ name: 'rewardEarned', type: 'u64' },
|
715
|
+
{ name: 'stakes', type: 'u16' },
|
716
|
+
{ name: 'bump', type: 'u8' },
|
717
|
+
],
|
718
|
+
},
|
719
|
+
},
|
720
|
+
{
|
721
|
+
name: 'DvypassStake',
|
722
|
+
docs: ['PDA - seeded by dvypass, house'],
|
723
|
+
type: { kind: 'struct', fields: [{ name: 'bump', type: 'u8' }] },
|
724
|
+
},
|
725
|
+
{
|
726
|
+
name: 'DvypassEmission',
|
727
|
+
docs: ['PDA - seeded by dvypass'],
|
728
|
+
type: {
|
729
|
+
kind: 'struct',
|
730
|
+
fields: [
|
731
|
+
{ name: 'emissionsReleased', type: 'u64' },
|
732
|
+
{ name: 'emissionsClaimed', type: 'u64' },
|
733
|
+
{ name: 'emissionsRate', type: 'u64' },
|
734
|
+
{ name: 'startTimestamp', type: 'u32' },
|
735
|
+
{ name: 'bump', type: 'u8' },
|
736
|
+
],
|
737
|
+
},
|
738
|
+
},
|
739
|
+
{
|
740
|
+
name: 'Dvypass',
|
741
|
+
docs: ['V1 (deprecated)'],
|
742
|
+
type: {
|
743
|
+
kind: 'struct',
|
744
|
+
fields: [
|
745
|
+
{ name: 'authority', type: 'publicKey' },
|
746
|
+
{ name: 'mint', type: 'publicKey' },
|
747
|
+
{ name: 'bump', type: 'u8' },
|
748
|
+
],
|
749
|
+
},
|
750
|
+
},
|
751
|
+
{
|
752
|
+
name: 'Game',
|
753
|
+
type: {
|
754
|
+
kind: 'struct',
|
755
|
+
fields: [
|
756
|
+
{ name: 'house', type: 'publicKey' },
|
757
|
+
{ name: 'gameId', type: 'u64' },
|
758
|
+
{ name: 'maxPayoutAmount', docs: ['max payout amount'], type: 'u64' },
|
759
|
+
{ name: 'betAmount', docs: ['total bet amount'], type: 'u64' },
|
760
|
+
],
|
761
|
+
},
|
762
|
+
},
|
763
|
+
{
|
764
|
+
name: 'House',
|
765
|
+
type: {
|
766
|
+
kind: 'struct',
|
767
|
+
fields: [
|
768
|
+
{
|
769
|
+
name: 'admin',
|
770
|
+
docs: ['authority of the house'],
|
771
|
+
type: 'publicKey',
|
772
|
+
},
|
773
|
+
{
|
774
|
+
name: 'foreman',
|
775
|
+
docs: ['offchain relayer authority'],
|
776
|
+
type: 'publicKey',
|
777
|
+
},
|
778
|
+
{
|
779
|
+
name: 'beneficiary',
|
780
|
+
docs: ['beneficiary account where profit fees go'],
|
781
|
+
type: 'publicKey',
|
782
|
+
},
|
783
|
+
{
|
784
|
+
name: 'houseMint',
|
785
|
+
docs: ['SPL token mint as a collateral asset'],
|
786
|
+
type: 'publicKey',
|
787
|
+
},
|
788
|
+
{
|
789
|
+
name: 'currency',
|
790
|
+
docs: ['SPL token mint or NATIVE token (SOL)'],
|
791
|
+
type: 'publicKey',
|
792
|
+
},
|
793
|
+
{ name: 'currencyDecimals', docs: ['decimals'], type: 'u8' },
|
794
|
+
{ name: 'beneficiaryFeeBps', docs: ['i.e. 100 = 1%'], type: 'u16' },
|
795
|
+
{ name: 'dvypassFeeBps', type: 'u16' },
|
796
|
+
{ name: 'maxUtilizationBps', type: 'u16' },
|
797
|
+
{
|
798
|
+
name: 'houseTokenSupply',
|
799
|
+
docs: ['house token supply'],
|
800
|
+
type: 'u64',
|
801
|
+
},
|
802
|
+
{ name: 'liquidity', docs: ['house pool liquidity'], type: 'u64' },
|
803
|
+
{ name: 'maxPayoutAmount', type: 'u64' },
|
804
|
+
{ name: 'betAmount', type: 'u64' },
|
805
|
+
{ name: 'activeSlips', type: 'u64' },
|
806
|
+
{
|
807
|
+
name: 'authorityBump',
|
808
|
+
docs: ['vault authority PDA bump'],
|
809
|
+
type: 'u8',
|
810
|
+
},
|
811
|
+
{ name: 'paused', docs: ['emergency pause'], type: 'bool' },
|
812
|
+
{ name: 'beneficiaryLiquidity', docs: ['profits'], type: 'u64' },
|
813
|
+
{ name: 'dvypassLiquidity', type: 'u64' },
|
814
|
+
{ name: 'dvypassRewardRemaining', type: 'u64' },
|
815
|
+
{ name: 'dvypassRewardPerStake', type: 'u64' },
|
816
|
+
{ name: 'dvypassTotalStake', type: 'u16' },
|
817
|
+
{ name: 'dvypassNextTotalStake', type: 'u16' },
|
818
|
+
{ name: 'dvypassCollection', type: { option: 'publicKey' } },
|
819
|
+
{
|
820
|
+
name: 'utilizedAmount',
|
821
|
+
docs: ['total utilized amount'],
|
822
|
+
type: 'u64',
|
823
|
+
},
|
824
|
+
],
|
825
|
+
},
|
826
|
+
},
|
827
|
+
{
|
828
|
+
name: 'Parlay',
|
829
|
+
type: {
|
830
|
+
kind: 'struct',
|
831
|
+
fields: [
|
832
|
+
{ name: 'house', type: 'publicKey' },
|
833
|
+
{ name: 'slipId', type: 'u64' },
|
834
|
+
{ name: 'payoutAmount', docs: ['payout amount'], type: 'u64' },
|
835
|
+
{ name: 'betAmount', docs: ['total bet amount'], type: 'u64' },
|
836
|
+
{ name: 'bump', type: 'u8' },
|
837
|
+
],
|
838
|
+
},
|
839
|
+
},
|
840
|
+
{
|
841
|
+
name: 'Position',
|
842
|
+
type: {
|
843
|
+
kind: 'struct',
|
844
|
+
fields: [
|
845
|
+
{ name: 'house', type: 'publicKey' },
|
846
|
+
{ name: 'user', type: 'publicKey' },
|
847
|
+
{ name: 'amount', type: 'u64' },
|
848
|
+
{ name: 'minAmountOut', type: 'u64' },
|
849
|
+
{ name: 'createdTs', type: 'u32' },
|
850
|
+
{ name: 'status', type: { defined: 'PositionStatus' } },
|
851
|
+
],
|
852
|
+
},
|
853
|
+
},
|
854
|
+
{
|
855
|
+
name: 'Rewarder',
|
856
|
+
type: {
|
857
|
+
kind: 'struct',
|
858
|
+
fields: [
|
859
|
+
{ name: 'house', type: 'publicKey' },
|
860
|
+
{ name: 'startTimestamp', type: 'i64' },
|
861
|
+
{ name: 'endTimestamp', type: 'i64' },
|
862
|
+
{ name: 'authorityBump', type: 'u8' },
|
863
|
+
{ name: 'totalActiveMiners', type: 'u64' },
|
864
|
+
{ name: 'minAmount', type: 'u64' },
|
865
|
+
{ name: 'totalAmount', type: 'u64' },
|
866
|
+
{ name: 'totalRewards', type: 'u64' },
|
867
|
+
{ name: 'rewardsPerToken', type: 'u128' },
|
868
|
+
],
|
869
|
+
},
|
870
|
+
},
|
871
|
+
{
|
872
|
+
name: 'Revshare',
|
873
|
+
type: {
|
874
|
+
kind: 'struct',
|
875
|
+
fields: [
|
876
|
+
{ name: 'rewarder', type: 'publicKey' },
|
877
|
+
{ name: 'createdTimestamp', type: 'i64' },
|
878
|
+
{ name: 'lastUpdatedTimestamp', type: 'i64' },
|
879
|
+
{ name: 'totalAmounts', type: 'u64' },
|
880
|
+
{ name: 'totalWeightsLost', type: 'u128' },
|
881
|
+
{ name: 'rewardsPerWeight', type: 'u128' },
|
882
|
+
],
|
883
|
+
},
|
884
|
+
},
|
885
|
+
{
|
886
|
+
name: 'Miner',
|
887
|
+
docs: ['PDA'],
|
888
|
+
type: {
|
889
|
+
kind: 'struct',
|
890
|
+
fields: [
|
891
|
+
{ name: 'isBoosted', type: 'bool' },
|
892
|
+
{ name: 'rewarder', type: 'publicKey' },
|
893
|
+
{ name: 'authority', type: 'publicKey' },
|
894
|
+
{ name: 'amount', type: 'u64' },
|
895
|
+
{ name: 'rewards', type: 'u64' },
|
896
|
+
{ name: 'revshares', type: 'u8' },
|
897
|
+
],
|
898
|
+
},
|
899
|
+
},
|
900
|
+
{
|
901
|
+
name: 'RevshareMiner',
|
902
|
+
docs: ['PDA'],
|
903
|
+
type: {
|
904
|
+
kind: 'struct',
|
905
|
+
fields: [
|
906
|
+
{ name: 'miner', type: 'publicKey' },
|
907
|
+
{ name: 'revshare', type: 'publicKey' },
|
908
|
+
{ name: 'weightsLost', type: 'u128' },
|
909
|
+
{ name: 'amount', type: 'u64' },
|
910
|
+
{ name: 'rewardsClaimed', type: 'u64' },
|
911
|
+
],
|
912
|
+
},
|
913
|
+
},
|
914
|
+
{
|
915
|
+
name: 'Slip',
|
916
|
+
docs: ["Bettor's receipt given a betting option"],
|
917
|
+
type: {
|
918
|
+
kind: 'struct',
|
919
|
+
fields: [
|
920
|
+
{ name: 'bettor', type: 'publicKey' },
|
921
|
+
{ name: 'house', type: 'publicKey' },
|
922
|
+
{ name: 'gameId', type: 'u64' },
|
923
|
+
{ name: 'typeId', type: 'u16' },
|
924
|
+
{ name: 'points', type: 'i64' },
|
925
|
+
{ name: 'createdTs', docs: ['unix timestamp'], type: 'u32' },
|
926
|
+
{ name: 'betAmount', docs: ['total bet amount'], type: 'u64' },
|
927
|
+
{
|
928
|
+
name: 'payoutAmount',
|
929
|
+
docs: ['total payout amount if win'],
|
930
|
+
type: 'u64',
|
931
|
+
},
|
932
|
+
],
|
933
|
+
},
|
934
|
+
},
|
935
|
+
],
|
936
|
+
types: [
|
937
|
+
{
|
938
|
+
name: 'BetUpdatedData',
|
939
|
+
type: {
|
940
|
+
kind: 'struct',
|
941
|
+
fields: [
|
942
|
+
{ name: 'house', type: 'publicKey' },
|
943
|
+
{ name: 'gameId', type: 'u64' },
|
944
|
+
{ name: 'typeId', type: 'u16' },
|
945
|
+
{ name: 'points', type: 'i64' },
|
946
|
+
{ name: 'betAmount', type: 'u64' },
|
947
|
+
{ name: 'payoutAmount', type: 'u64' },
|
948
|
+
{ name: 'activeSlips', type: 'u32' },
|
949
|
+
{ name: 'status', type: { defined: 'BetStatus' } },
|
950
|
+
{ name: 'isHalf', type: 'bool' },
|
951
|
+
],
|
952
|
+
},
|
953
|
+
},
|
954
|
+
{
|
955
|
+
name: 'GameUpdatedData',
|
956
|
+
type: {
|
957
|
+
kind: 'struct',
|
958
|
+
fields: [
|
959
|
+
{ name: 'maxPayoutAmount', type: 'u64' },
|
960
|
+
{ name: 'betAmount', type: 'u64' },
|
961
|
+
],
|
962
|
+
},
|
963
|
+
},
|
964
|
+
{
|
965
|
+
name: 'HouseUpdatedData',
|
966
|
+
type: {
|
967
|
+
kind: 'struct',
|
968
|
+
fields: [
|
969
|
+
{ name: 'houseTokenSupply', type: 'u64' },
|
970
|
+
{ name: 'liquidity', type: 'u64' },
|
971
|
+
{ name: 'maxPayoutAmount', type: 'u64' },
|
972
|
+
{ name: 'betAmount', type: 'u64' },
|
973
|
+
{ name: 'activeSlips', type: 'u64' },
|
974
|
+
{ name: 'paused', type: 'bool' },
|
975
|
+
{ name: 'beneficiaryLiquidity', type: 'u64' },
|
976
|
+
{ name: 'dvypassLiquidity', type: 'u64' },
|
977
|
+
{ name: 'dvypassRewardRemaining', type: 'u64' },
|
978
|
+
{ name: 'dvypassRewardPerStake', type: 'u64' },
|
979
|
+
{ name: 'dvypassTotalStake', type: 'u16' },
|
980
|
+
{ name: 'dvypassNextTotalStake', type: 'u16' },
|
981
|
+
{ name: 'utilizedAmount', type: 'u64' },
|
982
|
+
],
|
983
|
+
},
|
984
|
+
},
|
985
|
+
{
|
986
|
+
name: 'BetStatus',
|
987
|
+
type: {
|
988
|
+
kind: 'enum',
|
989
|
+
variants: [
|
990
|
+
{ name: 'Open' },
|
991
|
+
{ name: 'Closed' },
|
992
|
+
{ name: 'Win' },
|
993
|
+
{ name: 'Lose' },
|
994
|
+
{ name: 'Push' },
|
995
|
+
],
|
996
|
+
},
|
997
|
+
},
|
998
|
+
{
|
999
|
+
name: 'PositionStatus',
|
1000
|
+
type: {
|
1001
|
+
kind: 'enum',
|
1002
|
+
variants: [{ name: 'Deposit' }, { name: 'Withdraw' }],
|
1003
|
+
},
|
1004
|
+
},
|
1005
|
+
],
|
1006
|
+
events: [
|
1007
|
+
{
|
1008
|
+
name: 'BetUpdatedEvent',
|
1009
|
+
fields: [
|
1010
|
+
{ name: 'pubkey', type: 'publicKey', index: false },
|
1011
|
+
{ name: 'data', type: { defined: 'BetUpdatedData' }, index: false },
|
1012
|
+
],
|
1013
|
+
},
|
1014
|
+
{
|
1015
|
+
name: 'GameUpdatedEvent',
|
1016
|
+
fields: [
|
1017
|
+
{ name: 'pubkey', type: 'publicKey', index: false },
|
1018
|
+
{ name: 'data', type: { defined: 'GameUpdatedData' }, index: false },
|
1019
|
+
],
|
1020
|
+
},
|
1021
|
+
{
|
1022
|
+
name: 'HouseUpdatedEvent',
|
1023
|
+
fields: [
|
1024
|
+
{ name: 'pubkey', type: 'publicKey', index: false },
|
1025
|
+
{ name: 'data', type: { defined: 'HouseUpdatedData' }, index: false },
|
1026
|
+
],
|
1027
|
+
},
|
1028
|
+
],
|
1029
|
+
errors: [
|
1030
|
+
{ code: 6000, name: 'Paused', msg: 'House is paused' },
|
1031
|
+
{
|
1032
|
+
code: 6001,
|
1033
|
+
name: 'InsufficientLiquidity',
|
1034
|
+
msg: 'Insufficient house liquidity',
|
1035
|
+
},
|
1036
|
+
{ code: 6002, name: 'InsufficientBalance', msg: 'Insufficient balance' },
|
1037
|
+
{ code: 6003, name: 'DepositDisabled', msg: 'Deposit is disabled' },
|
1038
|
+
{ code: 6004, name: 'WithdrawDisabled', msg: 'Withdraw is disabled' },
|
1039
|
+
{
|
1040
|
+
code: 6005,
|
1041
|
+
name: 'BetAlreadySettled',
|
1042
|
+
msg: 'The bet is already settled',
|
1043
|
+
},
|
1044
|
+
{ code: 6006, name: 'BetNotSettled', msg: 'The bet is not settled yet' },
|
1045
|
+
{ code: 6007, name: 'BetAlreadyClosed', msg: 'The bet is already closed' },
|
1046
|
+
{
|
1047
|
+
code: 6008,
|
1048
|
+
name: 'PayoutNotFinished',
|
1049
|
+
msg: 'The payout is not finished yet',
|
1050
|
+
},
|
1051
|
+
{ code: 6009, name: 'BetAmountInvalid', msg: 'The bet amount is invalid' },
|
1052
|
+
{
|
1053
|
+
code: 6010,
|
1054
|
+
name: 'PayoutAmountInvalid',
|
1055
|
+
msg: 'The payout amount is invalid',
|
1056
|
+
},
|
1057
|
+
{
|
1058
|
+
code: 6011,
|
1059
|
+
name: 'MaxLockedLiquidityExceeded',
|
1060
|
+
msg: 'Max locked liquidity exceeded',
|
1061
|
+
},
|
1062
|
+
{ code: 6012, name: 'InvalidDvypass', msg: 'Invalid DVYPASS' },
|
1063
|
+
{ code: 6013, name: 'OddsOffsetChanged', msg: 'The odds offset changed' },
|
1064
|
+
{
|
1065
|
+
code: 6014,
|
1066
|
+
name: 'MinimumSlippageExceeded',
|
1067
|
+
msg: 'Minimum slippage exceeded',
|
1068
|
+
},
|
1069
|
+
],
|
1070
|
+
};
|
1071
|
+
//# sourceMappingURL=idl.js.map
|