@helium/helium-admin-cli 0.10.0-alpha.11 → 0.10.0-alpha.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/add-expiration-to-delegations.js +1 -1
- package/lib/cjs/backfill-mobile-deployment-infos.js +1 -1
- package/lib/esm/src/add-expiration-to-delegations.js +1 -1
- package/lib/esm/src/backfill-mobile-deployment-infos.js +1 -1
- package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +14 -14
|
@@ -88,7 +88,7 @@ function run(args = process.argv) {
|
|
|
88
88
|
const positionAccs = (yield getMultipleAccounts({
|
|
89
89
|
connection: provider.connection,
|
|
90
90
|
keys: positionKeys,
|
|
91
|
-
})).map((a) => a ? coder.decode("
|
|
91
|
+
})).map((a) => a ? coder.decode("positionV0", a.data) : null);
|
|
92
92
|
const currTs = yield getSolanaUnixTimestamp(provider);
|
|
93
93
|
const currTsBN = new anchor.BN(currTs.toString());
|
|
94
94
|
const proxyEndTs = (_a = proxyConfig.seasons
|
|
@@ -147,7 +147,7 @@ function run(args = process.argv) {
|
|
|
147
147
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
148
148
|
if (acc.data) {
|
|
149
149
|
let correction = {};
|
|
150
|
-
const decodedAcc = hem.coder.accounts.decode("
|
|
150
|
+
const decodedAcc = hem.coder.accounts.decode("mobileHotspotInfoV0", acc.data);
|
|
151
151
|
const deploymentInfoMissing = !decodedAcc.deploymentInfo && hasDeploymentInfo(acc.wifiInfo);
|
|
152
152
|
const correctedDeploymentInfo = {
|
|
153
153
|
antenna: acc.wifiInfo.deploymentInfo.antenna ||
|
|
@@ -48,7 +48,7 @@ export async function run(args = process.argv) {
|
|
|
48
48
|
const positionAccs = (await getMultipleAccounts({
|
|
49
49
|
connection: provider.connection,
|
|
50
50
|
keys: positionKeys,
|
|
51
|
-
})).map((a) => a ? coder.decode("
|
|
51
|
+
})).map((a) => a ? coder.decode("positionV0", a.data) : null);
|
|
52
52
|
const currTs = await getSolanaUnixTimestamp(provider);
|
|
53
53
|
const currTsBN = new anchor.BN(currTs.toString());
|
|
54
54
|
const proxyEndTs = proxyConfig.seasons
|
|
@@ -114,7 +114,7 @@ export async function run(args = process.argv) {
|
|
|
114
114
|
const ixs = (await Promise.all(accountInfosWithPk.map(async (acc) => {
|
|
115
115
|
if (acc.data) {
|
|
116
116
|
let correction = {};
|
|
117
|
-
const decodedAcc = hem.coder.accounts.decode("
|
|
117
|
+
const decodedAcc = hem.coder.accounts.decode("mobileHotspotInfoV0", acc.data);
|
|
118
118
|
const deploymentInfoMissing = !decodedAcc.deploymentInfo && hasDeploymentInfo(acc.wifiInfo);
|
|
119
119
|
const correctedDeploymentInfo = {
|
|
120
120
|
antenna: acc.wifiInfo.deploymentInfo.antenna ||
|