Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

Commit

Permalink
upgrade mngo settings lib (#1953)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 authored Nov 27, 2023
1 parent 8e893ba commit 794b146
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 9 deletions.
17 changes: 17 additions & 0 deletions components/instructions/programs/jupiterRef.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export const JUPITER_REF = {
REFER4ZgmyYx9c6He5XfaTMiGfdLwRnkV4RPp9t9iF3: {
125: {
name: 'Initialize Referral Token Account',
accounts: [
{ name: 'Payer' },
{ name: '' },
{ name: 'Referral' },
{ name: '' },
{ name: 'Mint' },
],
getDataUI: () => {
return <div></div>
},
},
},
}
2 changes: 2 additions & 0 deletions components/instructions/tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import { MANGO_V4_INSTRUCTIONS } from './programs/mangoV4'
import { DUAL_INSTRUCTIONS } from './programs/dual'
import { SWITCHBOARD_INSTRUCTIONS } from './programs/switchboard'
import { STAKE_INSTRUCTIONS } from './programs/stake'
import { JUPITER_REF } from './programs/jupiterRef'

/**
* Default governance program id instance
Expand Down Expand Up @@ -449,6 +450,7 @@ export const INSTRUCTION_DESCRIPTORS = {
...MANGO_V4_INSTRUCTIONS,
...DUAL_INSTRUCTIONS,
...STAKE_INSTRUCTIONS,
...JUPITER_REF,
}

export async function getInstructionDescriptor(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@blockworks-foundation/mango-mints-redemption": "0.0.10",
"@blockworks-foundation/mango-v4": "0.20.3",
"@jup-ag/referral-sdk": "0.1.5",
"@blockworks-foundation/mango-v4-settings": "0.2.18",
"@blockworks-foundation/mango-v4-settings": "0.2.19",
"@blockworks-foundation/mangolana": "0.0.1-beta.15",
"@bonfida/spl-name-service": "0.1.47",
"@bundlr-network/client": "0.7.15",
Expand Down
4 changes: 2 additions & 2 deletions utils/Mango/listingTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export const getSuggestedCoinTier = async (
)

const tier =
indexForTierFromSwaps > -1 ? TIERS[indexForTierFromSwaps] : 'UNTRUSTED'
indexForTierFromSwaps > -1 ? TIERS[indexForTierFromSwaps] : 'SHIT'

const tierLowerThenCurrent =
tier === 'ULTRA_PREMIUM' || tier === 'PREMIUM'
Expand All @@ -340,7 +340,7 @@ export const getSuggestedCoinTier = async (
}
} catch (e) {
return {
tier: 'UNTRUSTED',
tier: 'SHIT',
priceImpact: 100,
}
}
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@
keccak256 "^1.0.6"
merkletreejs "^0.3.11"

"@blockworks-foundation/[email protected].18":
version "0.2.18"
resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-v4-settings/-/mango-v4-settings-0.2.18.tgz#d984617fd44d7ba0d56b7f4a751f8b3b4d95cc35"
integrity sha512-hdU75eED5YzUWg4EJcUIJZsEvfeLVwUj3yfEykyj/OMVR/H83cbX5KuTnfh6ri0Iwd+K8cqNNFdParLKigoUxQ==
"@blockworks-foundation/[email protected].19":
version "0.2.19"
resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-v4-settings/-/mango-v4-settings-0.2.19.tgz#75b75cc5f98c0492530f6afbe6b177725304c81b"
integrity sha512-MZVbIK2w3ShqRq5WgHF4gU2dYiRQUuV13aBlwF1Ih+R1s2XmUL5/nkMCeWkJfUk6d9QuDwBbKlZEnyhDMYOM9w==
dependencies:
bn.js "^5.2.1"
eslint-config-prettier "^9.0.0"
Expand Down Expand Up @@ -6223,12 +6223,12 @@ ansi-escapes@^4.2.1:
dependencies:
type-fest "^0.21.3"

[email protected], ansi-regex@^2.0.0:
[email protected]:
version "3.0.1"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.1.tgz#123d6479e92ad45ad897d4054e3c7ca7db4944e1"
integrity sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==

"ansi-regex@>=3.0.1 <=5.0.1", ansi-regex@^3.0.0, ansi-regex@^4.1.0, ansi-regex@^5.0.0, ansi-regex@^5.0.1:
"ansi-regex@>=3.0.1 <=5.0.1", ansi-regex@^2.0.0, ansi-regex@^3.0.0, ansi-regex@^4.1.0, ansi-regex@^5.0.0, ansi-regex@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
Expand Down

1 comment on commit 794b146

@vercel
Copy link

@vercel vercel bot commented on 794b146 Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

governance-ui – ./

governance-ui-solana-labs.vercel.app
governance-ui-git-main-solana-labs.vercel.app
app.realms.today

Please sign in to comment.