Skip to content

feat: update jupiter idl#54

Open
lanre-mark wants to merge 4 commits into
jup-ag:mainfrom
lanre-mark:lm/upd-idl
Open

feat: update jupiter idl#54
lanre-mark wants to merge 4 commits into
jup-ag:mainfrom
lanre-mark:lm/upd-idl

Conversation

@lanre-mark

@lanre-mark lanre-mark commented Jan 28, 2025

Copy link
Copy Markdown

Summary

Update the Jupiter IDL with on-chain variants

Closes: #53

@lanre-mark

Copy link
Copy Markdown
Author

@siong1987 ^^

@edam4m3

edam4m3 commented Feb 10, 2025

Copy link
Copy Markdown

Cannot read properties of null (reading 'property')

Still getting same issue for tx like:

https://solscan.io/tx/2mdSC7uWBk5tV2E21vNnXMoGh2Jo8iGhsBVv2Bb4beaHzHjxPvWF1FTrqdS8dZ2XkzaiBP437LKWVSFDDSu9ojxw

@lanre-mark

lanre-mark commented Feb 10, 2025

Copy link
Copy Markdown
Author

Cannot read properties of null (reading 'property')

Still getting same issue for tx like:

https://solscan.io/tx/2mdSC7uWBk5tV2E21vNnXMoGh2Jo8iGhsBVv2Bb4beaHzHjxPvWF1FTrqdS8dZ2XkzaiBP437LKWVSFDDSu9ojxw

@edam4m3, with the changes in this PR I get;

yarn start lookup-tx --signature 2mdSC7uWBk5tV2E21vNnXMoGh2Jo8iGhsBVv2Bb4beaHzHjxPvWF1FTrqdS8dZ2XkzaiBP437LKWVSFDDSu9ojxw --rpc <RPC_URL>

Parsed Transaction =>  {
  transferAuthority: 'BBqy6gAVMzRH1S7y9XvBNaS3axRovqe2VgNrgwYc3mYM',
  lastAccount: 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4',
  instruction: 'route',
  owner: 'BBqy6gAVMzRH1S7y9XvBNaS3axRovqe2VgNrgwYc3mYM',
  programId: 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4',
  signature: '2mdSC7uWBk5tV2E21vNnXMoGh2Jo8iGhsBVv2Bb4beaHzHjxPvWF1FTrqdS8dZ2XkzaiBP437LKWVSFDDSu9ojxw',
  timestamp: 2025-02-10T11:34:26.000Z,
  legCount: 2,
  volumeInUSD: 0,
  inSymbol: null,
  inAmount: 1998586500n,
  inAmountInDecimal: 1998.5865,
  inAmountInUSD: 0,
  inMint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
  outSymbol: null,
  outAmount: 2361058753n,
  outAmountInDecimal: 2361.058753,
  outAmountInUSD: 0,
  outMint: 'JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN',
  exactOutAmount: 2361000000n,
  exactOutAmountInUSD: 0,
  swapData: [
    {
      amm: 'Unknown program ZERor4xhbUycZ6gb9ntrhqscUcZmAbQDjEAtCf4hbZY',
      inMint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
      inAmount: '1998586500',
      inAmountInDecimal: '1998.5865',
      outMint: 'So11111111111111111111111111111111111111112',
      outAmount: '9744041472',
      outAmountInDecimal: '9.744041472'
    },
    {
      amm: 'Meteora DLMM',
      inMint: 'So11111111111111111111111111111111111111112',
      inAmount: '9744041472',
      inAmountInDecimal: '9.744041472',
      outMint: 'JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN',
      outAmount: '2361058753',
      outAmountInDecimal: '2361.058753'
    }
  ]
}

@edam4m3

edam4m3 commented Feb 10, 2025

Copy link
Copy Markdown

You are correct, it was my bad, I had bad version of anchor, it required @coral-xyz/anchor: 0.29.0.

Thanks!

@edam4m3

edam4m3 commented Feb 12, 2025

Copy link
Copy Markdown

@lanre-mark
Do you maybe know what is the issue with these txs:

3cTbikq5R6oVictY1KCv7gNVjFiHk4415JJYEmx1gdYG2N58mgRavAVUzBesoQX66GMbwPWjKmdsTCqwtvfHYjDJ
4sUrxgpeuckhpvUZFGcPorDtYC96xHL6xr8ez8bntkjdJk8gNcqdY8muqyQdhQgATHZoXH77PJPMkDpGirADETYz

Or do you know how to figure out updates to IDL, so I can manually update it?

@lanre-mark

Copy link
Copy Markdown
Author

@lanre-mark Do you maybe know what is the issue with these txs:

3cTbikq5R6oVictY1KCv7gNVjFiHk4415JJYEmx1gdYG2N58mgRavAVUzBesoQX66GMbwPWjKmdsTCqwtvfHYjDJ 4sUrxgpeuckhpvUZFGcPorDtYC96xHL6xr8ez8bntkjdJk8gNcqdY8muqyQdhQgATHZoXH77PJPMkDpGirADETYz

Or do you know how to figure out updates to IDL, so I can manually update it?

@edam4m3 I took a look at these txs. This is an issue on the jupiter team, I don't see any new program where these txes were routed in the Jupiter v6 IDL page but maybe @siong1987 knows.

I am aware there was a new release and my guess it's related to the new virtuals fun feature 🤷‍♂️ Let's give them some time perhaps it'll get updated soon.

Also, take a look at one of the transactions, solscan doesn't;t understand the program either
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IDL is outdated: parser throws "Cannot read properties of null"

2 participants