-
Notifications
You must be signed in to change notification settings - Fork 2
Update all submodules, related fixes and mint automatization #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
701c6c5
Rewriting 'Mint you own NFT' in script, update readme.
7cb4fe9
Add base image for nft-market-place (fix ssl problem)
18b272d
Update nft-marketplace to the dev version
04e02d1
Fix frontend build scripts
nrutledge 660e936
Minor fixes
3ed0664
Update nft-marketplace-server, CTL, ODC version (correct work with mi…
60c6a99
Temporal rollback ODC on non-master version.
514a0bf
Fix mint-nft.sh. Bump plutus-use-cases and seabug-contract.
167f300
Fix CTL initialization
fa4937d
Rename ctl.localho.st to ctl.localho.st, add ctl.localho.st domain.
6ad09dd
Fix CORS problem by nginx configuration.
8208690
Bump CTL to v2.0.0-alpha and update node config
992cfa4
Remove old testnet-config
bb4da7a
Update cardano-node (flake and arion), gmios, seabug-contract and plu…
6d8fce3
Fix restart policy for arion-compose
d81ca27
Update flake.lock
b94bbf0
Update testnet configuration (vasil hardfork)
e69e4b9
Update README.md
ryukzak 617f0df
Bump dependencies
a33db0a
Add MINT-POLICY arg for mint-nft.sh. Update README.md
1b305e1
Update arion-compose.nix for new server version
rynoV e1ec944
Fix `nft-marketplace-server` setup
t4ccer 16e90e3
Fix but this time for real
t4ccer b8a5e1c
Update plutus-use-cases to `t4/testnet-script`
rynoV 3ace383
Update readme to inform about outdated minting scripts
rynoV b1a80ed
Minor fixes to arion-compose.nix
rynoV b92239e
Update CTL to version used by `seabug-contracts`
rynoV f8db84b
Merge branch 'aleksandr/bump-nftmarketplace' into calum/update-nft-ma…
rynoV 48923cd
Merge pull request #21 from mlabs-haskell/calum/update-nft-marketplac…
rynoV 3ec2e9d
Update `seabug-contracts`
rynoV 961ef55
Update `nft-marketplace`
rynoV dfaedae
Update `nft-marketplace-server` to `main`
rynoV 3398d17
Fix nginx to work with react-router
rynoV dde76dc
Rename cardano node config json file
rynoV 1dfe8ea
Extract marketplace escrow address to constant
rynoV 43dad7d
Remove broken parts of `mint-nft.sh` and update readme
rynoV fcae789
Reorganize nginx config files
rynoV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -13,3 +13,6 @@ | |
[submodule "plutus-use-cases"] | ||
path = plutus-use-cases | ||
url = https://github.com/mlabs-haskell/plutus-use-cases | ||
[submodule "seabug-contracts"] | ||
path = seabug-contracts | ||
url = [email protected]:mlabs-haskell/seabug-contracts.git |
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
{ pkgs, ... }: | ||
let | ||
nft-marketplace-server = | ||
(pkgs.callPackage (import nft-marketplace-server/release.nix) | ||
{ }).nft-marketplace-server; | ||
ogmios-datum-cache = (import ogmios-datum-cache/default.nix).packages.x86_64-linux.ogmios-datum-cache; | ||
# The address of the marketplace script (`MarketPlace.js` in `seabug-contracts`) | ||
marketplace-escrow-address = "addr_test1wr05mmuhd3nvyjan9u4a7c76gj756am40qg7vuz90vnkjzczfulda"; | ||
|
||
nft-marketplace-server = (import nft-marketplace-server/default.nix).packages.x86_64-linux."nft-marketplace-server:exe:nft-marketplace-server"; | ||
ogmios-datum-cache = (import ogmios-datum-cache/default.nix).packages.x86_64-linux."ogmios-datum-cache"; | ||
# FIXME: CTL version also pinned in seabug-contract. We need only one source of truth | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will be fixed when we'll move from git submodules to flakes, then you can just follow input |
||
cardano-transaction-lib-server = (import | ||
cardano-transaction-lib/default.nix).packages.x86_64-linux."cardano-browser-tx-server:exe:cardano-browser-tx-server"; | ||
cardano-transaction-lib/default.nix).packages.x86_64-linux."ctl-server:exe:ctl-server"; | ||
in { | ||
# NOTE: still can't remember it... | ||
# ports = [ "host:container" ] | ||
config.services = { | ||
|
||
nft-marketplace.service = { | ||
depends_on = { | ||
nft-marketplace-server.condition = "service_healthy"; | ||
|
@@ -22,7 +25,8 @@ in { | |
ports = [ "8080:80" ]; | ||
volumes = [ | ||
"${toString ./.}/nft-marketplace/build:/usr/share/nginx/html" | ||
"${toString ./.}/config/nginx.conf:/etc/nginx/nginx.conf" | ||
"${toString ./.}/config/nginx/nginx.conf:/etc/nginx/nginx.conf" | ||
"${toString ./.}/config/nginx/conf.d:/etc/nginx/conf.d" | ||
]; | ||
healthcheck = { | ||
test = [ | ||
|
@@ -41,46 +45,61 @@ in { | |
}; | ||
useHostStore = true; | ||
}; | ||
|
||
cardano-transaction-lib-server.service = { | ||
command = | ||
[ "${cardano-transaction-lib-server}/bin/cardano-browser-tx-server" ]; | ||
[ "${cardano-transaction-lib-server}/bin/ctl-server" | ||
"--port" "8081" | ||
"--ogmios-host" "ogmios" "--ogmios-port" "1337" | ||
]; | ||
ports = [ "8081:8081" ]; | ||
useHostStore = true; | ||
volumes = [ | ||
"${toString ./.}/data/cardano-node/ipc:/ipc" | ||
]; | ||
restart = "always"; | ||
}; | ||
|
||
ogmios.service = { | ||
command = [ | ||
"--host" | ||
"0.0.0.0" | ||
"--node-socket" | ||
"/ipc/node.socket" | ||
"--node-config" | ||
"/config/testnet-config.json" | ||
"/config/testnet-node-config.json" | ||
]; | ||
depends_on = { cardano-node.condition = "service_healthy"; }; | ||
image = "cardanosolutions/ogmios:v5.2.0-testnet"; | ||
image = "cardanosolutions/ogmios:v5.5.1-testnet"; | ||
ports = [ "1337:1337" ]; | ||
volumes = [ | ||
"${toString ./.}/data/cardano-node/ipc:/ipc" | ||
"${toString ./.}/config:/config" | ||
]; | ||
restart = "always"; | ||
}; | ||
|
||
ogmios-datum-cache.service = { | ||
command = [ "${ogmios-datum-cache}/bin/ogmios-datum-cache" ]; | ||
command = [ "${ogmios-datum-cache}/bin/ogmios-datum-cache" | ||
"--db-connection" "host=postgresql-db port=5432 user=seabug dbname=seabug password=seabug" | ||
"--server-port" "9999" | ||
"--server-api" "usr:pwd" | ||
"--ogmios-address" "ogmios" "--ogmios-port" "1337" | ||
"--from-tip" "--use-latest" | ||
"--block-filter" "{\"address\": \"${marketplace-escrow-address}\"}" | ||
]; | ||
depends_on = { | ||
ogmios.condition = "service_healthy"; | ||
postgresql-db.condition = "service_healthy"; | ||
}; | ||
ports = [ "9999:9999" ]; | ||
useHostStore = true; | ||
volumes = [ | ||
"${toString ./.}/config/datum-cache-config.toml:/config/config.toml" | ||
]; | ||
working_dir = "/config"; | ||
restart = "always"; | ||
}; | ||
|
||
cardano-node.service = { | ||
environment = { NETWORK = "testnet"; }; | ||
image = "inputoutput/cardano-node:1.33.0"; | ||
image = "inputoutput/cardano-node:1.35.2"; | ||
volumes = [ | ||
"${toString ./.}/data/cardano-node/ipc:/ipc" | ||
"${toString ./.}/data/cardano-node/cardano-node-data:/data" | ||
|
@@ -95,7 +114,9 @@ in { | |
start_period = "15m"; | ||
retries = 3; | ||
}; | ||
restart = "always"; | ||
}; | ||
|
||
postgresql-db.service = { | ||
command = [ "-c" "stats_temp_directory=/tmp" ]; | ||
environment = { | ||
|
@@ -113,7 +134,9 @@ in { | |
}; | ||
volumes = | ||
[ "${toString ./.}/data/postgres-data:/var/lib/postgresql/data" ]; | ||
restart = "always"; | ||
}; | ||
|
||
nft-marketplace-server.service = { | ||
image = "alpine"; | ||
command = [ | ||
|
@@ -144,5 +167,6 @@ in { | |
restart = "always"; | ||
volumes = [ "${toString ./.}/config/tmp:/tmp" ]; | ||
}; | ||
|
||
}; | ||
} |
This file contains hidden or 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 |
---|---|---|
@@ -1 +1 @@ | ||
nix develop cardano-transaction-lib/ -L --extra-experimental-features "nix-command flakes" -c ./buildFrontendStage2.sh | ||
nix develop seabug-contracts/ -L --extra-experimental-features "nix-command flakes" -c ./buildFrontendStage2.sh |
This file contains hidden or 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
Submodule cardano-transaction-lib
updated
360 files
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.