File tree 1 file changed +6
-0
lines changed
packages/blockchain-link-utils/src
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ export const SYSTEM_PROGRAM_PUBLIC_KEY = '11111111111111111111111111111111';
38
38
export const WSOL_MINT = 'So11111111111111111111111111111111111111112' ;
39
39
export const STAKE_PROGRAM_PUBLIC_KEY = 'Stake11111111111111111111111111111111111111' ;
40
40
export const COMPUTE_BUDGET_PROGRAM_ID = 'ComputeBudget111111111111111111111111111111' ;
41
+ export const SERUM_ASSET_OWNER_PROGRAM_ID = '4MNPdKu9wFMvEeZBMt3Eipfs5ovVWTJb31pEXDJAAxX5'
42
+ export const SERUM_ASSET_OWNER_PHANTOM_DEPLOYMENT_PROGRAM_ID = 'DeJBGdMFa1uynnnKiwrVioatTuHmNLpyFKnmB5kaFdzQ'
41
43
42
44
const tokenProgramNames = [ 'spl-token' , 'spl-token-2022' ] as const ;
43
45
export type TokenProgramName = ( typeof tokenProgramNames ) [ number ] ;
@@ -386,6 +388,10 @@ export const getTxType = (
386
388
ASSOCIATED_TOKEN_PROGRAM_PUBLIC_KEY ,
387
389
STAKE_PROGRAM_PUBLIC_KEY ,
388
390
COMPUTE_BUDGET_PROGRAM_ID ,
391
+ // some wallets use Serum's Assert Owner program during SPL transfer transactions, we don't want to report these as `contract` transactions
392
+ SERUM_ASSET_OWNER_PROGRAM_ID ,
393
+ SERUM_ASSET_OWNER_PHANTOM_DEPLOYMENT_PROGRAM_ID
394
+
389
395
] . includes ( instruction . programId ) ;
390
396
391
397
// if there are any unknown program instructions, we interpret the transaction as `contract`
You can’t perform that action at this time.
0 commit comments