@helium/helium-admin-cli 0.9.23 → 0.9.24
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/backfill-mobile-deployment-infos.js +223 -0
- package/lib/cjs/backfill-mobile-deployment-infos.js.map +1 -0
- package/lib/cjs/create-boost-config.js +4 -2
- package/lib/cjs/create-boost-config.js.map +1 -1
- package/lib/cjs/end-epoch.js +237 -68
- package/lib/cjs/end-epoch.js.map +1 -1
- package/lib/cjs/log-hotspot.js +17 -3
- package/lib/cjs/log-hotspot.js.map +1 -1
- package/lib/cjs/remove-authorities.js +134 -0
- package/lib/cjs/remove-authorities.js.map +1 -0
- package/lib/cjs/swap-carrier-stake.js +143 -0
- package/lib/cjs/swap-carrier-stake.js.map +1 -0
- package/lib/cjs/{fix-claimed-epochs.js → swap-maker-stake.js} +59 -22
- package/lib/cjs/swap-maker-stake.js.map +1 -0
- package/lib/cjs/unrug-hotspots.js +167 -0
- package/lib/cjs/unrug-hotspots.js.map +1 -0
- package/lib/cjs/update-boost-config.js +1 -0
- package/lib/cjs/update-boost-config.js.map +1 -1
- package/lib/cjs/update-matching-destinations.js +116 -0
- package/lib/cjs/update-matching-destinations.js.map +1 -0
- package/lib/esm/src/backfill-mobile-deployment-infos.js +198 -0
- package/lib/esm/src/backfill-mobile-deployment-infos.js.map +1 -0
- package/lib/esm/src/create-boost-config.js +4 -2
- package/lib/esm/src/create-boost-config.js.map +1 -1
- package/lib/esm/src/end-epoch.js +234 -69
- package/lib/esm/src/end-epoch.js.map +1 -1
- package/lib/esm/src/log-hotspot.js +18 -4
- package/lib/esm/src/log-hotspot.js.map +1 -1
- package/lib/esm/src/remove-authorities.js +93 -0
- package/lib/esm/src/remove-authorities.js.map +1 -0
- package/lib/esm/src/swap-carrier-stake.js +102 -0
- package/lib/esm/src/swap-carrier-stake.js.map +1 -0
- package/lib/esm/src/swap-maker-stake.js +87 -0
- package/lib/esm/src/swap-maker-stake.js.map +1 -0
- package/lib/esm/src/unrug-hotspots.js +126 -0
- package/lib/esm/src/unrug-hotspots.js.map +1 -0
- package/lib/esm/src/update-boost-config.js +1 -0
- package/lib/esm/src/update-boost-config.js.map +1 -1
- package/lib/esm/src/update-matching-destinations.js +75 -0
- package/lib/esm/src/update-matching-destinations.js.map +1 -0
- package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/src/backfill-mobile-deployment-infos.d.ts +4 -0
- package/lib/types/src/backfill-mobile-deployment-infos.d.ts.map +1 -0
- package/lib/types/src/create-boost-config.d.ts.map +1 -1
- package/lib/types/src/end-epoch.d.ts.map +1 -1
- package/lib/types/src/log-hotspot.d.ts.map +1 -1
- package/lib/types/src/{fix-claimed-epochs.d.ts → remove-authorities.d.ts} +1 -1
- package/lib/types/src/remove-authorities.d.ts.map +1 -0
- package/lib/types/src/{migrate-to-hip-138.d.ts → swap-carrier-stake.d.ts} +1 -1
- package/lib/types/src/swap-carrier-stake.d.ts.map +1 -0
- package/lib/types/src/swap-maker-stake.d.ts +2 -0
- package/lib/types/src/swap-maker-stake.d.ts.map +1 -0
- package/lib/types/src/unrug-hotspots.d.ts +2 -0
- package/lib/types/src/unrug-hotspots.d.ts.map +1 -0
- package/lib/types/src/update-matching-destinations.d.ts +2 -0
- package/lib/types/src/update-matching-destinations.d.ts.map +1 -0
- package/package.json +15 -13
- package/lib/cjs/fix-claimed-epochs.js.map +0 -1
- package/lib/cjs/migrate-to-hip-138.js +0 -221
- package/lib/cjs/migrate-to-hip-138.js.map +0 -1
- package/lib/esm/src/fix-claimed-epochs.js +0 -50
- package/lib/esm/src/fix-claimed-epochs.js.map +0 -1
- package/lib/esm/src/migrate-to-hip-138.js +0 -180
- package/lib/esm/src/migrate-to-hip-138.js.map +0 -1
- package/lib/types/src/fix-claimed-epochs.d.ts.map +0 -1
- package/lib/types/src/migrate-to-hip-138.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backfill-mobile-deployment-infos.d.ts","sourceRoot":"","sources":["../../../src/backfill-mobile-deployment-infos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AA2D5C,eAAO,MAAM,aAAa,QAAS,MAAM,OAAO,MAAM,0BAOrD,CAAC;AAEF,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAiOjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-boost-config.d.ts","sourceRoot":"","sources":["../../../src/create-boost-config.ts"],"names":[],"mappings":"AAYA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,
|
|
1
|
+
{"version":3,"file":"create-boost-config.d.ts","sourceRoot":"","sources":["../../../src/create-boost-config.ts"],"names":[],"mappings":"AAYA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA8GjD"}
|
|
@@ -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":"AAuDA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAiUjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-hotspot.d.ts","sourceRoot":"","sources":["../../../src/log-hotspot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"log-hotspot.d.ts","sourceRoot":"","sources":["../../../src/log-hotspot.ts"],"names":[],"mappings":"AAsBA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAyFjD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function run(args?: any): Promise<void>;
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=remove-authorities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-authorities.d.ts","sourceRoot":"","sources":["../../../src/remove-authorities.ts"],"names":[],"mappings":"AAiBA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA6FjD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function run(args?: any): Promise<void>;
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=swap-carrier-stake.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swap-carrier-stake.d.ts","sourceRoot":"","sources":["../../../src/swap-carrier-stake.ts"],"names":[],"mappings":"AAWA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA8GjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swap-maker-stake.d.ts","sourceRoot":"","sources":["../../../src/swap-maker-stake.ts"],"names":[],"mappings":"AAWA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAsFjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unrug-hotspots.d.ts","sourceRoot":"","sources":["../../../src/unrug-hotspots.ts"],"names":[],"mappings":"AAgCA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAiEjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-matching-destinations.d.ts","sourceRoot":"","sources":["../../../src/update-matching-destinations.ts"],"names":[],"mappings":"AAUA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAiFjD"}
|
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.9.
|
|
8
|
+
"version": "0.9.24",
|
|
9
9
|
"description": "CLI to bootstrap the network",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@coral-xyz/anchor": "^0.28.0",
|
|
42
42
|
"@helium/address": "^4.10.2",
|
|
43
|
-
"@helium/circuit-breaker-sdk": "^0.9.
|
|
43
|
+
"@helium/circuit-breaker-sdk": "^0.9.24",
|
|
44
44
|
"@helium/crypto": "^4.10.2",
|
|
45
|
-
"@helium/data-credits-sdk": "^0.9.
|
|
46
|
-
"@helium/distributor-oracle": "^0.9.
|
|
47
|
-
"@helium/fanout-sdk": "^0.9.
|
|
48
|
-
"@helium/helium-entity-manager-sdk": "^0.9.
|
|
49
|
-
"@helium/helium-sub-daos-sdk": "^0.9.
|
|
50
|
-
"@helium/lazy-distributor-sdk": "^0.9.
|
|
51
|
-
"@helium/mobile-entity-manager-sdk": "^0.9.
|
|
45
|
+
"@helium/data-credits-sdk": "^0.9.24",
|
|
46
|
+
"@helium/distributor-oracle": "^0.9.24",
|
|
47
|
+
"@helium/fanout-sdk": "^0.9.24",
|
|
48
|
+
"@helium/helium-entity-manager-sdk": "^0.9.24",
|
|
49
|
+
"@helium/helium-sub-daos-sdk": "^0.9.24",
|
|
50
|
+
"@helium/lazy-distributor-sdk": "^0.9.24",
|
|
51
|
+
"@helium/mobile-entity-manager-sdk": "^0.9.24",
|
|
52
52
|
"@helium/nft-proxy-sdk": "^0.0.15",
|
|
53
53
|
"@helium/organization-sdk": "^0.0.13",
|
|
54
|
-
"@helium/price-oracle-sdk": "^0.9.
|
|
54
|
+
"@helium/price-oracle-sdk": "^0.9.24",
|
|
55
55
|
"@helium/proposal-sdk": "^0.0.15",
|
|
56
|
-
"@helium/spl-utils": "^0.9.
|
|
57
|
-
"@helium/treasury-management-sdk": "^0.9.
|
|
56
|
+
"@helium/spl-utils": "^0.9.24",
|
|
57
|
+
"@helium/treasury-management-sdk": "^0.9.24",
|
|
58
58
|
"@solana/spl-account-compression": "^0.1.7",
|
|
59
59
|
"@solana/spl-governance": "^0.3.18",
|
|
60
60
|
"@solana/spl-token": "^0.3.8",
|
|
@@ -63,6 +63,8 @@
|
|
|
63
63
|
"axios": "^1.3.6",
|
|
64
64
|
"bn.js": "^5.2.0",
|
|
65
65
|
"bs58": "^4.0.1",
|
|
66
|
+
"fast-deep-equal": "^3.1.3",
|
|
67
|
+
"h3-js": "^4.1.0",
|
|
66
68
|
"yargs": "^17.7.1"
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
@@ -73,5 +75,5 @@
|
|
|
73
75
|
"typescript": "^5.2.2"
|
|
74
76
|
},
|
|
75
77
|
"author": "",
|
|
76
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "b7f08b81123040f1b54c43ebd870af14d75458f0"
|
|
77
79
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fix-claimed-epochs.js","sourceRoot":"","sources":["../../src/fix-claimed-epochs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAI5C,qEAA8D;AAG9D,iDAE2B;AAE3B,6CAAoE;AAEpE,4CAAoB;AACpB,4CAAoB;AACpB,wDAAgC;AAChC,mCAIiB;AAEjB,SAAsB,GAAG,CAAC,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,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,sCAAsC;gBAChD,OAAO,EAAE,SAAS,GAAG,yBAAyB;aAC/C;SACF,CAAC,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI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C,CAAC;IACnG,CAAC;CAAA;AA5CD,kBA4CC"}
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
-
};
|
|
37
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.run = void 0;
|
|
39
|
-
const anchor = __importStar(require("@coral-xyz/anchor"));
|
|
40
|
-
const circuit_breaker_sdk_1 = require("@helium/circuit-breaker-sdk");
|
|
41
|
-
const helium_sub_daos_sdk_1 = require("@helium/helium-sub-daos-sdk");
|
|
42
|
-
const lazy_distributor_sdk_1 = require("@helium/lazy-distributor-sdk");
|
|
43
|
-
const organization_sdk_1 = require("@helium/organization-sdk");
|
|
44
|
-
const rewards_oracle_sdk_1 = require("@helium/rewards-oracle-sdk");
|
|
45
|
-
const spl_utils_1 = require("@helium/spl-utils");
|
|
46
|
-
const spl_token_1 = require("@solana/spl-token");
|
|
47
|
-
const web3_js_1 = require("@solana/web3.js");
|
|
48
|
-
const sdk_1 = __importDefault(require("@sqds/sdk"));
|
|
49
|
-
const os_1 = __importDefault(require("os"));
|
|
50
|
-
const yargs_1 = __importDefault(require("yargs/yargs"));
|
|
51
|
-
const utils_1 = require("./utils");
|
|
52
|
-
function run(args = process.argv) {
|
|
53
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
const yarg = (0, yargs_1.default)(args).options({
|
|
55
|
-
wallet: {
|
|
56
|
-
alias: "k",
|
|
57
|
-
describe: "Anchor wallet keypair",
|
|
58
|
-
default: `${os_1.default.homedir()}/.config/solana/id.json`,
|
|
59
|
-
},
|
|
60
|
-
url: {
|
|
61
|
-
alias: "u",
|
|
62
|
-
default: "http://127.0.0.1:8899",
|
|
63
|
-
describe: "The solana url",
|
|
64
|
-
},
|
|
65
|
-
iotMint: {
|
|
66
|
-
type: "string",
|
|
67
|
-
describe: "IOT mint of the subdao to migrate",
|
|
68
|
-
default: spl_utils_1.IOT_MINT.toBase58(),
|
|
69
|
-
},
|
|
70
|
-
hntMint: {
|
|
71
|
-
type: "string",
|
|
72
|
-
describe: "HNT mint of the subdao to migrate",
|
|
73
|
-
default: spl_utils_1.HNT_MINT.toBase58(),
|
|
74
|
-
},
|
|
75
|
-
mobileMint: {
|
|
76
|
-
type: "string",
|
|
77
|
-
describe: "Mobile mint of the subdao to migrate",
|
|
78
|
-
default: spl_utils_1.MOBILE_MINT.toBase58(),
|
|
79
|
-
},
|
|
80
|
-
rewardsOracleUrl: {
|
|
81
|
-
alias: "ro",
|
|
82
|
-
type: "string",
|
|
83
|
-
describe: "The rewards oracle URL",
|
|
84
|
-
required: true,
|
|
85
|
-
},
|
|
86
|
-
oracleKey: {
|
|
87
|
-
type: "string",
|
|
88
|
-
describe: "Pubkey of the oracle",
|
|
89
|
-
required: true,
|
|
90
|
-
},
|
|
91
|
-
emissionSchedulePath: {
|
|
92
|
-
required: true,
|
|
93
|
-
describe: "Path to file that contains the hnt emissions schedule",
|
|
94
|
-
type: "string",
|
|
95
|
-
},
|
|
96
|
-
hstEmissionsSchedulePath: {
|
|
97
|
-
required: true,
|
|
98
|
-
describe: "Path to file that contains the new HST emissions schedule",
|
|
99
|
-
type: "string",
|
|
100
|
-
},
|
|
101
|
-
executeTransaction: {
|
|
102
|
-
type: "boolean",
|
|
103
|
-
},
|
|
104
|
-
multisig: {
|
|
105
|
-
type: "string",
|
|
106
|
-
describe: "Address of the squads multisig to be authority. If not provided, your wallet will be the authority",
|
|
107
|
-
},
|
|
108
|
-
authorityIndex: {
|
|
109
|
-
type: "number",
|
|
110
|
-
describe: "Authority index for squads. Defaults to 1",
|
|
111
|
-
default: 1,
|
|
112
|
-
},
|
|
113
|
-
});
|
|
114
|
-
const argv = yield yarg.argv;
|
|
115
|
-
process.env.ANCHOR_WALLET = argv.wallet;
|
|
116
|
-
process.env.ANCHOR_PROVIDER_URL = argv.url;
|
|
117
|
-
anchor.setProvider(anchor.AnchorProvider.local(argv.url));
|
|
118
|
-
const provider = anchor.getProvider();
|
|
119
|
-
const wallet = new anchor.Wallet((0, utils_1.loadKeypair)(argv.wallet));
|
|
120
|
-
const lazyDistProgram = yield (0, lazy_distributor_sdk_1.init)(provider);
|
|
121
|
-
const hsdProgram = yield (0, helium_sub_daos_sdk_1.init)(provider);
|
|
122
|
-
const instructions = [];
|
|
123
|
-
const hntMint = new web3_js_1.PublicKey(argv.hntMint);
|
|
124
|
-
const dao = (0, helium_sub_daos_sdk_1.daoKey)(hntMint)[0];
|
|
125
|
-
const resizes = [];
|
|
126
|
-
resizes.push(yield hsdProgram.methods
|
|
127
|
-
.tempResizeAccount()
|
|
128
|
-
.accounts({
|
|
129
|
-
account: dao,
|
|
130
|
-
payer: wallet.publicKey,
|
|
131
|
-
})
|
|
132
|
-
.instruction());
|
|
133
|
-
const daoEpochInfos = yield hsdProgram.account.daoEpochInfoV0.all();
|
|
134
|
-
for (const daoEpochInfo of daoEpochInfos) {
|
|
135
|
-
resizes.push(yield hsdProgram.methods
|
|
136
|
-
.tempResizeAccount()
|
|
137
|
-
.accounts({
|
|
138
|
-
account: daoEpochInfo.publicKey,
|
|
139
|
-
payer: wallet.publicKey,
|
|
140
|
-
})
|
|
141
|
-
.instruction());
|
|
142
|
-
}
|
|
143
|
-
console.log("Resizing accounts");
|
|
144
|
-
yield (0, spl_utils_1.batchParallelInstructionsWithPriorityFee)(provider, resizes);
|
|
145
|
-
const daoAcc = yield hsdProgram.account.daoV0.fetch(dao);
|
|
146
|
-
const authority = daoAcc.authority;
|
|
147
|
-
const oracleKey = new web3_js_1.PublicKey(argv.oracleKey);
|
|
148
|
-
const emissionSchedule = yield (0, utils_1.parseEmissionsSchedule)(argv.emissionSchedulePath);
|
|
149
|
-
const ld = (0, lazy_distributor_sdk_1.lazyDistributorKey)(hntMint)[0];
|
|
150
|
-
const ldAcc = yield lazyDistProgram.account.lazyDistributorV0.fetchNullable(ld);
|
|
151
|
-
if (ldAcc) {
|
|
152
|
-
console.warn("Lazy distributor already exists, skipping.");
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
instructions.push(yield lazyDistProgram.methods
|
|
156
|
-
.initializeLazyDistributorV0({
|
|
157
|
-
authority: daoAcc.authority,
|
|
158
|
-
oracles: [
|
|
159
|
-
{
|
|
160
|
-
oracle: oracleKey,
|
|
161
|
-
url: argv.rewardsOracleUrl,
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
// 5 x epoch rewards in a 24 hour period
|
|
165
|
-
windowConfig: {
|
|
166
|
-
windowSizeSeconds: new anchor.BN(24 * 60 * 60),
|
|
167
|
-
thresholdType: circuit_breaker_sdk_1.ThresholdType.Absolute,
|
|
168
|
-
threshold: new anchor.BN(emissionSchedule[0].emissionsPerEpoch).mul(new anchor.BN(5)),
|
|
169
|
-
},
|
|
170
|
-
approver: (0, rewards_oracle_sdk_1.oracleSignerKey)()[0],
|
|
171
|
-
})
|
|
172
|
-
.accounts({
|
|
173
|
-
payer: authority,
|
|
174
|
-
rewardsMint: hntMint,
|
|
175
|
-
})
|
|
176
|
-
.instruction());
|
|
177
|
-
}
|
|
178
|
-
instructions.push(yield hsdProgram.methods
|
|
179
|
-
.updateDaoV0({
|
|
180
|
-
authority: null,
|
|
181
|
-
emissionSchedule: null,
|
|
182
|
-
hstEmissionSchedule: yield (0, utils_1.parseEmissionsSchedule)(argv.hstEmissionsSchedulePath),
|
|
183
|
-
netEmissionsCap: null,
|
|
184
|
-
hstPool: null,
|
|
185
|
-
proposalNamespace: (0, organization_sdk_1.organizationKey)("Helium")[0],
|
|
186
|
-
delegatorRewardsPercent: (0, helium_sub_daos_sdk_1.delegatorRewardsPercent)(6),
|
|
187
|
-
rewardsEscrow: (0, spl_token_1.getAssociatedTokenAddressSync)(hntMint, ld, true),
|
|
188
|
-
})
|
|
189
|
-
.accounts({
|
|
190
|
-
dao,
|
|
191
|
-
authority: daoAcc.authority,
|
|
192
|
-
payer: daoAcc.authority,
|
|
193
|
-
})
|
|
194
|
-
.instruction());
|
|
195
|
-
if (!daoAcc.delegatorPool || daoAcc.delegatorPool.equals(web3_js_1.PublicKey.default)) {
|
|
196
|
-
instructions.push(yield hsdProgram.methods
|
|
197
|
-
.initializeHntDelegatorPool()
|
|
198
|
-
.accounts({
|
|
199
|
-
dao,
|
|
200
|
-
payer: daoAcc.authority,
|
|
201
|
-
delegatorPool: (0, spl_token_1.getAssociatedTokenAddressSync)(hntMint, dao, true),
|
|
202
|
-
authority: daoAcc.authority,
|
|
203
|
-
})
|
|
204
|
-
.instruction());
|
|
205
|
-
}
|
|
206
|
-
const squads = sdk_1.default.endpoint(process.env.ANCHOR_PROVIDER_URL, wallet, {
|
|
207
|
-
commitmentOrConfig: "finalized",
|
|
208
|
-
});
|
|
209
|
-
yield (0, utils_1.sendInstructionsOrSquads)({
|
|
210
|
-
provider,
|
|
211
|
-
instructions,
|
|
212
|
-
executeTransaction: argv.executeTransaction,
|
|
213
|
-
squads,
|
|
214
|
-
multisig: argv.multisig ? new web3_js_1.PublicKey(argv.multisig) : undefined,
|
|
215
|
-
authorityIndex: argv.authorityIndex,
|
|
216
|
-
signers: [],
|
|
217
|
-
});
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
exports.run = run;
|
|
221
|
-
//# sourceMappingURL=migrate-to-hip-138.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-to-hip-138.js","sourceRoot":"","sources":["../../src/migrate-to-hip-138.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAC5C,qEAA4D;AAC5D,qEAIqC;AACrC,uEAGsC;AACtC,+DAA2D;AAC3D,mEAA6D;AAC7D,iDAK2B;AAC3B,iDAAkE;AAClE,6CAAoE;AACpE,oDAA+B;AAC/B,4CAAoB;AACpB,wDAAgC;AAChC,mCAIiB;AAEjB,SAAsB,GAAG,CAAC,OAAY,OAAO,CAAC,IAAI;;QAChD,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,QAAQ,CAAC;gBACR,GAAG;gBACH,KAAK,EAAE,MAAM,CAAC,SAAS;gBACvB,aAAa,EAAE,IAAA,yCAA6B,EAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC;gBAChE,SAAS,EAAE,MAAM,CAAC,SAAS;aAC5B,CAAC;iBACD,WAAW,EAAE,CACjB,CAAC;SACH;QAED,MAAM,MAAM,GAAG,aAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,MAAM,EAAE;YACtE,kBAAkB,EAAE,WAAW;SAChC,CAAC,CAAC;QAEH,MAAM,IAAA,gCAAwB,EAAC;YAC7B,QAAQ;YACR,YAAY;YACZ,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;YAC3C,MAAM;YACN,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,mBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;YAClE,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,OAAO,EAAE,EAAE;SACZ,CAAC,CAAC;IACL,CAAC;CAAA;AAhMD,kBAgMC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as anchor from "@coral-xyz/anchor";
|
|
2
|
-
import { init as initHsd } from "@helium/helium-sub-daos-sdk";
|
|
3
|
-
import { batchParallelInstructionsWithPriorityFee } from "@helium/spl-utils";
|
|
4
|
-
import { PublicKey } from "@solana/web3.js";
|
|
5
|
-
import fs from "fs";
|
|
6
|
-
import os from "os";
|
|
7
|
-
import yargs from "yargs/yargs";
|
|
8
|
-
import { loadKeypair, } from "./utils";
|
|
9
|
-
export async function run(args = process.argv) {
|
|
10
|
-
const yarg = yargs(args).options({
|
|
11
|
-
wallet: {
|
|
12
|
-
alias: "k",
|
|
13
|
-
describe: "Anchor wallet keypair",
|
|
14
|
-
default: `${os.homedir()}/.config/solana/id.json`,
|
|
15
|
-
},
|
|
16
|
-
url: {
|
|
17
|
-
alias: "u",
|
|
18
|
-
default: "http://127.0.0.1:8899",
|
|
19
|
-
describe: "The solana url",
|
|
20
|
-
},
|
|
21
|
-
delegatedPositions: {
|
|
22
|
-
type: "string",
|
|
23
|
-
describe: "Path to the delegated positions file",
|
|
24
|
-
default: __dirname + "/delegatedPositions.txt",
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
const argv = await yarg.argv;
|
|
28
|
-
process.env.ANCHOR_WALLET = argv.wallet;
|
|
29
|
-
process.env.ANCHOR_PROVIDER_URL = argv.url;
|
|
30
|
-
anchor.setProvider(anchor.AnchorProvider.local(argv.url));
|
|
31
|
-
const provider = anchor.getProvider();
|
|
32
|
-
const wallet = new anchor.Wallet(loadKeypair(argv.wallet));
|
|
33
|
-
const hsdProgram = await initHsd(provider);
|
|
34
|
-
const delegatedPositions = fs.readFileSync(argv.delegatedPositions, "utf-8")
|
|
35
|
-
.split("\n")
|
|
36
|
-
.filter(line => line.trim() !== ""); // Remove empty lines
|
|
37
|
-
const instructions = [];
|
|
38
|
-
for (const delegatedPosition of delegatedPositions) {
|
|
39
|
-
console.log(delegatedPosition, new PublicKey(delegatedPosition).toBase58());
|
|
40
|
-
instructions.push(await hsdProgram.methods
|
|
41
|
-
.tempFixClaimedEpoch()
|
|
42
|
-
.accounts({
|
|
43
|
-
authority: wallet.publicKey,
|
|
44
|
-
delegatedPosition: new PublicKey(delegatedPosition),
|
|
45
|
-
})
|
|
46
|
-
.instruction());
|
|
47
|
-
}
|
|
48
|
-
await batchParallelInstructionsWithPriorityFee(provider, instructions, { maxSignatureBatch: 100 });
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=fix-claimed-epochs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fix-claimed-epochs.js","sourceRoot":"","sources":["../../../src/fix-claimed-epochs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAI5C,OAAO,EAAE,IAAI,IAA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CAAC,CAAC,CAAC;IAC3D,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE3C,MAAM,kBAAkB,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC;SACzE,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,qBAAqB;IAE5D,MAAM,YAAY,GAA6B,EAAE,CAAC;IAClD,KAAK,MAAM,iBAAiB,IAAI,kBAAkB,EAAE;QAClD,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,IAAI,SAAS,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC5E,YAAY,CAAC,IAAI,CACf,MAAM,UAAU,CAAC,OAAO;aACrB,mBAAmB,EAAE;aACrB,QAAQ,CAAC;YACR,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,iBAAiB,EAAE,IAAI,SAAS,CAAC,iBAAiB,CAAC;SACpD,CAAC;aACD,WAAW,EAAE,CACjB,CAAC;KACH;IACD,MAAM,wCAAwC,CAAC,QAAQ,EAAE,YAAY,EAAE,EAAC,iBAAiB,EAAE,GAAG,EAAC,CAAC,CAAC;AACnG,CAAC"}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import * as anchor from "@coral-xyz/anchor";
|
|
2
|
-
import { ThresholdType } from "@helium/circuit-breaker-sdk";
|
|
3
|
-
import { daoKey, delegatorRewardsPercent, init as initHsd, } from "@helium/helium-sub-daos-sdk";
|
|
4
|
-
import { init as initLazy, lazyDistributorKey, } from "@helium/lazy-distributor-sdk";
|
|
5
|
-
import { organizationKey } from "@helium/organization-sdk";
|
|
6
|
-
import { oracleSignerKey } from "@helium/rewards-oracle-sdk";
|
|
7
|
-
import { batchParallelInstructionsWithPriorityFee, HNT_MINT, IOT_MINT, MOBILE_MINT, } from "@helium/spl-utils";
|
|
8
|
-
import { getAssociatedTokenAddressSync } from "@solana/spl-token";
|
|
9
|
-
import { PublicKey } from "@solana/web3.js";
|
|
10
|
-
import Squads from "@sqds/sdk";
|
|
11
|
-
import os from "os";
|
|
12
|
-
import yargs from "yargs/yargs";
|
|
13
|
-
import { loadKeypair, parseEmissionsSchedule, sendInstructionsOrSquads, } from "./utils";
|
|
14
|
-
export async function run(args = process.argv) {
|
|
15
|
-
const yarg = yargs(args).options({
|
|
16
|
-
wallet: {
|
|
17
|
-
alias: "k",
|
|
18
|
-
describe: "Anchor wallet keypair",
|
|
19
|
-
default: `${os.homedir()}/.config/solana/id.json`,
|
|
20
|
-
},
|
|
21
|
-
url: {
|
|
22
|
-
alias: "u",
|
|
23
|
-
default: "http://127.0.0.1:8899",
|
|
24
|
-
describe: "The solana url",
|
|
25
|
-
},
|
|
26
|
-
iotMint: {
|
|
27
|
-
type: "string",
|
|
28
|
-
describe: "IOT mint of the subdao to migrate",
|
|
29
|
-
default: IOT_MINT.toBase58(),
|
|
30
|
-
},
|
|
31
|
-
hntMint: {
|
|
32
|
-
type: "string",
|
|
33
|
-
describe: "HNT mint of the subdao to migrate",
|
|
34
|
-
default: HNT_MINT.toBase58(),
|
|
35
|
-
},
|
|
36
|
-
mobileMint: {
|
|
37
|
-
type: "string",
|
|
38
|
-
describe: "Mobile mint of the subdao to migrate",
|
|
39
|
-
default: MOBILE_MINT.toBase58(),
|
|
40
|
-
},
|
|
41
|
-
rewardsOracleUrl: {
|
|
42
|
-
alias: "ro",
|
|
43
|
-
type: "string",
|
|
44
|
-
describe: "The rewards oracle URL",
|
|
45
|
-
required: true,
|
|
46
|
-
},
|
|
47
|
-
oracleKey: {
|
|
48
|
-
type: "string",
|
|
49
|
-
describe: "Pubkey of the oracle",
|
|
50
|
-
required: true,
|
|
51
|
-
},
|
|
52
|
-
emissionSchedulePath: {
|
|
53
|
-
required: true,
|
|
54
|
-
describe: "Path to file that contains the hnt emissions schedule",
|
|
55
|
-
type: "string",
|
|
56
|
-
},
|
|
57
|
-
hstEmissionsSchedulePath: {
|
|
58
|
-
required: true,
|
|
59
|
-
describe: "Path to file that contains the new HST emissions schedule",
|
|
60
|
-
type: "string",
|
|
61
|
-
},
|
|
62
|
-
executeTransaction: {
|
|
63
|
-
type: "boolean",
|
|
64
|
-
},
|
|
65
|
-
multisig: {
|
|
66
|
-
type: "string",
|
|
67
|
-
describe: "Address of the squads multisig to be authority. If not provided, your wallet will be the authority",
|
|
68
|
-
},
|
|
69
|
-
authorityIndex: {
|
|
70
|
-
type: "number",
|
|
71
|
-
describe: "Authority index for squads. Defaults to 1",
|
|
72
|
-
default: 1,
|
|
73
|
-
},
|
|
74
|
-
});
|
|
75
|
-
const argv = await yarg.argv;
|
|
76
|
-
process.env.ANCHOR_WALLET = argv.wallet;
|
|
77
|
-
process.env.ANCHOR_PROVIDER_URL = argv.url;
|
|
78
|
-
anchor.setProvider(anchor.AnchorProvider.local(argv.url));
|
|
79
|
-
const provider = anchor.getProvider();
|
|
80
|
-
const wallet = new anchor.Wallet(loadKeypair(argv.wallet));
|
|
81
|
-
const lazyDistProgram = await initLazy(provider);
|
|
82
|
-
const hsdProgram = await initHsd(provider);
|
|
83
|
-
const instructions = [];
|
|
84
|
-
const hntMint = new PublicKey(argv.hntMint);
|
|
85
|
-
const dao = daoKey(hntMint)[0];
|
|
86
|
-
const resizes = [];
|
|
87
|
-
resizes.push(await hsdProgram.methods
|
|
88
|
-
.tempResizeAccount()
|
|
89
|
-
.accounts({
|
|
90
|
-
account: dao,
|
|
91
|
-
payer: wallet.publicKey,
|
|
92
|
-
})
|
|
93
|
-
.instruction());
|
|
94
|
-
const daoEpochInfos = await hsdProgram.account.daoEpochInfoV0.all();
|
|
95
|
-
for (const daoEpochInfo of daoEpochInfos) {
|
|
96
|
-
resizes.push(await hsdProgram.methods
|
|
97
|
-
.tempResizeAccount()
|
|
98
|
-
.accounts({
|
|
99
|
-
account: daoEpochInfo.publicKey,
|
|
100
|
-
payer: wallet.publicKey,
|
|
101
|
-
})
|
|
102
|
-
.instruction());
|
|
103
|
-
}
|
|
104
|
-
console.log("Resizing accounts");
|
|
105
|
-
await batchParallelInstructionsWithPriorityFee(provider, resizes);
|
|
106
|
-
const daoAcc = await hsdProgram.account.daoV0.fetch(dao);
|
|
107
|
-
const authority = daoAcc.authority;
|
|
108
|
-
const oracleKey = new PublicKey(argv.oracleKey);
|
|
109
|
-
const emissionSchedule = await parseEmissionsSchedule(argv.emissionSchedulePath);
|
|
110
|
-
const ld = lazyDistributorKey(hntMint)[0];
|
|
111
|
-
const ldAcc = await lazyDistProgram.account.lazyDistributorV0.fetchNullable(ld);
|
|
112
|
-
if (ldAcc) {
|
|
113
|
-
console.warn("Lazy distributor already exists, skipping.");
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
instructions.push(await lazyDistProgram.methods
|
|
117
|
-
.initializeLazyDistributorV0({
|
|
118
|
-
authority: daoAcc.authority,
|
|
119
|
-
oracles: [
|
|
120
|
-
{
|
|
121
|
-
oracle: oracleKey,
|
|
122
|
-
url: argv.rewardsOracleUrl,
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
// 5 x epoch rewards in a 24 hour period
|
|
126
|
-
windowConfig: {
|
|
127
|
-
windowSizeSeconds: new anchor.BN(24 * 60 * 60),
|
|
128
|
-
thresholdType: ThresholdType.Absolute,
|
|
129
|
-
threshold: new anchor.BN(emissionSchedule[0].emissionsPerEpoch).mul(new anchor.BN(5)),
|
|
130
|
-
},
|
|
131
|
-
approver: oracleSignerKey()[0],
|
|
132
|
-
})
|
|
133
|
-
.accounts({
|
|
134
|
-
payer: authority,
|
|
135
|
-
rewardsMint: hntMint,
|
|
136
|
-
})
|
|
137
|
-
.instruction());
|
|
138
|
-
}
|
|
139
|
-
instructions.push(await hsdProgram.methods
|
|
140
|
-
.updateDaoV0({
|
|
141
|
-
authority: null,
|
|
142
|
-
emissionSchedule: null,
|
|
143
|
-
hstEmissionSchedule: await parseEmissionsSchedule(argv.hstEmissionsSchedulePath),
|
|
144
|
-
netEmissionsCap: null,
|
|
145
|
-
hstPool: null,
|
|
146
|
-
proposalNamespace: organizationKey("Helium")[0],
|
|
147
|
-
delegatorRewardsPercent: delegatorRewardsPercent(6),
|
|
148
|
-
rewardsEscrow: getAssociatedTokenAddressSync(hntMint, ld, true),
|
|
149
|
-
})
|
|
150
|
-
.accounts({
|
|
151
|
-
dao,
|
|
152
|
-
authority: daoAcc.authority,
|
|
153
|
-
payer: daoAcc.authority,
|
|
154
|
-
})
|
|
155
|
-
.instruction());
|
|
156
|
-
if (!daoAcc.delegatorPool || daoAcc.delegatorPool.equals(PublicKey.default)) {
|
|
157
|
-
instructions.push(await hsdProgram.methods
|
|
158
|
-
.initializeHntDelegatorPool()
|
|
159
|
-
.accounts({
|
|
160
|
-
dao,
|
|
161
|
-
payer: daoAcc.authority,
|
|
162
|
-
delegatorPool: getAssociatedTokenAddressSync(hntMint, dao, true),
|
|
163
|
-
authority: daoAcc.authority,
|
|
164
|
-
})
|
|
165
|
-
.instruction());
|
|
166
|
-
}
|
|
167
|
-
const squads = Squads.endpoint(process.env.ANCHOR_PROVIDER_URL, wallet, {
|
|
168
|
-
commitmentOrConfig: "finalized",
|
|
169
|
-
});
|
|
170
|
-
await sendInstructionsOrSquads({
|
|
171
|
-
provider,
|
|
172
|
-
instructions,
|
|
173
|
-
executeTransaction: argv.executeTransaction,
|
|
174
|
-
squads,
|
|
175
|
-
multisig: argv.multisig ? new PublicKey(argv.multisig) : undefined,
|
|
176
|
-
authorityIndex: argv.authorityIndex,
|
|
177
|
-
signers: [],
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
//# sourceMappingURL=migrate-to-hip-138.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-to-hip-138.js","sourceRoot":"","sources":["../../../src/migrate-to-hip-138.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,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,cAAc;QACnC,OAAO,EAAE,EAAE;KACZ,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fix-claimed-epochs.d.ts","sourceRoot":"","sources":["../../../src/fix-claimed-epochs.ts"],"names":[],"mappings":"AAsBA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA4CjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-to-hip-138.d.ts","sourceRoot":"","sources":["../../../src/migrate-to-hip-138.ts"],"names":[],"mappings":"AA8BA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAgMjD"}
|