@helium/idls 0.9.7 → 0.9.9-next.10

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.
Files changed (55) hide show
  1. package/lib/cjs/helium_entity_manager.js +12 -12
  2. package/lib/cjs/helium_entity_manager.js.map +1 -1
  3. package/lib/cjs/helium_sub_daos.js +171 -1
  4. package/lib/cjs/helium_sub_daos.js.map +1 -1
  5. package/lib/cjs/mobile_entity_manager.js +358 -1
  6. package/lib/cjs/mobile_entity_manager.js.map +1 -1
  7. package/lib/cjs/{iot_routing_manager.js → position_voting_rewards.js} +504 -440
  8. package/lib/cjs/position_voting_rewards.js.map +1 -0
  9. package/lib/cjs/rewards_oracle.js +1 -1
  10. package/lib/cjs/voter_stake_registry.js +100 -1
  11. package/lib/cjs/voter_stake_registry.js.map +1 -1
  12. package/lib/esm/helium_entity_manager.js +12 -12
  13. package/lib/esm/helium_entity_manager.js.map +1 -1
  14. package/lib/esm/helium_sub_daos.js +171 -1
  15. package/lib/esm/helium_sub_daos.js.map +1 -1
  16. package/lib/esm/mobile_entity_manager.js +358 -1
  17. package/lib/esm/mobile_entity_manager.js.map +1 -1
  18. package/lib/esm/{iot_routing_manager.js → position_voting_rewards.js} +504 -440
  19. package/lib/esm/position_voting_rewards.js.map +1 -0
  20. package/lib/esm/rewards_oracle.js +1 -1
  21. package/lib/esm/voter_stake_registry.js +100 -1
  22. package/lib/esm/voter_stake_registry.js.map +1 -1
  23. package/lib/types/helium_entity_manager.d.ts +12 -12
  24. package/lib/types/helium_entity_manager.d.ts.map +1 -1
  25. package/lib/types/helium_sub_daos.d.ts +171 -1
  26. package/lib/types/helium_sub_daos.d.ts.map +1 -1
  27. package/lib/types/mobile_entity_manager.d.ts +358 -1
  28. package/lib/types/mobile_entity_manager.d.ts.map +1 -1
  29. package/lib/types/{iot_routing_manager.d.ts → position_voting_rewards.d.ts} +489 -425
  30. package/lib/types/position_voting_rewards.d.ts.map +1 -0
  31. package/lib/types/rewards_oracle.d.ts +1 -1
  32. package/lib/types/voter_stake_registry.d.ts +100 -1
  33. package/lib/types/voter_stake_registry.d.ts.map +1 -1
  34. package/package.json +2 -2
  35. package/lib/cjs/conversion_escrow.js +0 -363
  36. package/lib/cjs/conversion_escrow.js.map +0 -1
  37. package/lib/cjs/dc_conversion_escrow.js +0 -280
  38. package/lib/cjs/dc_conversion_escrow.js.map +0 -1
  39. package/lib/cjs/dc_convesion_escrow.js +0 -269
  40. package/lib/cjs/dc_convesion_escrow.js.map +0 -1
  41. package/lib/cjs/iot_routing_manager.js.map +0 -1
  42. package/lib/esm/conversion_escrow.js +0 -360
  43. package/lib/esm/conversion_escrow.js.map +0 -1
  44. package/lib/esm/dc_conversion_escrow.js +0 -277
  45. package/lib/esm/dc_conversion_escrow.js.map +0 -1
  46. package/lib/esm/dc_convesion_escrow.js +0 -266
  47. package/lib/esm/dc_convesion_escrow.js.map +0 -1
  48. package/lib/esm/iot_routing_manager.js.map +0 -1
  49. package/lib/types/conversion_escrow.d.ts +0 -361
  50. package/lib/types/conversion_escrow.d.ts.map +0 -1
  51. package/lib/types/dc_conversion_escrow.d.ts +0 -278
  52. package/lib/types/dc_conversion_escrow.d.ts.map +0 -1
  53. package/lib/types/dc_convesion_escrow.d.ts +0 -267
  54. package/lib/types/dc_convesion_escrow.d.ts.map +0 -1
  55. package/lib/types/iot_routing_manager.d.ts.map +0 -1
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IDL = void 0;
4
4
  exports.IDL = {
5
- "version": "0.1.2",
6
- "name": "iot_routing_manager",
5
+ "version": "0.0.1",
6
+ "name": "position_voting_rewards",
7
7
  "instructions": [
8
8
  {
9
- "name": "initializeDevaddrConstraintV0",
9
+ "name": "initializeVetokenTrackerV0",
10
10
  "accounts": [
11
11
  {
12
12
  "name": "payer",
@@ -14,58 +14,50 @@ exports.IDL = {
14
14
  "isSigner": true
15
15
  },
16
16
  {
17
- "name": "authority",
18
- "isMut": false,
19
- "isSigner": true
20
- },
21
- {
22
- "name": "netId",
23
- "isMut": false,
17
+ "name": "vetokenTracker",
18
+ "isMut": true,
24
19
  "isSigner": false,
25
- "relations": [
26
- "authority"
27
- ]
20
+ "pda": {
21
+ "seeds": [
22
+ {
23
+ "kind": "const",
24
+ "type": "string",
25
+ "value": "vetoken_tracker"
26
+ },
27
+ {
28
+ "kind": "account",
29
+ "type": "publicKey",
30
+ "account": "Registrar",
31
+ "path": "registrar"
32
+ }
33
+ ]
34
+ }
28
35
  },
29
36
  {
30
- "name": "routingManager",
37
+ "name": "proposalNamespace",
31
38
  "isMut": false,
32
- "isSigner": false,
33
- "relations": [
34
- "iot_mint",
35
- "iot_price_oracle"
36
- ]
39
+ "isSigner": false
37
40
  },
38
41
  {
39
- "name": "organization",
42
+ "name": "registrar",
40
43
  "isMut": false,
41
44
  "isSigner": false,
42
45
  "relations": [
43
- "net_id",
44
- "routing_manager"
46
+ "realm_authority"
45
47
  ]
46
48
  },
47
49
  {
48
- "name": "iotMint",
49
- "isMut": true,
50
- "isSigner": false
51
- },
52
- {
53
- "name": "payerIotAccount",
54
- "isMut": true,
55
- "isSigner": false
56
- },
57
- {
58
- "name": "iotPriceOracle",
50
+ "name": "rewardsMint",
59
51
  "isMut": false,
60
52
  "isSigner": false
61
53
  },
62
54
  {
63
- "name": "devaddrConstraint",
64
- "isMut": true,
65
- "isSigner": false
55
+ "name": "realmAuthority",
56
+ "isMut": false,
57
+ "isSigner": true
66
58
  },
67
59
  {
68
- "name": "tokenProgram",
60
+ "name": "rewardsAuthority",
69
61
  "isMut": false,
70
62
  "isSigner": false
71
63
  },
@@ -79,13 +71,13 @@ exports.IDL = {
79
71
  {
80
72
  "name": "args",
81
73
  "type": {
82
- "defined": "InitializeDevaddrConstraintArgsV0"
74
+ "defined": "InitializeVeTokenTrackerArgsV0"
83
75
  }
84
76
  }
85
77
  ]
86
78
  },
87
79
  {
88
- "name": "initializeNetIdV0",
80
+ "name": "updateVetokenTrackerV0",
89
81
  "accounts": [
90
82
  {
91
83
  "name": "payer",
@@ -93,27 +85,25 @@ exports.IDL = {
93
85
  "isSigner": true
94
86
  },
95
87
  {
96
- "name": "netIdAuthority",
97
- "isMut": false,
98
- "isSigner": true
99
- },
100
- {
101
- "name": "authority",
102
- "isMut": false,
103
- "isSigner": false
88
+ "name": "vetokenTracker",
89
+ "isMut": true,
90
+ "isSigner": false,
91
+ "relations": [
92
+ "registrar"
93
+ ]
104
94
  },
105
95
  {
106
- "name": "routingManager",
96
+ "name": "registrar",
107
97
  "isMut": false,
108
98
  "isSigner": false,
109
99
  "relations": [
110
- "net_id_authority"
100
+ "realm_authority"
111
101
  ]
112
102
  },
113
103
  {
114
- "name": "netId",
115
- "isMut": true,
116
- "isSigner": false
104
+ "name": "realmAuthority",
105
+ "isMut": false,
106
+ "isSigner": true
117
107
  },
118
108
  {
119
109
  "name": "systemProgram",
@@ -125,13 +115,13 @@ exports.IDL = {
125
115
  {
126
116
  "name": "args",
127
117
  "type": {
128
- "defined": "InitializeNetIdArgsV0"
118
+ "defined": "UpdateVeTokenTrackerArgsV0"
129
119
  }
130
120
  }
131
121
  ]
132
122
  },
133
123
  {
134
- "name": "initializeOrganizationV0",
124
+ "name": "enrollV0",
135
125
  "accounts": [
136
126
  {
137
127
  "name": "payer",
@@ -139,61 +129,79 @@ exports.IDL = {
139
129
  "isSigner": true
140
130
  },
141
131
  {
142
- "name": "programApproval",
143
- "isMut": false,
144
- "isSigner": false
145
- },
146
- {
147
- "name": "routingManager",
148
- "isMut": false,
132
+ "name": "position",
133
+ "isMut": true,
149
134
  "isSigner": false,
135
+ "pda": {
136
+ "seeds": [
137
+ {
138
+ "kind": "const",
139
+ "type": "string",
140
+ "value": "position"
141
+ },
142
+ {
143
+ "kind": "account",
144
+ "type": "publicKey",
145
+ "account": "Mint",
146
+ "path": "mint"
147
+ }
148
+ ],
149
+ "programId": {
150
+ "kind": "account",
151
+ "type": "publicKey",
152
+ "path": "vsr_program"
153
+ }
154
+ },
150
155
  "relations": [
151
- "collection",
152
- "sub_dao",
153
- "iot_mint",
154
- "iot_price_oracle"
156
+ "mint",
157
+ "registrar"
155
158
  ]
156
159
  },
157
160
  {
158
- "name": "netId",
161
+ "name": "mint",
159
162
  "isMut": false,
160
- "isSigner": false,
161
- "relations": [
162
- "routing_manager"
163
- ]
163
+ "isSigner": false
164
164
  },
165
165
  {
166
- "name": "iotMint",
167
- "isMut": true,
166
+ "name": "positionTokenAccount",
167
+ "isMut": false,
168
168
  "isSigner": false
169
169
  },
170
170
  {
171
- "name": "payerIotAccount",
171
+ "name": "positionAuthority",
172
172
  "isMut": true,
173
- "isSigner": false
173
+ "isSigner": true
174
174
  },
175
175
  {
176
- "name": "iotPriceOracle",
176
+ "name": "registrar",
177
177
  "isMut": false,
178
178
  "isSigner": false
179
179
  },
180
180
  {
181
- "name": "authority",
182
- "isMut": false,
181
+ "name": "vetokenTracker",
182
+ "isMut": true,
183
+ "isSigner": false,
184
+ "relations": [
185
+ "registrar"
186
+ ]
187
+ },
188
+ {
189
+ "name": "vsrEpochInfo",
190
+ "isMut": true,
183
191
  "isSigner": false
184
192
  },
185
193
  {
186
- "name": "organization",
194
+ "name": "closingTimeVsrEpochInfo",
187
195
  "isMut": true,
188
196
  "isSigner": false
189
197
  },
190
198
  {
191
- "name": "collection",
192
- "isMut": false,
199
+ "name": "genesisEndVsrEpochInfo",
200
+ "isMut": true,
193
201
  "isSigner": false
194
202
  },
195
203
  {
196
- "name": "collectionMetadata",
204
+ "name": "enrolledPosition",
197
205
  "isMut": true,
198
206
  "isSigner": false,
199
207
  "pda": {
@@ -201,64 +209,44 @@ exports.IDL = {
201
209
  {
202
210
  "kind": "const",
203
211
  "type": "string",
204
- "value": "metadata"
212
+ "value": "enrolled_position"
205
213
  },
206
214
  {
207
215
  "kind": "account",
208
216
  "type": "publicKey",
209
- "path": "token_metadata_program"
210
- },
211
- {
212
- "kind": "account",
213
- "type": "publicKey",
214
- "account": "Mint",
215
- "path": "collection"
217
+ "account": "PositionV0",
218
+ "path": "position"
216
219
  }
217
- ],
218
- "programId": {
219
- "kind": "account",
220
- "type": "publicKey",
221
- "path": "token_metadata_program"
222
- }
220
+ ]
223
221
  }
224
222
  },
225
223
  {
226
- "name": "collectionMasterEdition",
224
+ "name": "vsrProgram",
225
+ "isMut": false,
226
+ "isSigner": false
227
+ },
228
+ {
229
+ "name": "systemProgram",
230
+ "isMut": false,
231
+ "isSigner": false
232
+ }
233
+ ],
234
+ "args": []
235
+ },
236
+ {
237
+ "name": "claimRewardsV0",
238
+ "accounts": [
239
+ {
240
+ "name": "vetokenTracker",
227
241
  "isMut": false,
228
242
  "isSigner": false,
229
- "pda": {
230
- "seeds": [
231
- {
232
- "kind": "const",
233
- "type": "string",
234
- "value": "metadata"
235
- },
236
- {
237
- "kind": "account",
238
- "type": "publicKey",
239
- "path": "token_metadata_program"
240
- },
241
- {
242
- "kind": "account",
243
- "type": "publicKey",
244
- "account": "Mint",
245
- "path": "collection"
246
- },
247
- {
248
- "kind": "const",
249
- "type": "string",
250
- "value": "edition"
251
- }
252
- ],
253
- "programId": {
254
- "kind": "account",
255
- "type": "publicKey",
256
- "path": "token_metadata_program"
257
- }
258
- }
243
+ "relations": [
244
+ "rewards_mint",
245
+ "registrar"
246
+ ]
259
247
  },
260
248
  {
261
- "name": "entityCreator",
249
+ "name": "position",
262
250
  "isMut": false,
263
251
  "isSigner": false,
264
252
  "pda": {
@@ -266,71 +254,76 @@ exports.IDL = {
266
254
  {
267
255
  "kind": "const",
268
256
  "type": "string",
269
- "value": "entity_creator"
257
+ "value": "position"
270
258
  },
271
259
  {
272
260
  "kind": "account",
273
261
  "type": "publicKey",
274
- "account": "DaoV0",
275
- "path": "dao"
262
+ "account": "Mint",
263
+ "path": "mint"
276
264
  }
277
265
  ],
278
266
  "programId": {
279
267
  "kind": "account",
280
268
  "type": "publicKey",
281
- "path": "helium_entity_manager_program"
269
+ "path": "vsr_program"
282
270
  }
283
- }
271
+ },
272
+ "relations": [
273
+ "mint",
274
+ "registrar"
275
+ ]
284
276
  },
285
277
  {
286
- "name": "dao",
278
+ "name": "mint",
287
279
  "isMut": false,
288
280
  "isSigner": false
289
281
  },
290
282
  {
291
- "name": "subDao",
283
+ "name": "positionTokenAccount",
292
284
  "isMut": false,
293
- "isSigner": false,
294
- "relations": [
295
- "dao"
296
- ]
285
+ "isSigner": false
297
286
  },
298
287
  {
299
- "name": "keyToAsset",
288
+ "name": "positionAuthority",
300
289
  "isMut": true,
290
+ "isSigner": true
291
+ },
292
+ {
293
+ "name": "registrar",
294
+ "isMut": false,
301
295
  "isSigner": false
302
296
  },
303
297
  {
304
- "name": "treeAuthority",
298
+ "name": "enrolledPosition",
305
299
  "isMut": true,
306
300
  "isSigner": false,
307
301
  "pda": {
308
302
  "seeds": [
303
+ {
304
+ "kind": "const",
305
+ "type": "string",
306
+ "value": "enrolled_position"
307
+ },
309
308
  {
310
309
  "kind": "account",
311
310
  "type": "publicKey",
312
- "path": "merkle_tree"
311
+ "account": "PositionV0",
312
+ "path": "position"
313
313
  }
314
- ],
315
- "programId": {
316
- "kind": "account",
317
- "type": "publicKey",
318
- "path": "bubblegum_program"
319
- }
320
- }
321
- },
322
- {
323
- "name": "recipient",
324
- "isMut": false,
325
- "isSigner": false
314
+ ]
315
+ },
316
+ "relations": [
317
+ "vetoken_tracker"
318
+ ]
326
319
  },
327
320
  {
328
- "name": "merkleTree",
321
+ "name": "rewardsMint",
329
322
  "isMut": true,
330
323
  "isSigner": false
331
324
  },
332
325
  {
333
- "name": "bubblegumSigner",
326
+ "name": "vsrEpochInfo",
334
327
  "isMut": false,
335
328
  "isSigner": false,
336
329
  "pda": {
@@ -338,41 +331,36 @@ exports.IDL = {
338
331
  {
339
332
  "kind": "const",
340
333
  "type": "string",
341
- "value": "collection_cpi"
334
+ "value": "vsr_epoch_info"
335
+ },
336
+ {
337
+ "kind": "account",
338
+ "type": "publicKey",
339
+ "account": "VeTokenTrackerV0",
340
+ "path": "vetoken_tracker"
341
+ },
342
+ {
343
+ "kind": "arg",
344
+ "type": {
345
+ "defined": "ClaimRewardsArgsV0"
346
+ },
347
+ "path": "args.epoch"
342
348
  }
343
- ],
344
- "programId": {
345
- "kind": "account",
346
- "type": "publicKey",
347
- "path": "bubblegum_program"
348
- }
349
+ ]
349
350
  }
350
351
  },
351
352
  {
352
- "name": "sharedMerkle",
353
+ "name": "rewardsPool",
353
354
  "isMut": true,
354
- "isSigner": false,
355
- "relations": [
356
- "merkle_tree"
357
- ]
358
- },
359
- {
360
- "name": "tokenMetadataProgram",
361
- "isMut": false,
362
- "isSigner": false
363
- },
364
- {
365
- "name": "logWrapper",
366
- "isMut": false,
367
355
  "isSigner": false
368
356
  },
369
357
  {
370
- "name": "bubblegumProgram",
371
- "isMut": false,
358
+ "name": "enrolledAta",
359
+ "isMut": true,
372
360
  "isSigner": false
373
361
  },
374
362
  {
375
- "name": "compressionProgram",
363
+ "name": "vsrProgram",
376
364
  "isMut": false,
377
365
  "isSigner": false
378
366
  },
@@ -382,7 +370,7 @@ exports.IDL = {
382
370
  "isSigner": false
383
371
  },
384
372
  {
385
- "name": "heliumEntityManagerProgram",
373
+ "name": "associatedTokenProgram",
386
374
  "isMut": false,
387
375
  "isSigner": false
388
376
  },
@@ -396,36 +384,46 @@ exports.IDL = {
396
384
  {
397
385
  "name": "args",
398
386
  "type": {
399
- "defined": "InitializeOrganizationArgsV0"
387
+ "defined": "ClaimRewardsArgsV0"
400
388
  }
401
389
  }
402
390
  ]
403
391
  },
404
392
  {
405
- "name": "initializeRoutingManagerV0",
393
+ "name": "rewardForEpochV0",
406
394
  "accounts": [
407
395
  {
408
- "name": "payer",
409
- "isMut": true,
396
+ "name": "rewardsAuthority",
397
+ "isMut": false,
410
398
  "isSigner": true
411
399
  },
412
400
  {
413
- "name": "authority",
401
+ "name": "rewardsPayer",
414
402
  "isMut": false,
415
403
  "isSigner": true
416
404
  },
417
405
  {
418
- "name": "updateAuthority",
406
+ "name": "rentPayer",
407
+ "isMut": true,
408
+ "isSigner": true
409
+ },
410
+ {
411
+ "name": "vetokenTracker",
419
412
  "isMut": false,
420
- "isSigner": false
413
+ "isSigner": false,
414
+ "relations": [
415
+ "rewards_authority",
416
+ "rewards_mint",
417
+ "registrar"
418
+ ]
421
419
  },
422
420
  {
423
- "name": "netIdAuthority",
421
+ "name": "registrar",
424
422
  "isMut": false,
425
423
  "isSigner": false
426
424
  },
427
425
  {
428
- "name": "routingManager",
426
+ "name": "vsrEpochInfo",
429
427
  "isMut": true,
430
428
  "isSigner": false,
431
429
  "pda": {
@@ -433,58 +431,79 @@ exports.IDL = {
433
431
  {
434
432
  "kind": "const",
435
433
  "type": "string",
436
- "value": "routing_manager"
434
+ "value": "vsr_epoch_info"
437
435
  },
438
436
  {
439
437
  "kind": "account",
440
438
  "type": "publicKey",
441
- "account": "SubDaoV0",
442
- "path": "sub_dao"
439
+ "account": "VeTokenTrackerV0",
440
+ "path": "vetoken_tracker"
441
+ },
442
+ {
443
+ "kind": "arg",
444
+ "type": {
445
+ "defined": "RewardForEpochArgsV0"
446
+ },
447
+ "path": "args.epoch"
443
448
  }
444
449
  ]
445
450
  }
446
451
  },
447
452
  {
448
- "name": "subDao",
453
+ "name": "rewardsMint",
454
+ "isMut": true,
455
+ "isSigner": false
456
+ },
457
+ {
458
+ "name": "rewardsPool",
459
+ "isMut": true,
460
+ "isSigner": false
461
+ },
462
+ {
463
+ "name": "payerAta",
464
+ "isMut": true,
465
+ "isSigner": false
466
+ },
467
+ {
468
+ "name": "tokenProgram",
449
469
  "isMut": false,
450
- "isSigner": false,
451
- "relations": [
452
- "authority",
453
- "dnt_mint"
454
- ]
470
+ "isSigner": false
455
471
  },
456
472
  {
457
- "name": "dntMint",
473
+ "name": "systemProgram",
458
474
  "isMut": false,
459
475
  "isSigner": false
460
476
  },
461
477
  {
462
- "name": "iotPriceOracle",
478
+ "name": "associatedTokenProgram",
463
479
  "isMut": false,
464
480
  "isSigner": false
481
+ }
482
+ ],
483
+ "args": [
484
+ {
485
+ "name": "args",
486
+ "type": {
487
+ "defined": "RewardForEpochArgsV0"
488
+ }
489
+ }
490
+ ]
491
+ },
492
+ {
493
+ "name": "unenrollV0",
494
+ "accounts": [
495
+ {
496
+ "name": "payer",
497
+ "isMut": true,
498
+ "isSigner": true
465
499
  },
466
500
  {
467
- "name": "collection",
501
+ "name": "rentRefund",
468
502
  "isMut": true,
469
- "isSigner": false,
470
- "pda": {
471
- "seeds": [
472
- {
473
- "kind": "const",
474
- "type": "string",
475
- "value": "collection"
476
- },
477
- {
478
- "kind": "account",
479
- "type": "publicKey",
480
- "account": "IotRoutingManagerV0",
481
- "path": "routing_manager"
482
- }
483
- ]
484
- }
503
+ "isSigner": false
485
504
  },
486
505
  {
487
- "name": "metadata",
506
+ "name": "position",
488
507
  "isMut": true,
489
508
  "isSigner": false,
490
509
  "pda": {
@@ -492,29 +511,56 @@ exports.IDL = {
492
511
  {
493
512
  "kind": "const",
494
513
  "type": "string",
495
- "value": "metadata"
496
- },
497
- {
498
- "kind": "account",
499
- "type": "publicKey",
500
- "path": "token_metadata_program"
514
+ "value": "position"
501
515
  },
502
516
  {
503
517
  "kind": "account",
504
518
  "type": "publicKey",
505
519
  "account": "Mint",
506
- "path": "collection"
520
+ "path": "mint"
507
521
  }
508
522
  ],
509
523
  "programId": {
510
524
  "kind": "account",
511
525
  "type": "publicKey",
512
- "path": "token_metadata_program"
526
+ "path": "vsr_program"
513
527
  }
514
- }
528
+ },
529
+ "relations": [
530
+ "mint",
531
+ "registrar"
532
+ ]
533
+ },
534
+ {
535
+ "name": "mint",
536
+ "isMut": false,
537
+ "isSigner": false
538
+ },
539
+ {
540
+ "name": "positionTokenAccount",
541
+ "isMut": false,
542
+ "isSigner": false
515
543
  },
516
544
  {
517
- "name": "masterEdition",
545
+ "name": "positionAuthority",
546
+ "isMut": true,
547
+ "isSigner": true
548
+ },
549
+ {
550
+ "name": "registrar",
551
+ "isMut": false,
552
+ "isSigner": false
553
+ },
554
+ {
555
+ "name": "vetokenTracker",
556
+ "isMut": true,
557
+ "isSigner": false,
558
+ "relations": [
559
+ "registrar"
560
+ ]
561
+ },
562
+ {
563
+ "name": "enrolledPosition",
518
564
  "isMut": true,
519
565
  "isSigner": false,
520
566
  "pda": {
@@ -522,74 +568,51 @@ exports.IDL = {
522
568
  {
523
569
  "kind": "const",
524
570
  "type": "string",
525
- "value": "metadata"
526
- },
527
- {
528
- "kind": "account",
529
- "type": "publicKey",
530
- "path": "token_metadata_program"
571
+ "value": "enrolled_position"
531
572
  },
532
573
  {
533
574
  "kind": "account",
534
575
  "type": "publicKey",
535
- "account": "Mint",
536
- "path": "collection"
537
- },
538
- {
539
- "kind": "const",
540
- "type": "string",
541
- "value": "edition"
576
+ "account": "PositionV0",
577
+ "path": "position"
542
578
  }
543
- ],
544
- "programId": {
545
- "kind": "account",
546
- "type": "publicKey",
547
- "path": "token_metadata_program"
548
- }
549
- }
579
+ ]
580
+ },
581
+ "relations": [
582
+ "vetoken_tracker",
583
+ "position"
584
+ ]
550
585
  },
551
586
  {
552
- "name": "tokenAccount",
587
+ "name": "vsrEpochInfo",
553
588
  "isMut": true,
554
589
  "isSigner": false
555
590
  },
556
591
  {
557
- "name": "tokenMetadataProgram",
558
- "isMut": false,
559
- "isSigner": false
560
- },
561
- {
562
- "name": "associatedTokenProgram",
563
- "isMut": false,
592
+ "name": "closingTimeVsrEpochInfo",
593
+ "isMut": true,
564
594
  "isSigner": false
565
595
  },
566
596
  {
567
- "name": "systemProgram",
568
- "isMut": false,
597
+ "name": "genesisEndVsrEpochInfo",
598
+ "isMut": true,
569
599
  "isSigner": false
570
600
  },
571
601
  {
572
- "name": "tokenProgram",
602
+ "name": "vsrProgram",
573
603
  "isMut": false,
574
604
  "isSigner": false
575
605
  },
576
606
  {
577
- "name": "rent",
607
+ "name": "systemProgram",
578
608
  "isMut": false,
579
609
  "isSigner": false
580
610
  }
581
611
  ],
582
- "args": [
583
- {
584
- "name": "args",
585
- "type": {
586
- "defined": "InitializeRoutingManagerArgsV0"
587
- }
588
- }
589
- ]
612
+ "args": []
590
613
  },
591
614
  {
592
- "name": "initializeOrganizationDelegateV0",
615
+ "name": "trackVoteV0",
593
616
  "accounts": [
594
617
  {
595
618
  "name": "payer",
@@ -597,108 +620,92 @@ exports.IDL = {
597
620
  "isSigner": true
598
621
  },
599
622
  {
600
- "name": "authority",
623
+ "name": "proposal",
601
624
  "isMut": false,
602
- "isSigner": true
625
+ "isSigner": false
603
626
  },
604
627
  {
605
- "name": "organization",
628
+ "name": "registrar",
606
629
  "isMut": false,
630
+ "isSigner": false
631
+ },
632
+ {
633
+ "name": "position",
634
+ "isMut": true,
607
635
  "isSigner": false,
608
636
  "relations": [
609
- "authority"
637
+ "mint",
638
+ "registrar"
610
639
  ]
611
640
  },
612
641
  {
613
- "name": "organizationDelegate",
614
- "isMut": true,
642
+ "name": "mint",
643
+ "isMut": false,
644
+ "isSigner": false
645
+ },
646
+ {
647
+ "name": "marker",
648
+ "isMut": false,
615
649
  "isSigner": false,
616
650
  "pda": {
617
651
  "seeds": [
618
652
  {
619
653
  "kind": "const",
620
654
  "type": "string",
621
- "value": "organization_delegate"
655
+ "value": "marker"
622
656
  },
623
657
  {
624
658
  "kind": "account",
625
659
  "type": "publicKey",
626
- "account": "OrganizationV0",
627
- "path": "organization"
660
+ "account": "Mint",
661
+ "path": "mint"
628
662
  },
629
663
  {
630
664
  "kind": "account",
631
665
  "type": "publicKey",
632
- "path": "delegate"
666
+ "account": "ProposalV0",
667
+ "path": "proposal"
633
668
  }
634
669
  ]
635
670
  }
636
671
  },
637
672
  {
638
- "name": "delegate",
639
- "isMut": false,
640
- "isSigner": false
641
- },
642
- {
643
- "name": "systemProgram",
644
- "isMut": false,
645
- "isSigner": false
646
- }
647
- ],
648
- "args": []
649
- },
650
- {
651
- "name": "removeOrganizationDelegateV0",
652
- "accounts": [
653
- {
654
- "name": "rentRefund",
673
+ "name": "vetokenTracker",
655
674
  "isMut": true,
656
675
  "isSigner": false
657
676
  },
658
677
  {
659
- "name": "authority",
660
- "isMut": false,
661
- "isSigner": true
662
- },
663
- {
664
- "name": "organization",
665
- "isMut": false,
678
+ "name": "enrolledPosition",
679
+ "isMut": true,
666
680
  "isSigner": false,
681
+ "pda": {
682
+ "seeds": [
683
+ {
684
+ "kind": "const",
685
+ "type": "string",
686
+ "value": "enrolled_position"
687
+ },
688
+ {
689
+ "kind": "account",
690
+ "type": "publicKey",
691
+ "account": "PositionV0",
692
+ "path": "position"
693
+ }
694
+ ]
695
+ },
667
696
  "relations": [
668
- "authority"
697
+ "vetoken_tracker"
669
698
  ]
670
699
  },
671
700
  {
672
- "name": "organizationDelegate",
701
+ "name": "vsrEpochInfo",
673
702
  "isMut": true,
674
703
  "isSigner": false
675
- }
676
- ],
677
- "args": []
678
- },
679
- {
680
- "name": "approveOrganizationV0",
681
- "accounts": [
682
- {
683
- "name": "authority",
684
- "isMut": false,
685
- "isSigner": true
686
704
  },
687
705
  {
688
- "name": "netId",
706
+ "name": "vsrProgram",
689
707
  "isMut": false,
690
- "isSigner": false,
691
- "relations": [
692
- "authority"
693
- ]
694
- },
695
- {
696
- "name": "organization",
697
- "isMut": true,
698
- "isSigner": false,
699
- "relations": [
700
- "net_id"
701
- ]
708
+ "isSigner": false
702
709
  },
703
710
  {
704
711
  "name": "systemProgram",
@@ -711,161 +718,189 @@ exports.IDL = {
711
718
  ],
712
719
  "accounts": [
713
720
  {
714
- "name": "iotRoutingManagerV0",
721
+ "name": "enrolledPositionV0",
715
722
  "type": {
716
723
  "kind": "struct",
717
724
  "fields": [
718
725
  {
719
- "name": "subDao",
720
- "type": "publicKey"
721
- },
722
- {
723
- "name": "iotMint",
726
+ "name": "vetokenTracker",
724
727
  "type": "publicKey"
725
728
  },
726
729
  {
727
- "name": "iotPriceOracle",
730
+ "name": "registrar",
728
731
  "type": "publicKey"
729
732
  },
730
733
  {
731
- "name": "updateAuthority",
734
+ "name": "position",
732
735
  "type": "publicKey"
733
736
  },
734
737
  {
735
- "name": "netIdAuthority",
736
- "type": "publicKey"
738
+ "name": "startTs",
739
+ "type": "i64"
737
740
  },
738
741
  {
739
- "name": "collection",
740
- "type": "publicKey"
742
+ "name": "isRewardsEnrolled",
743
+ "type": "bool"
741
744
  },
742
745
  {
743
- "name": "devaddrPriceUsd",
746
+ "name": "lastClaimedEpoch",
744
747
  "type": "u64"
745
748
  },
746
749
  {
747
- "name": "ouiPriceUsd",
748
- "type": "u64"
750
+ "name": "claimedEpochsBitmap",
751
+ "type": "u128"
749
752
  },
750
753
  {
751
754
  "name": "bumpSeed",
752
755
  "type": "u8"
756
+ },
757
+ {
758
+ "name": "recentProposals",
759
+ "type": {
760
+ "vec": {
761
+ "defined": "RecentProposal"
762
+ }
763
+ }
753
764
  }
754
765
  ]
755
766
  }
756
767
  },
757
768
  {
758
- "name": "organizationV0",
769
+ "name": "vsrEpochInfoV0",
759
770
  "type": {
760
771
  "kind": "struct",
761
772
  "fields": [
762
773
  {
763
- "name": "routingManager",
764
- "type": "publicKey"
774
+ "name": "epoch",
775
+ "type": "u64"
765
776
  },
766
777
  {
767
- "name": "netId",
778
+ "name": "vetokenTracker",
768
779
  "type": "publicKey"
769
780
  },
770
781
  {
771
- "name": "authority",
782
+ "name": "registrar",
772
783
  "type": "publicKey"
773
784
  },
774
785
  {
775
- "name": "oui",
776
- "type": "u64"
777
- },
778
- {
779
- "name": "escrowKey",
780
- "type": "string"
781
- },
782
- {
783
- "name": "approved",
786
+ "name": "initialized",
784
787
  "type": "bool"
785
788
  },
786
789
  {
787
- "name": "bumpSeed",
788
- "type": "u8"
789
- }
790
- ]
791
- }
792
- },
793
- {
794
- "name": "netIdV0",
795
- "type": {
796
- "kind": "struct",
797
- "fields": [
790
+ "name": "recentProposals",
791
+ "type": {
792
+ "array": [
793
+ {
794
+ "defined": "RecentProposal"
795
+ },
796
+ 4
797
+ ]
798
+ }
799
+ },
798
800
  {
799
- "name": "routingManager",
800
- "type": "publicKey"
801
+ "name": "vetokensAtEpochStart",
802
+ "type": "u128"
801
803
  },
802
804
  {
803
- "name": "id",
805
+ "name": "rewardsAmount",
806
+ "docs": [
807
+ "The number of enrollment rewards issued this epoch, so that enrollies can claim their share of the rewards"
808
+ ],
804
809
  "type": "u64"
805
810
  },
806
811
  {
807
- "name": "authority",
808
- "type": "publicKey"
812
+ "name": "vetokensInClosingPositions",
813
+ "docs": [
814
+ "The vetokens amount associated with positions that are closing this epoch. This is the amount that will be subtracted from the tracker",
815
+ "total vetokens after the epoch passes. Typically these positions close somewhere between the epoch start and end time, so we cannot rely",
816
+ "on fall rate calculations alone without knowing the exact end date of each position. Instead, just keep track of what needs to be",
817
+ "removed."
818
+ ],
819
+ "type": "u128"
809
820
  },
810
821
  {
811
- "name": "currentAddrOffset",
812
- "type": "u64"
822
+ "name": "fallRatesFromClosingPositions",
823
+ "docs": [
824
+ "The vetokens amount that is decaying per second, with 12 decimals of extra precision. Associated with positions that are closing this epoch,",
825
+ "which means they must be subtracted from the total fall rate on the tracker after this epoch passes"
826
+ ],
827
+ "type": "u128"
813
828
  },
814
829
  {
815
830
  "name": "bumpSeed",
816
831
  "type": "u8"
832
+ },
833
+ {
834
+ "name": "rewardsIssuedAt",
835
+ "docs": [
836
+ "The program only needs to know whether or not rewards were issued, however having a history of when they were issued could prove",
837
+ "useful in the future, or at least for debugging purposes"
838
+ ],
839
+ "type": {
840
+ "option": "i64"
841
+ }
817
842
  }
818
843
  ]
819
844
  }
820
845
  },
821
846
  {
822
- "name": "devAddrConstraintV0",
847
+ "name": "veTokenTrackerV0",
823
848
  "type": {
824
849
  "kind": "struct",
825
850
  "fields": [
826
851
  {
827
- "name": "routingManager",
852
+ "name": "registrar",
828
853
  "type": "publicKey"
829
854
  },
830
855
  {
831
- "name": "netId",
856
+ "name": "proposalNamespace",
857
+ "docs": [
858
+ "The org to track proposals from"
859
+ ],
832
860
  "type": "publicKey"
833
861
  },
834
862
  {
835
- "name": "organization",
863
+ "name": "rewardsMint",
836
864
  "type": "publicKey"
837
865
  },
838
866
  {
839
- "name": "startAddr",
840
- "type": "u64"
867
+ "name": "rewardsAuthority",
868
+ "type": "publicKey"
841
869
  },
842
870
  {
843
- "name": "endAddr",
844
- "type": "u64"
871
+ "name": "vetokenLastCalculatedTs",
872
+ "type": "i64"
845
873
  },
846
874
  {
847
- "name": "bumpSeed",
848
- "type": "u8"
849
- }
850
- ]
851
- }
852
- },
853
- {
854
- "name": "organizationDelegateV0",
855
- "type": {
856
- "kind": "struct",
857
- "fields": [
875
+ "name": "vetokenFallRate",
876
+ "type": "u128"
877
+ },
858
878
  {
859
- "name": "organization",
860
- "type": "publicKey"
879
+ "name": "totalVetokens",
880
+ "type": "u128"
861
881
  },
862
882
  {
863
- "name": "delegate",
864
- "type": "publicKey"
883
+ "name": "recentProposals",
884
+ "type": {
885
+ "array": [
886
+ {
887
+ "defined": "RecentProposal"
888
+ },
889
+ 4
890
+ ]
891
+ }
865
892
  },
866
893
  {
867
894
  "name": "bumpSeed",
868
895
  "type": "u8"
896
+ },
897
+ {
898
+ "name": "votingRewardsTiers",
899
+ "type": {
900
+ "vec": {
901
+ "defined": "VotingRewardsTierV0"
902
+ }
903
+ }
869
904
  }
870
905
  ]
871
906
  }
@@ -873,73 +908,94 @@ exports.IDL = {
873
908
  ],
874
909
  "types": [
875
910
  {
876
- "name": "InitializeDevaddrConstraintArgsV0",
911
+ "name": "ClaimRewardsArgsV0",
877
912
  "type": {
878
913
  "kind": "struct",
879
914
  "fields": [
880
915
  {
881
- "name": "numBlocks",
882
- "type": "u32"
883
- },
916
+ "name": "epoch",
917
+ "type": "u64"
918
+ }
919
+ ]
920
+ }
921
+ },
922
+ {
923
+ "name": "InitializeVeTokenTrackerArgsV0",
924
+ "type": {
925
+ "kind": "struct",
926
+ "fields": [
884
927
  {
885
- "name": "startAddr",
886
- "docs": [
887
- "Override the default start address for the devaddr constraint.",
888
- "WARNING: This is dangerous and can create unvalidated overlap,",
889
- "this should not happen under Helium managed net ids"
890
- ],
928
+ "name": "votingRewardsTiers",
891
929
  "type": {
892
- "option": "u64"
930
+ "vec": {
931
+ "defined": "VotingRewardsTierV0"
932
+ }
893
933
  }
894
934
  }
895
935
  ]
896
936
  }
897
937
  },
898
938
  {
899
- "name": "InitializeNetIdArgsV0",
939
+ "name": "RewardForEpochArgsV0",
900
940
  "type": {
901
941
  "kind": "struct",
902
942
  "fields": [
903
943
  {
904
- "name": "netId",
944
+ "name": "epoch",
945
+ "type": "u64"
946
+ },
947
+ {
948
+ "name": "amount",
905
949
  "type": "u64"
906
950
  }
907
951
  ]
908
952
  }
909
953
  },
910
954
  {
911
- "name": "InitializeOrganizationArgsV0",
955
+ "name": "UpdateVeTokenTrackerArgsV0",
912
956
  "type": {
913
957
  "kind": "struct",
914
958
  "fields": [
915
959
  {
916
- "name": "oui",
917
- "type": "u64"
918
- },
919
- {
920
- "name": "escrowKeyOverride",
960
+ "name": "votingRewardsTiers",
921
961
  "type": {
922
- "option": "string"
962
+ "option": {
963
+ "vec": {
964
+ "defined": "VotingRewardsTierV0"
965
+ }
966
+ }
923
967
  }
924
968
  }
925
969
  ]
926
970
  }
927
971
  },
928
972
  {
929
- "name": "InitializeRoutingManagerArgsV0",
973
+ "name": "RecentProposal",
930
974
  "type": {
931
975
  "kind": "struct",
932
976
  "fields": [
933
977
  {
934
- "name": "metadataUrl",
935
- "type": "string"
978
+ "name": "proposal",
979
+ "type": "publicKey"
936
980
  },
937
981
  {
938
- "name": "devaddrPriceUsd",
939
- "type": "u64"
982
+ "name": "ts",
983
+ "type": "i64"
984
+ }
985
+ ]
986
+ }
987
+ },
988
+ {
989
+ "name": "VotingRewardsTierV0",
990
+ "type": {
991
+ "kind": "struct",
992
+ "fields": [
993
+ {
994
+ "name": "numVetokens",
995
+ "type": "u128"
940
996
  },
941
997
  {
942
- "name": "ouiPriceUsd",
998
+ "name": "percent",
943
999
  "type": "u64"
944
1000
  }
945
1001
  ]
@@ -949,39 +1005,47 @@ exports.IDL = {
949
1005
  "errors": [
950
1006
  {
951
1007
  "code": 6000,
952
- "name": "CarrierNotApproved",
953
- "msg": "The carrier is not approved"
1008
+ "name": "MustCalculateVehntLinearly"
954
1009
  },
955
1010
  {
956
1011
  "code": 6001,
957
- "name": "InvalidStringLength",
958
- "msg": "Names, symbols and urls must be less than 32, 10, and 200 characters respectively"
1012
+ "name": "DisableRewardsEnrollment",
1013
+ "msg": "Rewards enrollment must be disabled to make changes to a position"
959
1014
  },
960
1015
  {
961
1016
  "code": 6002,
962
- "name": "TreeNotFull",
963
- "msg": "Cannot swap tree until it is close to full"
1017
+ "name": "EpochNotClosed",
1018
+ "msg": "Epoch must be closed to claim rewards"
964
1019
  },
965
1020
  {
966
1021
  "code": 6003,
967
- "name": "ArithmeticError",
968
- "msg": "Arithmetic error"
1022
+ "name": "EpochNotOver",
1023
+ "msg": "Epoch must be over to claim rewards"
969
1024
  },
970
1025
  {
971
1026
  "code": 6004,
972
- "name": "PythPriceNotFound",
973
- "msg": "Pyth price is not available"
1027
+ "name": "InvalidClaimEpoch",
1028
+ "msg": "Rewards need to be claimed in the correct epoch order"
974
1029
  },
975
1030
  {
976
1031
  "code": 6005,
977
- "name": "PythPriceFeedStale",
978
- "msg": "Pyth price is stale"
1032
+ "name": "NoEnrollEndingPosition",
1033
+ "msg": "Cannot enroll on a position ending this epoch"
979
1034
  },
980
1035
  {
981
1036
  "code": 6006,
982
- "name": "OrganizationNotApproved",
983
- "msg": "Organization is not approved"
1037
+ "name": "PositionChangeWhileEnrolled",
1038
+ "msg": "Cannot change position while enrolled"
1039
+ },
1040
+ {
1041
+ "code": 6007,
1042
+ "name": "InvalidMarker",
1043
+ "msg": "Marker has incorrect registrar"
1044
+ },
1045
+ {
1046
+ "code": 6008,
1047
+ "name": "ArithmeticError"
984
1048
  }
985
1049
  ]
986
1050
  };
987
- //# sourceMappingURL=iot_routing_manager.js.map
1051
+ //# sourceMappingURL=position_voting_rewards.js.map