Skip to content

Commit

Permalink
exports
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed Apr 13, 2024
1 parent 71ed1c8 commit db21b42
Show file tree
Hide file tree
Showing 14 changed files with 597 additions and 78 deletions.
90 changes: 90 additions & 0 deletions __fixtures__/output/assetlist.camel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
export interface Asset {
deprecated?: boolean;
description?: string;
extendedDescription?: string;
denomUnits: DenomUnit[];
typeAsset?: string;
address?: string;
base: string;
name: string;
display: string;
symbol: string;
traces?: any[];
ibc?: {
sourceChannel: string;
dstChannel: string;
sourceDenom: string;
};
logoURIs?: {
png?: string;
svg?: string;
};
images?: {
imageSync?: Pointer;
png?: string;
svg?: string;
theme?: {
primaryColorHex?: string;
circle?: boolean;
darkMode?: boolean;
};
}[];
coingeckoId?: string;
keywords?: string[];
socials?: {
website?: string;
twitter?: string;
};
}
export interface DenomUnit {
denom: string;
exponent: number;
aliases?: string[];
}
export interface Pointer {
chainName: string;
baseDenom?: string;
}
export interface IbcTransition {
type: string;
counterparty: {
chainName: string;
baseDenom: string;
channelId: string;
};
chain: {
channelId: string;
path: string;
};
}
export interface IbcCw20Transition {
type: string;
counterparty: {
chainName: string;
baseDenom: string;
port: string;
channelId: string;
};
chain: {
port: string;
channelId: string;
path: string;
};
}
export interface NonIbcTransition {
type: string;
counterparty: {
chainName: string;
baseDenom: string;
contract?: string;
};
chain?: {
contract: string;
};
provider: string;
}
export interface AssetLists {
schema?: string;
chainName: string;
assets: Asset[];
}
14 changes: 7 additions & 7 deletions __fixtures__/output/assetlist.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface Asset {
export interface Asset {
deprecated?: boolean;
description?: string;
extended_description?: string;
Expand Down Expand Up @@ -36,16 +36,16 @@ interface Asset {
twitter?: string;
};
}
interface DenomUnit {
export interface DenomUnit {
denom: string;
exponent: number;
aliases?: string[];
}
interface Pointer {
export interface Pointer {
chain_name: string;
base_denom?: string;
}
interface IbcTransition {
export interface IbcTransition {
type: string;
counterparty: {
chain_name: string;
Expand All @@ -57,7 +57,7 @@ interface IbcTransition {
path: string;
};
}
interface IbcCw20Transition {
export interface IbcCw20Transition {
type: string;
counterparty: {
chain_name: string;
Expand All @@ -71,7 +71,7 @@ interface IbcCw20Transition {
path: string;
};
}
interface NonIbcTransition {
export interface NonIbcTransition {
type: string;
counterparty: {
chain_name: string;
Expand All @@ -83,7 +83,7 @@ interface NonIbcTransition {
};
provider: string;
}
interface AssetLists {
export interface AssetLists {
$schema?: string;
chain_name: string;
assets: Asset[];
Expand Down
159 changes: 159 additions & 0 deletions __fixtures__/output/chain.camel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
export interface Peer {
id: string;
address: string;
provider?: string;
}
export interface Endpoint {
address: string;
provider?: string;
archive?: boolean;
}
export interface Explorer {
kind?: string;
url?: string;
txPage?: string;
accountPage?: string;
}
export interface FeeToken {
denom: string;
fixedMinGasPrice?: number;
lowGasPrice?: number;
averageGasPrice?: number;
highGasPrice?: number;
gasCosts?: {
cosmosSend?: number;
ibcTransfer?: number;
};
}
export interface StakingToken {
denom: string;
}
export interface Pointer {
chainName: string;
baseDenom?: string;
}
export interface CosmosChain {
schema?: string;
chainName: string;
chainId: string;
preForkChainName?: string;
prettyName?: string;
website?: string;
updateLink?: string;
status?: any;
networkType?: any;
bech32Prefix: string;
bech32Config?: {
bech32PrefixAccAddr?: string;
bech32PrefixAccPub?: string;
bech32PrefixValAddr?: string;
bech32PrefixValPub?: string;
bech32PrefixConsAddr?: string;
bech32PrefixConsPub?: string;
};
daemonName?: string;
nodeHome?: string;
keyAlgos?: string[];
slip44?: number;
alternativeSlip44s?: number[];
fees?: {
feeTokens: FeeToken[];
};
staking?: {
stakingTokens: StakingToken[];
lockDuration?: {
blocks?: number;
time?: string;
};
};
codebase?: {
gitRepo?: string;
recommendedVersion?: string;
goVersion?: string;
compatibleVersions?: string[];
binaries?: {
"linux/amd64"?: string;
"linux/arm64"?: string;
"darwin/amd64"?: string;
"darwin/arm64"?: string;
"windows/amd64"?: string;
"windows/arm64"?: string;
};
cosmosSdkVersion?: string;
consensus?: {
type: string;
version?: string;
};
cosmwasmVersion?: string;
cosmwasmEnabled?: boolean;
cosmwasmPath?: string;
ibcGoVersion?: string;
icsEnabled?: string[];
genesis?: {
name?: string;
genesisUrl: string;
icsCcvUrl?: string;
};
versions?: {
name: string;
tag?: string;
height?: number;
proposal?: number;
previousVersionName?: string;
nextVersionName?: string;
recommendedVersion?: string;
goVersion?: string;
compatibleVersions?: string[];
cosmosSdkVersion?: string;
consensus?: {
type: string;
version?: string;
};
cosmwasmVersion?: string;
cosmwasmEnabled?: boolean;
cosmwasmPath?: string;
ibcGoVersion?: string;
icsEnabled?: string[];
binaries?: {
"linux/amd64"?: string;
"linux/arm64"?: string;
"darwin/amd64"?: string;
"darwin/arm64"?: string;
"windows/amd64"?: string;
"windows/arm64"?: string;
};
}[];
};
images?: {
imageSync?: Pointer;
png?: string;
svg?: string;
theme?: {
primaryColorHex?: string;
circle?: boolean;
darkMode?: boolean;
};
layout?: string;
textPosition?: string;
}[];
logoURIs?: {
png?: string;
svg?: string;
};
description?: string;
peers?: {
seeds?: Peer[];
persistentPeers?: Peer[];
};
apis?: {
rpc?: Endpoint[];
rest?: Endpoint[];
grpc?: Endpoint[];
wss?: Endpoint[];
"grpc-web"?: Endpoint[];
"evm-http-jsonrpc"?: Endpoint[];
};
explorers?: Explorer[];
keywords?: string[];
extraCodecs?: string[];
}
42 changes: 21 additions & 21 deletions __fixtures__/output/chain.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
interface Peer {
export interface Peer {
id: string;
address: string;
provider?: string;
}
interface Endpoint {
export interface Endpoint {
address: string;
provider?: string;
archive?: boolean;
}
interface Explorer {
export interface Explorer {
kind?: string;
url?: string;
tx_page?: string;
account_page?: string;
}
interface FeeToken {
export interface FeeToken {
denom: string;
fixed_min_gas_price?: number;
low_gas_price?: number;
Expand All @@ -25,14 +25,14 @@ interface FeeToken {
ibc_transfer?: number;
};
}
interface StakingToken {
export interface StakingToken {
denom: string;
}
interface Pointer {
export interface Pointer {
chain_name: string;
base_denom?: string;
}
interface CosmosChain {
export interface CosmosChain {
$schema?: string;
chain_name: string;
chain_id: string;
Expand Down Expand Up @@ -72,12 +72,12 @@ interface CosmosChain {
go_version?: string;
compatible_versions?: string[];
binaries?: {
"'linux/amd64'"?: string;
"'linux/arm64'"?: string;
"'darwin/amd64'"?: string;
"'darwin/arm64'"?: string;
"'windows/amd64'"?: string;
"'windows/arm64'"?: string;
"linux/amd64"?: string;
"linux/arm64"?: string;
"darwin/amd64"?: string;
"darwin/arm64"?: string;
"windows/amd64"?: string;
"windows/arm64"?: string;
};
cosmos_sdk_version?: string;
consensus?: {
Expand Down Expand Up @@ -115,12 +115,12 @@ interface CosmosChain {
ibc_go_version?: string;
ics_enabled?: string[];
binaries?: {
"'linux/amd64'"?: string;
"'linux/arm64'"?: string;
"'darwin/amd64'"?: string;
"'darwin/arm64'"?: string;
"'windows/amd64'"?: string;
"'windows/arm64'"?: string;
"linux/amd64"?: string;
"linux/arm64"?: string;
"darwin/amd64"?: string;
"darwin/arm64"?: string;
"windows/amd64"?: string;
"windows/arm64"?: string;
};
}[];
};
Expand Down Expand Up @@ -150,8 +150,8 @@ interface CosmosChain {
rest?: Endpoint[];
grpc?: Endpoint[];
wss?: Endpoint[];
"'grpc-web'"?: Endpoint[];
"'evm-http-jsonrpc'"?: Endpoint[];
"grpc-web"?: Endpoint[];
"evm-http-jsonrpc"?: Endpoint[];
};
explorers?: Explorer[];
keywords?: string[];
Expand Down
Loading

0 comments on commit db21b42

Please sign in to comment.