UNPKG

@bandprotocol/bandchain.js

Version:

TypeScript library for Cosmos SDK and BandChain

124 lines (123 loc) 4.34 kB
//@ts-nocheck import { LCDClient } from "@cosmology/lcd"; export const createLCDClient = async ({ restEndpoint }) => { const requestClient = new LCDClient({ restEndpoint }); return { band: { bandtss: { v1beta1: new (await import("./bandtss/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, base: { node: { v1: new (await import("./base/node/v1/query.lcd")).LCDQueryClient({ requestClient }) }, oracle: { v1: new (await import("./base/oracle/v1/proof.lcd")).LCDQueryClient({ requestClient }) } }, feeds: { v1beta1: new (await import("./feeds/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, globalfee: { v1beta1: new (await import("./globalfee/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, oracle: { v1: new (await import("./oracle/v1/query.lcd")).LCDQueryClient({ requestClient }) }, restake: { v1beta1: new (await import("./restake/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, tss: { v1beta1: new (await import("./tss/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, tunnel: { v1beta1: new (await import("./tunnel/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) } }, cosmos: { auth: { v1beta1: new (await import("../cosmos/auth/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, authz: { v1beta1: new (await import("../cosmos/authz/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, bank: { v1beta1: new (await import("../cosmos/bank/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, distribution: { v1beta1: new (await import("../cosmos/distribution/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, feegrant: { v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, gov: { v1: new (await import("../cosmos/gov/v1/query.lcd")).LCDQueryClient({ requestClient }), v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, group: { v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({ requestClient }) }, mint: { v1beta1: new (await import("../cosmos/mint/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, params: { v1beta1: new (await import("../cosmos/params/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, staking: { v1beta1: new (await import("../cosmos/staking/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) }, tx: { v1beta1: new (await import("../cosmos/tx/v1beta1/service.lcd")).LCDQueryClient({ requestClient }) }, upgrade: { v1beta1: new (await import("../cosmos/upgrade/v1beta1/query.lcd")).LCDQueryClient({ requestClient }) } } }; };