Skip to content

Commit

Permalink
feat: bump version to 2.0.0-beta.3 and add staking_oraix and indexer_…
Browse files Browse the repository at this point in the history
…v3 to NetworkConfig
  • Loading branch information
vuonghuuhung committed Dec 2, 2024
1 parent 141ee31 commit daa60d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/oraidex-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-common",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"main": "./build/index.js",
"module": "./build/index.js",
"types": "./build/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions packages/oraidex-common/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ export interface NetworkConfig {
bid_pool: string;
multicall: string;
pool_v3: string;
staking_oraix: string,
indexer_v3: string;
}

export type CoinIcon = any;
Expand Down
12 changes: 7 additions & 5 deletions packages/oraidex-common/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { chainIcons, mapListWithIcon, tokensIcon } from "./config";
import {
AMM_V3_CONTRACT,
CONVERTER_CONTRACT,
CW20_STAKING_CONTRACT,
FACTORY_CONTRACT,
FACTORY_V2_CONTRACT,
MIXED_ROUTER,
Expand All @@ -19,7 +20,7 @@ import { CustomChainInfo, NetworkConfig } from "./network";
export class OraidexCommon {
static instance: OraidexCommon;

constructor(private readonly tokenConfig: TokenItems, private readonly chainConfig: ChainInfos) {}
constructor(public readonly tokenConfig: TokenItems, public readonly chainConfig: ChainInfos) {}

static async load(): Promise<OraidexCommon> {
if (!OraidexCommon.instance) {
Expand Down Expand Up @@ -146,21 +147,22 @@ export class OraidexCommon {
...this.oraichainNetwork,
prefix: this.oraichainNetwork.bech32Config.bech32PrefixAccAddr,
denom: "orai",
coinType: this.oraichainNetwork.bip44.coinType as any,
coinType: this.oraichainNetwork.bip44.coinType,
fee: { gasPrice: "0.00506", amount: "1518", gas: "2000000" }, // 0.000500 ORAI
factory: FACTORY_CONTRACT,
factory_v2: FACTORY_V2_CONTRACT,
router: ROUTER_V2_CONTRACT,
mixer_router: MIXED_ROUTER,
oracle: ORACLE_CONTRACT,
staking: STAKING_CONTRACT,
rewarder: REWARDER_CONTRACT,
converter: CONVERTER_CONTRACT,
oraidex_listing: ORAIDEX_LISTING_CONTRACT,
multicall: MULTICALL_CONTRACT,
bid_pool: ORAIDEX_BID_POOL_CONTRACT,
staking_oraix: CW20_STAKING_CONTRACT,
multicall: MULTICALL_CONTRACT,
explorer: "https://scan.orai.io",
pool_v3: AMM_V3_CONTRACT
pool_v3: AMM_V3_CONTRACT,
indexer_v3: "https://ammv3-indexer.oraidex.io/"
};
}

Expand Down

0 comments on commit daa60d2

Please sign in to comment.