Skip to content

feat: Gigahdx #1445

Open
enthusiastmartin wants to merge 39 commits into
masterfrom
gigahdx-lock
Open

feat: Gigahdx #1445
enthusiastmartin wants to merge 39 commits into
masterfrom
gigahdx-lock

Conversation

@enthusiastmartin
Copy link
Copy Markdown
Member

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Crate versions that have not been updated:

  • pallet-staking: v4.3.1

New crates:

  • pallet-gigahdx: v0.1.1
  • pallet-gigahdx-rewards: v0.1.0
  • pallet-evm-precompile-lock-manager: v1.0.0

Crate versions that have been updated:

  • primitives: v6.3.0 -> v6.4.0
  • hydradx-runtime: v420.0.0 -> v422.0.0
  • hydradx-traits: v4.7.1 -> v4.8.0

Crate versions that have been downgraded:

  • runtime-integration-tests: v1.86.0 -> v1.85.0

Runtime version has been increased.

Comment thread runtime/hydradx/src/assets.rs Outdated
Comment thread pallets/gigahdx/src/lib.rs Outdated
Comment thread runtime/hydradx/src/assets.rs Outdated
Comment thread pallets/gigahdx/src/lib.rs Outdated
Comment thread pallets/gigahdx/src/lib.rs Outdated
Comment thread precompiles/lock-manager/src/lib.rs
Comment thread runtime/hydradx/src/gigahdx.rs Outdated
Comment thread runtime/hydradx/src/gigahdx.rs Outdated
Comment thread pallets/gigahdx/src/lib.rs
@github-actions
Copy link
Copy Markdown

Quick benchmark at commit 26cf4f5 has been executed successfully.
View results

/// tuple adapter alongside any other consumer (typically staking).
pub struct VotingHooksImpl<T>(PhantomData<T>);

impl<T: Config> VotingHooks<T::AccountId, ReferendumIndex, Balance> for VotingHooksImpl<T> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we added this, i think we should not forget to regenerate benchmark weights for pallet_conviction_voting.

);

let total = PendingRewards::<T>::take(&who);
ensure!(total > 0, Error::<T>::NoPendingRewards);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't we need to check here if the total is bigger than MinStake?

Because we do the following in the beginning of giga_stake

ensure!(amount >= T::MinStake::get(), Error::<T>::BelowMinStake);

But we dont have such validation in do_stake, so basically we would allow here doing staking with below min stake.

Edit: I also found the same min check in migrate

return;
}

let _ = maybe_allocate_and_record::<T>(who, ref_index, &record);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we silently swallow the error.

At least we could add a debug assert and log here so we ensure it never happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants