-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into terpay/two-pool-routes
- Loading branch information
Showing
102 changed files
with
5,782 additions
and
1,316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Render and Deploy Docs | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
build: | ||
name: Render and deploy protocol and API docs | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
- name: Install rust toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
- name: Load Rust caching | ||
uses: astriaorg/[email protected] | ||
- name: Load get-version action to grab version component of deployment path | ||
uses: battila7/get-version-action@v2 | ||
id: get_version | ||
- name: Print version component of deployment path | ||
run: echo ${{ steps.get_version.outputs.version }} | ||
- name: Install mdbook | ||
run: cargo install mdbook mdbook-katex mdbook-mermaid | ||
- name: Build protocol spec | ||
run: cd docs/protocol && mdbook build | ||
- name: Move protocol spec to subdirectory & Deploy | ||
env: | ||
DO_DOCS_PK: ${{ secrets.DO_DOCS_PK }} | ||
DO_DOCS_IP: ${{ secrets.DO_DOCS_IP }} | ||
run: | | ||
cd docs/protocol | ||
if [ -d "do-tmp" ]; then rm -rf do-tmp; fi | ||
mkdir do-tmp | ||
mv book do-tmp/${{ steps.get_version.outputs.version }} | ||
tree do-tmp | ||
which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) | ||
which rsync || ( apt-get update -y && apt-get install rsync -y ) | ||
eval $(ssh-agent -s) | ||
ssh-add <(echo "$DO_DOCS_PK" ) | ||
mkdir -p ~/.ssh | ||
chmod 700 ~/.ssh | ||
ssh-keyscan $DO_DOCS_IP >> ~/.ssh/known_hosts | ||
chmod 644 ~/.ssh/known_hosts | ||
cd do-tmp/main | ||
scp -r * root@$DO_DOCS_IP:/var/www/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[book] | ||
authors = ["Osmosis Labs"] | ||
language = "en" | ||
multilingual = false | ||
src = "src" | ||
title = "The Osmosis Protocol" | ||
|
||
[preprocessor.katex] | ||
|
||
[preprocessor.mermaid] | ||
command = "mdbook-mermaid" | ||
|
||
[output.html] | ||
curly-quotes = true | ||
fold = { enable = true, level = 1 } | ||
git-repository-url = "https://github.com/osmosis-labs/osmosis" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Summary | ||
|
||
[Osmosis](./osmosis.md) | ||
- [Decentralized Exchange](./core_dex.md) | ||
- [Weighted Pool](./dex/weighted.md) | ||
- [Stableswap Pool](./dex/stableswap.md) | ||
- [Concentrated Pool](./dex/concentrated.md) | ||
- [Cosmwasm Pool](./dex/cosmwasm.md) | ||
- [Governance](./governance.md) | ||
- [Staking](./staking.md) | ||
- [Smart Contracts](./smartcontracts.md) | ||
- [Ecosystem](./ecosystem.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Decentralized Exchange | ||
|
||
Osmosis is a decentralized automated market maker (AMM) protocol built using Cosmos SDK that represents a flexible building block for programmable liquidity. | ||
|
||
By separating the AMM curve logic and math from the core swapping functionality, Osmosis becomes an extensible AMM that can incorporate any number of swap curves and pool types. This includes: | ||
|
||
- Traditional 50/50 weighted pools | ||
- Custom weights like 80/20 for controlled exposure | ||
- Solidly-style Stableswap curve | ||
- Concentrated Liquidity pools | ||
- CosmWasm pools | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Concentrated Pool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# CosmWasm Pool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Cosmwasm Pool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Stableswap Pool |
Oops, something went wrong.