Skip to content
Snippets Groups Projects
Commit 8eabfe5f authored by vjrj's avatar vjrj
Browse files

duniter polkadart code updated

parent 54e75742
No related branches found
No related tags found
No related merge requests found
...@@ -60,9 +60,9 @@ class Queries { ...@@ -60,9 +60,9 @@ class Queries {
valueCodec: _i5.BoolCodec.codec, valueCodec: _i5.BoolCodec.codec,
); );
final _i1.StorageValue<int> _currentPoolIndex = const _i1.StorageValue<int>( final _i1.StorageValue<int> _currentPeriodIndex = const _i1.StorageValue<int>(
prefix: 'Distance', prefix: 'Distance',
storage: 'CurrentPoolIndex', storage: 'CurrentPeriodIndex',
valueCodec: _i5.U32Codec.codec, valueCodec: _i5.U32Codec.codec,
); );
...@@ -163,15 +163,15 @@ class Queries { ...@@ -163,15 +163,15 @@ class Queries {
return false; /* Default */ return false; /* Default */
} }
/// The current evaluation pool index. /// The current evaluation period index.
_i6.Future<int> currentPoolIndex({_i1.BlockHash? at}) async { _i6.Future<int> currentPeriodIndex({_i1.BlockHash? at}) async {
final hashedKey = _currentPoolIndex.hashedKey(); final hashedKey = _currentPeriodIndex.hashedKey();
final bytes = await __api.getStorage( final bytes = await __api.getStorage(
hashedKey, hashedKey,
at: at, at: at,
); );
if (bytes != null) { if (bytes != null) {
return _currentPoolIndex.decodeValue(bytes); return _currentPeriodIndex.decodeValue(bytes);
} }
return 0; /* Default */ return 0; /* Default */
} }
...@@ -212,9 +212,9 @@ class Queries { ...@@ -212,9 +212,9 @@ class Queries {
return hashedKey; return hashedKey;
} }
/// Returns the storage key for `currentPoolIndex`. /// Returns the storage key for `currentPeriodIndex`.
_i7.Uint8List currentPoolIndexKey() { _i7.Uint8List currentPeriodIndexKey() {
final hashedKey = _currentPoolIndex.hashedKey(); final hashedKey = _currentPeriodIndex.hashedKey();
return hashedKey; return hashedKey;
} }
......
...@@ -342,10 +342,10 @@ class Constants { ...@@ -342,10 +342,10 @@ class Constants {
final int validationPeriod = 876600; final int validationPeriod = 876600;
/// The period before which an identity that lost membership is automatically revoked. /// The period before which an identity that lost membership is automatically revoked.
final int autorevocationPeriod = 5259600; final int autorevocationPeriod = 438300;
/// The period after which a revoked identity is removed and the keys are freed. /// The period after which a revoked identity is removed and the keys are freed.
final int deletionPeriod = 52596000; final int deletionPeriod = 438300;
/// The minimum duration between two owner key changes to prevent identity theft. /// The minimum duration between two owner key changes to prevent identity theft.
final int changeOwnerKeyPeriod = 100800; final int changeOwnerKeyPeriod = 100800;
......
...@@ -792,8 +792,8 @@ class Constants { ...@@ -792,8 +792,8 @@ class Constants {
/// The weight of runtime database operations the runtime can invoke. /// The weight of runtime database operations the runtime can invoke.
final _i25.RuntimeDbWeight dbWeight = _i25.RuntimeDbWeight( final _i25.RuntimeDbWeight dbWeight = _i25.RuntimeDbWeight(
read: BigInt.from(17872000), read: BigInt.from(21040000),
write: BigInt.from(109046000), write: BigInt.from(104032000),
); );
/// Get the chain's in-code version. /// Get the chain's in-code version.
...@@ -801,7 +801,7 @@ class Constants { ...@@ -801,7 +801,7 @@ class Constants {
specName: 'gdev', specName: 'gdev',
implName: 'duniter-gdev', implName: 'duniter-gdev',
authoringVersion: 1, authoringVersion: 1,
specVersion: 803, specVersion: 900,
implVersion: 1, implVersion: 1,
apis: [ apis: [
_i19.Tuple2<List<int>, int>( _i19.Tuple2<List<int>, int>(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment