@helium/idls 0.11.4 → 0.11.6

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.
@@ -161,12 +161,131 @@ export type DcAutoTop = {
161
161
  ];
162
162
  },
163
163
  {
164
- "name": "nextPythTask";
164
+ "name": "dao";
165
+ "relations": [
166
+ "autoTopOff"
167
+ ];
168
+ },
169
+ {
170
+ "name": "hntAccount";
171
+ "writable": true;
172
+ "pda": {
173
+ "seeds": [
174
+ {
175
+ "kind": "account";
176
+ "path": "autoTopOff";
177
+ },
178
+ {
179
+ "kind": "const";
180
+ "value": [
181
+ 6,
182
+ 221,
183
+ 246,
184
+ 225,
185
+ 215,
186
+ 101,
187
+ 161,
188
+ 147,
189
+ 217,
190
+ 203,
191
+ 225,
192
+ 70,
193
+ 206,
194
+ 235,
195
+ 121,
196
+ 172,
197
+ 28,
198
+ 180,
199
+ 133,
200
+ 237,
201
+ 95,
202
+ 91,
203
+ 55,
204
+ 145,
205
+ 58,
206
+ 140,
207
+ 245,
208
+ 133,
209
+ 126,
210
+ 255,
211
+ 0,
212
+ 169
213
+ ];
214
+ },
215
+ {
216
+ "kind": "account";
217
+ "path": "dao.hnt_mint";
218
+ "account": "daoV0";
219
+ }
220
+ ];
221
+ "program": {
222
+ "kind": "const";
223
+ "value": [
224
+ 140,
225
+ 151,
226
+ 37,
227
+ 143,
228
+ 78,
229
+ 36,
230
+ 137,
231
+ 241,
232
+ 187,
233
+ 61,
234
+ 16,
235
+ 41,
236
+ 20,
237
+ 142,
238
+ 13,
239
+ 131,
240
+ 11,
241
+ 90,
242
+ 19,
243
+ 153,
244
+ 218,
245
+ 255,
246
+ 16,
247
+ 132,
248
+ 4,
249
+ 142,
250
+ 123,
251
+ 216,
252
+ 219,
253
+ 233,
254
+ 248,
255
+ 89
256
+ ];
257
+ };
258
+ };
259
+ },
260
+ {
261
+ "name": "dcAccount";
262
+ "writable": true;
263
+ "relations": [
264
+ "autoTopOff"
265
+ ];
266
+ },
267
+ {
268
+ "name": "dcaMintAccount";
269
+ "writable": true;
270
+ "relations": [
271
+ "autoTopOff"
272
+ ];
273
+ },
274
+ {
275
+ "name": "nextHntTask";
165
276
  "writable": true;
166
277
  "relations": [
167
278
  "autoTopOff"
168
279
  ];
169
280
  },
281
+ {
282
+ "name": "associatedTokenProgram";
283
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
284
+ },
285
+ {
286
+ "name": "tokenProgram";
287
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
288
+ },
170
289
  {
171
290
  "name": "tuktukProgram";
172
291
  "address": "tuktukUrfhXT6ZT77QTU8RQtvgL967uRuVagWF57zVA";
@@ -178,6 +297,203 @@ export type DcAutoTop = {
178
297
  ];
179
298
  "args": [];
180
299
  },
300
+ {
301
+ "name": "closeLegacyAutoTopOff";
302
+ "discriminator": [
303
+ 248,
304
+ 148,
305
+ 249,
306
+ 86,
307
+ 103,
308
+ 42,
309
+ 92,
310
+ 22
311
+ ];
312
+ "accounts": [
313
+ {
314
+ "name": "authority";
315
+ "writable": true;
316
+ "signer": true;
317
+ "address": "89oNwxpAssUhCHcMYd5zNrqGcGtW5kdPTfazTnNnRqst";
318
+ },
319
+ {
320
+ "name": "autoTopOff";
321
+ "writable": true;
322
+ "pda": {
323
+ "seeds": [
324
+ {
325
+ "kind": "const";
326
+ "value": [
327
+ 97,
328
+ 117,
329
+ 116,
330
+ 111,
331
+ 95,
332
+ 116,
333
+ 111,
334
+ 112,
335
+ 95,
336
+ 111,
337
+ 102,
338
+ 102
339
+ ];
340
+ },
341
+ {
342
+ "kind": "account";
343
+ "path": "delegatedDataCredits";
344
+ },
345
+ {
346
+ "kind": "account";
347
+ "path": "authority";
348
+ }
349
+ ];
350
+ };
351
+ },
352
+ {
353
+ "name": "delegatedDataCredits";
354
+ },
355
+ {
356
+ "name": "hntAccount";
357
+ "writable": true;
358
+ "pda": {
359
+ "seeds": [
360
+ {
361
+ "kind": "account";
362
+ "path": "autoTopOff";
363
+ },
364
+ {
365
+ "kind": "const";
366
+ "value": [
367
+ 6,
368
+ 221,
369
+ 246,
370
+ 225,
371
+ 215,
372
+ 101,
373
+ 161,
374
+ 147,
375
+ 217,
376
+ 203,
377
+ 225,
378
+ 70,
379
+ 206,
380
+ 235,
381
+ 121,
382
+ 172,
383
+ 28,
384
+ 180,
385
+ 133,
386
+ 237,
387
+ 95,
388
+ 91,
389
+ 55,
390
+ 145,
391
+ 58,
392
+ 140,
393
+ 245,
394
+ 133,
395
+ 126,
396
+ 255,
397
+ 0,
398
+ 169
399
+ ];
400
+ },
401
+ {
402
+ "kind": "const";
403
+ "value": [
404
+ 10,
405
+ 115,
406
+ 32,
407
+ 147,
408
+ 145,
409
+ 133,
410
+ 97,
411
+ 247,
412
+ 221,
413
+ 127,
414
+ 203,
415
+ 236,
416
+ 74,
417
+ 189,
418
+ 133,
419
+ 19,
420
+ 222,
421
+ 202,
422
+ 26,
423
+ 150,
424
+ 127,
425
+ 122,
426
+ 215,
427
+ 163,
428
+ 157,
429
+ 99,
430
+ 180,
431
+ 30,
432
+ 216,
433
+ 147,
434
+ 128,
435
+ 139
436
+ ];
437
+ }
438
+ ];
439
+ "program": {
440
+ "kind": "const";
441
+ "value": [
442
+ 140,
443
+ 151,
444
+ 37,
445
+ 143,
446
+ 78,
447
+ 36,
448
+ 137,
449
+ 241,
450
+ 187,
451
+ 61,
452
+ 16,
453
+ 41,
454
+ 20,
455
+ 142,
456
+ 13,
457
+ 131,
458
+ 11,
459
+ 90,
460
+ 19,
461
+ 153,
462
+ 218,
463
+ 255,
464
+ 16,
465
+ 132,
466
+ 4,
467
+ 142,
468
+ 123,
469
+ 216,
470
+ 219,
471
+ 233,
472
+ 248,
473
+ 89
474
+ ];
475
+ };
476
+ };
477
+ },
478
+ {
479
+ "name": "dcAccount";
480
+ "writable": true;
481
+ },
482
+ {
483
+ "name": "associatedTokenProgram";
484
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
485
+ },
486
+ {
487
+ "name": "tokenProgram";
488
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
489
+ },
490
+ {
491
+ "name": "systemProgram";
492
+ "address": "11111111111111111111111111111111";
493
+ }
494
+ ];
495
+ "args": [];
496
+ },
181
497
  {
182
498
  "name": "initializeAutoTopOffV0";
183
499
  "discriminator": [
@@ -233,6 +549,9 @@ export type DcAutoTop = {
233
549
  ];
234
550
  };
235
551
  },
552
+ {
553
+ "name": "hntPriceOracle";
554
+ },
236
555
  {
237
556
  "name": "dao";
238
557
  "relations": [
@@ -441,6 +760,99 @@ export type DcAutoTop = {
441
760
  };
442
761
  };
443
762
  },
763
+ {
764
+ "name": "dcaMint";
765
+ },
766
+ {
767
+ "name": "dcaMintAccount";
768
+ "writable": true;
769
+ "pda": {
770
+ "seeds": [
771
+ {
772
+ "kind": "account";
773
+ "path": "autoTopOff";
774
+ },
775
+ {
776
+ "kind": "const";
777
+ "value": [
778
+ 6,
779
+ 221,
780
+ 246,
781
+ 225,
782
+ 215,
783
+ 101,
784
+ 161,
785
+ 147,
786
+ 217,
787
+ 203,
788
+ 225,
789
+ 70,
790
+ 206,
791
+ 235,
792
+ 121,
793
+ 172,
794
+ 28,
795
+ 180,
796
+ 133,
797
+ 237,
798
+ 95,
799
+ 91,
800
+ 55,
801
+ 145,
802
+ 58,
803
+ 140,
804
+ 245,
805
+ 133,
806
+ 126,
807
+ 255,
808
+ 0,
809
+ 169
810
+ ];
811
+ },
812
+ {
813
+ "kind": "account";
814
+ "path": "dcaMint";
815
+ }
816
+ ];
817
+ "program": {
818
+ "kind": "const";
819
+ "value": [
820
+ 140,
821
+ 151,
822
+ 37,
823
+ 143,
824
+ 78,
825
+ 36,
826
+ 137,
827
+ 241,
828
+ 187,
829
+ 61,
830
+ 16,
831
+ 41,
832
+ 20,
833
+ 142,
834
+ 13,
835
+ 131,
836
+ 11,
837
+ 90,
838
+ 19,
839
+ 153,
840
+ 218,
841
+ 255,
842
+ 16,
843
+ 132,
844
+ 4,
845
+ 142,
846
+ 123,
847
+ 216,
848
+ 219,
849
+ 233,
850
+ 248,
851
+ 89
852
+ ];
853
+ };
854
+ };
855
+ },
444
856
  {
445
857
  "name": "subDao";
446
858
  "relations": [
@@ -723,7 +1135,7 @@ export type DcAutoTop = {
723
1135
  "writable": true;
724
1136
  },
725
1137
  {
726
- "name": "pythTask";
1138
+ "name": "hntTask";
727
1139
  "writable": true;
728
1140
  },
729
1141
  {
@@ -747,16 +1159,147 @@ export type DcAutoTop = {
747
1159
  ];
748
1160
  },
749
1161
  {
750
- "name": "topOffV0";
1162
+ "name": "topOffDcV0";
1163
+ "discriminator": [
1164
+ 178,
1165
+ 58,
1166
+ 26,
1167
+ 160,
1168
+ 209,
1169
+ 125,
1170
+ 72,
1171
+ 14
1172
+ ];
1173
+ "accounts": [
1174
+ {
1175
+ "name": "autoTopOff";
1176
+ "writable": true;
1177
+ },
1178
+ {
1179
+ "name": "taskQueue";
1180
+ "writable": true;
1181
+ "relations": [
1182
+ "autoTopOff"
1183
+ ];
1184
+ },
1185
+ {
1186
+ "name": "delegatedDataCredits";
1187
+ "writable": true;
1188
+ "relations": [
1189
+ "autoTopOff"
1190
+ ];
1191
+ },
1192
+ {
1193
+ "name": "dataCredits";
1194
+ "relations": [
1195
+ "autoTopOff",
1196
+ "delegatedDataCredits"
1197
+ ];
1198
+ },
1199
+ {
1200
+ "name": "dcMint";
1201
+ "writable": true;
1202
+ "relations": [
1203
+ "dao"
1204
+ ];
1205
+ },
1206
+ {
1207
+ "name": "hntMint";
1208
+ "writable": true;
1209
+ "relations": [
1210
+ "dao"
1211
+ ];
1212
+ },
1213
+ {
1214
+ "name": "dao";
1215
+ },
1216
+ {
1217
+ "name": "subDao";
1218
+ "relations": [
1219
+ "autoTopOff",
1220
+ "delegatedDataCredits"
1221
+ ];
1222
+ },
1223
+ {
1224
+ "name": "fromAccount";
1225
+ "writable": true;
1226
+ },
1227
+ {
1228
+ "name": "fromHntAccount";
1229
+ "writable": true;
1230
+ },
1231
+ {
1232
+ "name": "hntAccount";
1233
+ "writable": true;
1234
+ "relations": [
1235
+ "autoTopOff"
1236
+ ];
1237
+ },
1238
+ {
1239
+ "name": "hntPriceOracle";
1240
+ "relations": [
1241
+ "autoTopOff"
1242
+ ];
1243
+ },
1244
+ {
1245
+ "name": "escrowAccount";
1246
+ "writable": true;
1247
+ "relations": [
1248
+ "delegatedDataCredits"
1249
+ ];
1250
+ },
1251
+ {
1252
+ "name": "circuitBreaker";
1253
+ "writable": true;
1254
+ },
1255
+ {
1256
+ "name": "associatedTokenProgram";
1257
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1258
+ },
1259
+ {
1260
+ "name": "tokenProgram";
1261
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1262
+ },
1263
+ {
1264
+ "name": "systemProgram";
1265
+ "address": "11111111111111111111111111111111";
1266
+ },
1267
+ {
1268
+ "name": "circuitBreakerProgram";
1269
+ "address": "circAbx64bbsscPbQzZAUvuXpHqrCe6fLMzc2uKXz9g";
1270
+ },
1271
+ {
1272
+ "name": "dataCreditsProgram";
1273
+ "address": "credMBJhYFzfn7NxBMdU4aUqFggAjgztaCcv2Fo6fPT";
1274
+ },
1275
+ {
1276
+ "name": "instructionSysvar";
1277
+ "docs": [
1278
+ "the supplied Sysvar could be anything else.",
1279
+ "The Instruction Sysvar has not been implemented",
1280
+ "in the Anchor framework yet, so this is the safe approach."
1281
+ ];
1282
+ "address": "Sysvar1nstructions1111111111111111111111111";
1283
+ }
1284
+ ];
1285
+ "args": [];
1286
+ "returns": {
1287
+ "defined": {
1288
+ "name": "runTaskReturnV0";
1289
+ };
1290
+ };
1291
+ },
1292
+ {
1293
+ "name": "topOffHntV0";
751
1294
  "discriminator": [
752
- 177,
753
- 139,
754
- 86,
755
- 144,
756
- 219,
757
- 202,
758
- 100,
759
- 198
1295
+ 204,
1296
+ 116,
1297
+ 69,
1298
+ 53,
1299
+ 80,
1300
+ 122,
1301
+ 32,
1302
+ 140
760
1303
  ];
761
1304
  "accounts": [
762
1305
  {
@@ -771,69 +1314,50 @@ export type DcAutoTop = {
771
1314
  ];
772
1315
  },
773
1316
  {
774
- "name": "nextTask";
1317
+ "name": "hntAccount";
1318
+ "writable": true;
775
1319
  "relations": [
776
1320
  "autoTopOff"
777
1321
  ];
778
1322
  },
779
1323
  {
780
- "name": "delegatedDataCredits";
781
- "writable": true;
782
- },
783
- {
784
- "name": "dataCredits";
785
- "relations": [
786
- "autoTopOff",
787
- "delegatedDataCredits"
788
- ];
1324
+ "name": "hntMint";
789
1325
  },
790
1326
  {
791
- "name": "dcMint";
792
- "writable": true;
1327
+ "name": "dcaMint";
793
1328
  "relations": [
794
- "dao"
1329
+ "autoTopOff"
795
1330
  ];
796
1331
  },
797
1332
  {
798
- "name": "hntMint";
1333
+ "name": "dcaMintAccount";
799
1334
  "writable": true;
800
1335
  "relations": [
801
- "dao"
1336
+ "autoTopOff"
802
1337
  ];
803
1338
  },
804
1339
  {
805
- "name": "dao";
1340
+ "name": "dcaInputPriceOracle";
806
1341
  "relations": [
807
- "subDao"
1342
+ "autoTopOff"
808
1343
  ];
809
1344
  },
810
1345
  {
811
- "name": "subDao";
1346
+ "name": "hntPriceOracle";
812
1347
  "relations": [
813
- "autoTopOff",
814
- "delegatedDataCredits"
1348
+ "autoTopOff"
815
1349
  ];
816
1350
  },
817
1351
  {
818
- "name": "fromAccount";
819
- "writable": true;
820
- },
821
- {
822
- "name": "fromHntAccount";
1352
+ "name": "dca";
823
1353
  "writable": true;
824
1354
  },
825
1355
  {
826
- "name": "hntPriceOracle";
827
- },
828
- {
829
- "name": "escrowAccount";
1356
+ "name": "dcaInputAccount";
830
1357
  "writable": true;
831
- "relations": [
832
- "delegatedDataCredits"
833
- ];
834
1358
  },
835
1359
  {
836
- "name": "circuitBreaker";
1360
+ "name": "dcaDestinationTokenAccount";
837
1361
  "writable": true;
838
1362
  },
839
1363
  {
@@ -849,12 +1373,22 @@ export type DcAutoTop = {
849
1373
  "address": "11111111111111111111111111111111";
850
1374
  },
851
1375
  {
852
- "name": "circuitBreakerProgram";
853
- "address": "circAbx64bbsscPbQzZAUvuXpHqrCe6fLMzc2uKXz9g";
1376
+ "name": "tuktukDcaProgram";
1377
+ "address": "tdcam4m5U74pEZQrsQ7fVAav4AUXXc6z8fkhvExfRVN";
854
1378
  },
855
1379
  {
856
- "name": "dataCreditsProgram";
857
- "address": "credMBJhYFzfn7NxBMdU4aUqFggAjgztaCcv2Fo6fPT";
1380
+ "name": "instructionSysvar";
1381
+ "docs": [
1382
+ "the supplied Sysvar could be anything else.",
1383
+ "The Instruction Sysvar has not been implemented",
1384
+ "in the Anchor framework yet, so this is the safe approach."
1385
+ ];
1386
+ "address": "Sysvar1nstructions1111111111111111111111111";
1387
+ },
1388
+ {
1389
+ "name": "dcaCustomSigner";
1390
+ "writable": true;
1391
+ "signer": true;
858
1392
  }
859
1393
  ];
860
1394
  "args": [];
@@ -1012,27 +1546,23 @@ export type DcAutoTop = {
1012
1546
  ];
1013
1547
  },
1014
1548
  {
1015
- "name": "nextPythTask";
1549
+ "name": "nextHntTask";
1016
1550
  "writable": true;
1017
1551
  "relations": [
1018
1552
  "autoTopOff"
1019
1553
  ];
1020
1554
  },
1021
1555
  {
1022
- "name": "newTask";
1556
+ "name": "taskRentRefund";
1023
1557
  "writable": true;
1024
1558
  },
1025
1559
  {
1026
- "name": "newPythTask";
1560
+ "name": "hntTaskRentRefund";
1027
1561
  "writable": true;
1028
1562
  },
1029
1563
  {
1030
1564
  "name": "tuktukProgram";
1031
1565
  "address": "tuktukUrfhXT6ZT77QTU8RQtvgL967uRuVagWF57zVA";
1032
- },
1033
- {
1034
- "name": "systemProgram";
1035
- "address": "11111111111111111111111111111111";
1036
1566
  }
1037
1567
  ];
1038
1568
  "args": [
@@ -1113,6 +1643,19 @@ export type DcAutoTop = {
1113
1643
  186
1114
1644
  ];
1115
1645
  },
1646
+ {
1647
+ "name": "priceUpdateV2";
1648
+ "discriminator": [
1649
+ 34,
1650
+ 241,
1651
+ 35,
1652
+ 99,
1653
+ 157,
1654
+ 126,
1655
+ 244,
1656
+ 205
1657
+ ];
1658
+ },
1116
1659
  {
1117
1660
  "name": "subDaoV0";
1118
1661
  "discriminator": [
@@ -1176,11 +1719,30 @@ export type DcAutoTop = {
1176
1719
  "code": 6001;
1177
1720
  "name": "invalidSchedule";
1178
1721
  "msg": "Invalid schedule";
1722
+ },
1723
+ {
1724
+ "code": 6002;
1725
+ "name": "invalidCpiContext";
1726
+ "msg": "Invalid CPI context";
1727
+ },
1728
+ {
1729
+ "code": 6003;
1730
+ "name": "arithmeticError";
1731
+ "msg": "Arithmetic error";
1732
+ },
1733
+ {
1734
+ "code": 6004;
1735
+ "name": "pythPriceNotFound";
1736
+ "msg": "Pyth price not found";
1179
1737
  }
1180
1738
  ];
1181
1739
  "types": [
1182
1740
  {
1183
1741
  "name": "autoTopOffV0";
1742
+ "serialization": "bytemuck";
1743
+ "repr": {
1744
+ "kind": "c";
1745
+ };
1184
1746
  "type": {
1185
1747
  "kind": "struct";
1186
1748
  "fields": [
@@ -1205,7 +1767,7 @@ export type DcAutoTop = {
1205
1767
  "type": "pubkey";
1206
1768
  },
1207
1769
  {
1208
- "name": "nextPythTask";
1770
+ "name": "nextHntTask";
1209
1771
  "type": "pubkey";
1210
1772
  },
1211
1773
  {
@@ -1252,13 +1814,68 @@ export type DcAutoTop = {
1252
1814
  "name": "queueAuthorityBump";
1253
1815
  "type": "u8";
1254
1816
  },
1817
+ {
1818
+ "name": "reserved";
1819
+ "type": {
1820
+ "array": [
1821
+ "u8",
1822
+ 6
1823
+ ];
1824
+ };
1825
+ },
1255
1826
  {
1256
1827
  "name": "threshold";
1257
1828
  "type": "u64";
1258
1829
  },
1259
1830
  {
1260
1831
  "name": "schedule";
1261
- "type": "string";
1832
+ "type": {
1833
+ "array": [
1834
+ "u8",
1835
+ 128
1836
+ ];
1837
+ };
1838
+ },
1839
+ {
1840
+ "name": "dcaUrl";
1841
+ "type": {
1842
+ "array": [
1843
+ "u8",
1844
+ 128
1845
+ ];
1846
+ };
1847
+ },
1848
+ {
1849
+ "name": "dcaSigner";
1850
+ "type": "pubkey";
1851
+ },
1852
+ {
1853
+ "name": "hntThreshold";
1854
+ "type": "u64";
1855
+ },
1856
+ {
1857
+ "name": "dcaMint";
1858
+ "type": "pubkey";
1859
+ },
1860
+ {
1861
+ "name": "dcaMintAccount";
1862
+ "type": "pubkey";
1863
+ },
1864
+ {
1865
+ "name": "dcaSwapAmount";
1866
+ "type": "u64";
1867
+ },
1868
+ {
1869
+ "name": "dcaIntervalSeconds";
1870
+ "type": "u64";
1871
+ },
1872
+ {
1873
+ "name": "dcaInputPriceOracle";
1874
+ "type": "pubkey";
1875
+ },
1876
+ {
1877
+ "name": "dca";
1878
+ "type": "pubkey";
1262
1879
  }
1263
1880
  ];
1264
1881
  };
@@ -1512,6 +2129,34 @@ export type DcAutoTop = {
1512
2129
  {
1513
2130
  "name": "routerKey";
1514
2131
  "type": "string";
2132
+ },
2133
+ {
2134
+ "name": "hntThreshold";
2135
+ "type": "u64";
2136
+ },
2137
+ {
2138
+ "name": "dcaMint";
2139
+ "type": "pubkey";
2140
+ },
2141
+ {
2142
+ "name": "dcaSwapAmount";
2143
+ "type": "u64";
2144
+ },
2145
+ {
2146
+ "name": "dcaIntervalSeconds";
2147
+ "type": "u64";
2148
+ },
2149
+ {
2150
+ "name": "dcaInputPriceOracle";
2151
+ "type": "pubkey";
2152
+ },
2153
+ {
2154
+ "name": "dcaUrl";
2155
+ "type": "string";
2156
+ },
2157
+ {
2158
+ "name": "dcaSigner";
2159
+ "type": "pubkey";
1515
2160
  }
1516
2161
  ];
1517
2162
  };
@@ -1572,6 +2217,114 @@ export type DcAutoTop = {
1572
2217
  ];
1573
2218
  };
1574
2219
  },
2220
+ {
2221
+ "name": "priceFeedMessage";
2222
+ "repr": {
2223
+ "kind": "c";
2224
+ };
2225
+ "type": {
2226
+ "kind": "struct";
2227
+ "fields": [
2228
+ {
2229
+ "name": "feedId";
2230
+ "docs": [
2231
+ "`FeedId` but avoid the type alias because of compatibility issues with Anchor's `idl-build` feature."
2232
+ ];
2233
+ "type": {
2234
+ "array": [
2235
+ "u8",
2236
+ 32
2237
+ ];
2238
+ };
2239
+ },
2240
+ {
2241
+ "name": "price";
2242
+ "type": "i64";
2243
+ },
2244
+ {
2245
+ "name": "conf";
2246
+ "type": "u64";
2247
+ },
2248
+ {
2249
+ "name": "exponent";
2250
+ "type": "i32";
2251
+ },
2252
+ {
2253
+ "name": "publishTime";
2254
+ "docs": [
2255
+ "The timestamp of this price update in seconds"
2256
+ ];
2257
+ "type": "i64";
2258
+ },
2259
+ {
2260
+ "name": "prevPublishTime";
2261
+ "docs": [
2262
+ "The timestamp of the previous price update. This field is intended to allow users to",
2263
+ "identify the single unique price update for any moment in time:",
2264
+ "for any time t, the unique update is the one such that prev_publish_time < t <= publish_time.",
2265
+ "",
2266
+ "Note that there may not be such an update while we are migrating to the new message-sending logic,",
2267
+ "as some price updates on pythnet may not be sent to other chains (because the message-sending",
2268
+ "logic may not have triggered). We can solve this problem by making the message-sending mandatory",
2269
+ "(which we can do once publishers have migrated over).",
2270
+ "",
2271
+ "Additionally, this field may be equal to publish_time if the message is sent on a slot where",
2272
+ "where the aggregation was unsuccesful. This problem will go away once all publishers have",
2273
+ "migrated over to a recent version of pyth-agent."
2274
+ ];
2275
+ "type": "i64";
2276
+ },
2277
+ {
2278
+ "name": "emaPrice";
2279
+ "type": "i64";
2280
+ },
2281
+ {
2282
+ "name": "emaConf";
2283
+ "type": "u64";
2284
+ }
2285
+ ];
2286
+ };
2287
+ },
2288
+ {
2289
+ "name": "priceUpdateV2";
2290
+ "docs": [
2291
+ "A price update account. This account is used by the Pyth Receiver program to store a verified price update from a Pyth price feed.",
2292
+ "It contains:",
2293
+ "- `write_authority`: The write authority for this account. This authority can close this account to reclaim rent or update the account to contain a different price update.",
2294
+ "- `verification_level`: The [`VerificationLevel`] of this price update. This represents how many Wormhole guardian signatures have been verified for this price update.",
2295
+ "- `price_message`: The actual price update.",
2296
+ "- `posted_slot`: The slot at which this price update was posted."
2297
+ ];
2298
+ "type": {
2299
+ "kind": "struct";
2300
+ "fields": [
2301
+ {
2302
+ "name": "writeAuthority";
2303
+ "type": "pubkey";
2304
+ },
2305
+ {
2306
+ "name": "verificationLevel";
2307
+ "type": {
2308
+ "defined": {
2309
+ "name": "verificationLevel";
2310
+ };
2311
+ };
2312
+ },
2313
+ {
2314
+ "name": "priceMessage";
2315
+ "type": {
2316
+ "defined": {
2317
+ "name": "priceFeedMessage";
2318
+ };
2319
+ };
2320
+ },
2321
+ {
2322
+ "name": "postedSlot";
2323
+ "type": "u64";
2324
+ }
2325
+ ];
2326
+ };
2327
+ },
1575
2328
  {
1576
2329
  "name": "recentProposal";
1577
2330
  "type": {
@@ -1622,7 +2375,7 @@ export type DcAutoTop = {
1622
2375
  "type": "u16";
1623
2376
  },
1624
2377
  {
1625
- "name": "pythTaskId";
2378
+ "name": "hntTaskId";
1626
2379
  "type": "u16";
1627
2380
  }
1628
2381
  ];
@@ -1977,24 +2730,85 @@ export type DcAutoTop = {
1977
2730
  "kind": "struct";
1978
2731
  "fields": [
1979
2732
  {
1980
- "name": "newTaskId";
1981
- "type": "u16";
2733
+ "name": "schedule";
2734
+ "type": {
2735
+ "option": "string";
2736
+ };
1982
2737
  },
1983
2738
  {
1984
- "name": "newPythTaskId";
1985
- "type": "u16";
2739
+ "name": "threshold";
2740
+ "type": {
2741
+ "option": "u64";
2742
+ };
1986
2743
  },
1987
2744
  {
1988
- "name": "schedule";
2745
+ "name": "hntPriceOracle";
1989
2746
  "type": {
1990
- "option": "string";
2747
+ "option": "pubkey";
1991
2748
  };
1992
2749
  },
1993
2750
  {
1994
- "name": "threshold";
2751
+ "name": "hntThreshold";
2752
+ "type": {
2753
+ "option": "u64";
2754
+ };
2755
+ },
2756
+ {
2757
+ "name": "dcaMint";
2758
+ "type": {
2759
+ "option": "pubkey";
2760
+ };
2761
+ },
2762
+ {
2763
+ "name": "dcaSwapAmount";
2764
+ "type": {
2765
+ "option": "u64";
2766
+ };
2767
+ },
2768
+ {
2769
+ "name": "dcaIntervalSeconds";
1995
2770
  "type": {
1996
2771
  "option": "u64";
1997
2772
  };
2773
+ },
2774
+ {
2775
+ "name": "dcaInputPriceOracle";
2776
+ "type": {
2777
+ "option": "pubkey";
2778
+ };
2779
+ }
2780
+ ];
2781
+ };
2782
+ },
2783
+ {
2784
+ "name": "verificationLevel";
2785
+ "docs": [
2786
+ "Pyth price updates are bridged to all blockchains via Wormhole.",
2787
+ "Using the price updates on another chain requires verifying the signatures of the Wormhole guardians.",
2788
+ "The usual process is to check the signatures for two thirds of the total number of guardians, but this can be cumbersome on Solana because of the transaction size limits,",
2789
+ "so we also allow for partial verification.",
2790
+ "",
2791
+ "This enum represents how much a price update has been verified:",
2792
+ "- If `Full`, we have verified the signatures for two thirds of the current guardians.",
2793
+ "- If `Partial`, only `num_signatures` guardian signatures have been checked.",
2794
+ "",
2795
+ "# Warning",
2796
+ "Using partially verified price updates is dangerous, as it lowers the threshold of guardians that need to collude to produce a malicious price update."
2797
+ ];
2798
+ "type": {
2799
+ "kind": "enum";
2800
+ "variants": [
2801
+ {
2802
+ "name": "partial";
2803
+ "fields": [
2804
+ {
2805
+ "name": "numSignatures";
2806
+ "type": "u8";
2807
+ }
2808
+ ];
2809
+ },
2810
+ {
2811
+ "name": "full";
1998
2812
  }
1999
2813
  ];
2000
2814
  };