@helium/helium-admin-cli 0.9.8 → 0.9.9-next.13
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/initialize-vetoken-tracking.js +37 -1
- package/lib/cjs/initialize-vetoken-tracking.js.map +1 -1
- package/lib/esm/src/initialize-vetoken-tracking.js +37 -1
- package/lib/esm/src/initialize-vetoken-tracking.js.map +1 -1
- package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/src/initialize-vetoken-tracking.d.ts.map +1 -1
- package/package.json +14 -14
- package/lib/cjs/calc-rewards-percents.js +0 -48
- package/lib/cjs/calc-rewards-percents.js.map +0 -1
- package/lib/esm/src/calc-rewards-percents.js +0 -30
- package/lib/esm/src/calc-rewards-percents.js.map +0 -1
- package/lib/types/src/calc-rewards-percents.d.ts +0 -2
- package/lib/types/src/calc-rewards-percents.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize-vetoken-tracking.d.ts","sourceRoot":"","sources":["../../../src/initialize-vetoken-tracking.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"initialize-vetoken-tracking.d.ts","sourceRoot":"","sources":["../../../src/initialize-vetoken-tracking.ts"],"names":[],"mappings":"AAmBA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBAwKjD"}
|
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.9-next.13+369779a7",
|
|
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.9-next.13+369779a7",
|
|
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.9-next.13+369779a7",
|
|
46
|
+
"@helium/distributor-oracle": "^0.9.9-next.13+369779a7",
|
|
47
|
+
"@helium/fanout-sdk": "^0.9.9-next.13+369779a7",
|
|
48
|
+
"@helium/helium-entity-manager-sdk": "^0.9.9-next.13+369779a7",
|
|
49
|
+
"@helium/helium-sub-daos-sdk": "^0.9.9-next.13+369779a7",
|
|
50
|
+
"@helium/lazy-distributor-sdk": "^0.9.9-next.13+369779a7",
|
|
51
|
+
"@helium/mobile-entity-manager-sdk": "^0.9.9-next.13+369779a7",
|
|
52
52
|
"@helium/nft-proxy-sdk": "^0.0.12",
|
|
53
53
|
"@helium/organization-sdk": "^0.0.13",
|
|
54
|
-
"@helium/position-voting-rewards-sdk": "^0.9.
|
|
55
|
-
"@helium/price-oracle-sdk": "^0.9.
|
|
56
|
-
"@helium/spl-utils": "^0.9.
|
|
57
|
-
"@helium/treasury-management-sdk": "^0.9.
|
|
54
|
+
"@helium/position-voting-rewards-sdk": "^0.9.9-next.13+369779a7",
|
|
55
|
+
"@helium/price-oracle-sdk": "^0.9.9-next.13+369779a7",
|
|
56
|
+
"@helium/spl-utils": "^0.9.9-next.13+369779a7",
|
|
57
|
+
"@helium/treasury-management-sdk": "^0.9.9-next.13+369779a7",
|
|
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",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"typescript": "^5.2.2"
|
|
74
74
|
},
|
|
75
75
|
"author": "",
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "369779a798035d14ff8c30d0ee4a2f877bb0999d"
|
|
77
77
|
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.run = void 0;
|
|
16
|
-
const yargs_1 = __importDefault(require("yargs"));
|
|
17
|
-
function run(args = process.argv) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const yarg = (0, yargs_1.default)(args).options({
|
|
20
|
-
totalEmissionsPercent: {
|
|
21
|
-
type: "number",
|
|
22
|
-
describe: "The total emissions percent",
|
|
23
|
-
required: true,
|
|
24
|
-
},
|
|
25
|
-
onChainEmissionPercent: {
|
|
26
|
-
type: "number",
|
|
27
|
-
describe: "The on-chain emission percent, in terms of percent of the whole",
|
|
28
|
-
required: true,
|
|
29
|
-
},
|
|
30
|
-
totalEmissions: {
|
|
31
|
-
type: "number",
|
|
32
|
-
describe: "The total emissions at 100%, in terms of tokens, per epoch",
|
|
33
|
-
required: true,
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
const argv = yield yarg.argv;
|
|
37
|
-
// totalEmissionsPercent totalEmissions = currentTokens,
|
|
38
|
-
// onChainEmissionPercent * totalEmissions = numOnChainTokens
|
|
39
|
-
// numOnChainTokens/currentTokens = actualEmissionPercent
|
|
40
|
-
const currentTokens = (argv.totalEmissionsPercent / 100 * argv.totalEmissions);
|
|
41
|
-
const numOnChainTokens = (argv.onChainEmissionPercent / 100 * argv.totalEmissions);
|
|
42
|
-
const actualEmissionPercent = numOnChainTokens / currentTokens;
|
|
43
|
-
console.log("Actual emission percent: ", actualEmissionPercent * 100);
|
|
44
|
-
console.log("Tokens to emit per epoch", currentTokens);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
exports.run = run;
|
|
48
|
-
//# sourceMappingURL=calc-rewards-percents.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calc-rewards-percents.js","sourceRoot":"","sources":["../../src/calc-rewards-percents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAE1B,SAAsB,GAAG,CAAC,OAAY,OAAO,CAAC,IAAI;;QAChD,MAAM,IAAI,GAAG,IAAA,eAAK,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC;YAC/B,qBAAqB,EAAE;gBACrB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,6BAA6B;gBACvC,QAAQ,EAAE,IAAI;aACf;YACD,sBAAsB,EAAE;gBACtB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EACN,iEAAiE;gBACnE,QAAQ,EAAE,IAAI;aACf;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,4DAA4D;gBACtE,QAAQ,EAAE,IAAI;aACf;SACF,CAAC,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC;QAE7B,wDAAwD;QACxD,6DAA6D;QAC7D,yDAAyD;QACzD,MAAM,aAAa,GACjB,CAAC,IAAI,CAAC,qBAAqB,GAAG,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC;QAC3D,MAAM,gBAAgB,GACpB,CAAC,IAAI,CAAC,sBAAsB,GAAG,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC;QAC5D,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,aAAa,CAAC;QAC/D,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,qBAAqB,GAAG,GAAG,CAAC,CAAC;QACtE,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAC;IACzD,CAAC;CAAA;AA/BD,kBA+BC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import yargs from "yargs";
|
|
2
|
-
export async function run(args = process.argv) {
|
|
3
|
-
const yarg = yargs(args).options({
|
|
4
|
-
totalEmissionsPercent: {
|
|
5
|
-
type: "number",
|
|
6
|
-
describe: "The total emissions percent",
|
|
7
|
-
required: true,
|
|
8
|
-
},
|
|
9
|
-
onChainEmissionPercent: {
|
|
10
|
-
type: "number",
|
|
11
|
-
describe: "The on-chain emission percent, in terms of percent of the whole",
|
|
12
|
-
required: true,
|
|
13
|
-
},
|
|
14
|
-
totalEmissions: {
|
|
15
|
-
type: "number",
|
|
16
|
-
describe: "The total emissions at 100%, in terms of tokens, per epoch",
|
|
17
|
-
required: true,
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
const argv = await yarg.argv;
|
|
21
|
-
// totalEmissionsPercent totalEmissions = currentTokens,
|
|
22
|
-
// onChainEmissionPercent * totalEmissions = numOnChainTokens
|
|
23
|
-
// numOnChainTokens/currentTokens = actualEmissionPercent
|
|
24
|
-
const currentTokens = (argv.totalEmissionsPercent / 100 * argv.totalEmissions);
|
|
25
|
-
const numOnChainTokens = (argv.onChainEmissionPercent / 100 * argv.totalEmissions);
|
|
26
|
-
const actualEmissionPercent = numOnChainTokens / currentTokens;
|
|
27
|
-
console.log("Actual emission percent: ", actualEmissionPercent * 100);
|
|
28
|
-
console.log("Tokens to emit per epoch", currentTokens);
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=calc-rewards-percents.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calc-rewards-percents.js","sourceRoot":"","sources":["../../../src/calc-rewards-percents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,KAAK,UAAU,GAAG,CAAC,OAAY,OAAO,CAAC,IAAI;IAChD,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC;QAC/B,qBAAqB,EAAE;YACrB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,6BAA6B;YACvC,QAAQ,EAAE,IAAI;SACf;QACD,sBAAsB,EAAE;YACtB,IAAI,EAAE,QAAQ;YACd,QAAQ,EACN,iEAAiE;YACnE,QAAQ,EAAE,IAAI;SACf;QACD,cAAc,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,4DAA4D;YACtE,QAAQ,EAAE,IAAI;SACf;KACF,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC;IAE7B,wDAAwD;IACxD,6DAA6D;IAC7D,yDAAyD;IACzD,MAAM,aAAa,GACjB,CAAC,IAAI,CAAC,qBAAqB,GAAG,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC;IAC3D,MAAM,gBAAgB,GACpB,CAAC,IAAI,CAAC,sBAAsB,GAAG,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC;IAC5D,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,aAAa,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,qBAAqB,GAAG,GAAG,CAAC,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calc-rewards-percents.d.ts","sourceRoot":"","sources":["../../../src/calc-rewards-percents.ts"],"names":[],"mappings":"AAEA,wBAAsB,GAAG,CAAC,IAAI,GAAE,GAAkB,iBA+BjD"}
|