Skip to content

Commit

Permalink
Merge pull request #1118 from oraidex/feat/change-connection
Browse files Browse the repository at this point in the history
change connection
  • Loading branch information
haunv3 authored Jan 3, 2025
2 parents 013e69e + 04fc19d commit 14edead
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/program/web3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,15 @@ export const LAMPORT_RESERVES = 1_000_000_000;
export const INIT_BONDING_CURVE = 95;
export const SOL_RELAYER_ADDRESS = 'HGPezSRSzZNXiBhzEXPw1gwCqsdbW7Psy5TjeyB78x8j';
export const ORAICHAIN_RELAYER_ADDRESS = 'orai1ym6qytsu7skv2flw89y0mkey4gn7wl9q4y6r5p';

export const connection = 'https://solana-mainnet.phantom.app/YBPpkkN4g91xDiAnTE9r0RcMkjg0sKUIWvAfoFVJ';
export class Web3SolanaProgramInteraction {
connection: Connection;

constructor() {
this.connection = new Connection(
'https://alien-stylish-road.solana-mainnet.quiknode.pro/4a5144638133c97e486d36e03fa4a82ea99c9add/',
{
commitment: commitmentLevel,
wsEndpoint: DEFAULT_SOLANA_WEBSOCKET
}
);
this.connection = new Connection(connection, {
commitment: commitmentLevel,
wsEndpoint: DEFAULT_SOLANA_WEBSOCKET
});
}

bridgeSolToOrai = async (
Expand Down

0 comments on commit 14edead

Please sign in to comment.