@helium/helium-admin-cli 0.11.17 → 0.11.19
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/lib/cjs/close-council-fanout.js +142 -0
- package/lib/cjs/close-council-fanout.js.map +1 -0
- package/lib/cjs/create-council-fanout.js +69 -14
- package/lib/cjs/create-council-fanout.js.map +1 -1
- package/lib/cjs/end-epoch.js +34 -2
- package/lib/cjs/end-epoch.js.map +1 -1
- package/lib/cjs/hip149.js +13 -0
- package/lib/cjs/hip149.js.map +1 -0
- package/lib/cjs/mini-fanout-utils.js +57 -0
- package/lib/cjs/mini-fanout-utils.js.map +1 -0
- package/lib/cjs/queue-hotspot-claims.js +2 -6
- package/lib/cjs/queue-hotspot-claims.js.map +1 -1
- package/lib/cjs/queue-position-claims.js +1 -3
- package/lib/cjs/queue-position-claims.js.map +1 -1
- package/lib/cjs/requeue-hotspot-claims.js +1 -3
- package/lib/cjs/requeue-hotspot-claims.js.map +1 -1
- package/lib/cjs/reschedule-all-mini-fanouts.js +38 -14
- package/lib/cjs/reschedule-all-mini-fanouts.js.map +1 -1
- package/lib/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/cjs/update-council-fanout.js +177 -0
- package/lib/cjs/update-council-fanout.js.map +1 -0
- package/lib/cjs/update-data-credits.js +12 -12
- package/lib/esm/src/close-council-fanout.js +92 -0
- package/lib/esm/src/close-council-fanout.js.map +1 -0
- package/lib/esm/src/create-council-fanout.js +69 -14
- package/lib/esm/src/create-council-fanout.js.map +1 -1
- package/lib/esm/src/end-epoch.js +35 -3
- package/lib/esm/src/end-epoch.js.map +1 -1
- package/lib/esm/src/hip149.js +10 -0
- package/lib/esm/src/hip149.js.map +1 -0
- package/lib/esm/src/mini-fanout-utils.js +40 -0
- package/lib/esm/src/mini-fanout-utils.js.map +1 -0
- package/lib/esm/src/queue-hotspot-claims.js +2 -6
- package/lib/esm/src/queue-hotspot-claims.js.map +1 -1
- package/lib/esm/src/queue-position-claims.js +1 -3
- package/lib/esm/src/queue-position-claims.js.map +1 -1
- package/lib/esm/src/requeue-hotspot-claims.js +1 -3
- package/lib/esm/src/requeue-hotspot-claims.js.map +1 -1
- package/lib/esm/src/reschedule-all-mini-fanouts.js +39 -15
- package/lib/esm/src/reschedule-all-mini-fanouts.js.map +1 -1
- package/lib/esm/src/update-council-fanout.js +126 -0
- package/lib/esm/src/update-council-fanout.js.map +1 -0
- package/lib/esm/src/update-data-credits.js +18 -18
- package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/src/close-council-fanout.d.ts +2 -0
- package/lib/types/src/close-council-fanout.d.ts.map +1 -0
- package/lib/types/src/create-council-fanout.d.ts.map +1 -1
- package/lib/types/src/end-epoch.d.ts.map +1 -1
- package/lib/types/src/hip149.d.ts +4 -0
- package/lib/types/src/hip149.d.ts.map +1 -0
- package/lib/types/src/mini-fanout-utils.d.ts +25 -0
- package/lib/types/src/mini-fanout-utils.d.ts.map +1 -0
- package/lib/types/src/queue-hotspot-claims.d.ts.map +1 -1
- package/lib/types/src/queue-position-claims.d.ts.map +1 -1
- package/lib/types/src/requeue-hotspot-claims.d.ts.map +1 -1
- package/lib/types/src/reschedule-all-mini-fanouts.d.ts.map +1 -1
- package/lib/types/src/update-council-fanout.d.ts +2 -0
- package/lib/types/src/update-council-fanout.d.ts.map +1 -0
- package/package.json +22 -22
|
@@ -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":"
|
|
1
|
+
{"version":3,"file":"create-council-fanout.d.ts","sourceRoot":"","sources":["../../../src/create-council-fanout.ts"],"names":[],"mappings":"AA2CA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAiMjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"end-epoch.d.ts","sourceRoot":"","sources":["../../../src/end-epoch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"end-epoch.d.ts","sourceRoot":"","sources":["../../../src/end-epoch.ts"],"names":[],"mappings":"AA8DA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA8XjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hip149.d.ts","sourceRoot":"","sources":["../../../src/hip149.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ5C,eAAO,MAAM,8BAA8B,WAE1C,CAAC;AAEF,eAAO,MAAM,4BAA4B,WAExC,CAAC"}
|
|
@@ -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":"queue-hotspot-claims.d.ts","sourceRoot":"","sources":["../../../src/queue-hotspot-claims.ts"],"names":[],"mappings":"AAoBA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,
|
|
1
|
+
{"version":3,"file":"queue-hotspot-claims.d.ts","sourceRoot":"","sources":["../../../src/queue-hotspot-claims.ts"],"names":[],"mappings":"AAoBA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAkFjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue-position-claims.d.ts","sourceRoot":"","sources":["../../../src/queue-position-claims.ts"],"names":[],"mappings":"AA4BA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,
|
|
1
|
+
{"version":3,"file":"queue-position-claims.d.ts","sourceRoot":"","sources":["../../../src/queue-position-claims.ts"],"names":[],"mappings":"AA4BA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAkIjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requeue-hotspot-claims.d.ts","sourceRoot":"","sources":["../../../src/requeue-hotspot-claims.ts"],"names":[],"mappings":"AAoBA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,
|
|
1
|
+
{"version":3,"file":"requeue-hotspot-claims.d.ts","sourceRoot":"","sources":["../../../src/requeue-hotspot-claims.ts"],"names":[],"mappings":"AAoBA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAgEjD"}
|
|
@@ -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,
|
|
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 @@
|
|
|
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.
|
|
8
|
+
"version": "0.11.19",
|
|
9
9
|
"description": "CLI to bootstrap the network",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -52,27 +52,27 @@
|
|
|
52
52
|
"h3-js": "^4.1.0",
|
|
53
53
|
"yargs": "^17.7.1",
|
|
54
54
|
"@helium/account-fetch-cache": "^0.11.16",
|
|
55
|
-
"@helium/circuit-breaker-sdk": "^0.11.
|
|
56
|
-
"@helium/data-credits-sdk": "^0.11.
|
|
57
|
-
"@helium/dc-auto-top-sdk": "^0.11.
|
|
58
|
-
"@helium/distributor-oracle": "^0.11.
|
|
59
|
-
"@helium/fanout-sdk": "^0.11.
|
|
60
|
-
"@helium/helium-entity-manager-sdk": "^0.11.
|
|
61
|
-
"@helium/
|
|
62
|
-
"@helium/
|
|
63
|
-
"@helium/
|
|
64
|
-
"@helium/
|
|
65
|
-
"@helium/lazy-
|
|
66
|
-
"@helium/
|
|
67
|
-
"@helium/
|
|
68
|
-
"@helium/mobile-entity-manager-sdk": "^0.11.
|
|
69
|
-
"@helium/no-emit-sdk": "^0.11.
|
|
70
|
-
"@helium/
|
|
71
|
-
"@helium/
|
|
72
|
-
"@helium/
|
|
73
|
-
"@helium/
|
|
74
|
-
"@helium/
|
|
75
|
-
"@helium/voter-stake-registry-sdk": "^0.
|
|
55
|
+
"@helium/circuit-breaker-sdk": "^0.11.17",
|
|
56
|
+
"@helium/data-credits-sdk": "^0.11.17",
|
|
57
|
+
"@helium/dc-auto-top-sdk": "^0.11.17",
|
|
58
|
+
"@helium/distributor-oracle": "^0.11.17",
|
|
59
|
+
"@helium/fanout-sdk": "^0.11.17",
|
|
60
|
+
"@helium/helium-entity-manager-sdk": "^0.11.17",
|
|
61
|
+
"@helium/helium-sub-daos-sdk": "^0.11.18",
|
|
62
|
+
"@helium/hexboosting-sdk": "^0.11.17",
|
|
63
|
+
"@helium/hpl-crons-sdk": "^0.11.18",
|
|
64
|
+
"@helium/idls": "^0.11.18",
|
|
65
|
+
"@helium/lazy-distributor-sdk": "^0.11.17",
|
|
66
|
+
"@helium/lazy-transactions-sdk": "^0.11.17",
|
|
67
|
+
"@helium/mini-fanout-sdk": "^0.11.17",
|
|
68
|
+
"@helium/mobile-entity-manager-sdk": "^0.11.17",
|
|
69
|
+
"@helium/no-emit-sdk": "^0.11.17",
|
|
70
|
+
"@helium/price-oracle-sdk": "^0.11.17",
|
|
71
|
+
"@helium/rewards-oracle-sdk": "^0.11.17",
|
|
72
|
+
"@helium/spl-utils": "^0.12.0",
|
|
73
|
+
"@helium/treasury-management-sdk": "^0.11.17",
|
|
74
|
+
"@helium/tuktuk-dca-sdk": "^0.11.17",
|
|
75
|
+
"@helium/voter-stake-registry-sdk": "^0.12.1"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@types/yargs": "^17.0.24",
|