├── .gitignore ├── Benchmarks ├── OneWaySwap.md └── TwoWaySwap.md ├── CHANGELOG.md ├── GettingStarted.md ├── LICENSE.md ├── OrderBookExample.md ├── README.md ├── aiken ├── aiken.lock ├── aiken.toml ├── lib │ └── cardano_swaps │ │ ├── common │ │ ├── types.ak │ │ └── utils.ak │ │ ├── one_way_swap │ │ ├── types.ak │ │ └── utils.ak │ │ └── two_way_swap │ │ ├── types.ak │ │ └── utils.ak ├── plutus.json └── validators │ ├── one_way_swap.ak │ └── two_way_swap.ak ├── app ├── CLI │ ├── Parsers.hs │ ├── Query.hs │ ├── Query │ │ └── Koios.hs │ ├── Run.hs │ └── Types.hs └── Main.hs ├── cabal.project ├── cardano-swaps.cabal ├── scripts ├── local │ ├── mint-test-tokens │ │ ├── alwaysSucceedsMintingPolicy.plutus │ │ ├── mint.sh │ │ └── unit.json │ ├── one-way │ │ ├── close-swap.sh │ │ ├── convert-swap.sh │ │ ├── create-reference-scripts.sh │ │ ├── create-swap.sh │ │ ├── register-beacon-script.sh │ │ ├── swap-assets.sh │ │ └── update-price.sh │ └── two-way │ │ ├── close-swap.sh │ │ ├── convert-swap.sh │ │ ├── create-reference-scripts.sh │ │ ├── create-swap.sh │ │ ├── register-beacon-script.sh │ │ ├── swap-assets.sh │ │ └── update-price.sh └── remote │ ├── mint-test-tokens │ ├── alwaysSucceedsMintingPolicy.plutus │ ├── mint.sh │ └── unit.json │ ├── one-way │ ├── close-swap.sh │ ├── convert-swap.sh │ ├── create-reference-scripts.sh │ ├── create-swap.sh │ ├── register-beacon-script.sh │ ├── swap-assets.sh │ └── update-price.sh │ └── two-way │ ├── close-swap.sh │ ├── convert-swap.sh │ ├── create-reference-scripts.sh │ ├── create-swap.sh │ ├── register-beacon-script.sh │ ├── swap-assets.sh │ └── update-price.sh ├── src └── CardanoSwaps │ ├── Blueprints.hs │ ├── OneWaySwap.hs │ ├── TwoWaySwap.hs │ └── Utils.hs └── test ├── Test.hs └── Test ├── OneWaySwap.hs ├── OneWaySwap ├── BeaconNames.hs ├── CloseSwap.hs ├── CreateSwap.hs ├── Swap.hs ├── UnsafeDatum.hs └── UpdateSwap.hs ├── Prelude.hs ├── TwoWaySwap.hs └── TwoWaySwap ├── BeaconNames.hs ├── CloseSwap.hs ├── CreateSwap.hs ├── Swap.hs ├── UnsafeDatum.hs └── UpdateSwap.hs /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/.gitignore -------------------------------------------------------------------------------- /Benchmarks/OneWaySwap.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/Benchmarks/OneWaySwap.md -------------------------------------------------------------------------------- /Benchmarks/TwoWaySwap.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/Benchmarks/TwoWaySwap.md -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /GettingStarted.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/GettingStarted.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/LICENSE.md -------------------------------------------------------------------------------- /OrderBookExample.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/OrderBookExample.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/README.md -------------------------------------------------------------------------------- /aiken/aiken.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/aiken/aiken.lock -------------------------------------------------------------------------------- /aiken/aiken.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/aiken/aiken.toml -------------------------------------------------------------------------------- /aiken/lib/cardano_swaps/common/types.ak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/aiken/lib/cardano_swaps/common/types.ak -------------------------------------------------------------------------------- /aiken/lib/cardano_swaps/common/utils.ak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/aiken/lib/cardano_swaps/common/utils.ak -------------------------------------------------------------------------------- /aiken/lib/cardano_swaps/one_way_swap/types.ak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/aiken/lib/cardano_swaps/one_way_swap/types.ak -------------------------------------------------------------------------------- /aiken/lib/cardano_swaps/one_way_swap/utils.ak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/aiken/lib/cardano_swaps/one_way_swap/utils.ak -------------------------------------------------------------------------------- /aiken/lib/cardano_swaps/two_way_swap/types.ak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/aiken/lib/cardano_swaps/two_way_swap/types.ak -------------------------------------------------------------------------------- /aiken/lib/cardano_swaps/two_way_swap/utils.ak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/aiken/lib/cardano_swaps/two_way_swap/utils.ak -------------------------------------------------------------------------------- /aiken/plutus.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/aiken/plutus.json -------------------------------------------------------------------------------- /aiken/validators/one_way_swap.ak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/aiken/validators/one_way_swap.ak -------------------------------------------------------------------------------- /aiken/validators/two_way_swap.ak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/aiken/validators/two_way_swap.ak -------------------------------------------------------------------------------- /app/CLI/Parsers.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/app/CLI/Parsers.hs -------------------------------------------------------------------------------- /app/CLI/Query.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/app/CLI/Query.hs -------------------------------------------------------------------------------- /app/CLI/Query/Koios.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/app/CLI/Query/Koios.hs -------------------------------------------------------------------------------- /app/CLI/Run.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/app/CLI/Run.hs -------------------------------------------------------------------------------- /app/CLI/Types.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/app/CLI/Types.hs -------------------------------------------------------------------------------- /app/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/app/Main.hs -------------------------------------------------------------------------------- /cabal.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/cabal.project -------------------------------------------------------------------------------- /cardano-swaps.cabal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/cardano-swaps.cabal -------------------------------------------------------------------------------- /scripts/local/mint-test-tokens/alwaysSucceedsMintingPolicy.plutus: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/mint-test-tokens/alwaysSucceedsMintingPolicy.plutus -------------------------------------------------------------------------------- /scripts/local/mint-test-tokens/mint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/mint-test-tokens/mint.sh -------------------------------------------------------------------------------- /scripts/local/mint-test-tokens/unit.json: -------------------------------------------------------------------------------- 1 | {"constructor":0,"fields":[]} -------------------------------------------------------------------------------- /scripts/local/one-way/close-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/one-way/close-swap.sh -------------------------------------------------------------------------------- /scripts/local/one-way/convert-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/one-way/convert-swap.sh -------------------------------------------------------------------------------- /scripts/local/one-way/create-reference-scripts.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/one-way/create-reference-scripts.sh -------------------------------------------------------------------------------- /scripts/local/one-way/create-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/one-way/create-swap.sh -------------------------------------------------------------------------------- /scripts/local/one-way/register-beacon-script.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/one-way/register-beacon-script.sh -------------------------------------------------------------------------------- /scripts/local/one-way/swap-assets.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/one-way/swap-assets.sh -------------------------------------------------------------------------------- /scripts/local/one-way/update-price.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/one-way/update-price.sh -------------------------------------------------------------------------------- /scripts/local/two-way/close-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/two-way/close-swap.sh -------------------------------------------------------------------------------- /scripts/local/two-way/convert-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/two-way/convert-swap.sh -------------------------------------------------------------------------------- /scripts/local/two-way/create-reference-scripts.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/two-way/create-reference-scripts.sh -------------------------------------------------------------------------------- /scripts/local/two-way/create-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/two-way/create-swap.sh -------------------------------------------------------------------------------- /scripts/local/two-way/register-beacon-script.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/two-way/register-beacon-script.sh -------------------------------------------------------------------------------- /scripts/local/two-way/swap-assets.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/two-way/swap-assets.sh -------------------------------------------------------------------------------- /scripts/local/two-way/update-price.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/local/two-way/update-price.sh -------------------------------------------------------------------------------- /scripts/remote/mint-test-tokens/alwaysSucceedsMintingPolicy.plutus: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/mint-test-tokens/alwaysSucceedsMintingPolicy.plutus -------------------------------------------------------------------------------- /scripts/remote/mint-test-tokens/mint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/mint-test-tokens/mint.sh -------------------------------------------------------------------------------- /scripts/remote/mint-test-tokens/unit.json: -------------------------------------------------------------------------------- 1 | {"constructor":0,"fields":[]} -------------------------------------------------------------------------------- /scripts/remote/one-way/close-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/one-way/close-swap.sh -------------------------------------------------------------------------------- /scripts/remote/one-way/convert-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/one-way/convert-swap.sh -------------------------------------------------------------------------------- /scripts/remote/one-way/create-reference-scripts.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/one-way/create-reference-scripts.sh -------------------------------------------------------------------------------- /scripts/remote/one-way/create-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/one-way/create-swap.sh -------------------------------------------------------------------------------- /scripts/remote/one-way/register-beacon-script.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/one-way/register-beacon-script.sh -------------------------------------------------------------------------------- /scripts/remote/one-way/swap-assets.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/one-way/swap-assets.sh -------------------------------------------------------------------------------- /scripts/remote/one-way/update-price.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/one-way/update-price.sh -------------------------------------------------------------------------------- /scripts/remote/two-way/close-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/two-way/close-swap.sh -------------------------------------------------------------------------------- /scripts/remote/two-way/convert-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/two-way/convert-swap.sh -------------------------------------------------------------------------------- /scripts/remote/two-way/create-reference-scripts.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/two-way/create-reference-scripts.sh -------------------------------------------------------------------------------- /scripts/remote/two-way/create-swap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/two-way/create-swap.sh -------------------------------------------------------------------------------- /scripts/remote/two-way/register-beacon-script.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/two-way/register-beacon-script.sh -------------------------------------------------------------------------------- /scripts/remote/two-way/swap-assets.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/two-way/swap-assets.sh -------------------------------------------------------------------------------- /scripts/remote/two-way/update-price.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/scripts/remote/two-way/update-price.sh -------------------------------------------------------------------------------- /src/CardanoSwaps/Blueprints.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/src/CardanoSwaps/Blueprints.hs -------------------------------------------------------------------------------- /src/CardanoSwaps/OneWaySwap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/src/CardanoSwaps/OneWaySwap.hs -------------------------------------------------------------------------------- /src/CardanoSwaps/TwoWaySwap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/src/CardanoSwaps/TwoWaySwap.hs -------------------------------------------------------------------------------- /src/CardanoSwaps/Utils.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/src/CardanoSwaps/Utils.hs -------------------------------------------------------------------------------- /test/Test.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test.hs -------------------------------------------------------------------------------- /test/Test/OneWaySwap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/OneWaySwap.hs -------------------------------------------------------------------------------- /test/Test/OneWaySwap/BeaconNames.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/OneWaySwap/BeaconNames.hs -------------------------------------------------------------------------------- /test/Test/OneWaySwap/CloseSwap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/OneWaySwap/CloseSwap.hs -------------------------------------------------------------------------------- /test/Test/OneWaySwap/CreateSwap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/OneWaySwap/CreateSwap.hs -------------------------------------------------------------------------------- /test/Test/OneWaySwap/Swap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/OneWaySwap/Swap.hs -------------------------------------------------------------------------------- /test/Test/OneWaySwap/UnsafeDatum.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/OneWaySwap/UnsafeDatum.hs -------------------------------------------------------------------------------- /test/Test/OneWaySwap/UpdateSwap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/OneWaySwap/UpdateSwap.hs -------------------------------------------------------------------------------- /test/Test/Prelude.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/Prelude.hs -------------------------------------------------------------------------------- /test/Test/TwoWaySwap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/TwoWaySwap.hs -------------------------------------------------------------------------------- /test/Test/TwoWaySwap/BeaconNames.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/TwoWaySwap/BeaconNames.hs -------------------------------------------------------------------------------- /test/Test/TwoWaySwap/CloseSwap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/TwoWaySwap/CloseSwap.hs -------------------------------------------------------------------------------- /test/Test/TwoWaySwap/CreateSwap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/TwoWaySwap/CreateSwap.hs -------------------------------------------------------------------------------- /test/Test/TwoWaySwap/Swap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/TwoWaySwap/Swap.hs -------------------------------------------------------------------------------- /test/Test/TwoWaySwap/UnsafeDatum.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/TwoWaySwap/UnsafeDatum.hs -------------------------------------------------------------------------------- /test/Test/TwoWaySwap/UpdateSwap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fallen-icarus/cardano-swaps/HEAD/test/Test/TwoWaySwap/UpdateSwap.hs --------------------------------------------------------------------------------