Skip to content

Commit

Permalink
fix tests using fixture instead of published lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetazzz committed Feb 19, 2024
1 parent 7e8e780 commit 49ab83f
Show file tree
Hide file tree
Showing 10 changed files with 319 additions and 18,390 deletions.
116 changes: 73 additions & 43 deletions __fixtures__/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -3650,49 +3650,6 @@
"$schema": "../assetlist.schema.json",
"chain_name": "osmosis",
"assets": [
{
"description": "The native staking and governance token of Jackal.",
"denom_units": [
{
"denom":
"ibc/8E697BDABE97ACE8773C6DF7402B2D1D5104DD1EEABE12608E3469B7F64C15BA",
"exponent": 0,
"aliases": ["ujkl"]
},
{
"denom": "jkl",
"exponent": 6
}
],
"base": "ibc/8E697BDABE97ACE8773C6DF7402B2D1D5104DD1EEABE12608E3469B7F64C15BA",
"name": "Jackal",
"display": "jkl",
"symbol": "JKL",
"logo_URIs": {
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/jackal/images/jkl.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/jackal/images/jkl.svg"
},
"coingecko_id": "jackal-protocol",
"images": [
{
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/jackal/images/jkl.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/jackal/images/jkl.svg"
}
],
"traces": [
{
"type": "ibc",
"counterparty": {
"channel_id": "channel-0",
"base_denom": "ujkl",
"chain_name": "jackal"
},
"chain": {
"channel_id": "channel-412"
}
}
]
},
{
"description": "The native token of Osmosis",
"denom_units": [
Expand Down Expand Up @@ -3744,6 +3701,49 @@
"keywords": [
"memecoin"
]
},
{
"description": "The native staking and governance token of Jackal.",
"denom_units": [
{
"denom":
"ibc/8E697BDABE97ACE8773C6DF7402B2D1D5104DD1EEABE12608E3469B7F64C15BA",
"exponent": 0,
"aliases": ["ujkl"]
},
{
"denom": "jkl",
"exponent": 6
}
],
"base": "ibc/8E697BDABE97ACE8773C6DF7402B2D1D5104DD1EEABE12608E3469B7F64C15BA",
"name": "Jackal",
"display": "jkl",
"symbol": "JKL",
"logo_URIs": {
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/jackal/images/jkl.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/jackal/images/jkl.svg"
},
"coingecko_id": "jackal-protocol",
"images": [
{
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/jackal/images/jkl.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/jackal/images/jkl.svg"
}
],
"traces": [
{
"type": "ibc",
"counterparty": {
"channel_id": "channel-0",
"base_denom": "ujkl",
"chain_name": "jackal"
},
"chain": {
"channel_id": "channel-412"
}
}
]
}
]
},
Expand Down Expand Up @@ -3820,6 +3820,36 @@
"name": "pSTAKE Finance",
"display": "pstake",
"symbol": "PSTAKE",
"traces": [
{
"type": "liquid-stake",
"counterparty": {
"chain_name": "persistence",
"base_denom": "uxprt"
},
"provider": "Persistence"
},
{
"type": "bridge",
"counterparty": {
"chain_name": "ethereum",
"base_denom": "0xfB5c6815cA3AC72Ce9F5006869AE67f18bF77006"
},
"provider": "Gravity Bridge"
},
{
"type": "ibc",
"counterparty": {
"chain_name": "gravitybridge",
"base_denom": "gravity0xfB5c6815cA3AC72Ce9F5006869AE67f18bF77006",
"channel_id": "channel-24"
},
"chain": {
"channel_id": "channel-38",
"path": "transfer/channel-38/gravity0xfB5c6815cA3AC72Ce9F5006869AE67f18bF77006"
}
}
],
"ibc": {
"source_channel": "channel-24",
"dst_channel": "channel-38",
Expand Down
28 changes: 28 additions & 0 deletions __fixtures__/ibc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3884,5 +3884,33 @@
"tags": {}
}
]
},
{
"$schema": "../ibc_data.schema.json",
"chain_1": {
"chain_name": "gravitybridge",
"client_id": "07-tendermint-39",
"connection_id": "connection-50"
},
"chain_2": {
"chain_name": "persistence",
"client_id": "07-tendermint-51",
"connection_id": "connection-49"
},
"channels": [
{
"chain_1": {
"channel_id": "channel-24",
"port_id": "transfer"
},
"chain_2": {
"channel_id": "channel-38",
"port_id": "transfer"
},
"ordering": "unordered",
"version": "ics20-1",
"tags": {}
}
]
}
]
14 changes: 14 additions & 0 deletions packages/keplr/__tests__/__snapshots__/keplr.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ exports[`getExplorer 1`] = `
"coinImageUrl": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/ion.svg",
"coinMinimalDenom": "uion",
},
{
"coinDecimals": 6,
"coinDenom": "JKL",
"coinGeckoId": "jackal-protocol",
"coinImageUrl": "https://raw.githubusercontent.com/cosmos/chain-registry/master/jackal/images/jkl.svg",
"coinMinimalDenom": "ibc/8E697BDABE97ACE8773C6DF7402B2D1D5104DD1EEABE12608E3469B7F64C15BA",
},
],
"features": [
"stargate",
Expand Down Expand Up @@ -95,6 +102,13 @@ exports[`keplr 1`] = `
"coinImageUrl": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/ion.svg",
"coinMinimalDenom": "uion",
},
{
"coinDecimals": 6,
"coinDenom": "JKL",
"coinGeckoId": "jackal-protocol",
"coinImageUrl": "https://raw.githubusercontent.com/cosmos/chain-registry/master/jackal/images/jkl.svg",
"coinMinimalDenom": "ibc/8E697BDABE97ACE8773C6DF7402B2D1D5104DD1EEABE12608E3469B7F64C15BA",
},
],
"features": [
"stargate",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2842,14 +2842,14 @@ exports[`getAssetLists 1`] = `
],
},
{
"base": "ibc/CF780ADED86E541AD7A8D5B7D33D2E3D9C61D8ECD228B8ED951986D782CB630A",
"base": "ibc/8061A06D3BD4D52C4A28FFECF7150D370393AF0BA661C3776C54FF32836C3961",
"coingecko_id": "pstake-finance",
"denom_units": [
{
"aliases": [
"ibc/A6E3AF63B3C906416A9AF7A556C59EA4BD50E617EFFE6299B99700CCB780E444",
],
"denom": "ibc/CF780ADED86E541AD7A8D5B7D33D2E3D9C61D8ECD228B8ED951986D782CB630A",
"denom": "ibc/8061A06D3BD4D52C4A28FFECF7150D370393AF0BA661C3776C54FF32836C3961",
"exponent": 0,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2842,14 +2842,14 @@ exports[`getIbcAssets 1`] = `
],
},
{
"base": "ibc/CF780ADED86E541AD7A8D5B7D33D2E3D9C61D8ECD228B8ED951986D782CB630A",
"base": "ibc/8061A06D3BD4D52C4A28FFECF7150D370393AF0BA661C3776C54FF32836C3961",
"coingecko_id": "pstake-finance",
"denom_units": [
{
"aliases": [
"ibc/A6E3AF63B3C906416A9AF7A556C59EA4BD50E617EFFE6299B99700CCB780E444",
],
"denom": "ibc/CF780ADED86E541AD7A8D5B7D33D2E3D9C61D8ECD228B8ED951986D782CB630A",
"denom": "ibc/8061A06D3BD4D52C4A28FFECF7150D370393AF0BA661C3776C54FF32836C3961",
"exponent": 0,
},
{
Expand Down
Loading

0 comments on commit 49ab83f

Please sign in to comment.