import { Provider as AnchorProvider } from "@project-serum/anchor" ; import type { Provider as SaberProvider } from "@saberhq/solana-contrib" ; import { SolanaProvider } from "@saberhq/solana-contrib" ; param anchorProvider returns export const makeSaberProvider = ( anchorProvider ) : SaberProvider => { return SolanaProvider . load ( { connection : anchorProvider . connection , wallet : anchorProvider . wallet , opts : anchorProvider . opts , } ) ; } ; param saberProvider returns export const makeAnchorProvider = ( saberProvider ) : AnchorProvider => { return new AnchorProvider ( saberProvider . connection , saberProvider . wallet , saberProvider . opts ) ; } ;