Skip to content

Commit

Permalink
Merge pull request #328 from aura-nw/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
harisato authored Oct 10, 2023
2 parents 5b6759a + 6495f00 commit 369430d
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 251 deletions.
23 changes: 8 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,19 @@
]
},
"productName": "Safe",
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"browserslist": [
">0.2%",
"not dead",
"not op_mini all"
],
"dependencies": {
"@aura/safe-react-components": "https://github.com/aura-nw/safe-react-components.git",
"@codemirror/lang-javascript": "^6.1.6",
"@codemirror/lang-json": "^6.0.1",
"@codemirror/language": "^6.6.0",
"@cosmjs/cosmwasm-stargate": "^0.28.11",
"@cosmjs/encoding": "^0.31.0",
"@cosmjs/stargate": "^0.28.11",
"@cosmjs/cosmwasm-stargate": "^0.31.1",
"@cosmjs/encoding": "^0.31.1",
"@cosmjs/stargate": "^0.31.1",
"@gnosis.pm/safe-apps-sdk": "6.1.0",
"@gnosis.pm/safe-apps-sdk-v1": "npm:@gnosis.pm/[email protected]",
"@gnosis.pm/safe-core-sdk": "^1.1.1",
Expand Down
5 changes: 2 additions & 3 deletions src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export async function getAllValidators(): Promise<IResponse<any>> {
.post(chainInfo.indexerV2, {
query: `query GetAllValidator {
${chainInfo.environment || ''} {
validator(limit: 1000) {
validator(limit: 1000, where: {status: {_neq: "UNRECOGNIZED"}} ) {
account_address
commission
description
Expand Down Expand Up @@ -351,8 +351,7 @@ export async function getNumberOfDelegator(validatorId: any): Promise<IResponse<
const { chainInfo } = await getGatewayUrl()
return axios
.get(
`${
chainInfo.find((chain) => chain.chainId == currentChainInfo.chainId)?.rest
`${chainInfo.find((chain) => chain.chainId == currentChainInfo.chainId)?.rest
}/cosmos/staking/v1beta1/validators/${validatorId}/delegations?pagination.count_total=true`,
)
.then((res) => res.data)
Expand Down
8 changes: 5 additions & 3 deletions src/utils/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
createAuthzAminoConverters,
createBankAminoConverters,
createDistributionAminoConverters,
createFreegrantAminoConverters,
createFeegrantAminoConverters,
createGovAminoConverters,
createIbcAminoConverters,
createStakingAminoConverters,
Expand Down Expand Up @@ -402,12 +402,12 @@ const signMessage = async (
const registry = new Registry(TxTypes)
const aminoTypes = new AminoTypes({
...createBankAminoConverters(),
...createStakingAminoConverters(getChainInfo().shortName),
...createStakingAminoConverters(),
...createDistributionAminoConverters(),
...createGovAminoConverters(),
...createWasmAminoConverters(),
...createAuthzAminoConverters(),
...createFreegrantAminoConverters(),
...createFeegrantAminoConverters(),
...createIbcAminoConverters(),
})

Expand All @@ -433,6 +433,8 @@ const signMessage = async (
[{ pubkey, sequence: signedSequence }],
signed.fee.amount,
signedGasLimit,
undefined,
undefined,
signMode,
)
const respone = TxRaw.fromPartial({
Expand Down
Loading

0 comments on commit 369430d

Please sign in to comment.