use latest mango client
This commit is contained in:
parent
cbf5d91b50
commit
bc8ab9521d
|
@ -17,7 +17,7 @@
|
|||
"analyze": "ANALYZE=true yarn build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blockworks-foundation/mango-client": "^3.5.5",
|
||||
"@blockworks-foundation/mango-client": "^3.6.1",
|
||||
"@headlessui/react": "^0.0.0-insiders.2dbc38c",
|
||||
"@heroicons/react": "^1.0.0",
|
||||
"@jup-ag/react-hook": "^1.0.0-beta.22",
|
||||
|
|
|
@ -89,7 +89,7 @@ export const serumProgramId = new PublicKey(
|
|||
const mangoGroupPk = new PublicKey(defaultMangoGroupIds!.publicKey)
|
||||
|
||||
export const SECONDS = 1000
|
||||
export const CLIENT_TX_TIMEOUT = 70000
|
||||
export const CLIENT_TX_TIMEOUT = 90000
|
||||
|
||||
// Used to retry loading the MangoGroup and MangoAccount if an rpc node error occurs
|
||||
let mangoGroupRetryAttempt = 0
|
||||
|
@ -308,6 +308,7 @@ const useMangoStore = create<
|
|||
const connection = new Connection(rpcUrl, 'processed' as Commitment)
|
||||
const client = new MangoClient(connection, programId, {
|
||||
timeout: CLIENT_TX_TIMEOUT,
|
||||
prioritizationFee: 2,
|
||||
postSendTxCallback: ({ txid }: { txid: string }) => {
|
||||
notify({
|
||||
title: 'Transaction sent',
|
||||
|
|
|
@ -1008,10 +1008,10 @@
|
|||
"@babel/helper-validator-identifier" "^7.16.7"
|
||||
to-fast-properties "^2.0.0"
|
||||
|
||||
"@blockworks-foundation/mango-client@^3.5.5":
|
||||
version "3.5.5"
|
||||
resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-client/-/mango-client-3.5.5.tgz#de71141571e97acae5165b8d94d1149b67f00e4f"
|
||||
integrity sha512-FSGSo8rqWthfa1ClLmbFrZr6J7iEpw+/rrI04x3a4pPZwpQfiIRaBlwc5SCrD7+q+DR1MD+9vFDRxBpU9hKwfw==
|
||||
"@blockworks-foundation/mango-client@^3.6.1":
|
||||
version "3.6.1"
|
||||
resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-client/-/mango-client-3.6.1.tgz#236b63cabc4c25d9e489a964c62891e89f8d0920"
|
||||
integrity sha512-t/g0dfS3FE1JZygOlnP0xCkNYFSjDAGy+WNCfZT1wfvGG94qq6ozuI5R4Vw0JOBZtXWKg8ks0Z3/nv/UokKGjA==
|
||||
dependencies:
|
||||
"@project-serum/anchor" "^0.21.0"
|
||||
"@project-serum/serum" "0.13.55"
|
||||
|
|
Loading…
Reference in New Issue