@glowlabs-org/utils 0.2.161 → 0.2.162
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/{calculate-farm-efficiency-DgUyd3Go.js → calculate-farm-efficiency-C1AxUV_w.js} +21 -1
- package/dist/cjs/calculate-farm-efficiency-C1AxUV_w.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/esm/browser.js +2 -2
- package/dist/esm/{calculate-farm-efficiency-DF5ehjWL.js → calculate-farm-efficiency-BLvnmRNd.js} +21 -1
- package/dist/esm/calculate-farm-efficiency-BLvnmRNd.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
- package/src/lib/hooks/use-rewards-kernel.ts +20 -0
- package/dist/cjs/calculate-farm-efficiency-DgUyd3Go.js.map +0 -1
- package/dist/esm/calculate-farm-efficiency-DF5ehjWL.js.map +0 -1
package/dist/cjs/browser.js
CHANGED
package/dist/cjs/{calculate-farm-efficiency-DgUyd3Go.js → calculate-farm-efficiency-C1AxUV_w.js}
RENAMED
|
@@ -2924,6 +2924,15 @@ function useRewardsKernel(walletClient, publicClient, CHAIN_ID) {
|
|
|
2924
2924
|
}
|
|
2925
2925
|
// Run a simulation first to surface any revert reason
|
|
2926
2926
|
try {
|
|
2927
|
+
console.log("Simulating claimPayout with:", {
|
|
2928
|
+
nonce: nonce.toString(),
|
|
2929
|
+
proof: proof,
|
|
2930
|
+
tokensAndAmounts: tokensAndAmounts,
|
|
2931
|
+
from: from,
|
|
2932
|
+
to: to,
|
|
2933
|
+
isGuardedToken: isGuardedToken,
|
|
2934
|
+
toCounterfactual: toCounterfactual,
|
|
2935
|
+
});
|
|
2927
2936
|
await publicClient.simulateContract({
|
|
2928
2937
|
address: ADDRESSES.REWARDS_KERNEL,
|
|
2929
2938
|
abi: REWARDS_KERNEL_ABI,
|
|
@@ -2947,6 +2956,7 @@ function useRewardsKernel(walletClient, publicClient, CHAIN_ID) {
|
|
|
2947
2956
|
contract: ADDRESSES.REWARDS_KERNEL,
|
|
2948
2957
|
nonce: nonce.toString(),
|
|
2949
2958
|
tokensAndAmounts: tokensAndAmounts,
|
|
2959
|
+
proof: proof,
|
|
2950
2960
|
from: from,
|
|
2951
2961
|
to: to,
|
|
2952
2962
|
isGuardedToken: isGuardedToken,
|
|
@@ -2954,6 +2964,15 @@ function useRewardsKernel(walletClient, publicClient, CHAIN_ID) {
|
|
|
2954
2964
|
});
|
|
2955
2965
|
throw new Error(parseViemError(simulationError));
|
|
2956
2966
|
}
|
|
2967
|
+
console.log("Executing claimPayout with:", {
|
|
2968
|
+
nonce: nonce.toString(),
|
|
2969
|
+
proof: proof,
|
|
2970
|
+
tokensAndAmounts: tokensAndAmounts,
|
|
2971
|
+
from: from,
|
|
2972
|
+
to: to,
|
|
2973
|
+
isGuardedToken: isGuardedToken,
|
|
2974
|
+
toCounterfactual: toCounterfactual,
|
|
2975
|
+
});
|
|
2957
2976
|
// Execute the transaction
|
|
2958
2977
|
const hash = await walletClient.writeContract({
|
|
2959
2978
|
address: ADDRESSES.REWARDS_KERNEL,
|
|
@@ -2981,6 +3000,7 @@ function useRewardsKernel(walletClient, publicClient, CHAIN_ID) {
|
|
|
2981
3000
|
contract: ADDRESSES.REWARDS_KERNEL,
|
|
2982
3001
|
nonce: params.nonce.toString(),
|
|
2983
3002
|
from: params.from,
|
|
3003
|
+
proof: params.proof,
|
|
2984
3004
|
tokensAndAmounts: params.tokensAndAmounts,
|
|
2985
3005
|
to: params.to,
|
|
2986
3006
|
isGuardedToken: params.isGuardedToken,
|
|
@@ -5129,4 +5149,4 @@ exports.useOffchainFractions = useOffchainFractions;
|
|
|
5129
5149
|
exports.useRewardsKernel = useRewardsKernel;
|
|
5130
5150
|
exports.waitForEthersTransactionWithRetry = waitForEthersTransactionWithRetry;
|
|
5131
5151
|
exports.waitForViemTransactionWithRetry = waitForViemTransactionWithRetry;
|
|
5132
|
-
//# sourceMappingURL=calculate-farm-efficiency-
|
|
5152
|
+
//# sourceMappingURL=calculate-farm-efficiency-C1AxUV_w.js.map
|