Skip to content

Commit

Permalink
ci testing
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilMihaylov committed Sep 19, 2024
1 parent 870accb commit 44eaedf
Show file tree
Hide file tree
Showing 3 changed files with 933 additions and 615 deletions.
12 changes: 12 additions & 0 deletions .github/test-data/protocol.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"dex": "osmosis",
"dex_network": "OSMOSIS",
"liquidity_provider_currency_ticker": "USDC_AXELAR",
"stable_currency_ticker": "ATOM",
"lease_currencies_tickers": [
"ATOM",
"AKT",
"JUNO",
"OSMO"
]
}
293 changes: 293 additions & 0 deletions .github/test-data/topology.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,293 @@
{
"host_network": {
"name": "NOLUS",
"currency": {
"id": "NLS",
"native": {
"name": "Nolus",
"symbol": "unls",
"decimal_digits": "6"
}
}
},
"networks": {
"OSMOSIS": {
"currencies": {
"OSMO": {
"native": {
"name": "Osmosis OSMO",
"symbol": "uosmo",
"decimal_digits": "6"
},
"icon": "https://nolus.io/currencies/osmosis-osmo.svg"
},
"USDC_AXELAR": {
"ibc": {
"network": "AXELAR",
"currency": "USDC"
},
"icon": "https://nolus.io/currencies/osmosis-usdc.svg"
},
"ATOM": {
"ibc": {
"network": "COSMOS_HUB",
"currency": "ATOM"
},
"icon": "https://nolus.io/currencies/osmosis-atom.svg"
},
"NLS": {
"ibc": {
"network": "NOLUS",
"currency": "NLS"
},
"icon": "https://nolus.io/currencies/osmosis-nls.svg"
},
"AKT": {
"ibc": {
"network": "AKASH",
"currency": "AKT"
},
"icon": "https://nolus.io/currencies/osmosis-akt.svg"
},
"JUNO": {
"ibc": {
"network": "JUNO",
"currency": "JUNO"
},
"icon": "https://nolus.io/currencies/osmosis-juno.svg"
}
},
"dexes": {
"osmosis": {
"type": "osmosis",
"swap_pairs": {
"AKT": [
"OSMO"
],
"ATOM": [
"OSMO"
],
"OSMO": [
"AKT",
"ATOM"
],
"NLS": [
"AKT",
"ATOM"
],
"USDC_AXELAR": [
"NLS",
"OSMO"
]
}
}
}
},
"AXELAR": {
"currencies": {
"USDC": {
"native": {
"name": "Usdc",
"symbol": "uausdc",
"decimal_digits": "6"
}
}
}
},
"COSMOS_HUB": {
"currencies": {
"ATOM": {
"native": {
"name": "Cosmos Hub ATOM",
"symbol": "uatom",
"decimal_digits": "6"
}
}
}
},
"AKASH": {
"currencies": {
"AKT": {
"native": {
"name": "Akash",
"symbol": "uakt",
"decimal_digits": "6"
}
}
}
},
"JUNO": {
"currencies": {
"JUNO": {
"native": {
"name": "Juno",
"symbol": "ujunox",
"decimal_digits": "6"
}
}
}
},
"NEUTRON": {
"currencies": {
"NTRN": {
"native": {
"name": "Neutron",
"symbol": "untrn",
"decimal_digits": "6"
},
"icon": "https://nolus.io/currencies/neutron-ntrn.svg"
},
"USDC_AXELAR": {
"ibc": {
"network": "AXELAR",
"currency": "USDC"
},
"icon": "https://nolus.io/currencies/neutron-usdc.svg"
},
"ATOM": {
"ibc": {
"network": "COSMOS_HUB",
"currency": "ATOM"
},
"icon": "https://nolus.io/currencies/neutron-atom.svg"
},
"NLS": {
"ibc": {
"network": "NOLUS",
"currency": "NLS"
},
"icon": "https://nolus.io/currencies/neutron-nls.svg"
}
},
"dexes": {
"astroport": {
"type": "astroport_test",
"swap_pairs": {
"NTRN": [
"NLS"
],
"NLS": [
"NTRN"
],
"USDC_AXELAR": [
"ATOM",
"NTRN"
]
}
}
}
}
},
"channels": [
{
"a": {
"network": "NOLUS",
"ch": "channel-0"
},
"b": {
"network": "OSMOSIS",
"ch": "channel-1636"
}
},
{
"a": {
"network": "OSMOSIS",
"ch": "channel-3"
},
"b": {
"network": "AXELAR",
"ch": "channel-227"
}
},
{
"a": {
"network": "OSMOSIS",
"ch": "channel-73"
},
"b": {
"network": "AKASH",
"ch": "channel-1"
}
},
{
"a": {
"network": "COSMOS_HUB",
"ch": "channel-2500"
},
"b": {
"network": "OSMOSIS",
"ch": "channel-12"
}
},
{
"a": {
"network": "OSMOSIS",
"ch": "channel-1"
},
"b": {
"network": "JUNO",
"ch": "channel-190"
}
},
{
"a": {
"network": "NOLUS",
"ch": "channel-116"
},
"b": {
"network": "NEUTRON",
"ch": "channel-209"
}
},
{
"a": {
"network": "NEUTRON",
"ch": "channel-8"
},
"b": {
"network": "AXELAR",
"ch": "channel-237"
}
},
{
"a": {
"network": "NEUTRON",
"ch": "channel-1"
},
"b": {
"network": "COSMOS_HUB",
"ch": "channel-16"
}
}
],
"definitions": [
"This is the descriptor of the network topology and currencies of interest for the Nolus AMM protocol.",
"",
"The network topology is represented as a collection of networks and the ICS-20 transfer channels that connect them.",
"Some networks may have DEX services available. Each DEX is uniquely named and should have a type supported by Nolus.",
"The supported types are `osmosis`, `astroport_test`, and `astroport_main`.",
"",
"On a given network, each currency is identified by its 'ticker'. A currency with ticker NLS on a network NOLUS is required.",
"The Nolus network description should not contain other currencies. They are defined in the 'protocols' object.",
"",
"A currency is either native or ibc on a network. In the latter case it points to the 'burning' currency residing at a network",
"that is at one hop distance. In the former case it is described with name, symbol and number of decimal digits.",
"",
"The 'name' is a human-readable description of the currency",
"",
"The 'symbol' is the base denomination of the currency at its native chain.",
"",
"The 'decimal_digits' value represents the number of decimal digits this denomination has.",
"For example, '6' for OSMO means 10^6 units of its base denomination uosmo are equal to 1 OSMO",
"",
"The 'icon' is an optional currency attribute that provides a visual representation of the currency at that network and the others",
"where the currency might be sent over ibc. In other workds, if there is no icon attribute of an ibc originating currency then ",
"the icon is derived from the network and currency it points to. This might be applied multiple times traversing the ibc path ",
"toward its native network.",
"",
"The currency symbol at a given network is either equal to the currency 'symbol' if it is a native for that network, or ",
"'ibc/' + sha256('transfer' + '/' + ch[0] + '/' + ... + 'transfer' + '/' + ch[k] + '/' + symbol) if it is a native on ",
"network 'K' reachable through a sequence of channels with names 'ch[0]', 'ch[1]' ... 'ch[k]' at their minting side.",
"More info is available [here](https://github.com/cosmos/ibc-go/blob/c86d27fc280cfb342a9e4689b381e5823441b694/modules/apps/transfer/types/trace.go#L19)."
]
}
Loading

0 comments on commit 44eaedf

Please sign in to comment.