@huma-finance/widgets 0.0.76-beta.995 → 0.0.76-beta.999

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/index.js CHANGED
@@ -88748,6 +88748,9 @@ const SOLANA_DEVNET_INFO = {
88748
88748
  decimals: 6,
88749
88749
  icon: "USDC"
88750
88750
  },
88751
+ KYC: {
88752
+ Persona: ARF_PERSONA_KYC_COPY
88753
+ },
88751
88754
  extra: {
88752
88755
  hasReceivables: !0
88753
88756
  }
@@ -180817,7 +180820,7 @@ function PointsEarned({
180817
180820
  /* @__PURE__ */ jsx(RibbonIcon, {}),
180818
180821
  /* @__PURE__ */ jsxs(Box, { css: gr.ribbonContent, children: [
180819
180822
  /* @__PURE__ */ jsx(HumaPointsIcon, {}),
180820
- /* @__PURE__ */ jsx(Box, { children: dr ? `${formatNumber$1(lr)} Points` : "Points earned" })
180823
+ /* @__PURE__ */ jsx(Box, { children: dr ? `${formatNumber$1(lr)} Feathers` : "Feathers earned" })
180821
180824
  ] })
180822
180825
  ] }),
180823
180826
  /* @__PURE__ */ jsx(Box, { css: gr.entirePoints, children: dr ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
@@ -180825,11 +180828,11 @@ function PointsEarned({
180825
180828
  /* @__PURE__ */ jsxs(Box, { children: [
180826
180829
  "you've earned ",
180827
180830
  lr,
180828
- " points"
180831
+ " Feathers"
180829
180832
  ] })
180830
180833
  ] }) : /* @__PURE__ */ jsx(Box, { children: "Congratulations on joining the Huma Protocol!" }) }),
180831
180834
  /* @__PURE__ */ jsxs(Box, { css: gr.entirePointsDetails, children: [
180832
- "You'll earn points ",
180835
+ "You'll earn Feathers ",
180833
180836
  /* @__PURE__ */ jsx("span", { css: gr.everyday, children: "everyday" }),
180834
180837
  " for",
180835
180838
  " ",
@@ -182142,7 +182145,7 @@ function PersonaEvaluation({
182142
182145
  }
182143
182146
  ) : /* @__PURE__ */ jsxs(WrapperModal, { title: Br.title, children: [
182144
182147
  /* @__PURE__ */ jsx(Box, { css: Fr.iconWrapper, children: /* @__PURE__ */ jsx("img", { src: ApproveLenderImg, alt: "approve-lender" }) }),
182145
- or && Br === Ir.verifyIdentity ? /* @__PURE__ */ jsx(Box, { css: Fr.description, children: /* @__PURE__ */ jsx("span", { children: "You'll be rewarded with Huma points after completing KYC/KYB and your first investment." }) }) : /* @__PURE__ */ jsx(Box, { css: Fr.description, children: Br.description }),
182148
+ or && Br === Ir.verifyIdentity ? /* @__PURE__ */ jsx(Box, { css: Fr.description, children: /* @__PURE__ */ jsx("span", { children: "You'll be rewarded with Huma Feathers after completing KYC/KYB and your first investment." }) }) : /* @__PURE__ */ jsx(Box, { css: Fr.description, children: Br.description }),
182146
182149
  !!Br.buttonText && /* @__PURE__ */ jsx(BottomButton, { variant: "contained", onClick: Nr, children: Br.buttonText })
182147
182150
  ] });
182148
182151
  }
@@ -182490,7 +182493,7 @@ function Transfer$a({
182490
182493
  );
182491
182494
  lr(setPointsAccumulated(Vr.pointsAccumulated));
182492
182495
  } catch (Vr) {
182493
- console.error("Failed to update wallet points", Vr);
182496
+ console.error("Failed to update wallet Feathers", Vr);
182494
182497
  }
182495
182498
  lr(setStep(WIDGET_STEP.Done));
182496
182499
  },
@@ -182622,7 +182625,7 @@ function Success$8({
182622
182625
  subContent: gr(),
182623
182626
  chainId: ar.chainId,
182624
182627
  solanaSignature: pr,
182625
- buttonText: ur && !cr ? "VIEW POINTS" : "DONE"
182628
+ buttonText: ur && !cr ? "VIEW FEATHERS" : "DONE"
182626
182629
  }
182627
182630
  );
182628
182631
  }
@@ -227043,7 +227046,7 @@ function Transfer$6({
227043
227046
  );
227044
227047
  lr(setPointsAccumulated(Cr.pointsAccumulated));
227045
227048
  } catch (Cr) {
227046
- console.error("Failed to update wallet points", Cr);
227049
+ console.error("Failed to update wallet Feathers", Cr);
227047
227050
  }
227048
227051
  lr(setStep(WIDGET_STEP.Done));
227049
227052
  },
@@ -227091,7 +227094,7 @@ function Success$5({
227091
227094
  qr.unix()
227092
227095
  )}.`
227093
227096
  ];
227094
- }, Ur = () => Cr ? "WHAT'S NEXT" : ur ? "VIEW POINTS" : void 0;
227097
+ }, Ur = () => Cr ? "WHAT'S NEXT" : ur ? "VIEW FEATHERS" : void 0;
227095
227098
  return /* @__PURE__ */ jsx(
227096
227099
  TxDoneModal,
227097
227100
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huma-finance/widgets",
3
- "version": "0.0.76-beta.995+296b526",
3
+ "version": "0.0.76-beta.999+326e78a",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -22,9 +22,9 @@
22
22
  "@ethersproject/contracts": "^5.7.0",
23
23
  "@ethersproject/experimental": "^5.7.0",
24
24
  "@ethersproject/units": "^5.6.0",
25
- "@huma-finance/sdk": "^0.0.76-beta.995+296b526",
26
- "@huma-finance/shared": "^0.0.76-beta.995+296b526",
27
- "@huma-finance/web-shared": "^0.0.76-beta.995+296b526",
25
+ "@huma-finance/sdk": "^0.0.76-beta.999+326e78a",
26
+ "@huma-finance/shared": "^0.0.76-beta.999+326e78a",
27
+ "@huma-finance/web-shared": "^0.0.76-beta.999+326e78a",
28
28
  "@mui/x-date-pickers": "^5.0.7",
29
29
  "@notifi-network/notifi-frontend-client": "^1.1.2",
30
30
  "@notifi-network/notifi-react": "^1.1.2",
@@ -190,5 +190,5 @@
190
190
  "optionalDependencies": {
191
191
  "encoding": "^0.1.13"
192
192
  },
193
- "gitHead": "296b526b591aeec874f46485da182852fe6dd8fc"
193
+ "gitHead": "326e78a9039744a01616bf400eebe40cbe0083f2"
194
194
  }
@@ -10,8 +10,8 @@ import {
10
10
  } from '@huma-finance/shared'
11
11
  import {
12
12
  AUTH_ERROR_TYPE,
13
- useAuthErrorHandling,
14
13
  checkIsDev,
14
+ useAuthErrorHandling,
15
15
  } from '@huma-finance/web-shared'
16
16
  import { Box, css, useTheme } from '@mui/material'
17
17
  import Persona, { Client } from 'persona'
@@ -345,7 +345,7 @@ export function PersonaEvaluation({
345
345
  {campaign && kycCopy === KYCCopies.verifyIdentity ? (
346
346
  <Box css={styles.description}>
347
347
  <span>
348
- You'll be rewarded with Huma points after completing KYC/KYB and
348
+ You'll be rewarded with Huma Feathers after completing KYC/KYB and
349
349
  your first investment.
350
350
  </span>
351
351
  </Box>
@@ -8,11 +8,11 @@ import {
8
8
  TrancheType,
9
9
  } from '@huma-finance/shared'
10
10
  import {
11
+ checkIsDev,
11
12
  SolanaPoolState,
12
13
  useHumaProgram,
13
14
  useLenderAccounts,
14
15
  useTrancheTokenAccounts,
15
- checkIsDev,
16
16
  } from '@huma-finance/web-shared'
17
17
  import {
18
18
  createApproveCheckedInstruction,
@@ -22,13 +22,13 @@ import {
22
22
  import { useWallet } from '@solana/wallet-adapter-react'
23
23
  import { ComputeBudgetProgram, PublicKey, Transaction } from '@solana/web3.js'
24
24
  import React, { useCallback, useEffect, useState } from 'react'
25
+ import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
25
26
  import { useAppDispatch, useAppSelector } from '../../../hooks/useRedux'
26
27
  import { setPointsAccumulated, setStep } from '../../../store/widgets.reducers'
27
28
  import { selectWidgetState } from '../../../store/widgets.selectors'
28
29
  import { WIDGET_STEP } from '../../../store/widgets.store'
29
30
  import { LoadingModal } from '../../LoadingModal'
30
31
  import { SolanaTxSendModal } from '../../SolanaTxSendModal'
31
- import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
32
32
 
33
33
  type Props = {
34
34
  poolInfo: SolanaPoolInfo
@@ -83,7 +83,7 @@ export function Transfer({
83
83
  )
84
84
  dispatch(setPointsAccumulated(result.pointsAccumulated))
85
85
  } catch (error) {
86
- console.error('Failed to update wallet points', error)
86
+ console.error('Failed to update wallet Feathers', error)
87
87
  }
88
88
  }
89
89
  dispatch(setStep(WIDGET_STEP.Done))
@@ -9,12 +9,12 @@ import dayjs from 'dayjs'
9
9
  import React, { useCallback } from 'react'
10
10
  import { useDispatch } from 'react-redux'
11
11
  import { Campaign } from '.'
12
+ import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
12
13
  import { useAppSelector } from '../../../hooks/useRedux'
13
14
  import { setStep } from '../../../store/widgets.reducers'
14
15
  import { selectWidgetState } from '../../../store/widgets.selectors'
15
16
  import { WIDGET_STEP } from '../../../store/widgets.store'
16
17
  import { SolanaTxDoneModal } from '../../SolanaTxDoneModal'
17
- import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
18
18
 
19
19
  type Props = {
20
20
  poolInfo: SolanaPoolInfo
@@ -69,7 +69,7 @@ export function Success({
69
69
  subContent={getSubContent()}
70
70
  chainId={poolInfo.chainId}
71
71
  solanaSignature={solanaSignature}
72
- buttonText={campaign && !isExistingUser ? 'VIEW POINTS' : 'DONE'}
72
+ buttonText={campaign && !isExistingUser ? 'VIEW FEATHERS' : 'DONE'}
73
73
  />
74
74
  )
75
75
  }
@@ -7,22 +7,22 @@ import {
7
7
  NETWORK_TYPE,
8
8
  } from '@huma-finance/shared'
9
9
  import {
10
+ checkIsDev,
10
11
  SolanaPoolState,
11
12
  txAtom,
12
13
  useChainInfo,
13
- checkIsDev,
14
14
  } from '@huma-finance/web-shared'
15
15
  import { Box, css, useTheme } from '@mui/material'
16
16
  import { useResetAtom } from 'jotai/utils'
17
17
  import React, { useCallback, useEffect, useState } from 'react'
18
18
  import { useDispatch } from 'react-redux'
19
19
 
20
+ import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
20
21
  import { resetState } from '../../../store/widgets.reducers'
21
22
  import { BottomButton } from '../../BottomButton'
22
23
  import { CongratulationsIcon, HumaPointsIcon, RibbonIcon } from '../../icons'
23
24
  import { LoadingModal } from '../../LoadingModal'
24
25
  import { SignIn } from '../../SignIn'
25
- import useLogOnFirstMount from '../../../hooks/useLogOnFirstMount'
26
26
 
27
27
  enum STATE {
28
28
  Loading = 'Loading',
@@ -74,7 +74,7 @@ export function PointsEarned({
74
74
  setPointsAccumulated(result.pointsAccumulated)
75
75
  setState(STATE.Congrats)
76
76
  } catch (error) {
77
- console.error('Failed to update wallet points', error)
77
+ console.error('Failed to update wallet Feathers', error)
78
78
  }
79
79
  }
80
80
  updateWalletPoints()
@@ -138,7 +138,7 @@ export function PointsEarned({
138
138
 
139
139
  if (state === STATE.SignIn) {
140
140
  return (
141
- <SignIn description='Please sign in to check the points that you earned.' />
141
+ <SignIn description='Please sign in to check the Feathers that you earned.' />
142
142
  )
143
143
  }
144
144
 
@@ -154,8 +154,8 @@ export function PointsEarned({
154
154
  <HumaPointsIcon />
155
155
  <Box>
156
156
  {hasPointsAccumulated
157
- ? `${formatNumber(pointsAccumulated)} Points`
158
- : 'Points earned'}
157
+ ? `${formatNumber(pointsAccumulated)} Feathers`
158
+ : 'Feathers earned'}
159
159
  </Box>
160
160
  </Box>
161
161
  </Box>
@@ -163,14 +163,14 @@ export function PointsEarned({
163
163
  {hasPointsAccumulated ? (
164
164
  <>
165
165
  <Box>Congratulations,</Box>
166
- <Box>you've earned {pointsAccumulated} points</Box>
166
+ <Box>you've earned {pointsAccumulated} Feathers</Box>
167
167
  </>
168
168
  ) : (
169
169
  <Box>Congratulations on joining the Huma Protocol!</Box>
170
170
  )}
171
171
  </Box>
172
172
  <Box css={styles.entirePointsDetails}>
173
- You'll earn points <span css={styles.everyday}>everyday</span> for{' '}
173
+ You'll earn Feathers <span css={styles.everyday}>everyday</span> for{' '}
174
174
  {monthText} straight.
175
175
  </Box>
176
176
  <BottomButton variant='contained' onClick={handleCloseModal}>
@@ -4,7 +4,7 @@ import {
4
4
  PoolInfoV2,
5
5
  TrancheType,
6
6
  } from '@huma-finance/shared'
7
- import { useTrancheVaultContractV2, checkIsDev } from '@huma-finance/web-shared'
7
+ import { checkIsDev, useTrancheVaultContractV2 } from '@huma-finance/web-shared'
8
8
  import { useWeb3React } from '@web3-react/core'
9
9
  import { ethers } from 'ethers'
10
10
  import React, { useCallback } from 'react'
@@ -58,7 +58,7 @@ export function Transfer({
58
58
  )
59
59
  dispatch(setPointsAccumulated(result.pointsAccumulated))
60
60
  } catch (error) {
61
- console.error('Failed to update wallet points', error)
61
+ console.error('Failed to update wallet Feathers', error)
62
62
  }
63
63
  }
64
64
  dispatch(setStep(WIDGET_STEP.Done))
@@ -99,7 +99,7 @@ export function Success({
99
99
  if (hasNextStep) {
100
100
  return "WHAT'S NEXT"
101
101
  }
102
- return campaign ? 'VIEW POINTS' : undefined
102
+ return campaign ? 'VIEW FEATHERS' : undefined
103
103
  }
104
104
 
105
105
  return (
@@ -99,8 +99,8 @@ export function PointsEarned({
99
99
  <HumaPointsIcon />
100
100
  <Box>
101
101
  {hasPointsAccumulated
102
- ? `${formatNumber(pointsAccumulated)} Points`
103
- : 'Points earned'}
102
+ ? `${formatNumber(pointsAccumulated)} Feathers`
103
+ : 'Feathers earned'}
104
104
  </Box>
105
105
  </Box>
106
106
  </Box>
@@ -108,14 +108,14 @@ export function PointsEarned({
108
108
  {hasPointsAccumulated ? (
109
109
  <>
110
110
  <Box>Congratulations,</Box>
111
- <Box>you've earned {pointsAccumulated} points</Box>
111
+ <Box>you've earned {pointsAccumulated} Feathers</Box>
112
112
  </>
113
113
  ) : (
114
114
  <Box>Congratulations on joining the Huma Protocol!</Box>
115
115
  )}
116
116
  </Box>
117
117
  <Box css={styles.entirePointsDetails}>
118
- You'll earn points <span css={styles.everyday}>everyday</span> for{' '}
118
+ You'll earn Feathers <span css={styles.everyday}>everyday</span> for{' '}
119
119
  {monthText} straight.
120
120
  </Box>
121
121
  <BottomButton variant='contained' onClick={handleCloseModal}>