Skip to content

Commit

Permalink
bump version to 1.2.0-beta.24 and update router API to staging enviro…
Browse files Browse the repository at this point in the history
…nment
  • Loading branch information
trungbach committed Dec 19, 2024
1 parent 648fe57 commit 9699c50
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/oraiswap-v3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraiswap-v3",
"version": "1.2.0-beta23",
"version": "1.2.0-beta24",
"main": "build/index.js",
"files": [
"./build/"
Expand Down
10 changes: 6 additions & 4 deletions packages/oraiswap-v3/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ import { getTickAtSqrtPrice } from "./wasm/oraiswap_v3_wasm";
async function main() {
const oraidexCommon = await OraidexCommon.load();
const zapper = new ZapConsumer({
routerApi: "https://osor.oraidex.io/smart-router/alpha-router",
// routerApi: "https://osor.oraidex.io/smart-router/alpha-router",
// TODO: change to prod later
routerApi: "https://osor-staging.oraidex.io/smart-router/alpha-router",
client: await CosmWasmClient.connect("https://rpc.orai.io"),
dexV3Address: AMM_V3_CONTRACT,
multiCallAddress: MULTICALL_CONTRACT,
Expand All @@ -36,8 +38,8 @@ async function main() {
// const poolKey = parsePoolKey(pool);

// for (let i = 0; i < 10; i++) {
// const poolInfo = await zapper.handler.getPool(poolKey);
// console.log("poolInfo", poolInfo);
// const poolInfo = await zapper.handler.getPool(poolKey);
// console.log("poolInfo", poolInfo);
// }

// const tickSpacing = poolKey.fee_tier.tick_spacing;
Expand All @@ -61,7 +63,7 @@ async function main() {
owner: "orai1zyvk3n9r8sax4xvqph97pxuhduqqsqwq6dwzj2",
tokenId: 12046,
tokenOut: tokenIn,
zapFee: 0,
zapFee: 0
});
console.dir(res, { depth: null });
// console.dir(res, { depth: null });
Expand Down
2 changes: 1 addition & 1 deletion packages/universal-swap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-universal-swap",
"version": "1.2.0-beta23",
"version": "1.2.0-beta24",
"main": "build/index.js",
"files": [
"build/"
Expand Down
4 changes: 3 additions & 1 deletion packages/universal-swap/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,9 @@ export class UniversalSwapHandler {
useIbcWasm: true
},
routerConfig: {
url: "https://osor.oraidex.io",
// url: "https://osor.oraidex.io",
// TODO: change to prod later
url: "https://osor-staging.oraidex.io",
path: "/smart-router/alpha-router",
protocols: ["Oraidex", "OraidexV3"],
dontAllowSwapAfter: ["Oraidex", "OraidexV3"]
Expand Down
4 changes: 3 additions & 1 deletion packages/universal-swap/src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,9 @@ export class UniversalSwapHelper {
ignoreFee?: boolean;
}) => {
return {
url: "https://osor.oraidex.io",
// url: "https://osor.oraidex.io",
// TODO: change to prod later
url: "https://osor-staging.oraidex.io",
path: options?.path ?? "/smart-router/alpha-router",
protocols: options?.protocols ?? ["Oraidex", "OraidexV3"],
dontAllowSwapAfter: options?.dontAllowSwapAfter ?? ["Oraidex", "OraidexV3"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ const simulate = async () => {
useIbcWasm: true
},
routerConfig: {
url: "https://osor.oraidex.io",
// url: "https://osor.oraidex.io",
// TODO: change to prod later
url: "https://osor-staging.oraidex.io",
path: "/smart-router/alpha-router",
protocols: ["Oraidex", "OraidexV3", "Osmosis"]
},
}
});
} catch (error) {
console.log("error: ", error);
Expand Down

0 comments on commit 9699c50

Please sign in to comment.