Skip to content

Commit

Permalink
update for 8.6 demo
Browse files Browse the repository at this point in the history
  • Loading branch information
disassembler committed Oct 29, 2023
1 parent 4124465 commit b54da94
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 74 deletions.
6 changes: 5 additions & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fi
IGREEN='\033[0;92m'
IRED='\033[0;91m'
NC='\033[0m'
if [ $(nix eval --impure --expr 'let f = builtins.getFlake (toString ./.); in f.lib.versionAtLeast builtins.nixVersion "2.17.0"') != "true" ]; then
if [ $(nix eval --impure --expr 'let f = builtins.getFlake "git+file://${toString ./.}"; in f.lib.versionAtLeast builtins.nixVersion "2.17.0"') != "true" ]; then
echo -e "The nix version must be at least ${IGREEN}2.17.0${NC} for fetchClosure of pure packages."
echo -e "Your version is ${IRED}$(nix --version)${NC}"
exit
Expand All @@ -21,6 +21,10 @@ fi

[ -s .envrc.local ] && source .envrc.local

if [ -z "${SOPS_AGE_KEY_FILE:-}" ] && [ -s ~/.age/credentials ]; then
export SOPS_AGE_KEY_FILE=~/.age/credentials
fi

if [ -n "${DEVSHELL_TARGET:-}" ]; then
use flake .#${DEVSHELL_TARGET}
else
Expand Down
10 changes: 5 additions & 5 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ vote-constitution:
echo "Submitting change to constitution..."
echo -e "\n\n"
sleep 2
ACTION=create-constitution ERA="--conway-era" PAYMENT_KEY="$KEY_DIR"/utxo-keys/rich-utxo STAKE_KEY=state-demo/stake-pools/no-deploy/sancho1-owner-stake TESTNET_MAGIC=42 DEBUG=true nix run .#job-submit-gov-action -- "--constitution-text" '"We the people of Barataria abide by these statutes: 1. Flat Caps are permissible, but cowboy hats are the traditional atire"' "--constitution-url" "https://proposals.sancho.network/1"
ACTION=create-constitution ERA="--conway-era" PAYMENT_KEY="$KEY_DIR"/utxo-keys/rich-utxo STAKE_KEY=state-demo/stake-pools/no-deploy/sancho1-owner-stake TESTNET_MAGIC=42 DEBUG=true nix run .#job-submit-gov-action -- "--constitution-anchor-metadata-file" '<(echo "We the people of Barataria abide by these statutes: 1. Flat Caps are permissible, but cowboy hats are the traditional atire")' "--constitution-anchor-url" "https://proposals.sancho.network/1"
sleep 10
echo -e "\n\n"
echo "Voting Unanimous with dreps"
Expand All @@ -101,7 +101,7 @@ vote-treasury:
echo "Submitting treasury proposal..."
echo -e "\n\n"
sleep 2
ACTION=create-treasury-withdrawal ERA="--conway-era" PAYMENT_KEY="$KEY_DIR"/utxo-keys/rich-utxo STAKE_KEY=state-demo/stake-pools/no-deploy/sancho1-owner-stake TESTNET_MAGIC=42 DEBUG=true nix run .#job-submit-gov-action -- --stake-verification-key-file state-demo/dreps/stake-1.vkey --transfer 5000000
ACTION=create-treasury-withdrawal ERA="--conway-era" PAYMENT_KEY="$KEY_DIR"/utxo-keys/rich-utxo STAKE_KEY=state-demo/stake-pools/no-deploy/sancho1-owner-stake TESTNET_MAGIC=42 DEBUG=true nix run .#job-submit-gov-action -- --funds-receiving-stake-verification-key-file state-demo/dreps/stake-1.vkey --transfer 5000000
sleep 10
echo -e "\n\n"
echo "Voting Unanimous with dreps"
Expand All @@ -124,14 +124,14 @@ vote-cc:
echo "Submitting CC committee proposal..."
echo -e "\n\n"
sleep 10
ACTION=create-new-committee ERA="--conway-era" PAYMENT_KEY="$KEY_DIR"/utxo-keys/rich-utxo STAKE_KEY=state-demo/stake-pools/no-deploy/sancho1-owner-stake TESTNET_MAGIC=42 DEBUG=true nix run .#job-submit-gov-action -- --add-cc-cold-verification-key-file state-demo/cc/cold-1.vkey --epoch 1000 --quorum 0
ACTION=update-committee ERA="--conway-era" PAYMENT_KEY="$KEY_DIR"/utxo-keys/rich-utxo STAKE_KEY=state-demo/stake-pools/no-deploy/sancho1-owner-stake TESTNET_MAGIC=42 DEBUG=true nix run .#job-submit-gov-action -- --add-cc-cold-verification-key-file state-demo/cc/cold-1.vkey --epoch 1000 --quorum 0
sleep 20
echo -e "\n\n"
echo "Voting Unanimous with dreps"
echo -e "\n\n"
just submit-vote-drep $(cardano-cli transaction txid --tx-file tx-create-new-committee.txsigned) 0 yes
just submit-vote-drep $(cardano-cli transaction txid --tx-file tx-update-committee.txsigned) 0 yes
sleep 10
just submit-vote-spo $(cardano-cli transaction txid --tx-file tx-create-new-committee.txsigned) 0 yes
just submit-vote-spo $(cardano-cli transaction txid --tx-file tx-update-committee.txsigned) 0 yes
stop:
#!/usr/bin/env bash
Expand Down
114 changes: 49 additions & 65 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
cardano-parts.url = "github:input-output-hk/cardano-parts/sl/8.5.0-scripts";
cardano-node-ng.url = "github:input-output-hk/cardano-node/8.5.0-pre";
cardano-cli-ng.url = "github:input-output-hk/cardano-cli/cardano-cli-8.12.0.0";
cardano-parts.url = "github:input-output-hk/cardano-parts/sl/8.6.0-scripts";
cardano-node-ng.url = "github:input-output-hk/cardano-node/td/8.6";
cardano-cli-ng.url = "github:input-output-hk/cardano-cli/cardano-cli-8.13.0.0";
};

outputs = inputs: let
Expand Down
1 change: 1 addition & 0 deletions perSystem/devShells/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ flake: {
cardano-parts.shell.test.defaultVars = {
CARDANO_NODE_SOCKET_PATH = "./node.socket";
USE_ENCRYPTION = false;
UNSTABLE = true;
};
cardano-parts.shell.global.defaultHooks = ''
alias cardano-node=cardano-node-ng
Expand Down

0 comments on commit b54da94

Please sign in to comment.