@helium/helium-admin-cli 0.11.16 → 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.
- package/LICENSE +203 -0
- package/README.md +33 -23
- package/lib/cjs/add-expiration-to-delegations.js +23 -14
- package/lib/cjs/add-expiration-to-delegations.js.map +1 -1
- package/lib/cjs/add-squads-proposer.js +20 -11
- package/lib/cjs/add-squads-proposer.js.map +1 -1
- package/lib/cjs/approve-carrier.js +20 -11
- package/lib/cjs/approve-carrier.js.map +1 -1
- package/lib/cjs/approve-maker.js +20 -11
- package/lib/cjs/approve-maker.js.map +1 -1
- package/lib/cjs/approve-program.js +20 -11
- package/lib/cjs/approve-program.js.map +1 -1
- package/lib/cjs/backfill-mobile-deployment-infos.js +21 -11
- package/lib/cjs/backfill-mobile-deployment-infos.js.map +1 -1
- package/lib/cjs/backfill-recent-proposals.js +20 -11
- package/lib/cjs/backfill-recent-proposals.js.map +1 -1
- package/lib/cjs/backfill-vote-markers.js +20 -11
- package/lib/cjs/backfill-vote-markers.js.map +1 -1
- package/lib/cjs/claim-rewards.js +20 -11
- package/lib/cjs/claim-rewards.js.map +1 -1
- package/lib/cjs/close-auto-topoff.js +20 -11
- package/lib/cjs/close-auto-topoff.js.map +1 -1
- package/lib/cjs/close-buffers.js +20 -11
- package/lib/cjs/close-buffers.js.map +1 -1
- package/lib/cjs/close-canopy.js +20 -11
- package/lib/cjs/close-canopy.js.map +1 -1
- package/lib/cjs/close-council-fanout.js +142 -0
- package/lib/cjs/close-council-fanout.js.map +1 -0
- package/lib/cjs/close-expired-boosts.js +20 -11
- package/lib/cjs/close-expired-boosts.js.map +1 -1
- package/lib/cjs/close-lazy-transaction-markers.js +20 -11
- package/lib/cjs/close-lazy-transaction-markers.js.map +1 -1
- package/lib/cjs/close-legacy-auto-topoff.js +20 -11
- package/lib/cjs/close-legacy-auto-topoff.js.map +1 -1
- package/lib/cjs/correct-router-dc.js +20 -11
- package/lib/cjs/correct-router-dc.js.map +1 -1
- package/lib/cjs/count-active-hotspots.js +20 -11
- package/lib/cjs/count-active-hotspots.js.map +1 -1
- package/lib/cjs/create-and-approve-makers.js +20 -11
- package/lib/cjs/create-and-approve-makers.js.map +1 -1
- package/lib/cjs/create-boost-config.js +20 -11
- package/lib/cjs/create-boost-config.js.map +1 -1
- package/lib/cjs/create-carrier.js +20 -11
- package/lib/cjs/create-carrier.js.map +1 -1
- package/lib/cjs/create-common-lut.js +20 -11
- package/lib/cjs/create-common-lut.js.map +1 -1
- package/lib/cjs/create-council-fanout.js +206 -0
- package/lib/cjs/create-council-fanout.js.map +1 -0
- package/lib/cjs/create-dao.js +21 -12
- package/lib/cjs/create-dao.js.map +1 -1
- package/lib/cjs/create-data-only-config.js +20 -11
- package/lib/cjs/create-data-only-config.js.map +1 -1
- package/lib/cjs/create-maker.js +20 -11
- package/lib/cjs/create-maker.js.map +1 -1
- package/lib/cjs/create-price-oracle.js +20 -11
- package/lib/cjs/create-price-oracle.js.map +1 -1
- package/lib/cjs/create-subdao.js +21 -12
- package/lib/cjs/create-subdao.js.map +1 -1
- package/lib/cjs/create-tuktuk-dca-lut.js +20 -11
- package/lib/cjs/create-tuktuk-dca-lut.js.map +1 -1
- package/lib/cjs/distribute-hst.js +20 -11
- package/lib/cjs/distribute-hst.js.map +1 -1
- package/lib/cjs/distribute-iot-operations-fund.js +20 -11
- package/lib/cjs/distribute-iot-operations-fund.js.map +1 -1
- package/lib/cjs/dump-vote-markers.js +21 -12
- package/lib/cjs/dump-vote-markers.js.map +1 -1
- package/lib/cjs/end-epoch.js +47 -13
- package/lib/cjs/end-epoch.js.map +1 -1
- package/lib/cjs/execute-vault-transaction.js +20 -11
- package/lib/cjs/execute-vault-transaction.js.map +1 -1
- package/lib/cjs/extend-common-lut.js +20 -11
- package/lib/cjs/extend-common-lut.js.map +1 -1
- package/lib/cjs/get-merkle-depths.js +20 -11
- package/lib/cjs/get-merkle-depths.js.map +1 -1
- package/lib/cjs/get-staked-wallets.js +20 -11
- package/lib/cjs/get-staked-wallets.js.map +1 -1
- package/lib/cjs/initialize-tuktuk-dca.js +20 -11
- package/lib/cjs/initialize-tuktuk-dca.js.map +1 -1
- package/lib/cjs/is-executed.js +21 -12
- package/lib/cjs/is-executed.js.map +1 -1
- package/lib/cjs/issue-carrier-nft.js +20 -11
- package/lib/cjs/issue-carrier-nft.js.map +1 -1
- package/lib/cjs/issue-iot-operations-fund.js +20 -11
- package/lib/cjs/issue-iot-operations-fund.js.map +1 -1
- package/lib/cjs/issue-mapping-rewards-nft.js +20 -11
- package/lib/cjs/issue-mapping-rewards-nft.js.map +1 -1
- package/lib/cjs/issue-service-rewards-nft.js +20 -11
- package/lib/cjs/issue-service-rewards-nft.js.map +1 -1
- package/lib/cjs/issue-test-hotspot.js +20 -11
- package/lib/cjs/issue-test-hotspot.js.map +1 -1
- package/lib/cjs/log-coingecko-price.js +3 -4
- package/lib/cjs/log-coingecko-price.js.map +1 -1
- package/lib/cjs/log-hotspot.js +20 -11
- package/lib/cjs/log-hotspot.js.map +1 -1
- package/lib/cjs/log-router-balance.js +20 -11
- package/lib/cjs/log-router-balance.js.map +1 -1
- package/lib/cjs/log-treasury-price.js +20 -11
- package/lib/cjs/log-treasury-price.js.map +1 -1
- package/lib/cjs/mini-fanout-utils.js +57 -0
- package/lib/cjs/mini-fanout-utils.js.map +1 -0
- package/lib/cjs/mint-dc.js +20 -11
- package/lib/cjs/mint-dc.js.map +1 -1
- package/lib/cjs/queue-hotspot-claims.js +20 -11
- package/lib/cjs/queue-hotspot-claims.js.map +1 -1
- package/lib/cjs/queue-position-claims.js +20 -11
- package/lib/cjs/queue-position-claims.js.map +1 -1
- package/lib/cjs/queue-proxy-jobs.js +21 -12
- package/lib/cjs/queue-proxy-jobs.js.map +1 -1
- package/lib/cjs/queue-wallet-claims.js +20 -11
- package/lib/cjs/queue-wallet-claims.js.map +1 -1
- package/lib/cjs/release-iot-mobile-positions.js +20 -11
- package/lib/cjs/release-iot-mobile-positions.js.map +1 -1
- package/lib/cjs/repair-all-position-claims.js +20 -11
- package/lib/cjs/repair-all-position-claims.js.map +1 -1
- package/lib/cjs/requeue-hotspot-claims.js +20 -11
- package/lib/cjs/requeue-hotspot-claims.js.map +1 -1
- package/lib/cjs/reschedule-all-mini-fanouts.js +58 -25
- package/lib/cjs/reschedule-all-mini-fanouts.js.map +1 -1
- package/lib/cjs/reset-vsr-voting-mint.js +20 -11
- package/lib/cjs/reset-vsr-voting-mint.js.map +1 -1
- package/lib/cjs/revoke-maker.js +20 -11
- package/lib/cjs/revoke-maker.js.map +1 -1
- package/lib/cjs/set-dc-onboarding-fees-paid-epoch-info.js +20 -11
- package/lib/cjs/set-dc-onboarding-fees-paid-epoch-info.js.map +1 -1
- package/lib/cjs/set-dc-onboarding-fees-paid.js +20 -11
- package/lib/cjs/set-dc-onboarding-fees-paid.js.map +1 -1
- package/lib/cjs/set-proxy-config.js +20 -11
- package/lib/cjs/set-proxy-config.js.map +1 -1
- package/lib/cjs/setup-dc-auto-topoff.js +21 -12
- package/lib/cjs/setup-dc-auto-topoff.js.map +1 -1
- package/lib/cjs/setup-hst.js +21 -12
- package/lib/cjs/setup-hst.js.map +1 -1
- package/lib/cjs/squads-batch-optimizer.js +19 -9
- package/lib/cjs/squads-batch-optimizer.js.map +1 -1
- package/lib/cjs/start-cron.js +25 -11
- package/lib/cjs/start-cron.js.map +1 -1
- package/lib/cjs/submit-price.js +21 -12
- package/lib/cjs/submit-price.js.map +1 -1
- package/lib/cjs/sum-tokens.js +20 -11
- package/lib/cjs/sum-tokens.js.map +1 -1
- package/lib/cjs/swap-carrier-stake.js +20 -11
- package/lib/cjs/swap-carrier-stake.js.map +1 -1
- package/lib/cjs/swap-maker-stake.js +20 -11
- package/lib/cjs/swap-maker-stake.js.map +1 -1
- package/lib/cjs/switch-mobile-ops-fund.js +20 -11
- package/lib/cjs/switch-mobile-ops-fund.js.map +1 -1
- package/lib/cjs/take-snapshot.js +20 -11
- package/lib/cjs/take-snapshot.js.map +1 -1
- package/lib/cjs/transfer-program-authorities.js +20 -11
- package/lib/cjs/transfer-program-authorities.js.map +1 -1
- package/lib/cjs/tsconfig.cjs.tsbuildinfo +1 -0
- package/lib/cjs/unrug-hotspots.js +20 -11
- package/lib/cjs/unrug-hotspots.js.map +1 -1
- package/lib/cjs/update-account-circuit-breaker.js +20 -11
- package/lib/cjs/update-account-circuit-breaker.js.map +1 -1
- package/lib/cjs/update-boost-config.js +20 -11
- package/lib/cjs/update-boost-config.js.map +1 -1
- package/lib/cjs/update-carrier.js +20 -11
- package/lib/cjs/update-carrier.js.map +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-dao.js +20 -11
- package/lib/cjs/update-dao.js.map +1 -1
- package/lib/cjs/update-data-credits.js +32 -23
- package/lib/cjs/update-data-credits.js.map +1 -1
- package/lib/cjs/update-delegated-dc-subdao.js +20 -11
- package/lib/cjs/update-delegated-dc-subdao.js.map +1 -1
- package/lib/cjs/update-destinations.js +23 -14
- package/lib/cjs/update-destinations.js.map +1 -1
- package/lib/cjs/update-lazy-distributor.js +20 -11
- package/lib/cjs/update-lazy-distributor.js.map +1 -1
- package/lib/cjs/update-lazy-transactions.js +20 -11
- package/lib/cjs/update-lazy-transactions.js.map +1 -1
- package/lib/cjs/update-maker.js +20 -11
- package/lib/cjs/update-maker.js.map +1 -1
- package/lib/cjs/update-matching-destinations.js +20 -11
- package/lib/cjs/update-matching-destinations.js.map +1 -1
- package/lib/cjs/update-mint-circuit-breaker.js +20 -11
- package/lib/cjs/update-mint-circuit-breaker.js.map +1 -1
- package/lib/cjs/update-organization.js +20 -11
- package/lib/cjs/update-organization.js.map +1 -1
- package/lib/cjs/update-price-oracle.js +20 -11
- package/lib/cjs/update-price-oracle.js.map +1 -1
- package/lib/cjs/update-proxy-config.js +20 -11
- package/lib/cjs/update-proxy-config.js.map +1 -1
- package/lib/cjs/update-registrar-authorities.js +20 -11
- package/lib/cjs/update-registrar-authorities.js.map +1 -1
- package/lib/cjs/update-rewardable-entity-config.js +20 -11
- package/lib/cjs/update-rewardable-entity-config.js.map +1 -1
- package/lib/cjs/update-subdao-vehnt.js +21 -12
- package/lib/cjs/update-subdao-vehnt.js.map +1 -1
- package/lib/cjs/update-subdao.js +20 -11
- package/lib/cjs/update-subdao.js.map +1 -1
- package/lib/cjs/update-token-metadata.js +20 -11
- package/lib/cjs/update-token-metadata.js.map +1 -1
- package/lib/cjs/upgrade-idl.js +20 -11
- package/lib/cjs/upgrade-idl.js.map +1 -1
- package/lib/cjs/upsert-incentive-program.js +20 -11
- package/lib/cjs/upsert-incentive-program.js.map +1 -1
- package/lib/cjs/utils.js +38 -28
- package/lib/cjs/utils.js.map +1 -1
- package/lib/cjs/write-merkle-canopy-depths.js +20 -11
- package/lib/cjs/write-merkle-canopy-depths.js.map +1 -1
- package/lib/esm/src/add-expiration-to-delegations.js.map +1 -1
- package/lib/esm/src/backfill-mobile-deployment-infos.js.map +1 -1
- package/lib/esm/src/backfill-recent-proposals.js.map +1 -1
- package/lib/esm/src/backfill-vote-markers.js.map +1 -1
- package/lib/esm/src/claim-rewards.js.map +1 -1
- package/lib/esm/src/close-buffers.js.map +1 -1
- 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/close-expired-boosts.js.map +1 -1
- package/lib/esm/src/close-lazy-transaction-markers.js.map +1 -1
- package/lib/esm/src/close-legacy-auto-topoff.js.map +1 -1
- package/lib/esm/src/correct-router-dc.js.map +1 -1
- package/lib/esm/src/create-and-approve-makers.js.map +1 -1
- package/lib/esm/src/create-carrier.js.map +1 -1
- package/lib/esm/src/create-common-lut.js.map +1 -1
- package/lib/esm/src/create-council-fanout.js +156 -0
- package/lib/esm/src/create-council-fanout.js.map +1 -0
- package/lib/esm/src/create-dao.js +1 -1
- package/lib/esm/src/create-dao.js.map +1 -1
- package/lib/esm/src/create-data-only-config.js.map +1 -1
- package/lib/esm/src/create-maker.js.map +1 -1
- package/lib/esm/src/create-price-oracle.js.map +1 -1
- package/lib/esm/src/create-subdao.js +1 -1
- package/lib/esm/src/create-subdao.js.map +1 -1
- package/lib/esm/src/create-tuktuk-dca-lut.js.map +1 -1
- package/lib/esm/src/distribute-hst.js.map +1 -1
- package/lib/esm/src/distribute-iot-operations-fund.js.map +1 -1
- package/lib/esm/src/dump-vote-markers.js.map +1 -1
- package/lib/esm/src/end-epoch.js +29 -4
- package/lib/esm/src/end-epoch.js.map +1 -1
- package/lib/esm/src/extend-common-lut.js.map +1 -1
- package/lib/esm/src/get-merkle-depths.js.map +1 -1
- package/lib/esm/src/get-staked-wallets.js.map +1 -1
- package/lib/esm/src/initialize-tuktuk-dca.js.map +1 -1
- package/lib/esm/src/issue-carrier-nft.js.map +1 -1
- package/lib/esm/src/issue-mapping-rewards-nft.js.map +1 -1
- package/lib/esm/src/issue-service-rewards-nft.js.map +1 -1
- package/lib/esm/src/log-hotspot.js.map +1 -1
- 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/mint-dc.js.map +1 -1
- package/lib/esm/src/queue-hotspot-claims.js.map +1 -1
- package/lib/esm/src/queue-position-claims.js.map +1 -1
- package/lib/esm/src/queue-proxy-jobs.js.map +1 -1
- package/lib/esm/src/repair-all-position-claims.js.map +1 -1
- 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/reset-vsr-voting-mint.js.map +1 -1
- package/lib/esm/src/set-proxy-config.js.map +1 -1
- package/lib/esm/src/setup-dc-auto-topoff.js.map +1 -1
- package/lib/esm/src/setup-hst.js.map +1 -1
- package/lib/esm/src/squads-batch-optimizer.js.map +1 -1
- package/lib/esm/src/start-cron.js +6 -1
- package/lib/esm/src/start-cron.js.map +1 -1
- package/lib/esm/src/submit-price.js.map +1 -1
- package/lib/esm/src/sum-tokens.js.map +1 -1
- package/lib/esm/src/transfer-program-authorities.js.map +1 -1
- package/lib/esm/src/unrug-hotspots.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-dao.js.map +1 -1
- package/lib/esm/src/update-data-credits.js +18 -18
- package/lib/esm/src/update-destinations.js.map +1 -1
- package/lib/esm/src/update-matching-destinations.js.map +1 -1
- package/lib/esm/src/update-rewardable-entity-config.js.map +1 -1
- package/lib/esm/src/update-subdao-vehnt.js +1 -1
- package/lib/esm/src/update-subdao-vehnt.js.map +1 -1
- package/lib/esm/src/update-subdao.js.map +1 -1
- package/lib/esm/src/update-token-metadata.js.map +1 -1
- package/lib/esm/src/upgrade-idl.js.map +1 -1
- package/lib/esm/src/upsert-incentive-program.js.map +1 -1
- package/lib/esm/src/utils.js.map +1 -1
- package/lib/esm/src/write-merkle-canopy-depths.js.map +1 -1
- package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/src/backfill-mobile-deployment-infos.d.ts.map +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 +2 -0
- package/lib/types/src/create-council-fanout.d.ts.map +1 -0
- package/lib/types/src/end-epoch.d.ts.map +1 -1
- 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/reschedule-all-mini-fanouts.d.ts.map +1 -1
- package/lib/types/src/squads-batch-optimizer.d.ts.map +1 -1
- package/lib/types/src/start-cron.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/lib/types/src/utils.d.ts.map +1 -1
- package/package.json +34 -24
package/LICENSE
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2020 Helium Systems, Inc.
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
203
|
+
|
package/README.md
CHANGED
|
@@ -1,37 +1,47 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @helium/helium-admin-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
CLI used to bootstrap and maintain the Helium network on Solana. Scripts under `src/` create/update DAOs, sub-DAOs, makers, maker approvals, price oracles, entity-manager state, lazy-distributors, treasury-management configs, migration state, welcome packs, etc.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Each script is a separate yargs entrypoint; run them via `pnpm ts-node src/<script>.ts --help` to see the script-specific flags. Writes are done through a Squads multisig in production, so most scripts output a transaction file to be executed out-of-band rather than sending directly.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
docker build -f migration-docker/Dockerfile . -t migration:latest
|
|
9
|
-
```
|
|
7
|
+
## Multisig
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
Most endpoints have optional parameters that allow you to use a squads v4 multisig to run these transactions. In the case you pass --multisig, and are using a valid proposer key, it will propose the admin action to squads v4.
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
tar -cf keypairs.tar.gz keypairs
|
|
15
|
-
mv keypairs.tar.gz migration-docker/data/
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Then, use that container to encrypt all `keypairs` and generate a gpg key. This key will be output to ./migration-docker/data/migration.gpg
|
|
11
|
+
## VeHNT Correction
|
|
19
12
|
|
|
20
|
-
|
|
21
|
-
./migration-docker/run-encrypt-keypairs.sh <PASSWORD>
|
|
22
|
-
```
|
|
13
|
+
Every now and then, on-chain vehnt can diverge from what is expected from our off-chain postgres. On-the-fly vehnt tracking on-chain is very difficult, especially with landrush bonuses, and so there are very likely a few bugs left over. A divergence from expected vs on-chain can affect the percent-wise distribution of rewards to IOT vs MOBILE, so it is important that those divergences get rectified. Often they correct within a day, if they do not the protocol is to:
|
|
23
14
|
|
|
24
|
-
|
|
15
|
+
### 1. Run account-postgres-sink locally.
|
|
25
16
|
|
|
26
|
-
|
|
17
|
+
Use a .env pointing to account-postgres-sink-service/vote_service_example.yaml as the config, and mainnet as the URL, with refresh on boot set to false (so you don't end up indexing a ton of unnecessary data).
|
|
27
18
|
|
|
28
|
-
|
|
19
|
+
### 2. Refresh the related accounts (vsr and helium-sub-daos)
|
|
29
20
|
|
|
30
|
-
|
|
21
|
+
http://localhost:3001/refresh-accounts?program=hdaoVTCqhfHHo75XdAMxBKdUqvq1i5bF23sisBqVgGR&password=<YOUR_PASSWORD>
|
|
22
|
+
http://localhost:3001/refresh-accounts?program=hvsrNC3NKbcryqDs2DocYHZ9yPKEVzdSjQG6RVtK1s8&password=<YOUR_PASSWORD>
|
|
31
23
|
|
|
32
|
-
|
|
24
|
+
### 3. Run the update-subdao-vehnt
|
|
33
25
|
|
|
26
|
+
```bash
|
|
27
|
+
helium-admin update-subdao-vehnt -u <SOLANA_URL> -n MOBILE --multisig <MULTISIG> --pgPassword postgres --pgDatabse postgres --dntMint mb1eu7TzEc71KxDpsmsKoucSSuuoGLv1drys1oP2jh6
|
|
34
28
|
```
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
|
|
30
|
+
### 4. Multisig approvers sign and execute
|
|
31
|
+
|
|
32
|
+
Multisig approvers should quickly review the transaction and execute it. If it takes too long to execute, there is a small risk that a user delegated or undelegated in that timeframe causing the numbers to be stale. Practically, this does not happen very often so you should favor security over speed.
|
|
33
|
+
|
|
34
|
+
## Migration quick-reference
|
|
35
|
+
|
|
36
|
+
A few days before a migration, the encrypted keypair bundle needs to be prepared via [`migration-docker`](../../migration-docker):
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
docker build -f migration-docker/Dockerfile . -t migration:latest
|
|
40
|
+
tar -cf keypairs.tar.gz keypairs
|
|
41
|
+
mv keypairs.tar.gz migration-docker/data/
|
|
42
|
+
./migration-docker/run-encrypt-keypairs.sh <PASSWORD>
|
|
37
43
|
```
|
|
44
|
+
|
|
45
|
+
Upload the resulting `migration.gpg` to the [`migration-service`](../migration-service) k8s secrets and the encrypted keypairs to S3.
|
|
46
|
+
|
|
47
|
+
On migration day, upload `export.json`, `makers.json`, `makers-mobile.json` to S3 and merge the k8s PR. Seed the IoT and Mobile metadata databases via a port-forward to the oracle DB and then running the `hotspot-data-sink` seed command against `migration-service/export.json`.
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -35,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
46
|
};
|
|
37
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.run =
|
|
48
|
+
exports.run = run;
|
|
39
49
|
const anchor = __importStar(require("@coral-xyz/anchor"));
|
|
40
50
|
const helium_sub_daos_sdk_1 = require("@helium/helium-sub-daos-sdk");
|
|
41
51
|
const nft_proxy_sdk_1 = require("@helium/nft-proxy-sdk");
|
|
@@ -46,9 +56,9 @@ const bn_js_1 = require("bn.js");
|
|
|
46
56
|
const os_1 = __importDefault(require("os"));
|
|
47
57
|
const yargs_1 = __importDefault(require("yargs/yargs"));
|
|
48
58
|
const utils_1 = require("./utils");
|
|
49
|
-
function run(
|
|
50
|
-
|
|
51
|
-
|
|
59
|
+
function run() {
|
|
60
|
+
return __awaiter(this, arguments, void 0, function* (args = process.argv) {
|
|
61
|
+
var _a;
|
|
52
62
|
const yarg = (0, yargs_1.default)(args).options({
|
|
53
63
|
wallet: {
|
|
54
64
|
alias: "k",
|
|
@@ -144,9 +154,8 @@ function run(args = process.argv) {
|
|
|
144
154
|
yield (0, spl_utils_1.bulkSendTransactions)(provider, transactions, console.log, 10, [], 100);
|
|
145
155
|
});
|
|
146
156
|
}
|
|
147
|
-
|
|
148
|
-
function
|
|
149
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
function getMultipleAccounts(_a) {
|
|
158
|
+
return __awaiter(this, arguments, void 0, function* ({ connection, keys, }) {
|
|
150
159
|
const batchSize = 100;
|
|
151
160
|
const batches = Math.ceil(keys.length / batchSize);
|
|
152
161
|
const results = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-expiration-to-delegations.js","sourceRoot":"","sources":["../../src/add-expiration-to-delegations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-expiration-to-delegations.js","sourceRoot":"","sources":["../../src/add-expiration-to-delegations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,kBA4HC;AAxID,0DAA4C;AAC5C,qEAA0F;AAC1F,yDAA0D;AAC1D,iDAAoJ;AACpJ,+EAAmE;AACnE,6CAAqH;AACrH,iCAA4B;AAC5B,4CAAoB;AACpB,wDAAgC;AAChC,mCAAsC;AAGtC,SAAsB,GAAG;yDAAC,OAAY,OAAO,CAAC,IAAI;;QAChD,MAAM,IAAI,GAAG,IAAA,eAAK,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC;YAC/B,MAAM,EAAE;gBACN,KAAK,EAAE,GAAG;gBACV,QAAQ,EAAE,uBAAuB;gBACjC,OAAO,EAAE,GAAG,YAAE,CAAC,OAAO,EAAE,yBAAyB;aAClD;YACD,GAAG,EAAE;gBACH,KAAK,EAAE,GAAG;gBACV,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,gBAAgB;aAC3B;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,mCAAmC;gBAC7C,OAAO,EAAE,oBAAQ,CAAC,QAAQ,EAAE;aAC7B;SACF,CAAC,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC;QAC7B,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,mBAAmB,GAAG,IAAI,CAAC,GAAG,CAAC;QAC3C,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1D,MAAM,QAAQ,GAAG,MAAM,CAAC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EAAE,CAAC,EAAE,EAAE,CAAC;YACjC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;YACjE,MAAM,YAAY,GAAG,MAAM,UAAU,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;YACzE,OAAO,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,CAAC;QAChC,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AAED,SAAS,GAAG,CAAO,CAAM,EAAE,CAAM;IAC/B,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,SAAe,sBAAsB,CACnC,QAA+B;;QAE/B,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC,6BAAmB,CAAC,CAAC;QAC5E,MAAM,QAAQ,GAAG,KAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACnD,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA"}
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -35,15 +45,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
46
|
};
|
|
37
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.run =
|
|
48
|
+
exports.run = run;
|
|
39
49
|
const anchor = __importStar(require("@coral-xyz/anchor"));
|
|
40
50
|
const web3_js_1 = require("@solana/web3.js");
|
|
41
51
|
const multisig = __importStar(require("@sqds/multisig"));
|
|
42
52
|
const os_1 = __importDefault(require("os"));
|
|
43
53
|
const yargs_1 = __importDefault(require("yargs/yargs"));
|
|
44
54
|
const utils_1 = require("./utils");
|
|
45
|
-
function run(
|
|
46
|
-
return __awaiter(this,
|
|
55
|
+
function run() {
|
|
56
|
+
return __awaiter(this, arguments, void 0, function* (args = process.argv) {
|
|
47
57
|
const yarg = (0, yargs_1.default)(args).options({
|
|
48
58
|
wallet: {
|
|
49
59
|
alias: 'k',
|
|
@@ -103,5 +113,4 @@ function run(args = process.argv) {
|
|
|
103
113
|
});
|
|
104
114
|
});
|
|
105
115
|
}
|
|
106
|
-
exports.run = run;
|
|
107
116
|
//# sourceMappingURL=add-squads-proposer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-squads-proposer.js","sourceRoot":"","sources":["../../src/add-squads-proposer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-squads-proposer.js","sourceRoot":"","sources":["../../src/add-squads-proposer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,kBAiEC;AA3ED,0DAA4C;AAC5C,6CAA4C;AAC5C,yDAA2C;AAC3C,4CAAoB;AACpB,wDAAgC;AAChC,mCAGiB;AAEjB,SAAsB,GAAG;yDAAC,OAAY,OAAO,CAAC,IAAI;QAChD,MAAM,IAAI,GAAG,IAAA,eAAK,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC;YAC/B,MAAM,EAAE;gBACN,KAAK,EAAE,GAAG;gBACV,QAAQ,EAAE,uBAAuB;gBACjC,OAAO,EAAE,GAAG,YAAE,CAAC,OAAO,EAAE,yBAAyB;aAClD;YACD,GAAG,EAAE;gBACH,KAAK,EAAE,GAAG;gBACV,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,gBAAgB;aAC3B;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,QAAQ,EACN,oGAAoG;gBACtG,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF,CAAC,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC;QAC7B,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,mBAAmB,GAAG,IAAI,CAAC,GAAG,CAAC;QAC3C,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1D,MAAM,QAAQ,GAA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|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -35,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
46
|
};
|
|
37
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.run =
|
|
48
|
+
exports.run = run;
|
|
39
49
|
const anchor = __importStar(require("@coral-xyz/anchor"));
|
|
40
50
|
const mobile_entity_manager_sdk_1 = require("@helium/mobile-entity-manager-sdk");
|
|
41
51
|
const helium_sub_daos_sdk_1 = require("@helium/helium-sub-daos-sdk");
|
|
@@ -44,8 +54,8 @@ const os_1 = __importDefault(require("os"));
|
|
|
44
54
|
const yargs_1 = __importDefault(require("yargs/yargs"));
|
|
45
55
|
const utils_1 = require("./utils");
|
|
46
56
|
const spl_utils_1 = require("@helium/spl-utils");
|
|
47
|
-
function run(
|
|
48
|
-
return __awaiter(this,
|
|
57
|
+
function run() {
|
|
58
|
+
return __awaiter(this, arguments, void 0, function* (args = process.argv) {
|
|
49
59
|
const yarg = (0, yargs_1.default)(args).options({
|
|
50
60
|
wallet: {
|
|
51
61
|
alias: 'k',
|
|
@@ -101,5 +111,4 @@ function run(args = process.argv) {
|
|
|
101
111
|
});
|
|
102
112
|
});
|
|
103
113
|
}
|
|
104
|
-
exports.run = run;
|
|
105
114
|
//# sourceMappingURL=approve-carrier.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approve-carrier.js","sourceRoot":"","sources":["../../src/approve-carrier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"approve-carrier.js","sourceRoot":"","sources":["../../src/approve-carrier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBA6DC;AAtED,0DAA4C;AAC5C,iFAAgF;AAChF,qEAAyE;AACzE,6CAA6E;AAC7E,4CAAoB;AACpB,wDAAgC;AAChC,mCAAkE;AAClE,iDAAgD;AAEhD,SAAsB,GAAG;yDAAC,OAAY,OAAO,CAAC,IAAI;QAChD,MAAM,IAAI,GAAG,IAAA,eAAK,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC;YAC/B,MAAM,EAAE;gBACN,KAAK,EAAE,GAAG;gBACV,QAAQ,EAAE,uBAAuB;gBACjC,OAAO,EAAE,GAAG,YAAE,CAAC,OAAO,EAAE,yBAAyB;aAClD;YACD,GAAG,EAAE;gBACH,KAAK,EAAE,GAAG;gBACV,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,E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,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;QAC9E,MAAM,OAAO,GAAG,IAAA,sCAAU,EAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAEjD,YAAY,CAAC,IAAI,CACf,MAAM,OAAO,CAAC,OAAO;aAClB,gBAAgB,EAAE;aAClB,eAAe,CAAC;YACf,OAAO;YACP,SAAS;SACV,CAAC;aACD,WAAW,EAAE,CACjB,CAAC;QAEF,MAAM,IAAA,kCAA0B,EAAC;YAC/B,QAAQ;YACR,YAAY;YACZ,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,mBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;YAClE,OAAO,EAAE,EAAE;SACZ,CAAC,CAAC;IACL,CAAC;CAAA"}
|
package/lib/cjs/approve-maker.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -35,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
46
|
};
|
|
37
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.run =
|
|
48
|
+
exports.run = run;
|
|
39
49
|
const anchor = __importStar(require("@coral-xyz/anchor"));
|
|
40
50
|
const helium_entity_manager_sdk_1 = require("@helium/helium-entity-manager-sdk");
|
|
41
51
|
const helium_sub_daos_sdk_1 = require("@helium/helium-sub-daos-sdk");
|
|
@@ -44,8 +54,8 @@ const os_1 = __importDefault(require("os"));
|
|
|
44
54
|
const yargs_1 = __importDefault(require("yargs/yargs"));
|
|
45
55
|
const utils_1 = require("./utils");
|
|
46
56
|
const spl_utils_1 = require("@helium/spl-utils");
|
|
47
|
-
function run(
|
|
48
|
-
return __awaiter(this,
|
|
57
|
+
function run() {
|
|
58
|
+
return __awaiter(this, arguments, void 0, function* (args = process.argv) {
|
|
49
59
|
const yarg = (0, yargs_1.default)(args).options({
|
|
50
60
|
wallet: {
|
|
51
61
|
alias: "k",
|
|
@@ -110,5 +120,4 @@ function run(args = process.argv) {
|
|
|
110
120
|
});
|
|
111
121
|
});
|
|
112
122
|
}
|
|
113
|
-
exports.run = run;
|
|
114
123
|
//# sourceMappingURL=approve-maker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approve-maker.js","sourceRoot":"","sources":["../../src/approve-maker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"approve-maker.js","sourceRoot":"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EF,MAAM,IAAA,kCAA0B,EAAC;YAC/B,QAAQ;YACR,YAAY;YACZ,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,mBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;YAClE,OAAO,EAAE,EAAE;SACZ,CAAC,CAAC;IACL,CAAC;CAAA"}
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -35,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
46
|
};
|
|
37
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.run =
|
|
48
|
+
exports.run = run;
|
|
39
49
|
const anchor = __importStar(require("@coral-xyz/anchor"));
|
|
40
50
|
const helium_entity_manager_sdk_1 = require("@helium/helium-entity-manager-sdk");
|
|
41
51
|
const helium_sub_daos_sdk_1 = require("@helium/helium-sub-daos-sdk");
|
|
@@ -44,8 +54,8 @@ const os_1 = __importDefault(require("os"));
|
|
|
44
54
|
const yargs_1 = __importDefault(require("yargs/yargs"));
|
|
45
55
|
const utils_1 = require("./utils");
|
|
46
56
|
const spl_utils_1 = require("@helium/spl-utils");
|
|
47
|
-
function run(
|
|
48
|
-
return __awaiter(this,
|
|
57
|
+
function run() {
|
|
58
|
+
return __awaiter(this, arguments, void 0, function* (args = process.argv) {
|
|
49
59
|
const yarg = (0, yargs_1.default)(args).options({
|
|
50
60
|
wallet: {
|
|
51
61
|
alias: 'k',
|
|
@@ -103,5 +113,4 @@ function run(args = process.argv) {
|
|
|
103
113
|
});
|
|
104
114
|
});
|
|
105
115
|
}
|
|
106
|
-
exports.run = run;
|
|
107
116
|
//# sourceMappingURL=approve-program.js.map
|