@glowlabs-org/utils 0.2.148 → 0.2.149

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/esm/index.js CHANGED
@@ -13,8 +13,8 @@ import { parseUnits, formatUnits } from 'viem';
13
13
  import { MerkleTree } from 'merkletreejs';
14
14
  import { solidityPackedKeccak256, keccak256 } from 'ethers';
15
15
  import Decimal from 'decimal.js';
16
- import { H as HUB_URL, U as USDG_WEIGHT_DECIMAL_PRECISION, G as GLOW_WEIGHT_DECIMAL_PRECISION, M as MAX_WEIGHT } from './farms-router-PZUo1LyW.js';
17
- export { C as ControlRouter, F as FarmsRouter, d as KICKSTARTER_STATUS, K as KickstarterRouter, O as OFF_CHAIN_PAYMENT_CURRENCIES, P as PAYMENT_CURRENCIES, b as REGIONS, R as RegionRouter, S as STAKING_DIRECTIONS, T as TRANSFER_TYPES, W as WalletsRouter, c as configureSentry, u as useForwarder, a as useOffchainFractions } from './farms-router-PZUo1LyW.js';
16
+ import { H as HUB_URL, U as USDG_WEIGHT_DECIMAL_PRECISION, G as GLOW_WEIGHT_DECIMAL_PRECISION, M as MAX_WEIGHT } from './farms-router-C2Pkoecj.js';
17
+ export { C as ControlRouter, F as FarmsRouter, d as KICKSTARTER_STATUS, K as KickstarterRouter, O as OFF_CHAIN_PAYMENT_CURRENCIES, P as PAYMENT_CURRENCIES, b as REGIONS, R as RegionRouter, S as STAKING_DIRECTIONS, T as TRANSFER_TYPES, W as WalletsRouter, c as configureSentry, u as useForwarder, a as useOffchainFractions } from './farms-router-C2Pkoecj.js';
18
18
 
19
19
  const GENESIS_TIMESTAMP = 1700352000;
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glowlabs-org/utils",
3
- "version": "0.2.148",
3
+ "version": "0.2.149",
4
4
  "description": "A library containing all typechain types and addresses relating to the glow guarded launch",
5
5
  "keywords": [],
6
6
  "author": "",
@@ -15,7 +15,8 @@ export type ContractKeys =
15
15
  | "COUNTERFACTUAL_HOLDER_FACTORY"
16
16
  | "FOUNDATION_HUB_MANAGER_WALLET"
17
17
  | "FOUNDATION_REWARDS_WALLET"
18
- | "ENDOWMENT_WALLET";
18
+ | "ENDOWMENT_WALLET"
19
+ | "REWARDS_KERNEL";
19
20
 
20
21
  // Contract-specific addresses
21
22
  const mainnetAddresses: Record<ContractKeys, `0x${string}`> = {
@@ -36,6 +37,7 @@ const mainnetAddresses: Record<ContractKeys, `0x${string}`> = {
36
37
  UNISWAP_V2_ROUTER: "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
37
38
  UNISWAP_V2_FACTORY: "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
38
39
  ENDOWMENT_WALLET: "0x868D99B4a6e81b4683D10ea5665f13579A9d1607",
40
+ REWARDS_KERNEL: "0xd6d3139d40a32F8bA71D576c1A743529AB4786BB",
39
41
  };
40
42
 
41
43
  const sepoliaAddresses: Record<ContractKeys, `0x${string}`> = {
@@ -56,6 +58,7 @@ const sepoliaAddresses: Record<ContractKeys, `0x${string}`> = {
56
58
  UNISWAP_V2_ROUTER: "0xeE567Fe1712Faf6149d80dA1E6934E354124CfE3",
57
59
  UNISWAP_V2_FACTORY: "0xF62c03E08ada871A0bEb309762E260a7a6a880E6",
58
60
  ENDOWMENT_WALLET: "0x868D99B4a6e81b4683D10ea5665f13579A9d1607",
61
+ REWARDS_KERNEL: "0x92fcC4D8565062381d8fBD5Af1b32432104FDBC7",
59
62
  };
60
63
 
61
64
  export const getAddresses = (
@@ -444,8 +444,13 @@ export function useOffchainFractions(
444
444
  chainId: walletClient?.chain?.id,
445
445
  contract: ADDRESSES.OFFCHAIN_FRACTIONS,
446
446
  creator: params.creator,
447
+ refundTo: params.refundTo,
448
+ creditTo: params.creditTo,
449
+ useCounterfactualAddressForRefund:
450
+ params.useCounterfactualAddressForRefund,
447
451
  id: params.id,
448
452
  stepsToBuy: params.stepsToBuy.toString(),
453
+ minStepsToBuy: params.minStepsToBuy.toString(),
449
454
  });
450
455
  throw new Error(parseViemError(error));
451
456
  } finally {