Skip to content

Commit

Permalink
pump sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
trung2891 committed Nov 12, 2024
1 parent 7fbcc27 commit 58bacb9
Show file tree
Hide file tree
Showing 6 changed files with 2,639 additions and 2,071 deletions.
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraitrading-common",
"version": "2.0.1",
"version": "2.0.2",
"main": "build/index.js",
"files": [
"build/"
Expand Down
6 changes: 4 additions & 2 deletions packages/common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export async function setupWallet(
throw new Error("Must set MNEMONIC to a 12 word phrase");
}
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, {
hdPaths: [stringToPath(config.hdPath ?? "m/44'/118'/0'/0/0")],
hdPaths: [stringToPath(config.hdPath ?? "m/44'/118'/0'/0/0")] as any,
prefix: config.prefix ?? "orai",
});
const [firstAccount] = await wallet.getAccounts();
Expand All @@ -147,7 +147,9 @@ export async function setupWallet(
config.rpcUrl || "https://rpc.orai.io",
wallet as any,
{
gasPrice: GasPrice.fromString(`${config.gasPrices ?? "0.001"}orai`),
gasPrice: GasPrice.fromString(
`${config.gasPrices ?? "0.001"}orai`
) as any,
}
));

Expand Down
2 changes: 1 addition & 1 deletion packages/priceFeed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@oraichain/common-contracts-sdk": "^1.0.31",
"@oraichain/oraidex-contracts-build": "^1.0.14",
"@oraichain/oraidex-contracts-sdk": "^1.0.22",
"@oraichain/oraitrading-common": "^0.0.4",
"@oraichain/oraitrading-common": "^2.0.1",
"@types/cors": "^2.8.13",
"@types/express": "^4.17.17",
"@vercel/ncc": "=0.34.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/tp_sl_lq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
"build": "ncc build src/cli.ts --no-source-map-register -t -m"
},
"dependencies": {
"@cosmjs/proto-signing": "^0.32.4",
"@cosmjs/tendermint-rpc": "^0.32.4",
"@oraichain/common-contracts-build": "^1.0.26",
"@oraichain/common-contracts-sdk": "^1.0.31",
"@oraichain/oraidex-contracts-build": "^1.0.14",
"@oraichain/oraidex-contracts-sdk": "^1.0.22",
"@oraichain/oraimargin-contracts-build": "^1.0.2",
"@oraichain/oraimargin-contracts-sdk": "^1.0.2",
"@oraichain/oraitrading-common": "^0.0.4",
"@oraichain/oraitrading-common": "^2.0.1",
"@types/cors": "^2.8.13",
"@types/express": "^4.17.17",
"@vercel/ncc": "=0.34.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/vamm_price/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
},
"dependencies": {
"@oraichain/oraimargin-contracts-sdk": "^1.0.2",
"@oraichain/oraitrading-common": "^0.0.4"
"@oraichain/oraitrading-common": "^2.0.1"
}
}
Loading

0 comments on commit 58bacb9

Please sign in to comment.