Skip to content

Commit

Permalink
build: implemented redux state for staking (#865)
Browse files Browse the repository at this point in the history
* build: implemented redux state for staking

* chore: added declarations *.d.ts files

* chore: fixed a lint issue

* chore: fixed build errors
  • Loading branch information
Teja2045 authored Nov 14, 2023
1 parent 9c22a5f commit 7b0c4c8
Show file tree
Hide file tree
Showing 16 changed files with 957 additions and 15 deletions.
2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"cosmjs-types": "^0.9.0",
"eslint": "8.50.0",
"eslint-config-next": "13.5.2",
"lodash": "^4.17.21",
"mathjs": "^12.0.0",
"next": "^14.0.1",
"postcss": "8.4.30",
Expand All @@ -39,6 +40,7 @@
"typescript": "5.2.2"
},
"devDependencies": {
"@types/lodash": "^4.14.200",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"eslint-config-prettier": "^9.0.0",
"prettier": "^3.0.3"
Expand Down
1 change: 0 additions & 1 deletion frontend/src/store/features/bank/bankService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Axios, { AxiosResponse } from 'axios';
import { convertPaginationToParams, cleanURL } from '../../../utils/util';
import { KeyLimitPagination } from '../../../types/types';

const balancesURL = '/cosmos/bank/v1beta1/balances/';
const balanceURL = (address: string, denom: string) =>
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/store/features/bank/bankSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import { SendMsg } from '../../../txns/bank';
import bankService from './bankService';
import { signAndBroadcast } from '../../../utils/signing';
import { Coin } from 'cosmjs-types/cosmos/base/v1beta1/coin';
import { KeyLimitPagination } from '../../../types/types';
import { TxStatus } from '../../../types/store';
import { GAS_FEE } from 'staking/utils/constants';
import { MultiTxnsInputs, TxSendInputs } from 'staking/types/bank';
import { GAS_FEE } from '../../../utils/constants';
import { MultiTxnsInputs, TxSendInputs } from '../../../types/bank';

interface Balance {
list: Coin[];
Expand Down
Loading

0 comments on commit 7b0c4c8

Please sign in to comment.