base-service.ts•1.08 kB
import { SigningStargateClient, QueryClient, StakingExtension, DistributionExtension } from '@allthatjazzleo/stargate';
import { SigningCosmWasmClient } from '@allthatjazzleo/cosmwasm-stargate';
import { Comet38Client } from '@cosmjs/tendermint-rpc';
import { NetworkConfig } from '../config.js';
export class BaseService {
protected stargateClient: SigningStargateClient;
protected wasmClient: SigningCosmWasmClient;
protected queryClient: QueryClient & StakingExtension & DistributionExtension;
protected cometClient: Comet38Client;
protected address: string;
protected network: NetworkConfig;
constructor(
stargateClient: SigningStargateClient,
wasmClient: SigningCosmWasmClient,
queryClient: QueryClient & StakingExtension & DistributionExtension,
cometClient: Comet38Client,
address: string,
network: NetworkConfig
) {
this.stargateClient = stargateClient;
this.wasmClient = wasmClient;
this.queryClient = queryClient;
this.cometClient = cometClient;
this.address = address;
this.network = network;
}
}