@helium/helium-admin-cli 0.11.17 → 0.11.18

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 (33) hide show
  1. package/lib/cjs/close-council-fanout.js +142 -0
  2. package/lib/cjs/close-council-fanout.js.map +1 -0
  3. package/lib/cjs/create-council-fanout.js +25 -7
  4. package/lib/cjs/create-council-fanout.js.map +1 -1
  5. package/lib/cjs/mini-fanout-utils.js +57 -0
  6. package/lib/cjs/mini-fanout-utils.js.map +1 -0
  7. package/lib/cjs/reschedule-all-mini-fanouts.js +38 -14
  8. package/lib/cjs/reschedule-all-mini-fanouts.js.map +1 -1
  9. package/lib/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  10. package/lib/cjs/update-council-fanout.js +177 -0
  11. package/lib/cjs/update-council-fanout.js.map +1 -0
  12. package/lib/cjs/update-data-credits.js +12 -12
  13. package/lib/esm/src/close-council-fanout.js +92 -0
  14. package/lib/esm/src/close-council-fanout.js.map +1 -0
  15. package/lib/esm/src/create-council-fanout.js +25 -7
  16. package/lib/esm/src/create-council-fanout.js.map +1 -1
  17. package/lib/esm/src/mini-fanout-utils.js +40 -0
  18. package/lib/esm/src/mini-fanout-utils.js.map +1 -0
  19. package/lib/esm/src/reschedule-all-mini-fanouts.js +39 -15
  20. package/lib/esm/src/reschedule-all-mini-fanouts.js.map +1 -1
  21. package/lib/esm/src/update-council-fanout.js +126 -0
  22. package/lib/esm/src/update-council-fanout.js.map +1 -0
  23. package/lib/esm/src/update-data-credits.js +18 -18
  24. package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
  25. package/lib/types/src/close-council-fanout.d.ts +2 -0
  26. package/lib/types/src/close-council-fanout.d.ts.map +1 -0
  27. package/lib/types/src/create-council-fanout.d.ts.map +1 -1
  28. package/lib/types/src/mini-fanout-utils.d.ts +25 -0
  29. package/lib/types/src/mini-fanout-utils.d.ts.map +1 -0
  30. package/lib/types/src/reschedule-all-mini-fanouts.d.ts.map +1 -1
  31. package/lib/types/src/update-council-fanout.d.ts +2 -0
  32. package/lib/types/src/update-council-fanout.d.ts.map +1 -0
  33. package/package.json +8 -8
@@ -0,0 +1,2 @@
1
+ export declare function run(args?: any): Promise<void>;
2
+ //# sourceMappingURL=close-council-fanout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"close-council-fanout.d.ts","sourceRoot":"","sources":["../../../src/close-council-fanout.ts"],"names":[],"mappings":"AAkCA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA2EjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-council-fanout.d.ts","sourceRoot":"","sources":["../../../src/create-council-fanout.ts"],"names":[],"mappings":"AAoCA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA0IjD"}
1
+ {"version":3,"file":"create-council-fanout.d.ts","sourceRoot":"","sources":["../../../src/create-council-fanout.ts"],"names":[],"mappings":"AAuCA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA4JjD"}
@@ -0,0 +1,25 @@
1
+ import { PublicKey } from "@solana/web3.js";
2
+ /**
3
+ * Allocate a fresh (task, preTask) id/pubkey pair from the given tuktuk task
4
+ * queue, for scheduling a mini-fanout's next distribution.
5
+ */
6
+ export declare function allocateNextTasks(tuktukProgram: any, taskQueue: PublicKey): Promise<{
7
+ taskId: number;
8
+ preTaskId: number;
9
+ task: PublicKey;
10
+ preTask: PublicKey;
11
+ }>;
12
+ /**
13
+ * The tuktuk program's dequeue_task_v0 requires the passed-in rent_refund
14
+ * account to match the task's own `rent_refund` field exactly (it's a
15
+ * `has_one` constraint), which is set at queue time to whoever paid to queue
16
+ * it — not necessarily the wallet running this script. Resolve it from the
17
+ * on-chain task rather than assuming it's the current payer.
18
+ *
19
+ * A mini-fanout with nothing currently scheduled points `next_task` /
20
+ * `next_pre_task` back at itself (or at the program id, legacy); in that case
21
+ * there's nothing to dequeue, so the returned value is unused by the caller
22
+ * and any pubkey is safe to pass through.
23
+ */
24
+ export declare function resolveTaskRentRefund(tuktukProgram: any, taskPubkey: PublicKey, miniFanoutPubkey: PublicKey, miniFanoutProgramId: PublicKey, fallback: PublicKey): Promise<PublicKey>;
25
+ //# sourceMappingURL=mini-fanout-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mini-fanout-utils.d.ts","sourceRoot":"","sources":["../../../src/mini-fanout-utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAO5C;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,aAAa,EAAE,GAAG,EAClB,SAAS,EAAE,SAAS,GACnB,OAAO,CAAC;IACT,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,SAAS,CAAC;CACpB,CAAC,CAWD;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,qBAAqB,CACzC,aAAa,EAAE,GAAG,EAClB,UAAU,EAAE,SAAS,EACrB,gBAAgB,EAAE,SAAS,EAC3B,mBAAmB,EAAE,SAAS,EAC9B,QAAQ,EAAE,SAAS,GAClB,OAAO,CAAC,SAAS,CAAC,CASpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"reschedule-all-mini-fanouts.d.ts","sourceRoot":"","sources":["../../../src/reschedule-all-mini-fanouts.ts"],"names":[],"mappings":"AAUA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA2EjD"}
1
+ {"version":3,"file":"reschedule-all-mini-fanouts.d.ts","sourceRoot":"","sources":["../../../src/reschedule-all-mini-fanouts.ts"],"names":[],"mappings":"AAUA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA6GjD"}
@@ -0,0 +1,2 @@
1
+ export declare function run(args?: any): Promise<void>;
2
+ //# sourceMappingURL=update-council-fanout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-council-fanout.d.ts","sourceRoot":"","sources":["../../../src/update-council-fanout.ts"],"names":[],"mappings":"AAsCA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA0GjD"}
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
7
7
  "license": "Apache-2.0",
8
- "version": "0.11.17",
8
+ "version": "0.11.18",
9
9
  "description": "CLI to bootstrap the network",
10
10
  "repository": {
11
11
  "type": "git",
@@ -58,21 +58,21 @@
58
58
  "@helium/distributor-oracle": "^0.11.16",
59
59
  "@helium/fanout-sdk": "^0.11.16",
60
60
  "@helium/helium-entity-manager-sdk": "^0.11.16",
61
+ "@helium/helium-sub-daos-sdk": "^0.11.17",
61
62
  "@helium/hexboosting-sdk": "^0.11.16",
62
- "@helium/helium-sub-daos-sdk": "^0.11.16",
63
- "@helium/idls": "^0.11.16",
63
+ "@helium/hpl-crons-sdk": "^0.11.17",
64
+ "@helium/idls": "^0.11.17",
64
65
  "@helium/lazy-distributor-sdk": "^0.11.16",
65
66
  "@helium/lazy-transactions-sdk": "^0.11.16",
66
67
  "@helium/mini-fanout-sdk": "^0.11.16",
67
- "@helium/hpl-crons-sdk": "^0.11.16",
68
68
  "@helium/mobile-entity-manager-sdk": "^0.11.16",
69
69
  "@helium/no-emit-sdk": "^0.11.16",
70
- "@helium/rewards-oracle-sdk": "^0.11.16",
71
- "@helium/tuktuk-dca-sdk": "^0.11.16",
72
- "@helium/treasury-management-sdk": "^0.11.16",
73
70
  "@helium/price-oracle-sdk": "^0.11.16",
71
+ "@helium/rewards-oracle-sdk": "^0.11.16",
74
72
  "@helium/spl-utils": "^0.11.17",
75
- "@helium/voter-stake-registry-sdk": "^0.11.16"
73
+ "@helium/treasury-management-sdk": "^0.11.16",
74
+ "@helium/tuktuk-dca-sdk": "^0.11.16",
75
+ "@helium/voter-stake-registry-sdk": "^0.12.0"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@types/yargs": "^17.0.24",