@helium/distributor-oracle 0.0.1

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 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
+
@@ -0,0 +1,84 @@
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.formTransaction = exports.getCurrentRewards = void 0;
16
+ const anchor_1 = require("@project-serum/anchor");
17
+ const web3_js_1 = require("@solana/web3.js");
18
+ const axios_1 = __importDefault(require("axios"));
19
+ const lazy_distributor_sdk_1 = require("@helium/lazy-distributor-sdk");
20
+ const spl_token_1 = require("@solana/spl-token");
21
+ function getCurrentRewards(program, lazyDistributor, mint) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const lazyDistributorAcc = yield program.account.lazyDistributorV0.fetch(lazyDistributor);
24
+ const results = yield Promise.all(lazyDistributorAcc.oracles.map((x) => axios_1.default.get(`${x.url}?mint=${mint.toBase58()}`)));
25
+ return results.map((x, idx) => {
26
+ return {
27
+ currentRewards: x.data.currentRewards,
28
+ oracleKey: lazyDistributorAcc.oracles[idx].oracle,
29
+ };
30
+ });
31
+ });
32
+ }
33
+ exports.getCurrentRewards = getCurrentRewards;
34
+ function formTransaction(program, provider, rewards, hotspot, lazyDistributor, wallet) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ const recipient = (yield (0, lazy_distributor_sdk_1.recipientKey)(lazyDistributor, hotspot))[0];
37
+ const ixPromises = rewards.map((x, idx) => {
38
+ return program.methods
39
+ .setCurrentRewardsV0({
40
+ currentRewards: new anchor_1.BN(x.currentRewards),
41
+ oracleIndex: idx,
42
+ })
43
+ .accounts({
44
+ lazyDistributor,
45
+ recipient,
46
+ oracle: x.oracleKey,
47
+ })
48
+ .instruction();
49
+ });
50
+ const ixs = yield Promise.all(ixPromises);
51
+ let tx = new web3_js_1.Transaction();
52
+ if (!(yield provider.connection.getAccountInfo(recipient))) {
53
+ const ix = yield program.methods.initializeRecipientV0().accounts({
54
+ lazyDistributor,
55
+ mint: hotspot
56
+ }).instruction();
57
+ tx.add(ix);
58
+ }
59
+ tx.add(...ixs);
60
+ const holders = yield provider.connection.getTokenLargestAccounts(hotspot);
61
+ const mintAccount = holders.value[0].address;
62
+ const mintTokenAccount = yield (0, spl_token_1.getAccount)(provider.connection, mintAccount);
63
+ const rewardsMint = (yield program.account.lazyDistributorV0.fetch(lazyDistributor)).rewardsMint;
64
+ const distributeIx = yield program.methods
65
+ .distributeRewardsV0()
66
+ .accounts({
67
+ recipient,
68
+ lazyDistributor,
69
+ rewardsMint,
70
+ })
71
+ .instruction();
72
+ tx.recentBlockhash = (yield provider.connection.getLatestBlockhash()).blockhash;
73
+ tx.feePayer = wallet ? wallet : provider.wallet.publicKey;
74
+ tx.add(distributeIx);
75
+ //@ts-ignore
76
+ if (provider.signTransaction) {
77
+ //@ts-ignore
78
+ return yield provider.signTransaction(tx);
79
+ }
80
+ return yield provider.wallet.signTransaction(tx);
81
+ });
82
+ }
83
+ exports.formTransaction = formTransaction;
84
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"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,CAC/C,CAAC,SAAS,CAAC;QAEZ,EAAE,CAAC,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC;QAE1D,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACrB,YAAY;QACZ,IAAI,QAAQ,CAAC,eAAe,EAAE;YAC5B,YAAY;YACZ,OAAO,MAAM,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;SAC3C;QACD,OAAO,MAAM,QAAQ,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IACnD,CAAC;CAAA;AA5DD,0CA4DC"}
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
@@ -0,0 +1,232 @@
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.OracleServer = exports.DatabaseMock = void 0;
16
+ const dotenv_1 = __importDefault(require("dotenv"));
17
+ dotenv_1.default.config();
18
+ const express_1 = __importDefault(require("express"));
19
+ const address_1 = __importDefault(require("@helium/address"));
20
+ // @ts-ignore
21
+ const cors_1 = __importDefault(require("cors"));
22
+ const web3_js_1 = require("@solana/web3.js");
23
+ const body_parser_1 = __importDefault(require("body-parser"));
24
+ const anchor_1 = require("@project-serum/anchor");
25
+ const hotspot_issuance_sdk_1 = require("@helium/hotspot-issuance-sdk");
26
+ const lazy_distributor_sdk_1 = require("@helium/lazy-distributor-sdk");
27
+ const fs_1 = __importDefault(require("fs"));
28
+ class DatabaseMock {
29
+ constructor(issuanceProgram) {
30
+ this.issuanceProgram = issuanceProgram;
31
+ this.inMemHash = {
32
+ totalClicks: 0,
33
+ lifetimeRewards: 0,
34
+ byHotspot: {},
35
+ };
36
+ }
37
+ getCurrentRewards(mint) {
38
+ var _a;
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const storageKey = (0, hotspot_issuance_sdk_1.hotspotStorageKey)(mint)[0];
41
+ try {
42
+ const storage = yield this.issuanceProgram.account.hotspotStorageV0.fetch(storageKey);
43
+ const pubkey = new address_1.default(0, 0, 0, storage.eccCompact).b58;
44
+ return Math.floor((((_a = this.inMemHash.byHotspot[pubkey]) === null || _a === void 0 ? void 0 : _a.lifetimeRewards) || 0) *
45
+ Math.pow(10, 8)).toString();
46
+ }
47
+ catch (err) {
48
+ console.error("Mint with error: ", mint.toString());
49
+ console.error(err);
50
+ return "0";
51
+ }
52
+ });
53
+ }
54
+ incrementHotspotRewards(hotspotKey) {
55
+ var _a, _b;
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ this.inMemHash = Object.assign(Object.assign({}, this.inMemHash), { totalClicks: this.inMemHash.totalClicks + 1, byHotspot: Object.assign(Object.assign({}, this.inMemHash.byHotspot), { [hotspotKey]: {
58
+ totalClicks: (((_a = this.inMemHash.byHotspot[hotspotKey]) === null || _a === void 0 ? void 0 : _a.totalClicks) || 0) + 1,
59
+ lifetimeRewards: ((_b = this.inMemHash.byHotspot[hotspotKey]) === null || _b === void 0 ? void 0 : _b.lifetimeRewards) || 0,
60
+ } }) });
61
+ });
62
+ }
63
+ endEpoch() {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const rewardablePercentageByHotspot = {};
66
+ const { totalClicks, byHotspot } = this.inMemHash;
67
+ const clickRewardsDiff = totalClicks;
68
+ const maxEpochRewards = +(process.env.EPOCH_MAX_REWARDS || 50);
69
+ if (maxEpochRewards > 0) {
70
+ for (const [key, value] of Object.entries(byHotspot)) {
71
+ const diff = value.totalClicks;
72
+ let awardedAmount = diff <= 0 ? 0 : (diff / clickRewardsDiff) * maxEpochRewards;
73
+ rewardablePercentageByHotspot[key] = awardedAmount;
74
+ this.inMemHash = {
75
+ totalClicks: 0,
76
+ lifetimeRewards: this.inMemHash.lifetimeRewards + awardedAmount,
77
+ byHotspot: Object.assign(Object.assign({}, this.inMemHash.byHotspot), { [key]: {
78
+ totalClicks: 0,
79
+ lifetimeRewards: this.inMemHash.byHotspot[key].lifetimeRewards + awardedAmount,
80
+ } }),
81
+ };
82
+ }
83
+ }
84
+ return rewardablePercentageByHotspot;
85
+ });
86
+ }
87
+ }
88
+ exports.DatabaseMock = DatabaseMock;
89
+ class OracleServer {
90
+ constructor(program, issuanceProgram, oracle, db) {
91
+ this.program = program;
92
+ this.issuanceProgram = issuanceProgram;
93
+ this.oracle = oracle;
94
+ this.db = db;
95
+ this.port = 8080;
96
+ const app = (0, express_1.default)();
97
+ app.use((0, cors_1.default)());
98
+ app.use(body_parser_1.default.json());
99
+ this.app = app;
100
+ this.addRoutes();
101
+ }
102
+ start() {
103
+ this.server = this.app.listen(this.port, () => {
104
+ console.log(`server started at http://localhost:${this.port}`);
105
+ });
106
+ }
107
+ close() {
108
+ this.server.close();
109
+ }
110
+ addRoutes() {
111
+ this.app.get("/", this.getCurrentRewardsHandler.bind(this));
112
+ this.app.post("/", this.signTransactionHandler.bind(this));
113
+ this.app.post("/hotspots", this.incrementHotspotRewardsHandler.bind(this));
114
+ this.app.post("/endepoch", this.endEpochHandler.bind(this));
115
+ }
116
+ endEpochHandler(reg, res) {
117
+ return __awaiter(this, void 0, void 0, function* () {
118
+ const percentageOfRewardsByHotspot = yield this.db.endEpoch();
119
+ res.json({
120
+ success: true,
121
+ distributionByHotspot: percentageOfRewardsByHotspot,
122
+ });
123
+ });
124
+ }
125
+ incrementHotspotRewardsHandler(req, res) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ const hotspotStr = req.body.hotspotKey;
128
+ if (!hotspotStr) {
129
+ res.status(400).json({ error: "No hotspot key provided" });
130
+ return;
131
+ }
132
+ yield this.db.incrementHotspotRewards(hotspotStr);
133
+ res.json({ success: true });
134
+ });
135
+ }
136
+ getCurrentRewardsHandler(req, res) {
137
+ return __awaiter(this, void 0, void 0, function* () {
138
+ const mintStr = req.query.mint;
139
+ if (!mintStr) {
140
+ res.status(400).json({ error: "No mint key provided" });
141
+ return;
142
+ }
143
+ let mint;
144
+ try {
145
+ mint = new web3_js_1.PublicKey(mintStr);
146
+ }
147
+ catch (err) {
148
+ res.status(400).json({ error: "Invalid mint key" });
149
+ return;
150
+ }
151
+ const currentRewards = yield this.db.getCurrentRewards(mint);
152
+ res.json({
153
+ currentRewards,
154
+ });
155
+ });
156
+ }
157
+ signTransactionHandler(req, res) {
158
+ var _a;
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ if (!req.body.transaction) {
161
+ res.status(400).json({ error: "No transaction field" });
162
+ return;
163
+ }
164
+ const tx = web3_js_1.Transaction.from(req.body.transaction.data);
165
+ // validate only interacts with LD program and only calls setCurrentRewards and distributeRewards
166
+ const setRewardIxs = [];
167
+ for (const ix of tx.instructions) {
168
+ if (!ix.programId.equals(lazy_distributor_sdk_1.PROGRAM_ID)) {
169
+ res.status(400).json({ error: "Invalid instructions in transaction" });
170
+ return;
171
+ }
172
+ let decoded = this.program.coder.instruction.decode(ix.data);
173
+ if (!decoded ||
174
+ (decoded.name !== "setCurrentRewardsV0" &&
175
+ decoded.name !== "distributeRewardsV0" &&
176
+ decoded.name !== "initializeRecipientV0")) {
177
+ res.status(400).json({ error: "Invalid instructions in transaction" });
178
+ return;
179
+ }
180
+ if (decoded.name === "setCurrentRewardsV0")
181
+ setRewardIxs.push(ix);
182
+ }
183
+ const setRewardsIx = this.program.idl.instructions.find((x) => x.name === "setCurrentRewardsV0");
184
+ const oracleKeyIdx = setRewardsIx.accounts.findIndex((x) => x.name === "oracle");
185
+ const recipientIdx = setRewardsIx.accounts.findIndex((x) => x.name === "recipient");
186
+ // validate setRewards value for this oracle is correct
187
+ for (const ix of setRewardIxs) {
188
+ if (ix.keys[oracleKeyIdx].pubkey.equals(this.oracle.publicKey)) {
189
+ let decoded = this.program.coder.instruction.decode(ix.data);
190
+ const recipientAcc = yield this.program.account.recipientV0.fetch(ix.keys[recipientIdx].pubkey);
191
+ const currentRewards = yield this.db.getCurrentRewards(recipientAcc.mint);
192
+ // @ts-ignore
193
+ if (decoded.data.args.currentRewards.toNumber() > currentRewards) {
194
+ res.status(400).json({ error: "Invalid amount" });
195
+ return;
196
+ }
197
+ }
198
+ }
199
+ // validate that this oracle is not the fee payer
200
+ if ((_a = tx.feePayer) === null || _a === void 0 ? void 0 : _a.equals(this.oracle.publicKey)) {
201
+ res
202
+ .status(400)
203
+ .json({ error: "Cannot set this oracle as the fee payer" });
204
+ return;
205
+ }
206
+ tx.partialSign(this.oracle);
207
+ const serialized = tx.serialize({
208
+ requireAllSignatures: false,
209
+ verifySignatures: false,
210
+ });
211
+ res.json({ success: true, transaction: serialized });
212
+ });
213
+ }
214
+ }
215
+ exports.OracleServer = OracleServer;
216
+ (function () {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ if (process.argv.length > 2 && process.argv[2] == "serve") {
219
+ // driver code for running server
220
+ (0, anchor_1.setProvider)(anchor_1.AnchorProvider.env());
221
+ const provider = (0, anchor_1.getProvider)();
222
+ const oracleKeypair = web3_js_1.Keypair.fromSecretKey(new Uint8Array(JSON.parse(fs_1.default
223
+ .readFileSync((process.env.ORACLE_KEYPAIR_PATH || process.env.ANCHOR_WALLET))
224
+ .toString())));
225
+ const program = yield (0, lazy_distributor_sdk_1.init)(provider);
226
+ const hotspotIssuanceProgram = yield (0, hotspot_issuance_sdk_1.init)(provider);
227
+ const server = new OracleServer(program, hotspotIssuanceProgram, oracleKeypair, new DatabaseMock(hotspotIssuanceProgram));
228
+ server.start();
229
+ }
230
+ });
231
+ })();
232
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAA4B;AAC5B,gBAAM,CAAC,MAAM,EAAE,CAAC;AAChB,sDAAkE;AAClE,8DAAsC;AACtC,aAAa;AACb,gDAAwB;AACxB,6CAKyB;AACzB,8DAAqC;AACrC,kDAM+B;AAG/B,uEAGsC;AACtC,uEAAgE;AAChE,4CAAoB;AAUpB,MAAa,YAAY;IAYvB,YAAqB,eAAyC;QAAzC,oBAAe,GAAf,eAAe,CAA0B;QAC5D,IAAI,CAAC,SAAS,GAAG;YACf,WAAW,EAAE,CAAC;YACd,eAAe,EAAE,CAAC;YAClB,SAAS,EAAE,EAAE;SACd,CAAC;IACJ,CAAC;IAEK,iBAAiB,CAAC,I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um/anchor";
2
+ import { Transaction } from "@solana/web3.js";
3
+ import axios from "axios";
4
+ import { recipientKey } from "@helium/lazy-distributor-sdk";
5
+ import { getAccount } from "@solana/spl-token";
6
+ export async function getCurrentRewards(program, lazyDistributor, mint) {
7
+ const lazyDistributorAcc = await program.account.lazyDistributorV0.fetch(lazyDistributor);
8
+ const results = await Promise.all(lazyDistributorAcc.oracles.map((x) => axios.get(`${x.url}?mint=${mint.toBase58()}`)));
9
+ return results.map((x, idx) => {
10
+ return {
11
+ currentRewards: x.data.currentRewards,
12
+ oracleKey: lazyDistributorAcc.oracles[idx].oracle,
13
+ };
14
+ });
15
+ }
16
+ export async function formTransaction(program, provider, rewards, hotspot, lazyDistributor, wallet) {
17
+ const recipient = (await recipientKey(lazyDistributor, hotspot))[0];
18
+ const ixPromises = rewards.map((x, idx) => {
19
+ return program.methods
20
+ .setCurrentRewardsV0({
21
+ currentRewards: new BN(x.currentRewards),
22
+ oracleIndex: idx,
23
+ })
24
+ .accounts({
25
+ lazyDistributor,
26
+ recipient,
27
+ oracle: x.oracleKey,
28
+ })
29
+ .instruction();
30
+ });
31
+ const ixs = await Promise.all(ixPromises);
32
+ let tx = new Transaction();
33
+ if (!await provider.connection.getAccountInfo(recipient)) {
34
+ const ix = await program.methods.initializeRecipientV0().accounts({
35
+ lazyDistributor,
36
+ mint: hotspot
37
+ }).instruction();
38
+ tx.add(ix);
39
+ }
40
+ tx.add(...ixs);
41
+ const holders = await provider.connection.getTokenLargestAccounts(hotspot);
42
+ const mintAccount = holders.value[0].address;
43
+ const mintTokenAccount = await getAccount(provider.connection, mintAccount);
44
+ const rewardsMint = (await program.account.lazyDistributorV0.fetch(lazyDistributor)).rewardsMint;
45
+ const distributeIx = await program.methods
46
+ .distributeRewardsV0()
47
+ .accounts({
48
+ recipient,
49
+ lazyDistributor,
50
+ rewardsMint,
51
+ })
52
+ .instruction();
53
+ tx.recentBlockhash = (await provider.connection.getLatestBlockhash()).blockhash;
54
+ tx.feePayer = wallet ? wallet : provider.wallet.publicKey;
55
+ tx.add(distributeIx);
56
+ //@ts-ignore
57
+ if (provider.signTransaction) {
58
+ //@ts-ignore
59
+ return await provider.signTransaction(tx);
60
+ }
61
+ return await provider.wallet.signTransaction(tx);
62
+ }
63
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,EAAE,GACH,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAM/C,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,OAAiC,EACjC,eAA0B,EAC1B,IAAe;IAEf,MAAM,kBAAkB,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,CACtE,eAAe,CAChB,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACnC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAC9C,CACF,CAAC;IACF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;QAC5B,OAAO;YACL,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc;YACrC,SAAS,EAAE,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM;SAClD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,OAAiC,EACjC,QAAwB,EACx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,CAAC;IAC5E,MAAM,WAAW,GAAG,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,WAAW,CAAC;IAEjG,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,OAAO;SACvC,mBAAmB,EAAE;SACrB,QAAQ,CAAC;QACR,SAAS;QACT,eAAe;QACf,WAAW;KACZ,CAAC;SACD,WAAW,EAAE,CAAC;IAEjB,EAAE,CAAC,eAAe,GAAG,CACnB,MAAM,QAAQ,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAC/C,CAAC,SAAS,CAAC;IAEZ,EAAE,CAAC,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC;IAE1D,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACrB,YAAY;IACZ,IAAI,QAAQ,CAAC,eAAe,EAAE;QAC5B,YAAY;QACZ,OAAO,MAAM,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;KAC3C;IACD,OAAO,MAAM,QAAQ,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;AACnD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,214 @@
1
+ import dotenv from "dotenv";
2
+ dotenv.config();
3
+ import express from "express";
4
+ import Address from "@helium/address";
5
+ // @ts-ignore
6
+ import cors from "cors";
7
+ import { PublicKey, Transaction, Keypair, } from "@solana/web3.js";
8
+ import bodyParser from "body-parser";
9
+ import { AnchorProvider, setProvider, getProvider, } from "@project-serum/anchor";
10
+ import { hotspotStorageKey, init as initHotspotIssuance, } from "@helium/hotspot-issuance-sdk";
11
+ import { init, PROGRAM_ID } from "@helium/lazy-distributor-sdk";
12
+ import fs from "fs";
13
+ export class DatabaseMock {
14
+ issuanceProgram;
15
+ inMemHash;
16
+ constructor(issuanceProgram) {
17
+ this.issuanceProgram = issuanceProgram;
18
+ this.inMemHash = {
19
+ totalClicks: 0,
20
+ lifetimeRewards: 0,
21
+ byHotspot: {},
22
+ };
23
+ }
24
+ async getCurrentRewards(mint) {
25
+ const storageKey = hotspotStorageKey(mint)[0];
26
+ try {
27
+ const storage = await this.issuanceProgram.account.hotspotStorageV0.fetch(storageKey);
28
+ const pubkey = new Address(0, 0, 0, storage.eccCompact).b58;
29
+ return Math.floor((this.inMemHash.byHotspot[pubkey]?.lifetimeRewards || 0) *
30
+ Math.pow(10, 8)).toString();
31
+ }
32
+ catch (err) {
33
+ console.error("Mint with error: ", mint.toString());
34
+ console.error(err);
35
+ return "0";
36
+ }
37
+ }
38
+ async incrementHotspotRewards(hotspotKey) {
39
+ this.inMemHash = {
40
+ ...this.inMemHash,
41
+ totalClicks: this.inMemHash.totalClicks + 1,
42
+ byHotspot: {
43
+ ...this.inMemHash.byHotspot,
44
+ [hotspotKey]: {
45
+ totalClicks: (this.inMemHash.byHotspot[hotspotKey]?.totalClicks || 0) + 1,
46
+ lifetimeRewards: this.inMemHash.byHotspot[hotspotKey]?.lifetimeRewards || 0,
47
+ },
48
+ },
49
+ };
50
+ }
51
+ async endEpoch() {
52
+ const rewardablePercentageByHotspot = {};
53
+ const { totalClicks, byHotspot } = this.inMemHash;
54
+ const clickRewardsDiff = totalClicks;
55
+ const maxEpochRewards = +(process.env.EPOCH_MAX_REWARDS || 50);
56
+ if (maxEpochRewards > 0) {
57
+ for (const [key, value] of Object.entries(byHotspot)) {
58
+ const diff = value.totalClicks;
59
+ let awardedAmount = diff <= 0 ? 0 : (diff / clickRewardsDiff) * maxEpochRewards;
60
+ rewardablePercentageByHotspot[key] = awardedAmount;
61
+ this.inMemHash = {
62
+ totalClicks: 0,
63
+ lifetimeRewards: this.inMemHash.lifetimeRewards + awardedAmount,
64
+ byHotspot: {
65
+ ...this.inMemHash.byHotspot,
66
+ [key]: {
67
+ totalClicks: 0,
68
+ lifetimeRewards: this.inMemHash.byHotspot[key].lifetimeRewards + awardedAmount,
69
+ },
70
+ },
71
+ };
72
+ }
73
+ }
74
+ return rewardablePercentageByHotspot;
75
+ }
76
+ }
77
+ export class OracleServer {
78
+ program;
79
+ issuanceProgram;
80
+ oracle;
81
+ db;
82
+ app;
83
+ port = 8080;
84
+ server;
85
+ constructor(program, issuanceProgram, oracle, db) {
86
+ this.program = program;
87
+ this.issuanceProgram = issuanceProgram;
88
+ this.oracle = oracle;
89
+ this.db = db;
90
+ const app = express();
91
+ app.use(cors());
92
+ app.use(bodyParser.json());
93
+ this.app = app;
94
+ this.addRoutes();
95
+ }
96
+ start() {
97
+ this.server = this.app.listen(this.port, () => {
98
+ console.log(`server started at http://localhost:${this.port}`);
99
+ });
100
+ }
101
+ close() {
102
+ this.server.close();
103
+ }
104
+ addRoutes() {
105
+ this.app.get("/", this.getCurrentRewardsHandler.bind(this));
106
+ this.app.post("/", this.signTransactionHandler.bind(this));
107
+ this.app.post("/hotspots", this.incrementHotspotRewardsHandler.bind(this));
108
+ this.app.post("/endepoch", this.endEpochHandler.bind(this));
109
+ }
110
+ async endEpochHandler(reg, res) {
111
+ const percentageOfRewardsByHotspot = await this.db.endEpoch();
112
+ res.json({
113
+ success: true,
114
+ distributionByHotspot: percentageOfRewardsByHotspot,
115
+ });
116
+ }
117
+ async incrementHotspotRewardsHandler(req, res) {
118
+ const hotspotStr = req.body.hotspotKey;
119
+ if (!hotspotStr) {
120
+ res.status(400).json({ error: "No hotspot key provided" });
121
+ return;
122
+ }
123
+ await this.db.incrementHotspotRewards(hotspotStr);
124
+ res.json({ success: true });
125
+ }
126
+ async getCurrentRewardsHandler(req, res) {
127
+ const mintStr = req.query.mint;
128
+ if (!mintStr) {
129
+ res.status(400).json({ error: "No mint key provided" });
130
+ return;
131
+ }
132
+ let mint;
133
+ try {
134
+ mint = new PublicKey(mintStr);
135
+ }
136
+ catch (err) {
137
+ res.status(400).json({ error: "Invalid mint key" });
138
+ return;
139
+ }
140
+ const currentRewards = await this.db.getCurrentRewards(mint);
141
+ res.json({
142
+ currentRewards,
143
+ });
144
+ }
145
+ async signTransactionHandler(req, res) {
146
+ if (!req.body.transaction) {
147
+ res.status(400).json({ error: "No transaction field" });
148
+ return;
149
+ }
150
+ const tx = Transaction.from(req.body.transaction.data);
151
+ // validate only interacts with LD program and only calls setCurrentRewards and distributeRewards
152
+ const setRewardIxs = [];
153
+ for (const ix of tx.instructions) {
154
+ if (!ix.programId.equals(PROGRAM_ID)) {
155
+ res.status(400).json({ error: "Invalid instructions in transaction" });
156
+ return;
157
+ }
158
+ let decoded = this.program.coder.instruction.decode(ix.data);
159
+ if (!decoded ||
160
+ (decoded.name !== "setCurrentRewardsV0" &&
161
+ decoded.name !== "distributeRewardsV0" &&
162
+ decoded.name !== "initializeRecipientV0")) {
163
+ res.status(400).json({ error: "Invalid instructions in transaction" });
164
+ return;
165
+ }
166
+ if (decoded.name === "setCurrentRewardsV0")
167
+ setRewardIxs.push(ix);
168
+ }
169
+ const setRewardsIx = this.program.idl.instructions.find((x) => x.name === "setCurrentRewardsV0");
170
+ const oracleKeyIdx = setRewardsIx.accounts.findIndex((x) => x.name === "oracle");
171
+ const recipientIdx = setRewardsIx.accounts.findIndex((x) => x.name === "recipient");
172
+ // validate setRewards value for this oracle is correct
173
+ for (const ix of setRewardIxs) {
174
+ if (ix.keys[oracleKeyIdx].pubkey.equals(this.oracle.publicKey)) {
175
+ let decoded = this.program.coder.instruction.decode(ix.data);
176
+ const recipientAcc = await this.program.account.recipientV0.fetch(ix.keys[recipientIdx].pubkey);
177
+ const currentRewards = await this.db.getCurrentRewards(recipientAcc.mint);
178
+ // @ts-ignore
179
+ if (decoded.data.args.currentRewards.toNumber() > currentRewards) {
180
+ res.status(400).json({ error: "Invalid amount" });
181
+ return;
182
+ }
183
+ }
184
+ }
185
+ // validate that this oracle is not the fee payer
186
+ if (tx.feePayer?.equals(this.oracle.publicKey)) {
187
+ res
188
+ .status(400)
189
+ .json({ error: "Cannot set this oracle as the fee payer" });
190
+ return;
191
+ }
192
+ tx.partialSign(this.oracle);
193
+ const serialized = tx.serialize({
194
+ requireAllSignatures: false,
195
+ verifySignatures: false,
196
+ });
197
+ res.json({ success: true, transaction: serialized });
198
+ }
199
+ }
200
+ (async function () {
201
+ if (process.argv.length > 2 && process.argv[2] == "serve") {
202
+ // driver code for running server
203
+ setProvider(AnchorProvider.env());
204
+ const provider = getProvider();
205
+ const oracleKeypair = Keypair.fromSecretKey(new Uint8Array(JSON.parse(fs
206
+ .readFileSync((process.env.ORACLE_KEYPAIR_PATH || process.env.ANCHOR_WALLET))
207
+ .toString())));
208
+ const program = await init(provider);
209
+ const hotspotIssuanceProgram = await initHotspotIssuance(provider);
210
+ const server = new OracleServer(program, hotspotIssuanceProgram, oracleKeypair, new DatabaseMock(hotspotIssuanceProgram));
211
+ server.start();
212
+ }
213
+ })();
214
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,MAAM,CAAC,MAAM,EAAE,CAAC;AAChB,OAAO,OAA2C,MAAM,SAAS,CAAC;AAClE,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,aAAa;AACb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EACL,SAAS,EACT,WAAW,EACX,OAAO,GAER,MAAM,iBAAiB,CAAC;AACzB,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,cAAc,EAGd,WAAW,EACX,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,iBAAiB,EACjB,IAAI,IAAI,mBAAmB,GAC5B,MAAM,8BAA8B,CAAC;AACtC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AI,CAAC,QAAQ,CAAC,CAAC;QACrC,MAAM,sBAAsB,GAAG,MAAM,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,IAAI,YAAY,CAC7B,OAAO,EACP,sBAAsB,EACtB,aAAa,EACb,IAAI,YAAY,CAAC,sBAAsB,CAAC,CACzC,CAAC;QACF,MAAM,CAAC,KAAK,EAAE,CAAC;KAChB;AACH,CAAC,CAAC,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/@solana/web3.js/lib/index.d.ts","../../../../node_modules/eventemitter3/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/idl.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/context.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/common.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/rpc.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/provider.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/nodewallet.d.ts","../../../../node_modules/@types/bn.js/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/error.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/namespace/account.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/accounts-resolver.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/namespace/instruction.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/namespace/transaction.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/namespace/rpc.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/namespace/simulate.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/namespace/views.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/namespace/methods.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/namespace/types.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/event.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/borsh/accounts.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/borsh/event.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/borsh/state.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/borsh/types.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/borsh/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-token/instruction.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-token/state.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-token/accounts.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-token/events.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-token/types.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-token/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/system/instruction.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/system/state.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/system/accounts.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/system/events.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/system/types.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/system/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/borsh/instruction.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/sha256.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/pubkey.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/bytes/hex.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/bytes/utf8.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/bytes/bs58.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/bytes/base64.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/bytes/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/token.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/features.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/registry.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/utils/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/namespace/state.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/namespace/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/program/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-associated-token/instruction.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-associated-token/state.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-associated-token/accounts.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-associated-token/events.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-associated-token/types.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/coder/spl-associated-token/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/spl/associated-token.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/spl/token.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/spl/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/native/system.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/native/index.d.ts","../../../../node_modules/@project-serum/anchor/dist/cjs/index.d.ts","../../../idls/lib/types/lazy_distributor.d.ts","../../../../node_modules/axios/index.d.ts","../../../lazy-distributor-sdk/lib/types/src/constants.d.ts","../../../lazy-distributor-sdk/lib/types/src/pdas.d.ts","../../../lazy-distributor-sdk/lib/types/src/resolvers.d.ts","../../../lazy-distributor-sdk/lib/types/src/index.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/amounttouiamount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/approve.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/approvechecked.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/burn.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/burnchecked.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/closeaccount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/createaccount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/createassociatedtokenaccount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/createmint.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/createmultisig.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/createnativemint.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/createwrappednativeaccount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/freezeaccount.d.ts","../../../../node_modules/@solana/buffer-layout/node_modules/buffer/index.d.ts","../../../../node_modules/@solana/buffer-layout/lib/layout.d.ts","../../../../node_modules/@solana/spl-token/lib/types/state/mint.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/extensiontype.d.ts","../../../../node_modules/@solana/spl-token/lib/types/state/account.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/getorcreateassociatedtokenaccount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/mintto.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/minttochecked.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/revoke.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/types.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/setauthority.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/setauthority.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/syncnative.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/thawaccount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/transfer.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/transferchecked.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/uiamounttoamount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/actions/index.d.ts","../../../../node_modules/@solana/spl-token/lib/types/constants.d.ts","../../../../node_modules/@solana/spl-token/lib/types/errors.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/accounttype.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/actions.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/instructions.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/state.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/index.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/immutableowner.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/actions.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/instructions.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/state.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/index.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/actions.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/instructions.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/state.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/index.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/mintcloseauthority.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/nontransferable.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/transferfee/actions.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/transferfee/instructions.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/transferfee/state.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/transferfee/index.d.ts","../../../../node_modules/@solana/spl-token/lib/types/extensions/index.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/associatedtokenaccount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/amounttouiamount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/approve.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/approvechecked.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/burn.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/burnchecked.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/closeaccount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/freezeaccount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/initializeaccount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/initializeaccount2.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/initializeaccount3.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/initializemint.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/initializemint2.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/initializemultisig.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/mintto.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/minttochecked.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/revoke.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/syncnative.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/thawaccount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/transfer.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/transferchecked.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/uiamounttoamount.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/decode.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/initializemultisig2.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/initializeimmutableowner.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/initializemintcloseauthority.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/reallocate.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/createnativemint.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/initializenontransferablemint.d.ts","../../../../node_modules/@solana/spl-token/lib/types/instructions/index.d.ts","../../../../node_modules/@solana/spl-token/lib/types/state/multisig.d.ts","../../../../node_modules/@solana/spl-token/lib/types/state/index.d.ts","../../../../node_modules/@solana/spl-token/lib/types/index.d.ts","../../src/client.ts","../../src/index.ts","../../node_modules/dotenv/lib/main.d.ts","../../../../node_modules/@types/range-parser/index.d.ts","../../../../node_modules/@types/qs/index.d.ts","../../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../../node_modules/@types/mime/mime.d.ts","../../../../node_modules/@types/mime/index.d.ts","../../../../node_modules/@types/serve-static/index.d.ts","../../../../node_modules/@types/connect/index.d.ts","../../../../node_modules/@types/body-parser/index.d.ts","../../../../node_modules/@types/express/index.d.ts","../../../../node_modules/@helium/address/build/keytypes.d.ts","../../../../node_modules/@helium/address/build/nettypes.d.ts","../../../../node_modules/@helium/address/build/address.d.ts","../../../../node_modules/@helium/address/build/multisigaddress.d.ts","../../../../node_modules/@helium/address/build/utils.d.ts","../../../../node_modules/@helium/address/build/index.d.ts","../../../idls/lib/types/hotspot_issuance.d.ts","../../../hotspot-issuance-sdk/lib/types/src/pdas.d.ts","../../../hotspot-issuance-sdk/lib/types/src/resolvers.d.ts","../../../hotspot-issuance-sdk/lib/types/src/constants.d.ts","../../../hotspot-issuance-sdk/lib/types/src/index.d.ts","../../src/server.ts","../../../../node_modules/@types/aria-query/index.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../../node_modules/@types/babel__generator/index.d.ts","../../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../../node_modules/@types/babel__template/index.d.ts","../../../../node_modules/@types/babel__traverse/index.d.ts","../../../../node_modules/@types/babel__core/index.d.ts","../../../../node_modules/@types/bonjour/index.d.ts","../../../../node_modules/@types/chai/index.d.ts","../../../../node_modules/@types/connect-history-api-fallback/index.d.ts","../../../../node_modules/@types/cookiejar/index.d.ts","../../../../node_modules/@types/eslint/helpers.d.ts","../../../../node_modules/@types/estree/index.d.ts","../../../../node_modules/@types/json-schema/index.d.ts","../../../../node_modules/@types/eslint/index.d.ts","../../../../node_modules/@types/eslint-scope/index.d.ts","../../../../node_modules/@types/graceful-fs/index.d.ts","../../../../node_modules/@types/html-minifier-terser/index.d.ts","../../../../node_modules/@types/http-proxy/index.d.ts","../../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../../node_modules/@types/istanbul-reports/index.d.ts","../../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../../node_modules/chalk/index.d.ts","../../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../../node_modules/@jest/schemas/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-matcher-utils/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/expect/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/json5/index.d.ts","../../../../node_modules/@types/lodash/common/common.d.ts","../../../../node_modules/@types/lodash/common/array.d.ts","../../../../node_modules/@types/lodash/common/collection.d.ts","../../../../node_modules/@types/lodash/common/date.d.ts","../../../../node_modules/@types/lodash/common/function.d.ts","../../../../node_modules/@types/lodash/common/lang.d.ts","../../../../node_modules/@types/lodash/common/math.d.ts","../../../../node_modules/@types/lodash/common/number.d.ts","../../../../node_modules/@types/lodash/common/object.d.ts","../../../../node_modules/@types/lodash/common/seq.d.ts","../../../../node_modules/@types/lodash/common/string.d.ts","../../../../node_modules/@types/lodash/common/util.d.ts","../../../../node_modules/@types/lodash/index.d.ts","../../../../node_modules/@types/lodash.mergewith/index.d.ts","../../../../node_modules/@types/minimatch/index.d.ts","../../../../node_modules/@types/minimist/index.d.ts","../../../../node_modules/@types/mocha/index.d.ts","../../../../node_modules/@types/normalize-package-data/index.d.ts","../../../../node_modules/@types/parse-json/index.d.ts","../../../../node_modules/@types/prettier/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/q/index.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/scheduler/tracing.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react-dom/index.d.ts","../../../../node_modules/@types/react-is/node_modules/@types/react/global.d.ts","../../../../node_modules/@types/react-is/node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react-is/index.d.ts","../../../../node_modules/@types/react-transition-group/node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react-transition-group/transition.d.ts","../../../../node_modules/@types/react-transition-group/csstransition.d.ts","../../../../node_modules/@types/react-transition-group/transitiongroup.d.ts","../../../../node_modules/@types/react-transition-group/switchtransition.d.ts","../../../../node_modules/@types/react-transition-group/config.d.ts","../../../../node_modules/@types/react-transition-group/index.d.ts","../../../../node_modules/@types/resolve/index.d.ts","../../../../node_modules/@types/retry/index.d.ts","../../../../node_modules/@types/scheduler/index.d.ts","../../../../node_modules/@types/semver/classes/semver.d.ts","../../../../node_modules/@types/semver/functions/parse.d.ts","../../../../node_modules/@types/semver/functions/valid.d.ts","../../../../node_modules/@types/semver/functions/clean.d.ts","../../../../node_modules/@types/semver/functions/inc.d.ts","../../../../node_modules/@types/semver/functions/diff.d.ts","../../../../node_modules/@types/semver/functions/major.d.ts","../../../../node_modules/@types/semver/functions/minor.d.ts","../../../../node_modules/@types/semver/functions/patch.d.ts","../../../../node_modules/@types/semver/functions/prerelease.d.ts","../../../../node_modules/@types/semver/functions/compare.d.ts","../../../../node_modules/@types/semver/functions/rcompare.d.ts","../../../../node_modules/@types/semver/functions/compare-loose.d.ts","../../../../node_modules/@types/semver/functions/compare-build.d.ts","../../../../node_modules/@types/semver/functions/sort.d.ts","../../../../node_modules/@types/semver/functions/rsort.d.ts","../../../../node_modules/@types/semver/functions/gt.d.ts","../../../../node_modules/@types/semver/functions/lt.d.ts","../../../../node_modules/@types/semver/functions/eq.d.ts","../../../../node_modules/@types/semver/functions/neq.d.ts","../../../../node_modules/@types/semver/functions/gte.d.ts","../../../../node_modules/@types/semver/functions/lte.d.ts","../../../../node_modules/@types/semver/functions/cmp.d.ts","../../../../node_modules/@types/semver/functions/coerce.d.ts","../../../../node_modules/@types/semver/classes/comparator.d.ts","../../../../node_modules/@types/semver/classes/range.d.ts","../../../../node_modules/@types/semver/functions/satisfies.d.ts","../../../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../../../node_modules/@types/semver/ranges/min-version.d.ts","../../../../node_modules/@types/semver/ranges/valid.d.ts","../../../../node_modules/@types/semver/ranges/outside.d.ts","../../../../node_modules/@types/semver/ranges/gtr.d.ts","../../../../node_modules/@types/semver/ranges/ltr.d.ts","../../../../node_modules/@types/semver/ranges/intersects.d.ts","../../../../node_modules/@types/semver/ranges/simplify.d.ts","../../../../node_modules/@types/semver/ranges/subset.d.ts","../../../../node_modules/@types/semver/internals/identifiers.d.ts","../../../../node_modules/@types/semver/index.d.ts","../../../../node_modules/@types/serve-index/index.d.ts","../../../../node_modules/@types/sockjs/index.d.ts","../../../../node_modules/@types/stack-utils/index.d.ts","../../../../node_modules/@types/strip-bom/index.d.ts","../../../../node_modules/@types/strip-json-comments/index.d.ts","../../../../node_modules/@types/superagent/index.d.ts","../../../../node_modules/@types/testing-library__jest-dom/matchers.d.ts","../../../../node_modules/@types/testing-library__jest-dom/index.d.ts","../../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../../node_modules/@types/trusted-types/index.d.ts","../../../../node_modules/@types/warning/index.d.ts","../../../../node_modules/@types/ws/index.d.ts","../../../../node_modules/@types/yargs-parser/index.d.ts","../../../../node_modules/@types/yargs/index.d.ts","../../../../node_modules/@types/react-transition-group/node_modules/@types/react/global.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"002d6d5f044365b3fbfba0ba9be3bb57cac09b81547c8df4b0795755d2081d90","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","55c428f339f80f4ede27cfed15aa1124cd583b43ac3feaf59da19c492c9cd6be","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"bae4ea23beb8397755b935cb84d3cdc6cdb0b1b4a329b90de9fc6c8774d71994","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","df36874d9e56aff601e921c4b3971d37cf66d14f6455935ce821e6cad13b1823","aeee0090b38de0dd47ca9a79ad5c2d156e3e09d92306719b0b45a3e96098e564","acfbb5aaef964e1d441f961a1846197f03241dba3c63b1e4d1903684888ef465","09416dd69576b03a3f485adf329a02f043e4a481e060ef5b208194e488d31fd9","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"9499ba4dcd1ee0596d8c98d01341bc874840c5291156513bda667fecad54d5be","a907bf91df26df2400858ef75f749498fb5cf00062bf90a737ac3949cc07978d","cb92bc2e42b261e4299025756f1beb826b3d9666a3f0d46f8a7254ca512f57e4","cb4f3f03480e1727eae46400606cecaa97f550186ff8fa909ebc00db4180531b",{"version":"59104b2e80c588b813d03d3a45f57117ca4601ae3fc216c5ffbcbafc4effc1c5","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","556bf5c36deb62cffa1bf697c1789fe008ec82db0273025001db66732714e9d9","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","653968fc1b35c5eb3d273d36fac1c1dc66f9537edf28f33485b8776bd956e23d",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","a381f079c4804442f179d742fdb2e495fe28d67a47cac673485f75ae2e77aeca","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true},"2d526e6f21d8cc66ac11ada32874e95ae88d870c6c9d3d9d4e03b1d1f9ad7b8e","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","d2ec52f565f0570e90b659811347bd689f8c6039b11eaaccd0f243759d46da6e","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"a12806a1bde5e9f137bb79728d87a4ceaedf04e95efc9967d3288a3c252d9a7b","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","40956a567c9a1e400293231c1511c42c7fd2972f96323f015f798a06aabb4b73","b80c780c52524beb13488942543972c8b0e54400e8b59cee0169f38d0fabb968","ef42b887a3ce9f3b8eedfc4185541457372217a916ed9a1d3a3e9d235382afdd","2b5fe3253ecc77ba7f4211cc84600435dad654d9478dfbd37ebea6f8f0ae3d90","9c01a5cd8ed8a68fd2a05b4775388bf5398942b08b10dfe90dec84784cc48cbb","17d39cad53f387e1f6897e63c767b9898f8f9bf094f6d8528cd5c11a9d348824","b3b7403b7376cdfd847575682b5758bb581f319ef30c9a9cdc63a95354515450","dd35fe52f9b11fbbac675606766a17784815daa0dff13cb376515b4af7803e67","cdac7e46e615e1fdcca7c3a2aab2fbd19085443048733cf239a090f7a17efa27","95bd65f5f86b08b0107c84e39fbd8b654c702a62a8abd85f212368753758caf3","b2d61f8f9bd7a437adcbcab3dc95779e13a5dc4551fea309ae44c8ced3596840","57cf4bf90f4bef7d97247a064f59b812ae9fc9eeb4996e09e2af732b96daf6ac","2e2da62d0c8291a079b03bffc4b7288c925aa878367ef8eaceb37eaadf0910db","6f3b6750d038e578b1cabf6598d5e7a0c7b5b235132e9c0d76f6f6bb7dc7bc14","a680c84205139381ccddf3f7f26bc1a27066b15db04d76a72dee15fbe1ea5cda","7dfe98521fbab89712c79005ed7f22155608cd3e192757f51ab58339c3fa5a9f","e3b753df518a12c5fa3585bd1f3e9e4f82883b4a4f5e56255983a3225d0418da","6dfcea5af862753d56878c101becf3f754a0e1cd4777348a24e1066d6b0ef5f9","432bd95ddce8b74b7af968f4fd86de1006c487326f8f909aa47425478a6afbb1","e260de7605709824b8d92bc1f1b5d29887bf8e99736291a98e49ce4d28e71e4e","dc4b884038ecf1dc687a89944e04cf6b1e83391f2d541212dccbb0de67c97f1d","8835ccff7f7bf75094749fd5da9604becacc31016f683907642f92cfefa9346d","27ac323cb20f83effd5df8702ca0c9fc7acdec44752c12a16569fa563437637a","8ac4904be5b82699041086aa0dd33327d2afa3bcb107fa887c308bbdde1ea7ce","396bddfb398080726d898f3d5ffc31b948d3656a1ffc15a06f0d29553b32f849","0af3c39051df3bd29daa050e5f5c6795f19dfa86eef615193faf1653557ecabb","4c82fa6ab6ac436b266758887c02413005d1163c784969877082dba7b990b5da","91edd3000d83a3852311142468c676c65889d29b5758c3cf54bdca7206d78531","c10401d8005c3087964ad0faa61fefab5a1b678bd58a210742c86e430b801aeb","8f9e9c32a8fcdeb9f1ae7dd7b91c52b4596fb0ea0f34a2281c00a9c92b78c0e9","0204e869ce582075a962c966750a638d5e056d1897d85b042daaec2d4bc0c0b3","18584847cdf14e522faa67916d50b8ba7479c8f12262c99d90078dffcae12a8e","686cc171d209d67c85ec2fc18b184e25ebbd18046aae40fd58b003c8ec8474f8","44e590a660a2ed3c71e92c85a4af2507b43359825ab4805ec2dcef54e9d564ee","30a39429dd194c9bd3bbb32a32e247d9b547524308d61acc1ba8f16e72e61ee9","f0b04452cd330d29522cbe34176e683f21429e690c2aaec5ecee88303537fda4","4227216ab5aede8768a946124803719be0bef4996af1a039989b49e58dda6706","6cf1fc031d9c5a64b53dbe2ed01c1d213e3b117659fd60aa8cff152898ac1213","5411a24f5b370634d57bb2ef7678072bd0897bd7846a858234a65f6fcd594640","847ccc20490110124a2252c5a705dfe1355921470d2bd6da9af1d4943e54346b","ab25cc3ceb86c474d955f722cc3da4caea63cc74b3ef19ae2bf5d2abfb238ef8","3b0309147d62225ffd116d3440f480e8df63a47e71e47fb6b432858db931b9e0","139db12276e11f90df65778f7513bc3f85957d74fd0d1bbeb19e4a1dace4f662","2884fcc91f5d42a3288a75a558b036923e3d926354fa0c3fa0251c2c3d4b54e8","013446b40d561ed0b2c2822d01954d4612d5e67222369073345aeebeb03fd406","4cb9df3ea8035d85480096a5ff94dbbcf941efb38c5c1ea77f1dc164d4342728","fef0479f7aca65cc547847ce77879abf60976d61c710465163df6a70c124977d","291b47b629e4c15e96bacb8d1f707573e72fedbb0fcab43f729e5f9d73560c3c","29afd807016e0f801c3e85920615c7eeac3c4e984c843c116209e86071cc888c","2a1d0598c9acba389f6a3369d52822a34045bd2ce75d012613bd0b802663c73b","1717e20e8b20694272830fac015f8eea0f0d4eee669fbfb817cf2d44005ada4c","b77a3e4a5cb55a768443ac5a96eb49fc7ca7aa7eecf72d72912a8568630f62ec","bf5547498efc9f29b00073b14daf2e4bb77f2148f70b1cfda9f141c137819f2f","e45e0bb1e74911082e40dff74e7243fd83e865c73c8a0fc02c9f1042de93397e","f2a9c0afd978d1e4ec0e0480cdc72475114f44f8d2624228fb3e5940742c6d4d","4f9e377c8d8c9ce140c37bfee80ece518206c3393d400a2c1610891957b281b7","675574af71799bfc6968d72331b03ff2950624d034e3a36d0e1fd5ec7c09dc3b","1b3fdc89782b57c476c2e190bc5633ca14080422720caccf77bbe10b5662edf0","3cd162efcadc267982fae972d96be3971a6feea7964ec6ac842d2da14858807c","1350bf1395fb50eb220062a52d57e3bca4410b2eb86c9e3d1b827af2b5c8de57","2015d77b1567aba094cd3f8d74b390c15300e5be5fc047936d35ad09258a4233","1fbbf80bdd9751ac6bb36e34daa9da7d087fe6c2de7cacf1b36ea2ef27d16774","d9b0235adce3f9c127317965341e3f2cb4e2e50ba029e04b2fe3a3a1c7981e6b","f253b0f34ac2757af5c73868b3235104f5e311c03859987b2402afd1382db058","39c39fc881d5317e809f93b861cc2a2f3facf59c548d425a3b40c2ff727174bc","bfe815391b7dd48a57e42e03585f6e195a86166052357e5b68e3c823d315fe31","d88dc05fd345b7a4e1816bbfd2dd087eefa9b9e36096818c2348f5b246971125","2ed43e626b9c55e63a9c66cc666ce55b4466b8b226b2b215f5a5a36a34b75c97","ec55bb9ec7808a6e6fa2719043ab8b78816a62046d22476820b7987cc95fc6ce","a83ccb678944c9be9927e0a68b60a95c036100f2b035376fede088c7128fdbd4","ec00468faae991306e80ca32b517be472e3b27ff03fe7577d855d4bb18d848ec","f2e5fa7d4aefe542762909ac966abdeaaaa76befbf561924edabb02b9b57542d","28e9fcac58f5957d1b82ab2b856799c24f7530e1d048198c1d0b9923762265ed","072a49808080400016c2557d47648297d854da5d75c2005083432f5bbbc19949","f25d3ac13258725686f0fbad31b82418ce00799f5d145570d6ee398a39651043","bbfcec9ed673c3dcb2668c3b216c7be9102a9e900e3d73801611da7f21746fdc","da3e4adedc5b5fd041f31a11d6bd98dde20febb2f2705988396d5a07f6f17543","9e6a844fae8202f8aa8bc6c7d076980221a15106c2a6a6f1e38fe1f2b8d07d62","99b07e053c9eae92b706ce3914d4b14bde4d896afc5a351c4660918ac64c6584","739adbaa02fd46f768fb88c72bc3359966241d36bc844a54f158fc68539f951b","8909288948f7bf5a408b6521a659a78765939ee319cd68ad5df4fb76fe1a755d","ff90f20e235b71cea80a352916e7f2a4737302e4f5b539d00e75204c82014b70","10ed1e58a17e61a6eb4f1bca430999ac214629058239489d498b88dc891f2327","1d1c0c879e2139313479670b032fc056ac93136a8199ed3e30fd118004077627","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5f1fc8edcf0258de2fce28a785d5fecd9de993eb34239762ecc13fc5ff4cb7d6","12c924e7f2e516943ce436ad51965a38cbbd9dee5fe670ae6349bd8c1bf76f52","0c0d97bfacf167b3573d23b3c988d5a8d70202ed839d99624a12cee5beadea29","42b7e0b9bed165997eb168904dfcd11254ff978ceeacda906e77d8f44c89f31f","b16879b91b181532922b7f279d8cba9c877c1436d3b0c55285ab8c6f43fd5dce","278055752eff1ed4b30b663d6b812923f041fbfd6cb6563d1b9350b53850059e","4ba1b1b1750a88a8fcc7d521d3ec3ba6235c28c73993e38adcaaec51afd57d5b","4991ee4482820b62aa2e6cd775d9984e0a45a7f6ba64d8a2737cbbb8af7c53f9","76a331ac2ad0c9ef9fb705b60ef3320f1752e705ad7d71060710987a4d45cc13","3f163f1d95ccea751f724be020a086abc93b5a5ff4118219a17a721458964ff6","c47421f20cec5286ce39834a3327579f36cad21f053ef8c09076c1894cd66d93","4c9975f07791ea91c74c2b8140ab48eb5ac2cc81417a108e6612c889a8bd23b3","b7b49dc760f6440dc8677ef49f0ca75c7f0f2f97f461a07bf2aa03723ac61d3d","79d938cb2e44b94e4f1497a9ccc2ff5da2fb7360d4eb7485da114055bc712379","566fd6af165b3acfa13b916594e422994e5d14f4138609fd252504800c9b96b7","ba9605656fa2ff88d69fd3676770ff1440fd70b4cbdce4ca85ac4ce27e659c7a","b3c97e84a9874d0ff36037d87877869a56bb76eb4f6ea330eff418ca61051780","65d51b460383b6f7546f22c888c8b41e0de7385f20ec971acbb56da83bcbe611","b64e1ff30069e6fcfbd6b01df71b89e9f7d34581d1eba2e1fe3f3b1eaf70f28e","b725c869a5ff20458780f26afbe392017e690ee03decdb7d1202ac3539a8e235","8a561d8bcaf60594a95c3390a489824c6688e81802701260444fb47881950257","7e628d4d1561db3b3b13096e4eb2b72eeb09bb7d9c20f5a690f0e370cba67856","e6ee1dcd00ca1c765c95b0abb2114c2ead786ae7610c823df4cd8fffbcbede10","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","8b25e65927ea90be5da89799997c6f7e7dbcd826a954bd1a466a931d380a3511","af7d2a7f8f8a0d9bcce2a017b1a9f6ec85f57e9484a65f46b6cafe8fb079e9a3","6e1ff4ce7f068d8ee38de362b503ce6bd5fe7c2728771953faa36e5e30740223","68a8ceeea894c6d5989c89207e3ac1b33c2c2026ad4a9e8c3cff1d87ea67ec77","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","989b5f3bf15619484ef2327c0a108ad33191bfc2e3deb6347bf175e79fd02e51","5d70c66d6239aad0cceac9a7d20df46bee2c10c914717e004ea25cc8838b55f6","df7ea051e4b26ae4fa33f4e430aa8e82ce51afaf8b5218a71e287e52e50cbc4c","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","3e2b6603bed1f4a82bdad05b68a66cc5943f8e12c647bf2f45a06c9d72cc0e00","eabca6c007c20da02a0cbbf23f6de3c39e662a9adc1a92736968179d7c4cc569","625ea89b6b179966c652b7bb93b57e7c1c2343eb9aba6cfb3ddf801359cde65c","56dd7bf13a0abecb0e87764390e30233af9e6381bd1379b211c8130ee193565f","27e553ea7ffbcaef2be2af5a79fdbf83cfcda0f95bf17e3c378b33402a28c1d6","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","0a16f546d635649aed8aa19615c41c29b88ccbb640379f27884f8dc3517a83e3","c2530824e3f667d0699f985126613d8dde692754beab1ec5712884abeceeb7cf","748553e51bfbef2b4c8e646275f687e60ea77665c514ee1f880bf5a3cd509f37","4825676213bb9f78817a78edf29494717ebd82df0d75c8e68709b5e0728d6b60","4be9789689eb8ce8c59884544f02c10c50f4d514f99a408ca7861e9b27b7cda7","4a2f75a71f89e2dbbf514ec028f05d5a9da611613d8c13b8b638e5ef3af44a2c","ab136b47efa5fa1cf0fde6405c0f431971597bd1eb319b4c93acd6b64c80a1c9","6b9149f08cafc2641222199d9b93c7b3c2a8e03de91dd7f8d01b7f113d96b992","be960a5119945a3cdcb249372229a3f01dfef4e391304db3f3728292553cbf35","b0b840a3379f3539d037cb5b602541d2ab6984462761e505a23793866dc7a0d7","7aed6616e78d880577a37fa5edd42b690354874f1001acdbf21ead2f803a36a0","73a7dc6d00925ef047bc915a54cab15bb242d549b9334d9b5151cc0f35cfaf77","0a1c74bccc0c5a1f22012144a3d9afc19951348540c7ff5e5feaf4eef6259b80","3a1d5de5adaede0fb1ca2045f8b10a0e86f480a1082a11829a0b48da8ad6157f","f73564eaadfad95f1e933171584adf74e633823081c434679fc0e670730e4cc5","8faaf3a405497859de32bbf752691e029c19ac3c119154dec8f7ce79588bd94c","d791cc6dd9ae89f2ab85b4d6eec495ce8808fda0d7f292466c99f652e43dd214","f120611047a4485c0b5a98da64412313741585ef1fa307909b61b6bae4cacf6e","65bd0d34233fcaab54f5463703a0f022b2db197ef24c4a1d3adda1a9d3d6d502","fb86fdc8cfa05109bb10b58a7324f2c4bfd280eba4be1d19ff77782c189ccc8a","1511bbd650428aec07f96c405bf41f0b0feea55480796486fa010b6d58c73ce5","4436a75c78f7960974b259fa20ba1f398954255656297a69311bf721d2d10b17","5621180d5cf6e50f53fd6c73e0a60cd4115353f919bdd193580746896167da63","9cc5c390465b87096b69b2b0612a341d974b658cd28447696583f2762226f8c3","08371984685828cedaa25037b76def8f8f7f8304910dc66627bb58a2f53ecea4","7dd1c6c1b927f9edb94773f9333666f52f7b0bdf49a9a7f63129e9e66d1222cf","174f99dc1948a64c4211702a0fcc45d684d05fdfba3100ba4485fe45adb4d7f3","7218b31e82e108ea51f95df98274af06700d388cc8a3a17878fd8cde55c85582","6c2ba8fe0797b626104a2fd4e8de0dad6edc4b932e4a50a7b72afa09fdcddbe9","dabc6bfb18fc1f988d37c8b659eb07fd35e8269bfa099b6dc02c14093c2b8b1a","24445e361327babf5df19613bedcecf1fa9b7c5af9fa4b08af3ed73881a8d47d","239d9e77e0026e7375dc9b6122f1b62d2c39fc2e5c10f50787cd321880146b95","0f3ca52b0d50160be177f8c79efbbcd666726c2de9256d6335e0d0bcb2e40d6f","1d8820a067af2309ef4f7739d2ada59882eebb3b2b595ff78496760c6f51ba60",{"version":"151575ea5a09c14950d979bf94b9263f80dea7124739d4beaf1b723347049cf0","signature":"0fbbd00054fa54a369ffc0de96ada2cb753b99f0e97ca5696c1bfd3eb5c3de51"},{"version":"4c9003a89c5ad1d544b8a03077e0b031a8645d137a51b07f1651defa477fd9ea","signature":"92de66a439951e124b409156b1bdae046393cac7d23e341933b624baa15588c7"},"cfdd927a5eae7a7e623b9745722ef3f2b7a2997fddc5d32b7e3dcaeeb15ff4a3","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"ae3fe461989bbd951344efc1f1fe932360ce7392e6126bdb225a82a1bbaf15ee","affectsGlobalScope":true},"5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7","951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e","f47887b61c6cf2f48746980390d6cb5b8013518951d912cfb37fe748071942be","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","951ba7e8a6cd0a63a5a40c0ba06b4ae81081f009012c6f0c0a598c8ab4c7d5ce","99abd50e9418e0c36287d63da4f1bb45607d6062424e4b502a0a53b24a99f86d","3a50c47d3bcf0ba2ee7a8bac7825ac8928beee3d641e7230ae2c3653725b0d68","279ed724e0f3d1e081e82832852ba810493be4b1c123c2661047d34e2c29df9e","7f08b467b215ac184ce50fb8594724e624a53ae20b6ad1b92229468b3c53e0e6","93403a1c27006fdc0ab1ee6677de9a910471b93053cf214afc1ced9481d6921b","0390f3ab315ebdbffbe386bfae79e3365d0e3d0d2a158540fd5f1ab17240e910","af99a9fc8bd1843ed3807019dcace0d866067e309a3b58c98ed83334741b4c26","f25e17713e7b47ac1cfae0fe7ab4f5019f184c5d86dfaaad951580f0e5236165","2ed43e626b9c55e63a9c66cc666ce55b4466b8b226b2b215f5a5a36a34b75c97","bc54ccf89ca142b19a805a40c98a60f9729f70965ee83093766e592e3121598b",{"version":"c7028c86556610107880bd0c01546fc846941312a6338f7496d7adeb7631f116","signature":"09cff207612a57949155308f653f615318deb2462d4087668b39599852329f40"},"5024433f8da3a7968f6d12cffd32f2cefae4442a9ad1c965fa2d23342338b700","760cb9b76ab53a2f704ee0e731e162bcfc6af609f5e400a668efe2cc7923e4f4","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","7ec238b220ea991b6643e24191b1f552a65956d5f6de4c6144e700b9985265d8","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","dae3d1adc67ac3dbd1cd471889301339ec439837b5df565982345be20c8fca9a","5426e62886b7be7806312d31a00e8f7dccd6fe63ba9bbefe99ee2eab29cc48a3","d78e5898c8de5e0f934eee83f680262de005caa268d137101b833fd932f95e07",{"version":"127bf414ca8ced28c9738b91a935121009d03bbc136668db980bd1ba18976b2b","affectsGlobalScope":true},"56cbe80e6c42d7e6e66b6f048add8b01c663797b843a074d9f19c4a3d63a269a","8d48b8f8a377ade8dd1f000625bc276eea067f2529cc9cafdf082d17142107d6",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"946bd1737d9412395a8f24414c70f18660b84a75a12b0b448e6eb1a2161d06dd","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","c84d0f714fe122193c21c0f0917e873beb3a03fa3422ceb2fbd1ebc0558790a0","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","ee65fe452abe1309389c5f50710f24114e08a302d40708101c4aa950a2a7d044","c1d5cc0286eef54f6246a972ec1720efbba6b7b0a53a303e1f2067ca229ecd16","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","763e521cf114b80e0dd0e21ca49b9f8ae62e8999555a5e7bade8ce36b33001c2","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","74986224d4bee6bdfe68db653bb46e389101227ad705065a050ea6dbb171897e","ffcc5500e77223169833fc6eb59b3a507944a1f89574e0a1276b0ea7fc22c4a4","22f13de9e2fe5f0f4724797abd3d34a1cdd6e47ef81fc4933fea3b8bf4ad524b","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","cda0cb09b995489b7f4c57f168cd31b83dcbaa7aad49612734fb3c9c73f6e4f2","f72f8428f3c1caa22e9c247d046603b85b442c0dae7b77a7a0bc092c18867cb7",{"version":"195f63105abc03e72b6a176e3e34dfb5ac932b55db378fdc7874b1617e24b465","affectsGlobalScope":true},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","7a79ca84e4370ed2e1afaa99ff7d25194901916b7672e977d16f77af3b71342f","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"68b7968bfe692bb273debb1d38ed534b695f8b387d36b7b7a75a81b03f8bf238","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05",{"version":"3f6d6465811321abc30a1e5f667feed63e5b3917b3d6c8d6645daf96c75f97ba","affectsGlobalScope":true},"6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","93c4fc5b5237c09bc9ed65cb8f0dc1d89034406ab40500b89701341994897142","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","62b931417104c7cb35d0725e1869f51d52d7b18462fd58f32f846a314a42ba10",{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"1c29793071152b207c01ea1954e343be9a44d85234447b2b236acae9e709a383","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"4583cbb36abc706089e843e10c94a2e22703de774f89d9e9e145668bb1a2e24d","affectsGlobalScope":true},"f02af84e409458d77baa712aaac7680635b47bd162a39367618ec744085f97be",{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"06c2fc0bf929858d3ee5fb8c14f0a39b48d91bb8161b6480d833f787df761672",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"30688eab034d1aa3bbe4d8f2c7f462ddaec9f30f1a38a306a4728a9a06a58b11","e03334588c63840b7054accd0b90f29c5890db6a6555ac0869a78a23297f1396","c3052485f32a96bfde75a2976c1238995522584ba464f04ff16a8a40af5e50d1","c220410b8e956fa157ce4e5e6ac871f0f433aa120c334d906ff1f5e2c7369e95","960a68ced7820108787135bdae5265d2cc4b511b7dcfd5b8f213432a8483daf1","5e8db4872785292074b394d821ae2fc10e4f8edc597776368aebbe8aefb24422","8a19491eba2108d5c333c249699f40aff05ad312c04a17504573b27d91f0aede","199f9ead0daf25ae4c5632e3d1f42570af59685294a38123eef457407e13f365","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","2b93035328f7778d200252681c1d86285d501ed424825a18f81e4c3028aa51d9","2ac9c8332c5f8510b8bdd571f8271e0f39b0577714d5e95c1e79a12b2616f069","42c21aa963e7b86fa00801d96e88b36803188018d5ad91db2a9101bccd40b3ff","d31eb848cdebb4c55b4893b335a7c0cca95ad66dee13cbb7d0893810c0a9c301","77c1d91a129ba60b8c405f9f539e42df834afb174fe0785f89d92a2c7c16b77a","7a9e0a564fee396cacf706523b5aeed96e04c6b871a8bebefad78499fbffc5bc","906c751ef5822ec0dadcea2f0e9db64a33fb4ee926cc9f7efa38afe5d5371b2a","5387c049e9702f2d2d7ece1a74836a14b47fbebe9bbeb19f94c580a37c855351","c68391fb9efad5d99ff332c65b1606248c4e4a9f1dd9a087204242b56c7126d6","e9cf02252d3a0ced987d24845dcb1f11c1be5541f17e5daa44c6de2d18138d0c","e8b02b879754d85f48489294f99147aeccc352c760d95a6fe2b6e49cd400b2fe","9f6908ab3d8a86c68b86e38578afc7095114e66b2fc36a2a96e9252aac3998e0","0eedb2344442b143ddcd788f87096961cd8572b64f10b4afc3356aa0460171c6","71405cc70f183d029cc5018375f6c35117ffdaf11846c35ebf85ee3956b1b2a6","c68baff4d8ba346130e9753cefe2e487a16731bf17e05fdacc81e8c9a26aae9d","2cd15528d8bb5d0453aa339b4b52e0696e8b07e790c153831c642c3dea5ac8af","479d622e66283ffa9883fbc33e441f7fc928b2277ff30aacbec7b7761b4e9579","ade307876dc5ca267ca308d09e737b611505e015c535863f22420a11fffc1c54","f8cdefa3e0dee639eccbe9794b46f90291e5fd3989fcba60d2f08fde56179fb9","86c5a62f99aac7053976e317dbe9acb2eaf903aaf3d2e5bb1cafe5c2df7b37a8","2b300954ce01a8343866f737656e13243e86e5baef51bd0631b21dcef1f6e954","a2d409a9ffd872d6b9d78ead00baa116bbc73cfa959fce9a2f29d3227876b2a1","b288936f560cd71f4a6002953290de9ff8dfbfbf37f5a9391be5c83322324898","61178a781ef82e0ff54f9430397e71e8f365fc1e3725e0e5346f2de7b0d50dfa","6a6ccb37feb3aad32d9be026a3337db195979cd5727a616fc0f557e974101a54","6eef5113135a0f2bbac8259909a5bbb7666bcde022c28f4ab95145623cbe1f72","38e2b02897c6357bbcff729ef84c736727b45cc152abe95a7567caccdfad2a1d","d6610ea7e0b1a7686dba062a1e5544dd7d34140f4545305b7c6afaebfb348341","3dee35db743bdba2c8d19aece7ac049bde6fa587e195d86547c882784e6ba34c","b15e55c5fa977c2f25ca0b1db52cfa2d1fd4bf0baf90a8b90d4a7678ca462ff1","f41d30972724714763a2698ae949fbc463afb203b5fa7c4ad7e4de0871129a17","843dd7b6a7c6269fd43827303f5cbe65c1fecabc30b4670a50d5a15d57daeeb9","f06d8b8567ee9fd799bf7f806efe93b67683ef24f4dea5b23ef12edff4434d9d","6017384f697ff38bc3ef6a546df5b230c3c31329db84cbfe686c83bec011e2b2","e1a5b30d9248549ca0c0bb1d653bafae20c64c4aa5928cc4cd3017b55c2177b0","a593632d5878f17295bd53e1c77f27bf4c15212822f764a2bfc1702f4b413fa0","a868a534ba1c2ca9060b8a13b0ffbbbf78b4be7b0ff80d8c75b02773f7192c29","da7545aba8f54a50fde23e2ede00158dc8112560d934cee58098dfb03aae9b9d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","6aee496bf0ecfbf6731aa8cca32f4b6e92cdc0a444911a7d88410408a45ecc5d","acebfe99678cf7cddcddc3435222cf132052b1226e902daac9fbb495c321a9b5","82b1f9a6eefef7386aebe22ac49f23b806421e82dbf35c6e5b7132d79e4165da","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","4006c872e38a2c4e09c593bc0cdd32b7b4f5c4843910bea0def631c483fff6c5","ab6aa3a65d473871ee093e3b7b71ed0f9c69e07d1d4295f45c9efd91a771241d","29bd8d65c775cc98ffc54c52d9e9636a9dff425b155860797afac168b4bc931a","49c972b1c491933723861f15cba6ae694466abfd0938ca4f366621127bb51962",{"version":"910199067bfd07a4605bf51001677680e1691f8d403e9d410c0fe33a6079cd58","affectsGlobalScope":true},"2fcd2d22b1f30555e785105597cd8f57ed50300e213c4f1bbca6ae149f782c38",{"version":"bb4248c7f953233ac52332088fac897d62b82be07244e551d87c5049600b6cf7","affectsGlobalScope":true},"abd79d61be476addd783d0e0bace2e3c02bb3e38ec23bdfd236adc421b038939","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","28288f5e5f8b7b895ed2abe6359c1da3e0d14a64b5aef985071285671f347c01"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"../types","declarationMap":true,"esModuleInterop":true,"module":99,"noEmitOnError":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":false,"stripInternal":true,"target":99},"fileIdsList":[[87,279],[87],[87,94,266,267],[87,266,267,268,269,270],[87,94,267,268],[87,94,266,267,268],[87,302],[46,87,94,98,133],[46,87,94,98,115,133],[87,98,116,117,118,119,133,134],[46,87,94,96,98,133],[46,87,94,98],[87,94,98,115,120,126,132],[87,94,98,133],[87,98,115,133],[87,98,133,149,150,151,152,153],[87,98,121,122,123,124,125,133],[87,98,127,128,129,130,131,133],[87,96],[46,87,94,96],[87,96,98,102,103,104,105,107,133,134,145,148,157,159],[87,158,160],[87,102,132,148],[87,96,102],[87,96,98,102,106,114],[87,96,97,98,99],[87,96,98,100],[87,96,98,102,114,133],[87,96,98,99,100,102,107,115,133,147],[87,94,96,97,98,100,102,114,133],[87,96,98,102,106,107,108,109,110,111,112,113,114,133,146],[87,94,96,98,99,114],[87,96,98,99,102,106,107,108,109,110,111,112,114],[87,96,98,102,109,114],[87,96,98,102,109,114,115,133],[87,96,97,98,102,114,133,147],[87,96,98,108,114],[87,94,96,98,99,104,113,160],[87,96,98,111,114],[87,96,101],[87,102,148,154],[87,155,156,160],[87,102,126,148],[46,87,94],[87,94],[87,137,138,139,140],[87,101,135,136,141,142,143,144],[46,87,94,96,100],[87,94,96,104],[46,87,94,96,100,102],[46,87],[87,96,184],[87,167,168,169,170,171,172,173,174,175,176,177,178,179,185,186,187,188,191,192,193,194,195,196],[87,96,190],[87,201,202,203],[87,96,181,184,189],[87,181,182,184],[87,94,182],[87,181,184],[87,183,200,204,205,209,213,214,215,219],[87,206,207,208],[87,96,181,189],[87,96,181,182],[87,210,211,212],[87,181,182],[87,216,217,218],[87,96,181,182,184],[87,197,198,199,220,250,252],[87,96,190,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242],[87,189,190,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249],[87,96,183,189],[87,96,189],[87,94,96,181,183],[87,182,184,251],[87,94,96,181],[87,279,280,281,282,283],[87,279,281],[60,87,94,263],[52,87,94],[86,87,94,259],[60,87,94],[87,290,292],[87,289,290,291],[57,60,87,94,257,258],[87,258,259,262,264],[58,87,94],[57,60,62,65,75,86,87,94],[87,297],[87,298],[87,304,307],[87,300,306],[87,304],[87,301,305],[87,303],[87,322],[87,310,312,313,314,315,316,317,318,319,320,321,322],[87,310,311,313,314,315,316,317,318,319,320,321,322],[87,311,312,313,314,315,316,317,318,319,320,321,322],[87,310,311,312,314,315,316,317,318,319,320,321,322],[87,310,311,312,313,315,316,317,318,319,320,321,322],[87,310,311,312,313,314,316,317,318,319,320,321,322],[87,310,311,312,313,314,315,317,318,319,320,321,322],[87,310,311,312,313,314,315,316,318,319,320,321,322],[87,310,311,312,313,314,315,316,317,319,320,321,322],[87,310,311,312,313,314,315,316,317,318,320,321,322],[87,310,311,312,313,314,315,316,317,318,319,321,322],[87,310,311,312,313,314,315,316,317,318,319,320,322],[87,310,311,312,313,314,315,316,317,318,319,320,321],[87,260],[87,261],[42,87],[45,87],[46,51,87],[47,57,58,65,75,86,87],[47,48,57,65,87],[49,87],[50,51,58,66,87],[51,75,83,87],[52,54,57,65,87],[53,87],[54,55,87],[56,57,87],[57,87],[57,58,59,75,86,87],[57,58,59,75,78,87],[87,91],[60,65,75,86,87],[57,58,60,61,65,75,83,86,87],[60,62,75,83,86,87],[42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],[57,63,87],[64,86,87],[54,57,65,75,87],[66,87],[67,87],[45,68,87],[69,85,87,91],[70,87],[71,87],[57,72,73,87],[72,74,87,89],[57,75,76,77,78,87],[75,77,87],[75,76,87],[78,87],[79,87],[57,81,82,87],[81,82,87],[51,65,75,83,87],[84,87],[65,85,87],[46,60,71,86,87],[51,87],[75,87,88],[87,89],[87,90],[46,51,57,59,68,75,86,87,89,91],[75,87,92],[87,335],[87,338],[87,330,333,334,337],[87,338,341],[87,341,342,343,344,345],[87,330,333,334,404],[87,330,332,333,334],[87,350,389],[87,350,374,389],[87,389],[87,350],[87,350,375,389],[87,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388],[87,375,389],[58,87,265],[60,87,94,261],[58,62,75,87,94,288],[87,308,396],[87,398],[57,60,62,65,75,83,86,87,92,94],[87,402],[87,96,160,161,162,166,253],[87,254],[58,87,96,160,161,166,256,264,265,271,272,276],[87,96,160,272,273,274,275],[87,160],[87,96,160,161,163,164,165],[96,160,161],[254],[96,160,161,265,272]],"referencedMap":[[281,1],[279,2],[268,3],[271,4],[266,2],[269,5],[267,2],[270,6],[300,2],[303,7],[116,8],[117,9],[120,10],[134,11],[118,12],[119,8],[133,13],[151,14],[152,15],[154,16],[149,14],[150,14],[153,14],[123,14],[124,15],[126,17],[121,14],[122,14],[125,14],[129,14],[130,15],[132,18],[127,14],[128,14],[131,14],[105,19],[98,20],[160,21],[159,22],[158,23],[103,24],[107,25],[100,26],[99,27],[115,28],[148,29],[106,30],[147,31],[108,32],[113,33],[110,34],[111,35],[146,36],[109,37],[114,38],[112,39],[102,40],[155,41],[157,42],[156,43],[140,44],[139,45],[137,44],[141,46],[138,2],[143,2],[145,47],[136,48],[144,49],[101,50],[135,2],[142,19],[302,2],[181,51],[180,2],[167,19],[168,19],[169,19],[170,19],[171,19],[172,19],[173,19],[174,19],[175,19],[176,19],[177,19],[178,19],[179,19],[185,52],[197,53],[186,19],[187,19],[188,19],[191,54],[192,19],[193,19],[194,19],[195,19],[196,19],[198,19],[199,2],[200,2],[201,52],[204,55],[202,56],[203,57],[183,58],[205,59],[220,60],[206,19],[209,61],[207,62],[208,63],[210,19],[213,64],[211,62],[212,59],[214,63],[215,65],[216,19],[219,66],[217,62],[218,67],[253,68],[222,62],[223,62],[224,62],[221,19],[225,62],[226,62],[227,62],[248,62],[243,69],[228,62],[250,70],[229,62],[230,62],[231,62],[245,62],[232,62],[233,62],[246,62],[234,62],[244,2],[249,62],[235,62],[236,62],[247,71],[237,62],[190,62],[238,62],[239,62],[240,62],[241,62],[189,2],[242,72],[184,73],[252,74],[182,73],[251,75],[96,44],[278,2],[284,76],[280,1],[282,77],[283,1],[104,45],[264,78],[285,79],[286,2],[287,80],[263,81],[288,2],[293,82],[289,2],[292,83],[290,2],[259,84],[265,85],[294,86],[295,2],[296,87],[297,2],[298,88],[299,89],[308,90],[307,91],[305,92],[306,93],[304,94],[291,2],[309,2],[323,95],[311,96],[312,97],[310,98],[313,99],[314,100],[315,101],[316,102],[317,103],[318,104],[319,105],[320,106],[321,107],[322,108],[261,109],[260,110],[324,2],[325,2],[326,2],[42,111],[43,111],[45,112],[46,113],[47,114],[48,115],[49,116],[50,117],[51,118],[52,119],[53,120],[54,121],[55,121],[56,122],[57,123],[58,124],[59,125],[44,126],[93,2],[60,127],[61,128],[62,129],[94,130],[63,131],[64,132],[65,133],[66,134],[67,135],[68,136],[69,137],[70,138],[71,139],[72,140],[73,140],[74,141],[75,142],[77,143],[76,144],[78,145],[79,146],[80,2],[81,147],[82,148],[83,149],[84,150],[85,151],[86,152],[87,153],[88,154],[89,155],[90,156],[91,157],[92,158],[327,2],[328,2],[329,2],[330,2],[331,2],[258,2],[257,2],[336,159],[339,160],[337,2],[338,161],[345,2],[342,162],[346,163],[340,164],[344,160],[341,160],[343,162],[332,2],[335,165],[347,45],[348,2],[349,2],[334,2],[374,166],[375,167],[350,168],[353,168],[372,166],[373,166],[363,166],[362,169],[360,166],[355,166],[368,166],[366,166],[370,166],[354,166],[367,166],[371,166],[356,166],[357,166],[369,166],[351,166],[358,166],[359,166],[361,166],[365,166],[376,170],[364,166],[352,166],[389,171],[388,2],[383,170],[385,172],[384,170],[377,170],[378,170],[380,170],[382,170],[386,172],[387,172],[379,172],[381,172],[390,173],[262,174],[391,81],[392,2],[393,2],[394,2],[395,175],[397,176],[396,2],[399,177],[398,2],[400,2],[401,178],[402,2],[403,179],[162,2],[95,2],[301,2],[333,2],[97,2],[9,2],[8,2],[2,2],[10,2],[11,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[3,2],[4,2],[21,2],[18,2],[19,2],[20,2],[22,2],[23,2],[24,2],[5,2],[25,2],[26,2],[27,2],[28,2],[6,2],[29,2],[30,2],[31,2],[32,2],[7,2],[33,2],[38,2],[39,2],[34,2],[35,2],[36,2],[37,2],[40,2],[1,2],[41,2],[256,45],[254,180],[255,181],[277,182],[275,19],[276,183],[273,19],[274,184],[272,2],[161,2],[163,19],[166,185],[164,19],[165,184]],"exportedModulesMap":[[281,1],[279,2],[268,3],[271,4],[266,2],[269,5],[267,2],[270,6],[300,2],[303,7],[116,8],[117,9],[120,10],[134,11],[118,12],[119,8],[133,13],[151,14],[152,15],[154,16],[149,14],[150,14],[153,14],[123,14],[124,15],[126,17],[121,14],[122,14],[125,14],[129,14],[130,15],[132,18],[127,14],[128,14],[131,14],[105,19],[98,20],[160,21],[159,22],[158,23],[103,24],[107,25],[100,26],[99,27],[115,28],[148,29],[106,30],[147,31],[108,32],[113,33],[110,34],[111,35],[146,36],[109,37],[114,38],[112,39],[102,40],[155,41],[157,42],[156,43],[140,44],[139,45],[137,44],[141,46],[138,2],[143,2],[145,47],[136,48],[144,49],[101,50],[135,2],[142,19],[302,2],[181,51],[180,2],[167,19],[168,19],[169,19],[170,19],[171,19],[172,19],[173,19],[174,19],[175,19],[176,19],[177,19],[178,19],[179,19],[185,52],[197,53],[186,19],[187,19],[188,19],[191,54],[192,19],[193,19],[194,19],[195,19],[196,19],[198,19],[199,2],[200,2],[201,52],[204,55],[202,56],[203,57],[183,58],[205,59],[220,60],[206,19],[209,61],[207,62],[208,63],[210,19],[213,64],[211,62],[212,59],[214,63],[215,65],[216,19],[219,66],[217,62],[218,67],[253,68],[222,62],[223,62],[224,62],[221,19],[225,62],[226,62],[227,62],[248,62],[243,69],[228,62],[250,70],[229,62],[230,62],[231,62],[245,62],[232,62],[233,62],[246,62],[234,62],[244,2],[249,62],[235,62],[236,62],[247,71],[237,62],[190,62],[238,62],[239,62],[240,62],[241,62],[189,2],[242,72],[184,73],[252,74],[182,73],[251,75],[96,44],[278,2],[284,76],[280,1],[282,77],[283,1],[104,45],[264,78],[285,79],[286,2],[287,80],[263,81],[288,2],[293,82],[289,2],[292,83],[290,2],[259,84],[265,85],[294,86],[295,2],[296,87],[297,2],[298,88],[299,89],[308,90],[307,91],[305,92],[306,93],[304,94],[291,2],[309,2],[323,95],[311,96],[312,97],[310,98],[313,99],[314,100],[315,101],[316,102],[317,103],[318,104],[319,105],[320,106],[321,107],[322,108],[261,109],[260,110],[324,2],[325,2],[326,2],[42,111],[43,111],[45,112],[46,113],[47,114],[48,115],[49,116],[50,117],[51,118],[52,119],[53,120],[54,121],[55,121],[56,122],[57,123],[58,124],[59,125],[44,126],[93,2],[60,127],[61,128],[62,129],[94,130],[63,131],[64,132],[65,133],[66,134],[67,135],[68,136],[69,137],[70,138],[71,139],[72,140],[73,140],[74,141],[75,142],[77,143],[76,144],[78,145],[79,146],[80,2],[81,147],[82,148],[83,149],[84,150],[85,151],[86,152],[87,153],[88,154],[89,155],[90,156],[91,157],[92,158],[327,2],[328,2],[329,2],[330,2],[331,2],[258,2],[257,2],[336,159],[339,160],[337,2],[338,161],[345,2],[342,162],[346,163],[340,164],[344,160],[341,160],[343,162],[332,2],[335,165],[347,45],[348,2],[349,2],[334,2],[374,166],[375,167],[350,168],[353,168],[372,166],[373,166],[363,166],[362,169],[360,166],[355,166],[368,166],[366,166],[370,166],[354,166],[367,166],[371,166],[356,166],[357,166],[369,166],[351,166],[358,166],[359,166],[361,166],[365,166],[376,170],[364,166],[352,166],[389,171],[388,2],[383,170],[385,172],[384,170],[377,170],[378,170],[380,170],[382,170],[386,172],[387,172],[379,172],[381,172],[390,173],[262,174],[391,81],[392,2],[393,2],[394,2],[395,175],[397,176],[396,2],[399,177],[398,2],[400,2],[401,178],[402,2],[403,179],[162,2],[95,2],[301,2],[333,2],[97,2],[9,2],[8,2],[2,2],[10,2],[11,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[3,2],[4,2],[21,2],[18,2],[19,2],[20,2],[22,2],[23,2],[24,2],[5,2],[25,2],[26,2],[27,2],[28,2],[6,2],[29,2],[30,2],[31,2],[32,2],[7,2],[33,2],[38,2],[39,2],[34,2],[35,2],[36,2],[37,2],[40,2],[1,2],[41,2],[256,45],[254,186],[255,187],[277,188],[275,19],[276,183],[273,19],[274,184],[272,2],[161,2],[163,19],[166,185],[164,19],[165,184]],"semanticDiagnosticsPerFile":[281,279,268,271,266,269,267,270,300,303,116,117,120,134,118,119,133,151,152,154,149,150,153,123,124,126,121,122,125,129,130,132,127,128,131,105,98,160,159,158,103,107,100,99,115,148,106,147,108,113,110,111,146,109,114,112,102,155,157,156,140,139,137,141,138,143,145,136,144,101,135,142,302,181,180,167,168,169,170,171,172,173,174,175,176,177,178,179,185,197,186,187,188,191,192,193,194,195,196,198,199,200,201,204,202,203,183,205,220,206,209,207,208,210,213,211,212,214,215,216,219,217,218,253,222,223,224,221,225,226,227,248,243,228,250,229,230,231,245,232,233,246,234,244,249,235,236,247,237,190,238,239,240,241,189,242,184,252,182,251,96,278,284,280,282,283,104,264,285,286,287,263,288,293,289,292,290,259,265,294,295,296,297,298,299,308,307,305,306,304,291,309,323,311,312,310,313,314,315,316,317,318,319,320,321,322,261,260,324,325,326,42,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,44,93,60,61,62,94,63,64,65,66,67,68,69,70,71,72,73,74,75,77,76,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,327,328,329,330,331,258,257,336,339,337,338,345,342,346,340,344,341,343,332,335,347,348,349,334,374,375,350,353,372,373,363,362,360,355,368,366,370,354,367,371,356,357,369,351,358,359,361,365,376,364,352,389,388,383,385,384,377,378,380,382,386,387,379,381,390,262,391,392,393,394,395,397,396,399,398,400,401,402,403,162,95,301,333,97,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,29,30,31,32,7,33,38,39,34,35,36,37,40,1,41,256,254,255,277,275,276,273,274,272,161,163,166,164,165],"latestChangedDtsFile":"../types/src/server.d.ts"},"version":"4.8.4"}
@@ -0,0 +1,10 @@
1
+ import { AnchorProvider, Program } from "@project-serum/anchor";
2
+ import { PublicKey } from "@solana/web3.js";
3
+ import { LazyDistributor } from "@helium/idls/lib/types/lazy_distributor";
4
+ export declare type Reward = {
5
+ currentRewards: string;
6
+ oracleKey: PublicKey;
7
+ };
8
+ export declare function getCurrentRewards(program: Program<LazyDistributor>, lazyDistributor: PublicKey, mint: PublicKey): Promise<Reward[]>;
9
+ export declare function formTransaction(program: Program<LazyDistributor>, provider: AnchorProvider, rewards: Reward[], hotspot: PublicKey, lazyDistributor: PublicKey, wallet?: PublicKey): Promise<any>;
10
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,OAAO,EAER,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAe,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAK1E,oBAAY,MAAM,GAAG;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AACF,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,EACjC,eAAe,EAAE,SAAS,EAC1B,IAAI,EAAE,SAAS,GACd,OAAO,CAAC,MAAM,EAAE,CAAC,CAgBnB;AAED,wBAAsB,eAAe,CACnC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,EACjC,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,SAAS,EAClB,eAAe,EAAE,SAAS,EAC1B,MAAM,CAAC,EAAE,SAAS,gBAsDnB"}
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { Application } from "express";
2
+ import { PublicKey, Keypair } from "@solana/web3.js";
3
+ import { Program } from "@project-serum/anchor";
4
+ import { LazyDistributor } from "@helium/idls/lib/types/lazy_distributor";
5
+ import { HotspotIssuance } from "@helium/idls/lib/types/hotspot_issuance";
6
+ export interface Database {
7
+ getCurrentRewards: (mint: PublicKey) => Promise<string>;
8
+ incrementHotspotRewards: (hotspotKey: string) => Promise<void>;
9
+ endEpoch: () => Promise<{
10
+ [key: string]: number;
11
+ }>;
12
+ }
13
+ export declare class DatabaseMock implements Database {
14
+ readonly issuanceProgram: Program<HotspotIssuance>;
15
+ inMemHash: {
16
+ totalClicks: number;
17
+ lifetimeRewards: number;
18
+ byHotspot: {
19
+ [key: string]: {
20
+ totalClicks: number;
21
+ lifetimeRewards: number;
22
+ };
23
+ };
24
+ };
25
+ constructor(issuanceProgram: Program<HotspotIssuance>);
26
+ getCurrentRewards(mint: PublicKey): Promise<string>;
27
+ incrementHotspotRewards(hotspotKey: string): Promise<void>;
28
+ endEpoch(): Promise<{
29
+ [key: string]: number;
30
+ }>;
31
+ }
32
+ export declare class OracleServer {
33
+ program: Program<LazyDistributor>;
34
+ issuanceProgram: Program<HotspotIssuance>;
35
+ private oracle;
36
+ db: Database;
37
+ app: Application;
38
+ port: number;
39
+ private server;
40
+ constructor(program: Program<LazyDistributor>, issuanceProgram: Program<HotspotIssuance>, oracle: Keypair, db: Database);
41
+ start(): void;
42
+ close(): void;
43
+ private addRoutes;
44
+ private endEpochHandler;
45
+ private incrementHotspotRewardsHandler;
46
+ private getCurrentRewardsHandler;
47
+ private signTransactionHandler;
48
+ }
49
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/server.ts"],"names":[],"mappings":"AAEA,OAAgB,EAAE,WAAW,EAAqB,MAAM,SAAS,CAAC;AAIlE,OAAO,EACL,SAAS,EAET,OAAO,EAER,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAGL,OAAO,EAGR,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAQ1E,MAAM,WAAW,QAAQ;IACvB,iBAAiB,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACxD,uBAAuB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,QAAQ,EAAE,MAAM,OAAO,CAAC;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC,CAAC;CACJ;AAED,qBAAa,YAAa,YAAW,QAAQ;IAY/B,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC;IAX9D,SAAS,EAAE;QACT,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;QACxB,SAAS,EAAE;YACT,CAAC,GAAG,EAAE,MAAM,GAAG;gBACb,WAAW,EAAE,MAAM,CAAC;gBACpB,eAAe,EAAE,MAAM,CAAC;aACzB,CAAC;SACH,CAAC;KACH,CAAC;gBAEmB,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC;IAQxD,iBAAiB,CAAC,IAAI,EAAE,SAAS;IAkBjC,uBAAuB,CAAC,UAAU,EAAE,MAAM;IAgB1C,QAAQ;;;CA+Bf;AAED,qBAAa,YAAY;IAMd,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC;IAChD,OAAO,CAAC,MAAM;IACP,EAAE,EAAE,QAAQ;IARrB,GAAG,EAAE,WAAW,CAAC;IACjB,IAAI,SAAQ;IACZ,OAAO,CAAC,MAAM,CAAM;gBAGX,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,EACjC,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC,EACxC,MAAM,EAAE,OAAO,EAChB,EAAE,EAAE,QAAQ;IASd,KAAK;IAML,KAAK;IAIZ,OAAO,CAAC,SAAS;YAOH,eAAe;YASf,8BAA8B;YAY9B,wBAAwB;YAqBxB,sBAAsB;CA6ErC"}
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@helium/distributor-oracle",
3
+ "publishConfig": {
4
+ "access": "public",
5
+ "registry": "https://registry.npmjs.org/"
6
+ },
7
+ "version": "0.0.1",
8
+ "description": "Oracle server for the lazy distributor",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/HeliumFoundation/helium-program-libary"
12
+ },
13
+ "main": "./lib/cjs/index.js",
14
+ "module": "./lib/esm/src/index.js",
15
+ "types": "./lib/types/src/index.d.ts",
16
+ "sideEffects": false,
17
+ "files": [
18
+ "lib"
19
+ ],
20
+ "exports": {
21
+ "import": "./lib/esm/src/index.js",
22
+ "require": "./lib/cjs/index.js",
23
+ "types": "./lib/types/src/index.d.ts"
24
+ },
25
+ "scripts": {
26
+ "format": "prettier --write \"src/**/*.{ts,tsx}\"",
27
+ "precommit": "npx git-format-staged -f 'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"' .",
28
+ "clean": "npx shx mkdir -p lib && npx shx rm -rf lib",
29
+ "package": "npx shx mkdir -p lib/cjs lib/esm",
30
+ "prebuild": "npm run clean && npm run package",
31
+ "dev": "npx nodemon src/server.ts serve",
32
+ "start": "node lib/cjs/server.js serve"
33
+ },
34
+ "dependencies": {
35
+ "@helium/address": "^4.6.2",
36
+ "@helium/hotspot-issuance-sdk": "^0.0.1",
37
+ "@helium/idls": "^0.0.1",
38
+ "@helium/lazy-distributor-sdk": "^0.0.1",
39
+ "@helium/spl-utils": "^0.0.1",
40
+ "@project-serum/anchor": "^0.24.2",
41
+ "axios": "^0.27.2",
42
+ "bn.js": "^5.2.0",
43
+ "cors": "^2.8.5",
44
+ "dotenv": "^16.0.3",
45
+ "express": "^4.18.1",
46
+ "ky": "^0.31.4"
47
+ },
48
+ "devDependencies": {
49
+ "@types/express": "^4.17.14",
50
+ "git-format-staged": "^2.1.3",
51
+ "nodemon": "^2.0.20",
52
+ "ts-loader": "^9.2.3",
53
+ "ts-node": "^10.8.1",
54
+ "typescript": "^4.3.4",
55
+ "yarn": "^1.22.18"
56
+ },
57
+ "gitHead": "fb70ce1ecb6891598ad01da0052034806b1a5c64"
58
+ }