@glowlabs-org/utils 0.2.123 → 0.2.124
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/dist/cjs/browser.js +1 -1
- package/dist/cjs/{farms-router-BnkrchS7.js → farms-router-Bhx5PaBm.js} +47 -47
- package/dist/cjs/{farms-router-BnkrchS7.js.map → farms-router-Bhx5PaBm.js.map} +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +16 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/browser.js +2 -2
- package/dist/esm/{farms-router-CGEWdy1D.js → farms-router-CsWuzreV.js} +48 -48
- package/dist/esm/{farms-router-CGEWdy1D.js.map → farms-router-CsWuzreV.js.map} +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -19,6 +19,52 @@ const GLOW_WEIGHT_DECIMAL_PRECISION = 8;
|
|
|
19
19
|
const USDG_WEIGHT_DECIMAL_PRECISION = 8;
|
|
20
20
|
const MAX_WEIGHT = (BigInt(2) ** BigInt(64) - BigInt(1)) / BigInt(5);
|
|
21
21
|
|
|
22
|
+
// ---------------------------------------------------------------------------
|
|
23
|
+
// Common / Shared Types
|
|
24
|
+
// ---------------------------------------------------------------------------
|
|
25
|
+
exports.STAKING_DIRECTIONS = void 0;
|
|
26
|
+
(function (STAKING_DIRECTIONS) {
|
|
27
|
+
STAKING_DIRECTIONS["STAKE"] = "stake";
|
|
28
|
+
STAKING_DIRECTIONS["UNSTAKE"] = "unstake";
|
|
29
|
+
STAKING_DIRECTIONS["RESTAKE"] = "restake";
|
|
30
|
+
})(exports.STAKING_DIRECTIONS || (exports.STAKING_DIRECTIONS = {}));
|
|
31
|
+
exports.REGIONS = void 0;
|
|
32
|
+
(function (REGIONS) {
|
|
33
|
+
REGIONS[REGIONS["CLEAN_GRID_PROJECT"] = 1] = "CLEAN_GRID_PROJECT";
|
|
34
|
+
REGIONS[REGIONS["UTAH"] = 2] = "UTAH";
|
|
35
|
+
REGIONS[REGIONS["MISSOURI"] = 3] = "MISSOURI";
|
|
36
|
+
REGIONS[REGIONS["COLORADO"] = 4] = "COLORADO";
|
|
37
|
+
})(exports.REGIONS || (exports.REGIONS = {}));
|
|
38
|
+
const PAYMENT_CURRENCIES = [
|
|
39
|
+
"GCTL",
|
|
40
|
+
"USDC",
|
|
41
|
+
"USDG",
|
|
42
|
+
"GLW",
|
|
43
|
+
"SGCTL",
|
|
44
|
+
];
|
|
45
|
+
const OFF_CHAIN_PAYMENT_CURRENCIES = ["SGCTL", "GCTL"];
|
|
46
|
+
const TRANSFER_TYPES = {
|
|
47
|
+
PayProtocolFeeAndMintGCTLAndStake: "PayProtocolFeeAndMintGCTLAndStake",
|
|
48
|
+
PayProtocolFee: "PayProtocolFee",
|
|
49
|
+
PayAuditFees: "PayAuditFees",
|
|
50
|
+
CommitKickstarter: "CommitKickstarter",
|
|
51
|
+
MintGCTLAndStake: "MintGCTLAndStake",
|
|
52
|
+
MintGCTL: "MintGCTL",
|
|
53
|
+
BuySolarFarm: "BuySolarFarm",
|
|
54
|
+
SponsorProtocolFee: "SponsorProtocolFee",
|
|
55
|
+
SponsorProtocolFeeAndMintGCTLAndStake: "SponsorProtocolFeeAndMintGCTLAndStake",
|
|
56
|
+
PayProtocolDepositUsingStakedControl: "PayProtocolDepositUsingStakedControl",
|
|
57
|
+
};
|
|
58
|
+
// ----------------------------- Kickstarters ---------------------------------
|
|
59
|
+
exports.KICKSTARTER_STATUS = void 0;
|
|
60
|
+
(function (KICKSTARTER_STATUS) {
|
|
61
|
+
KICKSTARTER_STATUS["DRAFT"] = "draft";
|
|
62
|
+
KICKSTARTER_STATUS["COLLECTING_SUPPORT"] = "collecting-support";
|
|
63
|
+
KICKSTARTER_STATUS["COMPLETED"] = "completed";
|
|
64
|
+
KICKSTARTER_STATUS["FAILED"] = "failed";
|
|
65
|
+
KICKSTARTER_STATUS["CANCELLED"] = "cancelled";
|
|
66
|
+
})(exports.KICKSTARTER_STATUS || (exports.KICKSTARTER_STATUS = {}));
|
|
67
|
+
|
|
22
68
|
const FORWARDER_ABI = [
|
|
23
69
|
{
|
|
24
70
|
inputs: [
|
|
@@ -250,52 +296,6 @@ const DECIMALS_BY_TOKEN = {
|
|
|
250
296
|
GLW: 18,
|
|
251
297
|
};
|
|
252
298
|
|
|
253
|
-
// ---------------------------------------------------------------------------
|
|
254
|
-
// Common / Shared Types
|
|
255
|
-
// ---------------------------------------------------------------------------
|
|
256
|
-
exports.STAKING_DIRECTIONS = void 0;
|
|
257
|
-
(function (STAKING_DIRECTIONS) {
|
|
258
|
-
STAKING_DIRECTIONS["STAKE"] = "stake";
|
|
259
|
-
STAKING_DIRECTIONS["UNSTAKE"] = "unstake";
|
|
260
|
-
STAKING_DIRECTIONS["RESTAKE"] = "restake";
|
|
261
|
-
})(exports.STAKING_DIRECTIONS || (exports.STAKING_DIRECTIONS = {}));
|
|
262
|
-
exports.REGIONS = void 0;
|
|
263
|
-
(function (REGIONS) {
|
|
264
|
-
REGIONS[REGIONS["CLEAN_GRID_PROJECT"] = 1] = "CLEAN_GRID_PROJECT";
|
|
265
|
-
REGIONS[REGIONS["UTAH"] = 2] = "UTAH";
|
|
266
|
-
REGIONS[REGIONS["MISSOURI"] = 3] = "MISSOURI";
|
|
267
|
-
REGIONS[REGIONS["COLORADO"] = 4] = "COLORADO";
|
|
268
|
-
})(exports.REGIONS || (exports.REGIONS = {}));
|
|
269
|
-
const PAYMENT_CURRENCIES = [
|
|
270
|
-
"GCTL",
|
|
271
|
-
"USDC",
|
|
272
|
-
"USDG",
|
|
273
|
-
"GLW",
|
|
274
|
-
"SGCTL",
|
|
275
|
-
];
|
|
276
|
-
const OFF_CHAIN_PAYMENT_CURRENCIES = ["SGCTL", "GCTL"];
|
|
277
|
-
const TRANSFER_TYPES = {
|
|
278
|
-
PayProtocolFeeAndMintGCTLAndStake: "PayProtocolFeeAndMintGCTLAndStake",
|
|
279
|
-
PayProtocolFee: "PayProtocolFee",
|
|
280
|
-
PayAuditFees: "PayAuditFees",
|
|
281
|
-
CommitKickstarter: "CommitKickstarter",
|
|
282
|
-
MintGCTLAndStake: "MintGCTLAndStake",
|
|
283
|
-
MintGCTL: "MintGCTL",
|
|
284
|
-
BuySolarFarm: "BuySolarFarm",
|
|
285
|
-
SponsorProtocolFee: "SponsorProtocolFee",
|
|
286
|
-
SponsorProtocolFeeAndMintGCTLAndStake: "SponsorProtocolFeeAndMintGCTLAndStake",
|
|
287
|
-
PayProtocolDepositUsingStakedControl: "PayProtocolDepositUsingStakedControl",
|
|
288
|
-
};
|
|
289
|
-
// ----------------------------- Kickstarters ---------------------------------
|
|
290
|
-
exports.KICKSTARTER_STATUS = void 0;
|
|
291
|
-
(function (KICKSTARTER_STATUS) {
|
|
292
|
-
KICKSTARTER_STATUS["DRAFT"] = "draft";
|
|
293
|
-
KICKSTARTER_STATUS["COLLECTING_SUPPORT"] = "collecting-support";
|
|
294
|
-
KICKSTARTER_STATUS["COMPLETED"] = "completed";
|
|
295
|
-
KICKSTARTER_STATUS["FAILED"] = "failed";
|
|
296
|
-
KICKSTARTER_STATUS["CANCELLED"] = "cancelled";
|
|
297
|
-
})(exports.KICKSTARTER_STATUS || (exports.KICKSTARTER_STATUS = {}));
|
|
298
|
-
|
|
299
299
|
exports.ForwarderError = void 0;
|
|
300
300
|
(function (ForwarderError) {
|
|
301
301
|
ForwarderError["CONTRACT_NOT_AVAILABLE"] = "Contract not available";
|
|
@@ -3649,4 +3649,4 @@ exports.regionMetadata = regionMetadata;
|
|
|
3649
3649
|
exports.usStates = usStates;
|
|
3650
3650
|
exports.useForwarder = useForwarder;
|
|
3651
3651
|
exports.useOffchainFractions = useOffchainFractions;
|
|
3652
|
-
//# sourceMappingURL=farms-router-
|
|
3652
|
+
//# sourceMappingURL=farms-router-Bhx5PaBm.js.map
|