@huma-finance/widgets 0.0.69 → 0.0.70-beta.867

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huma-finance/widgets",
3
- "version": "0.0.69",
3
+ "version": "0.0.70-beta.867+3610aac",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,9 +29,9 @@
29
29
  "@ethersproject/experimental": "^5.7.0",
30
30
  "@ethersproject/providers": "^5.6.0",
31
31
  "@ethersproject/units": "^5.6.0",
32
- "@huma-finance/sdk": "^0.0.69",
33
- "@huma-finance/shared": "^0.0.69",
34
- "@huma-finance/web-shared": "^0.0.69",
32
+ "@huma-finance/sdk": "^0.0.70-beta.867+3610aac",
33
+ "@huma-finance/shared": "^0.0.70-beta.867+3610aac",
34
+ "@huma-finance/web-shared": "^0.0.70-beta.867+3610aac",
35
35
  "@mui/x-date-pickers": "^5.0.7",
36
36
  "@notifi-network/notifi-frontend-client": "^1.1.2",
37
37
  "@notifi-network/notifi-react": "^1.1.2",
@@ -201,5 +201,5 @@
201
201
  "optionalDependencies": {
202
202
  "encoding": "^0.1.13"
203
203
  },
204
- "gitHead": "09d4d894bfc6a60e9272cbeadd719e795d2a4269"
204
+ "gitHead": "3610aace4566f67a8088e633b73d444821b9735d"
205
205
  }
@@ -21,6 +21,7 @@ type Props = {
21
21
  chainType: CHAIN_TYPE
22
22
  networkType: NETWORK_TYPE
23
23
  isUniTranche: boolean
24
+ documentHash: string
24
25
  chainSpecificData?: Record<string, unknown>
25
26
  changeTranche: (tranche: TrancheType) => void
26
27
  }
@@ -32,6 +33,7 @@ export function ApproveLenderBase({
32
33
  chainType,
33
34
  networkType,
34
35
  chainSpecificData,
36
+ documentHash,
35
37
  changeTranche,
36
38
  }: Props): React.ReactElement | null {
37
39
  const isDev = checkIsDev()
@@ -50,6 +52,7 @@ export function ApproveLenderBase({
50
52
  account!,
51
53
  chainId!,
52
54
  trancheVault,
55
+ documentHash,
53
56
  isDev,
54
57
  chainSpecificData,
55
58
  )
@@ -68,7 +71,15 @@ export function ApproveLenderBase({
68
71
  }
69
72
  }
70
73
  },
71
- [account, chainId, chainSpecificData, dispatch, isDev, networkType],
74
+ [
75
+ account,
76
+ chainId,
77
+ chainSpecificData,
78
+ dispatch,
79
+ documentHash,
80
+ isDev,
81
+ networkType,
82
+ ],
72
83
  )
73
84
 
74
85
  useEffect(() => {
@@ -12,12 +12,14 @@ import { ApproveLenderBase } from '../components/ApproveLenderBase'
12
12
  type Props = {
13
13
  poolInfo: SolanaPoolInfo
14
14
  isUniTranche: boolean
15
+ documentHash: string
15
16
  changeTranche: (tranche: TrancheType) => void
16
17
  }
17
18
 
18
19
  export function ApproveLender({
19
20
  poolInfo,
20
21
  isUniTranche,
22
+ documentHash,
21
23
  changeTranche,
22
24
  }: Props): React.ReactElement | null {
23
25
  const solanaChainInfo = SOLANA_CHAIN_INFO[poolInfo.chainId]
@@ -33,6 +35,7 @@ export function ApproveLender({
33
35
  huma_program_id: solanaChainInfo.poolProgram,
34
36
  pool_id: poolInfo.poolId,
35
37
  }}
38
+ documentHash={documentHash}
36
39
  changeTranche={changeTranche}
37
40
  />
38
41
  )
@@ -139,6 +139,7 @@ export function SolanaLendSupply({
139
139
  <ApproveLender
140
140
  poolInfo={poolInfo}
141
141
  isUniTranche={!!isUniTranche}
142
+ documentHash={documentHash}
142
143
  changeTranche={setSelectedTranche}
143
144
  />
144
145
  )}
@@ -11,12 +11,14 @@ import { ApproveLenderBase } from '../components/ApproveLenderBase'
11
11
  type Props = {
12
12
  poolInfo: PoolInfoV2
13
13
  isUniTranche: boolean
14
+ documentHash: string
14
15
  changeTranche: (tranche: TrancheType) => void
15
16
  }
16
17
 
17
18
  export function ApproveLender({
18
19
  poolInfo,
19
20
  isUniTranche,
21
+ documentHash,
20
22
  changeTranche,
21
23
  }: Props): React.ReactElement {
22
24
  return (
@@ -24,6 +26,7 @@ export function ApproveLender({
24
26
  juniorTrancheVault={poolInfo.juniorTrancheVault}
25
27
  seniorTrancheVault={poolInfo.seniorTrancheVault}
26
28
  isUniTranche={isUniTranche}
29
+ documentHash={documentHash}
27
30
  chainType={CHAIN_TYPE.EVM}
28
31
  networkType={getEvmNetworkType(poolInfo.chainId)}
29
32
  changeTranche={changeTranche}
@@ -180,6 +180,7 @@ export function LendSupplyV2({
180
180
  <ApproveLender
181
181
  poolInfo={poolInfo}
182
182
  isUniTranche={isUniTranche}
183
+ documentHash={documentHash}
183
184
  changeTranche={setSelectedTranche}
184
185
  />
185
186
  )}