Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #328

Merged
merged 4 commits into from
Oct 10, 2023
Merged

Dev #328

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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