Skip to content

Commit

Permalink
fix: fix error extract claim ops
Browse files Browse the repository at this point in the history
  • Loading branch information
trungbach committed Nov 29, 2023
1 parent 41ecb26 commit 4c10785
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 24 deletions.
2 changes: 1 addition & 1 deletion packages/oraidex-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-server",
"version": "1.0.20",
"version": "1.0.21",
"main": "dist/index.js",
"bin": "dist/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/oraidex-server/package.staging.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-server-staging",
"version": "1.0.33",
"version": "1.0.34",
"main": "dist/index.js",
"bin": "dist/index.js",
"license": "MIT",
Expand Down
3 changes: 1 addition & 2 deletions packages/oraidex-sync/src/tx-parsing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ async function extractClaimOperations(
for (const attrs of wasmAttributes) {
const stakingAction = attrs.find((attr) => attr.key === "action" && attr.value === "withdraw_reward");
if (!stakingAction) continue;

const stakingToken = "withdraw" in msg ? msg.withdraw.staking_token : undefined;
stakingToken = "withdraw" in msg ? msg.withdraw.staking_token : undefined;
if (!stakingToken) continue;

attrs.forEach((attr, index) => {
Expand Down
20 changes: 0 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3810,26 +3810,6 @@
resolved "https://registry.yarnpkg.com/@oraichain/immutable/-/immutable-4.3.9.tgz#ff8d5a7b39b5b01f3f72a902cffbfea32ccb20c3"
integrity sha512-INpHnhL970OCkR7I71Kssb2aLl2l4Y/x8W6FlyRO0KmC8GHjxc/hlNB1t44BiI7lkOYmcWMRQoC8dwParsp1RQ==

"@oraichain/oraidex-sync@^1.0.1":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@oraichain/oraidex-sync/-/oraidex-sync-1.0.4.tgz#ccef5a47705ac6db31602d3f52f2527d9be53fa8"
integrity sha512-FC8E0pqYR97iGCDSsSY4ILRdNeunIG30znjaLyXOnXm5pR3AowSpgphbz2XJRY1OTcukeBn1LGBQqgYdf0ljkA==
dependencies:
"@cosmjs/cosmwasm-stargate" "^0.31.0"
"@cosmjs/stargate" "^0.31.0"
"@cosmjs/tendermint-rpc" "^0.31.0"
"@oraichain/common-contracts-sdk" "^1.0.31"
"@oraichain/cosmos-rpc-sync" "^1.0.7"
"@oraichain/cw-simulate" "^2.8.72"
"@oraichain/oraidex-common" "^1.0.41"
"@oraichain/oraidex-contracts-sdk" "^1.0.24"
apache-arrow "^12.0.1"
cosmjs-types "^0.8.0"
dotenv "^16.3.1"
duckdb-async "^0.8.1"
lodash "^4.17.21"
typescript "^4.8.3"

"@oraichain/[email protected]":
version "1.0.14"
resolved "https://registry.yarnpkg.com/@oraichain/oraidex-universal-swap/-/oraidex-universal-swap-1.0.14.tgz#fd4b60e7cfc21984dbaa14a7b9a2c560f02da37d"
Expand Down

0 comments on commit 4c10785

Please sign in to comment.