-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
- Loading branch information
There are no files selected for viewing
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); | ||
} | ||
} |
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); | ||
} | ||
} |
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); | ||
} | ||
} |
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); | ||
} | ||
} |
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); | ||
} | ||
} |
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); | ||
} | ||
} |
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); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.