refactor: fees to use version system #2666
Annotations
5 errors and 8 warnings
packages/rs-platform-version/src/version/fee/hashing/mod.rs#L18
error[E0609]: no field `double_sha256_base` on type `&version::fee::hashing::FeeHashingVersion`
--> packages/rs-platform-version/src/version/fee/hashing/mod.rs:18:43
|
18 | Digest::update(&mut hasher, &self.double_sha256_base.to_be_bytes());
| ^^^^^^^^^^^^^^^^^^ unknown field
|
help: a field with a similar name exists
|
18 | Digest::update(&mut hasher, &self.single_sha256_base.to_be_bytes());
| ~~~~~~~~~~~~~~~~~~
|
packages/rs-platform-version/src/version/fee/hashing/mod.rs#L19
error[E0609]: no field `double_sha256_per_block` on type `&version::fee::hashing::FeeHashingVersion`
--> packages/rs-platform-version/src/version/fee/hashing/mod.rs:19:43
|
19 | Digest::update(&mut hasher, &self.double_sha256_per_block.to_be_bytes());
| ^^^^^^^^^^^^^^^^^^^^^^^ unknown field
|
help: a field with a similar name exists
|
19 | Digest::update(&mut hasher, &self.sha256_per_block.to_be_bytes());
| ~~~~~~~~~~~~~~~~
|
packages/rs-platform-version/src/version/fee/hashing/mod.rs#L21
error[E0609]: no field `single_sha256_per_block` on type `&version::fee::hashing::FeeHashingVersion`
--> packages/rs-platform-version/src/version/fee/hashing/mod.rs:21:43
|
21 | Digest::update(&mut hasher, &self.single_sha256_per_block.to_be_bytes());
| ^^^^^^^^^^^^^^^^^^^^^^^ unknown field
|
help: a field with a similar name exists
|
21 | Digest::update(&mut hasher, &self.sha256_per_block.to_be_bytes());
| ~~~~~~~~~~~~~~~~
|
packages/rs-platform-version/src/version/fee/hashing/v1.rs#L3
error[E0063]: missing fields `blake3_base`, `blake3_per_block` and `sha256_ripe_md160_base` in initializer of `version::fee::hashing::FeeHashingVersion`
--> packages/rs-platform-version/src/version/fee/hashing/v1.rs:3:53
|
3 | pub const FEE_HASHING_VERSION1: FeeHashingVersion = FeeHashingVersion {
| ^^^^^^^^^^^^^^^^^ missing `blake3_base`, `blake3_per_block` and `sha256_ripe_md160_base`
|
|
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: mozilla-actions/[email protected], strophy/actions-cache@opendal-update. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
packages/rs-platform-version/src/version/fee/data_contract/mod.rs#L1
warning: unused import: `crate::version::fee::processing::FeeProcessingVersion`
--> packages/rs-platform-version/src/version/fee/data_contract/mod.rs:1:5
|
1 | use crate::version::fee::processing::FeeProcessingVersion;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
packages/rs-platform-version/src/version/fee/hashing/mod.rs#L1
warning: unused import: `crate::version::fee::signature::FeeSignatureVersion`
--> packages/rs-platform-version/src/version/fee/hashing/mod.rs:1:5
|
1 | use crate::version::fee::signature::FeeSignatureVersion;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
packages/rs-platform-version/src/version/fee/processing/mod.rs#L1
warning: unused import: `crate::version::fee::signature::FeeSignatureVersion`
--> packages/rs-platform-version/src/version/fee/processing/mod.rs:1:5
|
1 | use crate::version::fee::signature::FeeSignatureVersion;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
packages/rs-platform-version/src/version/fee/signature/mod.rs#L1
warning: unused import: `crate::version::fee::storage::FeeStorageVersion`
--> packages/rs-platform-version/src/version/fee/signature/mod.rs:1:5
|
1 | use crate::version::fee::storage::FeeStorageVersion;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
packages/rs-platform-version/src/version/fee/state_transition_min_fees/mod.rs#L1
warning: unused import: `crate::version::fee::data_contract::FeeDataContractValidationVersion`
--> packages/rs-platform-version/src/version/fee/state_transition_min_fees/mod.rs:1:5
|
1 | use crate::version::fee::data_contract::FeeDataContractValidationVersion;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
packages/rs-platform-version/src/version/fee/storage/mod.rs#L3
warning: unused import: `sha2::digest::Update`
--> packages/rs-platform-version/src/version/fee/storage/mod.rs:3:5
|
3 | use sha2::digest::Update;
| ^^^^^^^^^^^^^^^^^^^^
|
This job failed
Loading