-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use versioned gas configuration to modify or add gas entries on-chain (…
…#3063) * Use versioned gas configuration to modify or add gas entries on-chain * cargo clippy * Update the CI file * fix code
- Loading branch information
1 parent
13e2669
commit 5fabab7
Showing
7 changed files
with
129 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
frameworks/rooch-framework/src/natives/gas_parameter/base64.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// Copyright (c) RoochNetwork | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use crate::natives::gas_parameter::native::MUL; | ||
use moveos_stdlib::natives::moveos_stdlib::base64::GasParameters; | ||
|
||
crate::natives::gas_parameter::native::define_gas_parameters_for_natives!(GasParameters, "base64", [ | ||
[.encode.base, optional "encode.base", 1000 * MUL], | ||
[.encode.per_byte, optional "encode.per_byte", 30 * MUL], | ||
[.decode.base, optional "decode.base", 1000 * MUL], | ||
[.decode.per_byte, optional "decode.per_byte", 30 * MUL], | ||
[.encode.base, optional "encode.base", 0], | ||
[.encode.per_byte, optional "encode.per_byte", 0], | ||
[.decode.base, optional "decode.base", 0], | ||
[.decode.per_byte, optional "decode.per_byte", 0], | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters