@glowlabs-org/utils 0.2.156 → 0.2.158
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.d.ts +1 -0
- package/dist/cjs/browser.js +41 -39
- package/dist/cjs/browser.js.map +1 -1
- package/dist/cjs/{farms-router-DekpTBQj.js → calculate-farm-efficiency-CLa5037R.js} +58 -1
- package/dist/cjs/calculate-farm-efficiency-CLa5037R.js.map +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +46 -45
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/control-api/farms-router.d.ts +527 -13
- package/dist/cjs/lib/types/index.d.ts +16 -0
- package/dist/cjs/utils/calculate-farm-efficiency.d.ts +27 -0
- package/dist/esm/browser.d.ts +1 -0
- package/dist/esm/browser.js +3 -2
- package/dist/esm/browser.js.map +1 -1
- package/dist/esm/{farms-router-L56VPDNz.js → calculate-farm-efficiency-Ceoa2xwl.js} +58 -2
- package/dist/esm/calculate-farm-efficiency-Ceoa2xwl.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/lib/control-api/farms-router.d.ts +527 -13
- package/dist/esm/lib/types/index.d.ts +16 -0
- package/dist/esm/utils/calculate-farm-efficiency.d.ts +27 -0
- package/package.json +1 -1
- package/src/browser.ts +1 -0
- package/src/index.ts +1 -0
- package/src/lib/control-api/farms-router.ts +550 -12
- package/src/lib/types/index.ts +20 -0
- package/src/utils/calculate-farm-efficiency.ts +48 -0
- package/dist/cjs/farms-router-DekpTBQj.js.map +0 -1
- package/dist/esm/farms-router-L56VPDNz.js.map +0 -1
package/dist/cjs/browser.d.ts
CHANGED
package/dist/cjs/browser.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var calculateFarmEfficiency = require('./calculate-farm-efficiency-CLa5037R.js');
|
|
4
|
+
require('decimal.js');
|
|
4
5
|
var viem = require('viem');
|
|
5
6
|
require('ethers');
|
|
6
7
|
|
|
@@ -12372,7 +12373,7 @@ async function validatePayProtocolDepositUsingStakedControlSignature(input, doma
|
|
|
12372
12373
|
address: viem.checksumAddress(input.wallet),
|
|
12373
12374
|
domain,
|
|
12374
12375
|
types: payProtocolDepositUsingStakedControlEIP712Types,
|
|
12375
|
-
primaryType:
|
|
12376
|
+
primaryType: calculateFarmEfficiency.TRANSFER_TYPES.PayProtocolDepositUsingStakedControl,
|
|
12376
12377
|
message,
|
|
12377
12378
|
signature: input.signature,
|
|
12378
12379
|
});
|
|
@@ -12410,60 +12411,61 @@ async function validateVerifyUserSignature(input, domain = stakeControlEIP712Dom
|
|
|
12410
12411
|
}
|
|
12411
12412
|
}
|
|
12412
12413
|
|
|
12413
|
-
exports.ControlRouter =
|
|
12414
|
-
exports.DECIMALS_BY_TOKEN =
|
|
12415
|
-
exports.FORWARDER_ABI =
|
|
12416
|
-
exports.FarmsRouter =
|
|
12414
|
+
exports.ControlRouter = calculateFarmEfficiency.ControlRouter;
|
|
12415
|
+
exports.DECIMALS_BY_TOKEN = calculateFarmEfficiency.DECIMALS_BY_TOKEN;
|
|
12416
|
+
exports.FORWARDER_ABI = calculateFarmEfficiency.FORWARDER_ABI;
|
|
12417
|
+
exports.FarmsRouter = calculateFarmEfficiency.FarmsRouter;
|
|
12417
12418
|
Object.defineProperty(exports, "ForwarderError", {
|
|
12418
12419
|
enumerable: true,
|
|
12419
|
-
get: function () { return
|
|
12420
|
+
get: function () { return calculateFarmEfficiency.ForwarderError; }
|
|
12420
12421
|
});
|
|
12421
|
-
exports.GCA_URLS =
|
|
12422
|
-
exports.GLOW_WEIGHT_DECIMAL_PRECISION =
|
|
12423
|
-
exports.HUB_URL =
|
|
12422
|
+
exports.GCA_URLS = calculateFarmEfficiency.GCA_URLS;
|
|
12423
|
+
exports.GLOW_WEIGHT_DECIMAL_PRECISION = calculateFarmEfficiency.GLOW_WEIGHT_DECIMAL_PRECISION;
|
|
12424
|
+
exports.HUB_URL = calculateFarmEfficiency.HUB_URL;
|
|
12424
12425
|
Object.defineProperty(exports, "KICKSTARTER_STATUS", {
|
|
12425
12426
|
enumerable: true,
|
|
12426
|
-
get: function () { return
|
|
12427
|
+
get: function () { return calculateFarmEfficiency.KICKSTARTER_STATUS; }
|
|
12427
12428
|
});
|
|
12428
|
-
exports.KickstarterRouter =
|
|
12429
|
-
exports.MAX_WEIGHT =
|
|
12430
|
-
exports.OFFCHAIN_FRACTIONS_ABI =
|
|
12431
|
-
exports.OFF_CHAIN_PAYMENT_CURRENCIES =
|
|
12429
|
+
exports.KickstarterRouter = calculateFarmEfficiency.KickstarterRouter;
|
|
12430
|
+
exports.MAX_WEIGHT = calculateFarmEfficiency.MAX_WEIGHT;
|
|
12431
|
+
exports.OFFCHAIN_FRACTIONS_ABI = calculateFarmEfficiency.OFFCHAIN_FRACTIONS_ABI;
|
|
12432
|
+
exports.OFF_CHAIN_PAYMENT_CURRENCIES = calculateFarmEfficiency.OFF_CHAIN_PAYMENT_CURRENCIES;
|
|
12432
12433
|
Object.defineProperty(exports, "OffchainFractionsError", {
|
|
12433
12434
|
enumerable: true,
|
|
12434
|
-
get: function () { return
|
|
12435
|
+
get: function () { return calculateFarmEfficiency.OffchainFractionsError; }
|
|
12435
12436
|
});
|
|
12436
|
-
exports.PAYMENT_CURRENCIES =
|
|
12437
|
+
exports.PAYMENT_CURRENCIES = calculateFarmEfficiency.PAYMENT_CURRENCIES;
|
|
12437
12438
|
Object.defineProperty(exports, "REGIONS", {
|
|
12438
12439
|
enumerable: true,
|
|
12439
|
-
get: function () { return
|
|
12440
|
+
get: function () { return calculateFarmEfficiency.REGIONS; }
|
|
12440
12441
|
});
|
|
12441
|
-
exports.REWARDS_KERNEL_ABI =
|
|
12442
|
-
exports.RegionRouter =
|
|
12442
|
+
exports.REWARDS_KERNEL_ABI = calculateFarmEfficiency.REWARDS_KERNEL_ABI;
|
|
12443
|
+
exports.RegionRouter = calculateFarmEfficiency.RegionRouter;
|
|
12443
12444
|
Object.defineProperty(exports, "RewardsKernelError", {
|
|
12444
12445
|
enumerable: true,
|
|
12445
|
-
get: function () { return
|
|
12446
|
+
get: function () { return calculateFarmEfficiency.RewardsKernelError; }
|
|
12446
12447
|
});
|
|
12447
12448
|
Object.defineProperty(exports, "STAKING_DIRECTIONS", {
|
|
12448
12449
|
enumerable: true,
|
|
12449
|
-
get: function () { return
|
|
12450
|
-
});
|
|
12451
|
-
exports.TRANSFER_TYPES =
|
|
12452
|
-
exports.USDG_WEIGHT_DECIMAL_PRECISION =
|
|
12453
|
-
exports.WalletsRouter =
|
|
12454
|
-
exports.allRegions =
|
|
12455
|
-
exports.
|
|
12456
|
-
exports.
|
|
12457
|
-
exports.
|
|
12458
|
-
exports.
|
|
12459
|
-
exports.
|
|
12460
|
-
exports.
|
|
12461
|
-
exports.
|
|
12462
|
-
exports.
|
|
12463
|
-
exports.
|
|
12464
|
-
exports.
|
|
12465
|
-
exports.
|
|
12466
|
-
exports.
|
|
12450
|
+
get: function () { return calculateFarmEfficiency.STAKING_DIRECTIONS; }
|
|
12451
|
+
});
|
|
12452
|
+
exports.TRANSFER_TYPES = calculateFarmEfficiency.TRANSFER_TYPES;
|
|
12453
|
+
exports.USDG_WEIGHT_DECIMAL_PRECISION = calculateFarmEfficiency.USDG_WEIGHT_DECIMAL_PRECISION;
|
|
12454
|
+
exports.WalletsRouter = calculateFarmEfficiency.WalletsRouter;
|
|
12455
|
+
exports.allRegions = calculateFarmEfficiency.allRegions;
|
|
12456
|
+
exports.calculateFarmEfficiency = calculateFarmEfficiency.calculateFarmEfficiency;
|
|
12457
|
+
exports.configureSentry = calculateFarmEfficiency.configureSentry;
|
|
12458
|
+
exports.countries = calculateFarmEfficiency.countries;
|
|
12459
|
+
exports.getAddresses = calculateFarmEfficiency.getAddresses;
|
|
12460
|
+
exports.parseEthersError = calculateFarmEfficiency.parseEthersError;
|
|
12461
|
+
exports.parseViemError = calculateFarmEfficiency.parseViemError;
|
|
12462
|
+
exports.regionMetadata = calculateFarmEfficiency.regionMetadata;
|
|
12463
|
+
exports.usStates = calculateFarmEfficiency.usStates;
|
|
12464
|
+
exports.useForwarder = calculateFarmEfficiency.useForwarder;
|
|
12465
|
+
exports.useOffchainFractions = calculateFarmEfficiency.useOffchainFractions;
|
|
12466
|
+
exports.useRewardsKernel = calculateFarmEfficiency.useRewardsKernel;
|
|
12467
|
+
exports.waitForEthersTransactionWithRetry = calculateFarmEfficiency.waitForEthersTransactionWithRetry;
|
|
12468
|
+
exports.waitForViemTransactionWithRetry = calculateFarmEfficiency.waitForViemTransactionWithRetry;
|
|
12467
12469
|
exports.applyCertifiedInstallerEIP712Types = applyCertifiedInstallerEIP712Types;
|
|
12468
12470
|
exports.applyCertifiedInstallerSignatureRequestSchema = applyCertifiedInstallerSignatureRequestSchema;
|
|
12469
12471
|
exports.buildApplyCertifiedInstallerMessage = buildApplyCertifiedInstallerMessage;
|