Skip to content

Commit 041f646

Browse files
committed
remove maple, cardinal, borsh and spl-account-compression
1 parent 825bc1a commit 041f646

File tree

13 files changed

+67
-1199
lines changed

13 files changed

+67
-1199
lines changed

components/TokenBalance/DelegateTokenBalanceCard.tsx

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { DisplayAddress } from '@cardinal/namespaces-components'
21
import Select from '@components/inputs/Select'
32
import useWalletOnePointOh from '@hooks/useWalletOnePointOh'
43
import {
@@ -149,15 +148,9 @@ const DelegateBalanceCard = () => {
149148
componentLabel={
150149
ownCouncilTokenRecord ? (
151150
<div className="relative">
152-
<DisplayAddress
153-
connection={connection.current}
154-
address={
155-
ownCouncilTokenRecord.account.governingTokenOwner
156-
}
157-
height="12px"
158-
width="100px"
159-
dark={true}
160-
/>
151+
<span>
152+
{ownCouncilTokenRecord.account.governingTokenOwner.toBase58()}
153+
</span>
161154
<div className="absolute bg-bkg-1 bottom-0 left-0 w-full h-full opacity-0 " />
162155
</div>
163156
) : (
@@ -174,13 +167,9 @@ const DelegateBalanceCard = () => {
174167
value={councilDelegate.account.governingTokenOwner.toBase58()}
175168
>
176169
<div className="relative">
177-
<DisplayAddress
178-
connection={connection.current}
179-
address={councilDelegate.account.governingTokenOwner}
180-
height="12px"
181-
width="100px"
182-
dark={true}
183-
/>
170+
<span>
171+
{councilDelegate.account.governingTokenOwner.toBase58()}
172+
</span>
184173
<div className="absolute bg-bkg-1 bottom-0 left-0 w-full h-full opacity-0 " />
185174
</div>
186175
</Select.Option>
@@ -222,13 +211,9 @@ const DelegateBalanceCard = () => {
222211
ownTokenRecord.account.governingTokenOwner.toBase58()
223212
]
224213
) : (
225-
<DisplayAddress
226-
connection={connection.current}
227-
address={ownTokenRecord.account.governingTokenOwner}
228-
height="12px"
229-
width="100px"
230-
dark={true}
231-
/>
214+
<span>
215+
{ownTokenRecord.account.governingTokenOwner.toBase58()}
216+
</span>
232217
)}
233218
<div className="absolute bg-bkg-1 bottom-0 left-0 w-full h-full opacity-0 " />
234219
</div>
@@ -257,15 +242,9 @@ const DelegateBalanceCard = () => {
257242
}
258243
</>
259244
) : (
260-
<DisplayAddress
261-
connection={connection.current}
262-
address={
263-
communityDelegate.account.governingTokenOwner
264-
}
265-
height="12px"
266-
width="100px"
267-
dark={true}
268-
/>
245+
<span>
246+
{communityDelegate.account.governingTokenOwner.toBase58()}
247+
</span>
269248
)}
270249
<div className="absolute bg-bkg-1 bottom-0 left-0 w-full h-full opacity-0 " />
271250
</div>

components/instructions/programs/mapleFinance.tsx

Lines changed: 0 additions & 147 deletions
This file was deleted.

components/instructions/tools.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { MANGO_V4_INSTRUCTIONS } from './programs/mangoV4'
3535
import { DUAL_INSTRUCTIONS } from './programs/dual'
3636
import { SWITCHBOARD_INSTRUCTIONS } from './programs/switchboard'
3737
import { STAKE_INSTRUCTIONS } from './programs/stake'
38-
import { MAPLE_FINANCE_PROGRAM_INSTRUCTIONS } from './programs/mapleFinance'
38+
//import { MAPLE_FINANCE_PROGRAM_INSTRUCTIONS } from './programs/mapleFinance'
3939
import dayjs from 'dayjs'
4040
import { JUPITER_REF } from './programs/jupiterRef'
4141
import { UXD_PROGRAM_INSTRUCTIONS } from './programs/uxdProtocol'
@@ -455,7 +455,7 @@ export const INSTRUCTION_DESCRIPTORS = {
455455
...MANGO_V4_INSTRUCTIONS,
456456
...DUAL_INSTRUCTIONS,
457457
...STAKE_INSTRUCTIONS,
458-
...MAPLE_FINANCE_PROGRAM_INSTRUCTIONS,
458+
// ...MAPLE_FINANCE_PROGRAM_INSTRUCTIONS,
459459
...JUPITER_REF,
460460
...UXD_PROGRAM_INSTRUCTIONS,
461461
}

hooks/useGovernanceAssets.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ export default function useGovernanceAssets() {
171171
name: 'Mango Market v4',
172172
image: '/img/mango.png',
173173
},
174-
[PackageEnum.MapleFinance]: {
175-
name: 'Maple Finance',
176-
image: '/img/maplefinance.png',
177-
},
174+
// [PackageEnum.MapleFinance]: {
175+
// name: 'Maple Finance',
176+
// image: '/img/maplefinance.png',
177+
// },
178178
[PackageEnum.MeanFinance]: {
179179
name: 'Mean Finance',
180180
image: '/img/meanfinance.png',
@@ -612,26 +612,26 @@ export default function useGovernanceAssets() {
612612
██ ██ ██ ██ ██ ███████ ███████ ██ ██ ██ ████ ██ ██ ██ ████ ██████ ███████
613613
*/
614614

615-
[Instructions.MapleFinanceLendingDeposit]: {
616-
name: 'Lending Deposit',
617-
packageId: PackageEnum.MapleFinance,
618-
},
619-
[Instructions.MapleFinanceLendingUnlockDeposit]: {
620-
name: 'Lending Unlock Deposit',
621-
packageId: PackageEnum.MapleFinance,
622-
},
623-
[Instructions.MapleFinanceWithdrawalRequestInitialize]: {
624-
name: 'Withdrawal Request Initialize',
625-
packageId: PackageEnum.MapleFinance,
626-
},
627-
[Instructions.MapleFinanceWithdrawalRequestExecute]: {
628-
name: 'Withdrawal Request Execute',
629-
packageId: PackageEnum.MapleFinance,
630-
},
631-
[Instructions.MapleFinanceWithdrawalRequestClose]: {
632-
name: 'Withdrawal Request Close',
633-
packageId: PackageEnum.MapleFinance,
634-
},
615+
// [Instructions.MapleFinanceLendingDeposit]: {
616+
// name: 'Lending Deposit',
617+
// packageId: PackageEnum.MapleFinance,
618+
// },
619+
// [Instructions.MapleFinanceLendingUnlockDeposit]: {
620+
// name: 'Lending Unlock Deposit',
621+
// packageId: PackageEnum.MapleFinance,
622+
// },
623+
// [Instructions.MapleFinanceWithdrawalRequestInitialize]: {
624+
// name: 'Withdrawal Request Initialize',
625+
// packageId: PackageEnum.MapleFinance,
626+
// },
627+
// [Instructions.MapleFinanceWithdrawalRequestExecute]: {
628+
// name: 'Withdrawal Request Execute',
629+
// packageId: PackageEnum.MapleFinance,
630+
// },
631+
// [Instructions.MapleFinanceWithdrawalRequestClose]: {
632+
// name: 'Withdrawal Request Close',
633+
// packageId: PackageEnum.MapleFinance,
634+
// },
635635

636636
/*
637637
███ ███ ███████ █████ ███ ██ ███████ ██ ███ ██ █████ ███ ██ ██████ ███████

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test-all": "yarn lint && yarn type-check && yarn test",
1818
"notifier": "ts-node scripts/governance-notifier.ts",
1919
"setup": "yarn install && yarn allow-scripts && yarn bigint-fix",
20-
"ci": "yarn install --network-concurrency 1 --color=always && yarn allow-scripts && yarn bigint-fix",
20+
"ci": "yarn install --frozen-lockfile --network-concurrency 1 --color=always && yarn allow-scripts && yarn bigint-fix",
2121
"deduplicate": "npx yarn-deduplicate",
2222
"bigint-fix": "cd node_modules/bigint-buffer && yarn rebuild && cd ../../",
2323
"postinstall": "echo '\\033[35mIf you just added a package, consider running `\\033[1m\\033[36;1myarn deduplicate` \\033[0m\\033[35mto check for duplicates!\\033[00m\n \\033[35malso make sure scripts run by new packages are reviewed and added in the allowScripts section. Then run `\\033[1m\\033[36;1myarn allow-scripts\\033[0m\\033[35m`!\\033[00m'",
@@ -36,7 +36,6 @@
3636
"@bonfida/spl-name-service": "0.1.47",
3737
"@bundlr-network/client": "0.7.15",
3838
"@carbon/icons-react": "11.7.0",
39-
"@cardinal/namespaces-components": "2.5.5",
4039
"@civic/profile": "^0.5.0-beta.1",
4140
"@civic/solana-gateway-react": "0.15.0",
4241
"@coral-xyz/anchor": "0.27.0",
@@ -58,7 +57,6 @@
5857
"@hookform/resolvers": "2.8.10",
5958
"@identity.com/sol-did-client": "3.3.0",
6059
"@jup-ag/referral-sdk": "0.1.5",
61-
"@maplelabs/syrup-sdk": "2.0.4",
6260
"@marinade.finance/marinade-ts-sdk": "2.0.9",
6361
"@mean-dao/payment-streaming": "4.0.3",
6462
"@metaplex-foundation/js": "0.19.4",
@@ -69,7 +67,6 @@
6967
"@nivo/core": "0.79.0",
7068
"@notifi-network/notifi-core": "0.18.2",
7169
"@notifi-network/notifi-react-hooks": "0.18.2",
72-
"@project-serum/borsh": "0.2.5",
7370
"@project-serum/common": "0.0.1-beta.3",
7471
"@project-serum/serum": "0.13.65",
7572
"@project-serum/sol-wallet-adapter": "0.2.6",
@@ -95,7 +92,6 @@
9592
"@solana-mobile/wallet-adapter-mobile": "2.0.0",
9693
"@solana/buffer-layout": "4.0.0",
9794
"@solana/governance-program-library": "npm:@civic/governance-program-library@0.16.9-beta.2",
98-
"@solana/spl-account-compression": "~0.2.0",
9995
"@solana/spl-governance": "0.3.28",
10096
"@solana/spl-token": "0.1.8",
10197
"@solana/wallet-adapter-backpack": "0.1.13",
@@ -110,6 +106,7 @@
110106
"@solana/wallet-adapter-walletconnect": "0.1.14",
111107
"@solana/wallet-adapter-wallets": "0.19.15",
112108
"@solana/web3.js": "1.78.2",
109+
"@solana/spl-account-compression": "~0.2.0",
113110
"@solendprotocol/solend-sdk": "0.5.5",
114111
"@sqds/iframe-adapter": "1.0.16",
115112
"@switchboard-xyz/sbv2-lite": "0.2.4",
@@ -275,4 +272,4 @@
275272
"@switchboard-xyz/solana.js>@switchboard-xyz/common>protobufjs": false
276273
}
277274
}
278-
}
275+
}

0 commit comments

Comments
 (0)