UNPKG

@raydium-io/raydium-sdk-v2

Version:

An SDK for building applications on top of Raydium.

2 lines 530 B
import{TOKEN_2022_PROGRAM_ID as o,TOKEN_PROGRAM_ID as u}from"@solana/spl-token";var e=(r=>(r[r.MintA=0]="MintA",r[r.MintB=1]="MintB",r))(e||{});function i(n,t){return n>>t&1?o:u}function c(n){return i(n,0)}function M(n){return i(n,1)}function l({mintAProgram:n,mintBProgram:t}){return(n.equals(o)?1<<0:0)|(t.equals(o)?1<<1:0)}export{e as LaunchpadMintProgramBit,c as getLaunchpadPoolMintAProgram,M as getLaunchpadPoolMintBProgram,i as getLaunchpadPoolMintProgram,l as toLaunchpadMintProgramFlag}; //# sourceMappingURL=util.mjs.map