load less proposals
This commit is contained in:
parent
88303be9cd
commit
8f793d295a
@ -98,7 +98,7 @@ export class CosmosRestClient extends BaseRestClient<RequestRegistry> {
|
|||||||
async getGovParamsTally() {
|
async getGovParamsTally() {
|
||||||
return this.request(this.registry.gov_params_tally, {});
|
return this.request(this.registry.gov_params_tally, {});
|
||||||
}
|
}
|
||||||
async getGovProposals(status: string, limit = 50) {
|
async getGovProposals(status: string, limit = 20) {
|
||||||
const query =
|
const query =
|
||||||
'?proposal_status={status}&pagination.limit={limit}&pagination.reverse=true&pagination.key=';
|
'?proposal_status={status}&pagination.limit={limit}&pagination.reverse=true&pagination.key=';
|
||||||
return this.request(this.registry.gov_proposals, { status, limit }, query);
|
return this.request(this.registry.gov_proposals, { status, limit }, query);
|
||||||
|
Loading…
Reference in New Issue
Block a user