Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/limit orders #51

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions actions/createProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export const createProposal = async (
...instruction.prerequisiteInstructionsSigners
)
}
console.log(instruction.holdUpTime, '@#@#@#@#')
await withInsertTransaction(
insertInstructions,
programId,
Expand Down
2 changes: 1 addition & 1 deletion actions/executeTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const executeTransaction = async (

// Create proposal transaction
const proposalTransaction = new Transaction().add(
ComputeBudgetProgram.setComputeUnitLimit({ units: 1000000 }),
ComputeBudgetProgram.setComputeUnitLimit({ units: 2000000 }),
...instructions
)

Expand Down
9 changes: 8 additions & 1 deletion hooks/useGovernanceAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ export default function useGovernanceAssets() {
name: 'Mango Market v4',
image: '/img/mango.png',
},
[PackageEnum.Manifest]: {
name: 'Manifest',
},
[PackageEnum.MeanFinance]: {
name: 'Mean Finance',
image: '/img/meanfinance.png',
Expand Down Expand Up @@ -590,7 +593,11 @@ export default function useGovernanceAssets() {
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ███████ ██ ██ ██ ████ ██ ██ ██ ████ ██ ██ ██ ████ ██████ ███████
*/

[Instructions.PlaceLimitOrder]: {
name: 'Place limit order',
packageId: PackageEnum.Manifest,
isVisible: canUseAnyInstruction,
},
[Instructions.MeanCreateAccount]: {
name: 'Payment Stream: New account',
packageId: PackageEnum.MeanFinance,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
},
"dependencies": {
"@blockworks-foundation/mango-mints-redemption": "0.0.11",
"@cks-systems/manifest-sdk": "0.1.72",
"@blockworks-foundation/mango-v4": "0.33.7",
"@blockworks-foundation/mango-v4-settings": "0.14.24",
"@blockworks-foundation/mangolana": "0.0.18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ const DryRunInstructionBtn = ({
? getInstructionDataFromBase64(instructionData?.serializedInstruction)
: null,
prerequisiteInstructionsToRun,
additionalInstructions?.map((x) => getInstructionDataFromBase64(x))
additionalInstructions?.map((x) =>
getInstructionDataFromBase64(
typeof x === 'string' ? x : x.serializedInstruction
)
)
)
setResult(result)
setIsOpen(true)
Expand Down
Loading
Loading