Skip to content

Commit

Permalink
improvment and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed May 29, 2024
1 parent ba3ab4a commit ba1e355
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 63 deletions.
58 changes: 29 additions & 29 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ license = "GPL-3.0"
version = "0.1.0"

[workspace.dependencies]
namada_tx_prelude = { git = "https://github.com/anoma/namada", branch = "fraccaman/export-ibc-storage-keys-to-wasm" }
namada_proof_of_stake = { git = "https://github.com/anoma/namada", branch = "fraccaman/export-ibc-storage-keys-to-wasm" }
namada_core = { git = "https://github.com/anoma/namada", branch = "fraccaman/export-ibc-storage-keys-to-wasm" }
namada_tx_prelude = { git = "https://github.com/anoma/namada", branch = "fraccaman/multitoken-allow-governance-changes" }
namada_proof_of_stake = { git = "https://github.com/anoma/namada", branch = "fraccaman/multitoken-allow-governance-changes" }
namada_core = { git = "https://github.com/anoma/namada", branch = "fraccaman/multitoken-allow-governance-changes" }
wee_alloc = "0.4.5"
getrandom = { version = "0.2", features = ["custom"] }
lazy_static = "1.4.0"
Expand Down
10 changes: 4 additions & 6 deletions block_party/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ fn apply_tx(ctx: &mut Ctx, _tx_data: BatchedTx) -> TxResult {

// PGF inflation
let pgf_inflation_key = governance::pgf::storage::keys::get_pgf_inflation_rate_key();
let pgf_inflation_rate = Dec::from_str("0.025").unwrap();
let pgf_inflation_rate = Dec::from_str("0.025").unwrap();
ctx.write(&pgf_inflation_key, pgf_inflation_rate)?;

// PGF stewards inflation
let steward_inflation_key = governance::pgf::storage::keys::get_steward_inflation_rate_key();
let steward_inflation_rate = Dec::from_str("0.001").unwrap();
let steward_inflation_rate = Dec::from_str("0.001").unwrap();
ctx.write(&steward_inflation_key, steward_inflation_rate)?;

// Read the current transaction allowlist from storage
Expand All @@ -37,12 +37,10 @@ fn apply_tx(ctx: &mut Ctx, _tx_data: BatchedTx) -> TxResult {
.unwrap_or_default();

// Update the allowlist and write the addition wasm storage keys per transaction
for (wasm_name, wasm_bytes) in [
(TX_CLAIM_REWARDS_NAME, TX_CLAIM_REWARDS_BYTES),
] {
for (wasm_name, wasm_bytes) in [(TX_CLAIM_REWARDS_NAME, TX_CLAIM_REWARDS_BYTES)] {
let tx_hash = CodeHash::sha256(wasm_bytes);

// make the update idempotent
// make the update idempotent
if current_tx_allowlist.contains(&tx_hash.to_string()) {
continue;
}
Expand Down
15 changes: 15 additions & 0 deletions builder/parameters/shielding-party.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"title": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eget ex id erat interdum dictum vel ac libero. Cras vitae porta velit, vel interdum odio. Phasellus quis sem finibus, luctus neque in, vestibulum lectus. Maecenas at nulla dapibus, condimentum sem vitae, ullamcorper nisi. Pellentesque tristique tempus tellus, nec sollicitudin velit facilisis at. Vivamus porta nibh sit amet eros tempor, vestibulum lacinia est pulvinar. Maecenas libero mauris, blandit sit amet tempus in, elementum quis nunc. ",
"authors": "Bob The Builer <bob@thebuilder.rock>",
"discussions-to": "www.bob-the-builder.forum.rock",
"license": "SPQR",
"abstract": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"motivation": " Vivamus eget ex id erat interdum dictum vel ac libero.",
"details": "Phasellus quis sem finibus, luctus neque in, vestibulum lectus.",
"requires": "-1",
"author": "tnam1qxfj3sf6a0meahdu9t6znp05g8zx4dkjtgyn9gfu",
"voting_start_epoch": 9,
"voting_end_epoch": 18,
"activation_epoch": 25,
"wasm_path": "artifacts/shielding_party.wasm"
}
15 changes: 15 additions & 0 deletions builder/parameters/shielding-reward-party.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"title": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eget ex id erat interdum dictum vel ac libero. Cras vitae porta velit, vel interdum odio. Phasellus quis sem finibus, luctus neque in, vestibulum lectus. Maecenas at nulla dapibus, condimentum sem vitae, ullamcorper nisi. Pellentesque tristique tempus tellus, nec sollicitudin velit facilisis at. Vivamus porta nibh sit amet eros tempor, vestibulum lacinia est pulvinar. Maecenas libero mauris, blandit sit amet tempus in, elementum quis nunc. ",
"authors": "Bob The Builer <bob@thebuilder.rock>",
"discussions-to": "www.bob-the-builder.forum.rock",
"license": "SPQR",
"abstract": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"motivation": " Vivamus eget ex id erat interdum dictum vel ac libero.",
"details": "Phasellus quis sem finibus, luctus neque in, vestibulum lectus.",
"requires": "-1",
"author": "tnam1qxfj3sf6a0meahdu9t6znp05g8zx4dkjtgyn9gfu",
"voting_start_epoch": 9,
"voting_end_epoch": 18,
"activation_epoch": 25,
"wasm_path": "artifacts/shielded_reward_party.wasm"
}
15 changes: 15 additions & 0 deletions builder/parameters/staking-party.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"title": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eget ex id erat interdum dictum vel ac libero. Cras vitae porta velit, vel interdum odio. Phasellus quis sem finibus, luctus neque in, vestibulum lectus. Maecenas at nulla dapibus, condimentum sem vitae, ullamcorper nisi. Pellentesque tristique tempus tellus, nec sollicitudin velit facilisis at. Vivamus porta nibh sit amet eros tempor, vestibulum lacinia est pulvinar. Maecenas libero mauris, blandit sit amet tempus in, elementum quis nunc. ",
"authors": "Bob The Builer <bob@thebuilder.rock>",
"discussions-to": "www.bob-the-builder.forum.rock",
"license": "SPQR",
"abstract": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"motivation": " Vivamus eget ex id erat interdum dictum vel ac libero.",
"details": "Phasellus quis sem finibus, luctus neque in, vestibulum lectus.",
"requires": "-1",
"author": "tnam1qxfj3sf6a0meahdu9t6znp05g8zx4dkjtgyn9gfu",
"voting_start_epoch": 9,
"voting_end_epoch": 18,
"activation_epoch": 25,
"wasm_path": "artifacts/staking_party.wasm"
}
Loading

0 comments on commit ba1e355

Please sign in to comment.