Skip to content
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

feat: evm fee in other currencies #763

Merged
merged 43 commits into from
Mar 4, 2024
Merged

feat: evm fee in other currencies #763

merged 43 commits into from
Mar 4, 2024

Conversation

enthusiastmartin
Copy link
Contributor

This PR adds support to pay evm fee in account's fee payment see which user sets using multi-transaction-payment-pallet.

@enthusiastmartin enthusiastmartin changed the title Feat/evm multi currency feat: evm fee in other currencies Feb 15, 2024
Copy link

github-actions bot commented Feb 15, 2024

Crate versions that have been updated:

  • runtime-integration-tests: v1.19.5 -> v1.19.6
  • pallet-transaction-multi-payment: v9.3.0 -> v9.3.1
  • hydradx-adapters: v1.2.3 -> v1.2.4
  • hydradx-runtime: v219.0.0 -> v220.0.0
  • hydradx-traits: v3.0.0 -> v3.0.1

Runtime version has been increased.

@enthusiastmartin enthusiastmartin marked this pull request as ready for review February 27, 2024 10:45
runtime/adapters/src/price.rs Outdated Show resolved Hide resolved
runtime/adapters/src/price.rs Outdated Show resolved Hide resolved
runtime/hydradx/src/evm/evm_fee.rs Outdated Show resolved Hide resolved
runtime/hydradx/src/evm/runner.rs Show resolved Hide resolved
traits/src/lib.rs Outdated Show resolved Hide resolved
traits/src/lib.rs Outdated Show resolved Hide resolved
runtime/hydradx/src/evm/mod.rs Outdated Show resolved Hide resolved
runtime/hydradx/src/evm/mod.rs Outdated Show resolved Hide resolved
runtime/hydradx/src/evm/runner.rs Show resolved Hide resolved
@@ -130,6 +122,8 @@ parameter_types! {
/// The amount of gas per storage (in bytes): BLOCK_GAS_LIMIT / BLOCK_STORAGE_LIMIT
/// The current definition of BLOCK_STORAGE_LIMIT is 40 KB, resulting in a value of 366.
pub GasLimitStorageGrowthRatio: u64 = 366;

pub const OracleEvmPeriod: OraclePeriod = OraclePeriod::LastBlock;
Copy link
Member

Choose a reason for hiding this comment

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

this should be the same as period used to determine substrate multipayment fees (short)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

@mrq1911 mrq1911 merged commit 27160ca into master Mar 4, 2024
4 checks passed
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.

3 participants