-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47c61ba
commit 5fd84cc
Showing
84 changed files
with
1,198 additions
and
1,064 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ges/rs-dpp/src/data_contract/document_type/schema/find_identifier_and_binary_paths/mod.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
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
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
4 changes: 2 additions & 2 deletions
4
packages/rs-platform-version/src/version/dpp_versions/dpp_asset_lock_versions/v1.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,10 +1,10 @@ | ||
use versioned_feature_core::FeatureVersionBounds; | ||
use crate::version::dpp_versions::dpp_asset_lock_versions::DPPAssetLockVersions; | ||
use versioned_feature_core::FeatureVersionBounds; | ||
|
||
pub const DPP_ASSET_LOCK_VERSIONS_V1: DPPAssetLockVersions = DPPAssetLockVersions { | ||
reduced_asset_lock_value: FeatureVersionBounds { | ||
min_version: 0, | ||
max_version: 0, | ||
default_current_version: 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
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
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: 9 additions & 0 deletions
9
packages/rs-platform-version/src/version/dpp_versions/dpp_factory_versions/mod.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pub mod v1; | ||
|
||
use versioned_feature_core::FeatureVersion; | ||
|
||
#[derive(Clone, Debug, Default)] | ||
pub struct DPPFactoryVersions { | ||
pub data_contract_factory_structure_version: FeatureVersion, | ||
pub document_factory_structure_version: FeatureVersion, | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/rs-platform-version/src/version/dpp_versions/dpp_factory_versions/v1.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
use crate::version::dpp_versions::dpp_factory_versions::DPPFactoryVersions; | ||
|
||
pub const DPP_FACTORY_VERSIONS_V1: DPPFactoryVersions = DPPFactoryVersions { | ||
data_contract_factory_structure_version: 0, | ||
document_factory_structure_version: 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
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
8 changes: 4 additions & 4 deletions
8
packages/rs-platform-version/src/version/dpp_versions/dpp_method_versions/v1.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,5 +1,5 @@ | ||
use crate::version::dpp_versions::dpp_method_versions::DPPMethodVersions; | ||
pub const DPP_METHOD_VERSIONS_V1 : DPPMethodVersions = DPPMethodVersions { | ||
epoch_core_reward_credits_for_distribution: 0, | ||
daily_withdrawal_limit: 0, | ||
}; | ||
pub const DPP_METHOD_VERSIONS_V1: DPPMethodVersions = DPPMethodVersions { | ||
epoch_core_reward_credits_for_distribution: 0, | ||
daily_withdrawal_limit: 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
13 changes: 7 additions & 6 deletions
13
...-platform-version/src/version/dpp_versions/dpp_state_transition_conversion_versions/v1.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,8 +1,9 @@ | ||
use crate::version::dpp_versions::dpp_state_transition_conversion_versions::DPPStateTransitionConversionVersions; | ||
|
||
pub const STATE_TRANSITION_CONVERSION_VERSIONS_V1: DPPStateTransitionConversionVersions = DPPStateTransitionConversionVersions { | ||
identity_to_identity_create_transition: 0, | ||
identity_to_identity_top_up_transition: 0, | ||
identity_to_identity_withdrawal_transition: 0, | ||
identity_to_identity_create_transition_with_signer: 0, | ||
}; | ||
pub const STATE_TRANSITION_CONVERSION_VERSIONS_V1: DPPStateTransitionConversionVersions = | ||
DPPStateTransitionConversionVersions { | ||
identity_to_identity_create_transition: 0, | ||
identity_to_identity_top_up_transition: 0, | ||
identity_to_identity_withdrawal_transition: 0, | ||
identity_to_identity_create_transition_with_signer: 0, | ||
}; |
13 changes: 7 additions & 6 deletions
13
...-platform-version/src/version/dpp_versions/dpp_state_transition_conversion_versions/v2.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,8 +1,9 @@ | ||
use crate::version::dpp_versions::dpp_state_transition_conversion_versions::DPPStateTransitionConversionVersions; | ||
|
||
pub const STATE_TRANSITION_CONVERSION_VERSIONS_V2: DPPStateTransitionConversionVersions = DPPStateTransitionConversionVersions { | ||
identity_to_identity_create_transition: 0, | ||
identity_to_identity_top_up_transition: 0, | ||
identity_to_identity_withdrawal_transition: 1, | ||
identity_to_identity_create_transition_with_signer: 0, | ||
}; | ||
pub const STATE_TRANSITION_CONVERSION_VERSIONS_V2: DPPStateTransitionConversionVersions = | ||
DPPStateTransitionConversionVersions { | ||
identity_to_identity_create_transition: 0, | ||
identity_to_identity_top_up_transition: 0, | ||
identity_to_identity_withdrawal_transition: 1, | ||
identity_to_identity_create_transition_with_signer: 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
25 changes: 14 additions & 11 deletions
25
...s/rs-platform-version/src/version/dpp_versions/dpp_state_transition_method_versions/v1.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,15 @@ | ||
use crate::version::dpp_versions::dpp_state_transition_method_versions::{PublicKeyInCreationMethodVersions, DPPStateTransitionMethodVersions}; | ||
use crate::version::dpp_versions::dpp_state_transition_method_versions::{ | ||
DPPStateTransitionMethodVersions, PublicKeyInCreationMethodVersions, | ||
}; | ||
|
||
pub const STATE_TRANSITION_METHOD_VERSIONS_V1: DPPStateTransitionMethodVersions = DPPStateTransitionMethodVersions { | ||
public_key_in_creation_methods: PublicKeyInCreationMethodVersions { | ||
from_public_key_signed_with_private_key: 0, | ||
from_public_key_signed_external: 0, | ||
hash: 0, | ||
duplicated_key_ids_witness: 0, | ||
duplicated_keys_witness: 0, | ||
validate_identity_public_keys_structure: 0, | ||
}, | ||
}; | ||
pub const STATE_TRANSITION_METHOD_VERSIONS_V1: DPPStateTransitionMethodVersions = | ||
DPPStateTransitionMethodVersions { | ||
public_key_in_creation_methods: PublicKeyInCreationMethodVersions { | ||
from_public_key_signed_with_private_key: 0, | ||
from_public_key_signed_external: 0, | ||
hash: 0, | ||
duplicated_key_ids_witness: 0, | ||
duplicated_keys_witness: 0, | ||
validate_identity_public_keys_structure: 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
Oops, something went wrong.