@kyve/sdk-beta
Version:
<p align="center"> <a href="https://kyve.network"> <img src="https://user-images.githubusercontent.com/62398724/137493477-63868209-a19b-4efa-9413-f06d41197d6d.png" style="border-radius: 50%" height="96"> </a> <h3 align="center"><code>@kyve/sdk</
104 lines (96 loc) • 2.32 kB
text/typescript
import { AddChainParams } from "@cosmostation/extension-client/types/message";
import { Bech32Address } from "@keplr-wallet/cosmos";
import { ChainInfo } from "@keplr-wallet/types";
export const KYVE_DECIMALS = 9;
export const DENOM = "tkyve";
export const SUPPORTED_WALLETS = {
KEPLER: "KEPLER",
COSMOSTATION: "COSMOSTATION",
} as const;
type Networks = Record<KYVE_NETWORK, Network>;
export const KYVE_ENDPOINTS: Networks = {
local: {
rpc: "http://0.0.0.0:26657",
rest: "http://0.0.0.0:1317",
chainId: "kyve-local",
chainName: "KYVE - Local",
},
alpha: {
rpc: "https://rpc.alpha.kyve.network",
rest: "https://api.alpha.kyve.network",
chainId: "kyve-alpha",
chainName: "KYVE - Alpha",
},
beta: {
rpc: "https://rpc.beta.kyve.network",
rest: "https://api.beta.kyve.network",
chainId: "kyve-beta",
chainName: "KYVE - Beta",
},
korellia: {
rpc: "https://rpc.korellia.kyve.network",
rest: "https://api.korellia.kyve.network",
chainId: "korellia",
chainName: "Korellia",
},
};
export const PREFIX = "kyve";
export const GOV_AUTHORITY = "kyve10d07y265gmmuvt4z0w9aw880jnsr700jdv7nah";
export const KYVE_KEPLR_CONFIG: ChainInfo = {
rpc: "",
rest: "",
chainId: "",
chainName: "",
stakeCurrency: {
coinDenom: "KYVE",
coinMinimalDenom: "tkyve",
coinDecimals: KYVE_DECIMALS,
},
bip44: {
coinType: 118,
},
bech32Config: Bech32Address.defaultBech32Config("kyve"),
currencies: [
{
coinDenom: "KYVE",
coinMinimalDenom: "tkyve",
coinDecimals: KYVE_DECIMALS,
},
],
feeCurrencies: [
{
coinDenom: "KYVE",
coinMinimalDenom: "tkyve",
coinDecimals: KYVE_DECIMALS,
},
],
coinType: 118,
gasPriceStep: {
low: 2,
average: 2.5,
high: 10,
},
features: ["ibc-transfer", "ibc-go"],
};
export const KYVE_COSMOSTATION_CONFIG: AddChainParams = {
chainId: "",
restURL: "",
chainName: "",
baseDenom: "tkyve",
displayDenom: "KYVE",
addressPrefix: PREFIX,
coinType: "118",
decimals: KYVE_DECIMALS,
gasRate: {
tiny: "1.6",
low: "2",
average: "0.8",
},
};
export type KYVE_NETWORK = "local" | "alpha" | "beta" | "korellia";
export type Network = {
rpc: string;
rest: string;
chainId: string;
chainName: string;
};