Skip to content

Commit 572eb04

Browse files
committed
yhh
1 parent 4ad7276 commit 572eb04

File tree

4 files changed

+63
-8
lines changed

4 files changed

+63
-8
lines changed

scripts/ga/hardfork.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
PREV_GA_TX_HASH="fd80ab8f65a620da457c18574787c9e5091bc2c71b776cd5edad0a005c37e307"
55
PREV_GA_INDEX="0"
66

7-
METADATA_URL="https://raw.githubusercontent.com/IntersectMBO/governance-actions/refs/heads/main/preview/2024-10-30-hf10/metadata.jsonld"
8-
METADATA_HASH="ab901c3aeeca631ee5c70147a558fbf191a4af245d8ca001e845d8569d7c38f9"
7+
METADATA_URL="https://raw.githubusercontent.com/IntersectMBO/governance-actions/refs/heads/main/mainnet/2024-10-30-hf10/metadata.jsonld"
8+
METADATA_HASH="8a1bd37caa6b914a8b569adb63a0f41d8f159c110dc5c8409118a3f087fffb43"
99
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1010

1111
# Building, signing and submitting an hardfork change governance action

scripts/ga/info.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
# ~~~~~~~~~~~~ CHANGE THIS ~~~~~~~~~~~~
44

5-
METADATA_URL="https://raw.githubusercontent.com/Ryun1/metadata/refs/heads/main/test-ga-2.jsonld"
6-
METADATA_HASH="a8dfd5d606424edf56bba038f227777fd1fb7651baa5007fee32e62430a289e8"
5+
METADATA_URL="https://raw.githubusercontent.com/IntersectMBO/governance-actions/refs/heads/main/mainnet/2024-11-19-infohf/metadata.jsonld"
6+
METADATA_HASH="93106d082a93e94df5aff74f678438bae3a647dac63465fbfcde6a3058f41a1e"
77

88
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
99

scripts/ga/new-committee.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/bin/sh
2+
3+
# ~~~~~~~~~~~~ CHANGE THIS ~~~~~~~~~~~~
4+
PREV_GA_TX_HASH=""
5+
PREV_GA_INDEX="0"
6+
7+
NEW_committee_ANCHOR_URL="ipfs://new-committee.txt"
8+
NEW_committee_ANCHOR_HASH="ab901c3aeeca631ee5c70147a558fbf191a4af245d8ca001e845d8569d7c38f9"
9+
10+
NEW_committee_SCRIPT_HASH="fa24fb305126805cf2164c161d852a0e7330cf988f1fe558cf7d4a64"
11+
12+
METADATA_URL="https://raw.githubusercontent.com/Ryun1/metadata/refs/heads/main/new-const-2"
13+
METADATA_HASH="01318fd6815453f35a4daac80cbbe3bf46c35dc070eb7dc817f26dfee5042eb8"
14+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15+
16+
# Building, signing and submitting an new-committee change governance action
17+
echo "Creating and submitting new-committee governace action."
18+
19+
# Function to execute cardano-cli commands inside the container
20+
container_cli() {
21+
docker exec -ti sancho-node cardano-cli "$@"
22+
}
23+
24+
container_cli conway governance action create\
25+
--testnet \
26+
--governance-action-deposit $(container_cli conway query gov-state --testnet-magic 4 | jq -r '.currentPParams.govActionDeposit') \
27+
--deposit-return-stake-verification-key-file ./keys/stake.vkey \
28+
--anchor-url "$METADATA_URL" \
29+
--anchor-data-hash "$METADATA_HASH" \
30+
31+
--out-file ./txs/new-committee.action
32+
33+
# --prev-governance-action-tx-id "$PREV_GA_TX_HASH" \
34+
# --prev-governance-action-index "$PREV_GA_INDEX" \
35+
36+
echo "Building the transaction."
37+
38+
container_cli conway transaction build \
39+
--testnet-magic 4 \
40+
--tx-in "$(container_cli conway query utxo --address "$(cat ./keys/payment.addr)" --testnet-magic 4 --out-file /dev/stdout | jq -r 'keys[0]')" \
41+
--tx-in "$(container_cli conway query utxo --address "$(cat ./keys/payment.addr)" --testnet-magic 4 --out-file /dev/stdout | jq -r 'keys[1]')" \
42+
--tx-in-collateral "$(container_cli conway query utxo --address "$(cat ./keys/payment.addr)" --testnet-magic 4 --out-file /dev/stdout | jq -r 'keys[1]')" \
43+
--proposal-file ./txs/new-committee.action \
44+
--change-address "$(cat ./keys/payment.addr)" \
45+
--out-file ./txs/new-committee-action-tx.unsigned
46+
47+
container_cli conway transaction sign \
48+
--tx-body-file ./txs/new-committee-action-tx.unsigned \
49+
--signing-key-file ./keys/payment.skey \
50+
--testnet-magic 4 \
51+
--out-file ./txs/new-committee-action-tx.signed
52+
53+
container_cli conway transaction submit \
54+
--testnet-magic 4 \
55+
--tx-file ./txs/new-committee-action-tx.signed

scripts/ga/new-consitution.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
PREV_GA_TX_HASH=""
55
PREV_GA_INDEX="0"
66

7-
NEW_CONSTITUTION_ANCHOR_URL="ipfs://new-constitution.txt"
8-
NEW_CONSTITUTION_ANCHOR_HASH="ab901c3aeeca631ee5c70147a558fbf191a4af245d8ca001e845d8569d7c38f9"
7+
NEW_CONSTITUTION_ANCHOR_URL="ipfs://QmbiATXEFuuAktbjLJJPiRyZowAgqqM3hfZoNFNmMCygjb"
8+
NEW_CONSTITUTION_ANCHOR_HASH="2a61e2f4b63442978140c77a70daab3961b22b12b63b13949a390c097214d1c5"
99

1010
NEW_CONSTITUTION_SCRIPT_HASH="fa24fb305126805cf2164c161d852a0e7330cf988f1fe558cf7d4a64"
1111

12-
METADATA_URL="https://raw.githubusercontent.com/Ryun1/metadata/refs/heads/main/new-const-2"
13-
METADATA_HASH="01318fd6815453f35a4daac80cbbe3bf46c35dc070eb7dc817f26dfee5042eb8"
12+
METADATA_URL="https://raw.githubusercontent.com/IntersectMBO/governance-actions/refs/heads/main/preview/2024-12-19-conts/metadata.jsonld"
13+
METADATA_HASH="4b2649556c838497ee2923bdff0f05b48fb2f0c3c5cceb450200f8bd6868ac5b"
1414
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1515

1616
# Building, signing and submitting an new-constitution change governance action

0 commit comments

Comments
 (0)