-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16b0359
commit 96837bc
Showing
150 changed files
with
1,290 additions
and
573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
common/sdk/src/clients/lcd-client/bundles/v1beta1/query.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import paramsRes from "@kyvejs/types/lcd/kyve/bundles/v1beta1/params"; | ||
|
||
import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; | ||
|
||
export class BundlesModuleLCDClient extends AbstractKyveLCDClient { | ||
constructor(restEndpoint: string) { | ||
super(restEndpoint); | ||
} | ||
|
||
async params(): Promise<paramsRes.Params> { | ||
const endpoint = `/kyve/bundles/v1beta1/params`; | ||
return await this.request(endpoint); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
common/sdk/src/clients/lcd-client/delegation/v1beta1/query.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import paramsRes from "@kyvejs/types/lcd/kyve/delegation/v1beta1/params"; | ||
|
||
import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; | ||
|
||
export class DelegationModuleLCDClient extends AbstractKyveLCDClient { | ||
constructor(restEndpoint: string) { | ||
super(restEndpoint); | ||
} | ||
|
||
async params(): Promise<paramsRes.Params> { | ||
const endpoint = `/kyve/delegation/v1beta1/params`; | ||
return await this.request(endpoint); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
common/sdk/src/clients/lcd-client/funders/v1beta1/query.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import paramsRes from "@kyvejs/types/lcd/kyve/funders/v1beta1/params"; | ||
|
||
import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; | ||
|
||
export class FundersModuleLCDClient extends AbstractKyveLCDClient { | ||
constructor(restEndpoint: string) { | ||
super(restEndpoint); | ||
} | ||
|
||
async params(): Promise<paramsRes.Params> { | ||
const endpoint = `/kyve/funders/v1beta1/params`; | ||
return await this.request(endpoint); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import paramsRes from "@kyvejs/types/lcd/kyve/global/v1beta1/query"; | ||
|
||
import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; | ||
|
||
export class GlobalModuleLCDClient extends AbstractKyveLCDClient { | ||
constructor(restEndpoint: string) { | ||
super(restEndpoint); | ||
} | ||
|
||
async params(): Promise<paramsRes.QueryParamsResponse> { | ||
const endpoint = `/kyve/global/v1beta1/params`; | ||
return await this.request(endpoint); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import paramsRes from "@kyvejs/types/lcd/kyve/pool/v1beta1/params"; | ||
|
||
import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; | ||
|
||
export class PoolModuleLCDClient extends AbstractKyveLCDClient { | ||
constructor(restEndpoint: string) { | ||
super(restEndpoint); | ||
} | ||
|
||
async params(): Promise<paramsRes.Params> { | ||
const endpoint = `/kyve/pool/v1beta1/params`; | ||
return await this.request(endpoint); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
common/sdk/src/clients/lcd-client/stakers/v1beta1/query.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import paramsRes from "@kyvejs/types/lcd/kyve/stakers/v1beta1/params"; | ||
|
||
import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; | ||
|
||
export class StakersModuleLCDClient extends AbstractKyveLCDClient { | ||
constructor(restEndpoint: string) { | ||
super(restEndpoint); | ||
} | ||
|
||
async params(): Promise<paramsRes.Params> { | ||
const endpoint = `/kyve/stakers/v1beta1/params`; | ||
return await this.request(endpoint); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import queryReq from "@kyvejs/types/client/kyve/team/v1beta1/query"; | ||
import queryRes from "@kyvejs/types/lcd/kyve/team/v1beta1/query"; | ||
|
||
import { AbstractKyveLCDClient } from "../../lcd-client.abstract"; | ||
|
||
export class TeamModuleLCDClient extends AbstractKyveLCDClient { | ||
constructor(restEndpoint: string) { | ||
super(restEndpoint); | ||
} | ||
|
||
async teamInfo(): Promise<queryRes.QueryTeamInfoResponse> { | ||
const endpoint = `/kyve/team/v1beta1/team_info`; | ||
return await this.request(endpoint); | ||
} | ||
|
||
async teamVestingAccounts(): Promise<queryRes.QueryTeamVestingAccountsResponse> { | ||
const endpoint = `/kyve/team/v1beta1/team_vesting_accounts`; | ||
return await this.request(endpoint); | ||
} | ||
|
||
async teamVestingAccount( | ||
params: queryReq.QueryTeamVestingAccountRequest | ||
): Promise<queryRes.QueryTeamVestingAccountResponse> { | ||
const endpoint = `/kyve/team/v1beta1/team_vesting_account/${params.id}`; | ||
return await this.request(endpoint); | ||
} | ||
|
||
async teamVestingStatus( | ||
params: queryReq.QueryTeamVestingStatusRequest | ||
): Promise<queryRes.QueryTeamVestingStatusResponse> { | ||
const endpoint = `/kyve/team/v1beta1/team_vesting_status/${params.id}`; | ||
return await this.request(endpoint); | ||
} | ||
|
||
async teamVestingStatusByTime( | ||
params: queryReq.QueryTeamVestingStatusByTimeRequest | ||
): Promise<queryRes.QueryTeamVestingStatusByTimeResponse> { | ||
const endpoint = `/kyve/team/v1beta1/team_vesting_status_by_time/${params.id}/${params.time}`; | ||
return await this.request(endpoint); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
common/types/src/client/cosmos/base/query/v1beta1/pagination.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.