Skip to content

Commit

Permalink
replacer and json features
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed May 9, 2024
1 parent e1dde03 commit 573d4ec
Show file tree
Hide file tree
Showing 14 changed files with 755 additions and 407 deletions.
10 changes: 5 additions & 5 deletions __tests__/__snapshots__/array-newlines.json.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

exports[`handles nested arrays with inlineArrayLimit 1`] = `
"{
matrix: [[1, 2], [3, 4]]
"matrix": [[1, 2], [3, 4]]
}"
`;

exports[`serializes arrays with newlines when length exceeds the inlineArrayLimit with space set 1`] = `
"{
numbers: [
"numbers": [
1,
2,
3,
Expand All @@ -20,10 +20,10 @@ exports[`serializes arrays with newlines when length exceeds the inlineArrayLimi

exports[`serializes arrays without newlines when length equals the inlineArrayLimit 1`] = `
"{
numbers: [1, 2, 3, 4, 5]
"numbers": [1, 2, 3, 4, 5]
}"
`;

exports[`serializes arrays without newlines when length exceeds the inlineArrayLimit 1`] = `"{numbers: [1, 2, 3, 4, 5]}"`;
exports[`serializes arrays without newlines when length exceeds the inlineArrayLimit 1`] = `"{"numbers": [1, 2, 3, 4, 5]}"`;

exports[`serializes arrays without newlines when length is below the inlineArrayLimit 1`] = `"{numbers: [1, 2, 3]}"`;
exports[`serializes arrays without newlines when length is below the inlineArrayLimit 1`] = `"{"numbers": [1, 2, 3]}"`;
108 changes: 54 additions & 54 deletions __tests__/__snapshots__/camel.assets.json.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,90 +2,90 @@

exports[`assetlist 1`] = `
"{
$schema: "../assetlist.schema.json",
chainName: "comdex",
assets: [
"$schema": "../assetlist.schema.json",
"chainName": "comdex",
"assets": [
{
description: "Native Token of Comdex Protocol",
denomUnits: [
"description": "Native Token of Comdex Protocol",
"denomUnits": [
{
denom: "ucmdx",
exponent: 0
"denom": "ucmdx",
"exponent": 0
},
{
denom: "cmdx",
exponent: 6
"denom": "cmdx",
"exponent": 6
}
],
base: "ucmdx",
name: "Comdex",
display: "cmdx",
symbol: "CMDX",
logoURIs: {
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.png",
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.svg"
"base": "ucmdx",
"name": "Comdex",
"display": "cmdx",
"symbol": "CMDX",
"logoURIs": {
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.svg"
},
coingeckoId: "comdex",
images: [
"coingeckoId": "comdex",
"images": [
{
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.png",
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.svg"
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.svg"
}
]
},
{
description: "Governance Token of Harbor protocol on Comdex network",
denomUnits: [
"description": "Governance Token of Harbor protocol on Comdex network",
"denomUnits": [
{
denom: "uharbor",
exponent: 0
"denom": "uharbor",
"exponent": 0
},
{
denom: "harbor",
exponent: 6
"denom": "harbor",
"exponent": 6
}
],
base: "uharbor",
name: "Harbor",
display: "harbor",
symbol: "HARBOR",
logoURIs: {
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.png",
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.svg"
"base": "uharbor",
"name": "Harbor",
"display": "harbor",
"symbol": "HARBOR",
"logoURIs": {
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.svg"
},
coingeckoId: "harbor-2",
images: [
"coingeckoId": "harbor-2",
"images": [
{
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.png",
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.svg"
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.svg"
}
]
},
{
description: "Stable Token of Harbor protocol on Comdex network",
denomUnits: [
"description": "Stable Token of Harbor protocol on Comdex network",
"denomUnits": [
{
denom: "ucmst",
exponent: 0
"denom": "ucmst",
"exponent": 0
},
{
denom: "cmst",
exponent: 6
"denom": "cmst",
"exponent": 6
}
],
base: "ucmst",
name: "CMST",
display: "cmst",
symbol: "CMST",
logoURIs: {
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.png",
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.svg"
"base": "ucmst",
"name": "CMST",
"display": "cmst",
"symbol": "CMST",
"logoURIs": {
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.svg"
},
coingeckoId: "composite",
images: [
"coingeckoId": "composite",
"images": [
{
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.png",
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.svg"
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.svg"
}
]
}
Expand Down
Loading

0 comments on commit 573d4ec

Please sign in to comment.