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

RING DAO part.1 #1543

Merged
merged 24 commits into from
Aug 13, 2024
Merged

RING DAO part.1 #1543

merged 24 commits into from
Aug 13, 2024

Conversation

AurevoirXavier
Copy link
Member

@AurevoirXavier AurevoirXavier commented Jul 19, 2024

Part of #1395.

  • Disable lock/stake calls.

@AurevoirXavier AurevoirXavier added S-Need Audit PR contains changes to fund-managing logic that should be properly reviewed and externally audited C-EVM [Component] Something about EVM C-Pallet [Component] Something about pallet C-Runtime [Component] Something about runtime labels Aug 1, 2024
@AurevoirXavier AurevoirXavier marked this pull request as ready for review August 2, 2024 06:41
Signed-off-by: Xavier Lau <[email protected]>
pallet/deposit/Cargo.toml Outdated Show resolved Hide resolved
precompile/deposit/src/mock.rs Show resolved Hide resolved
@AurevoirXavier AurevoirXavier added S-Audited [Security] Audited and removed S-Need Audit PR contains changes to fund-managing logic that should be properly reviewed and externally audited labels Aug 8, 2024

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@AurevoirXavier AurevoirXavier merged commit 9b61a4c into main Aug 13, 2024
4 checks passed
@AurevoirXavier AurevoirXavier deleted the xavier/r branch August 13, 2024 02:50
Copy link

Check 7a2e09b crab-dev

Check runtime version

Check runtime storage

Copy link

Check 7a2e09b koi-dev

Check runtime version

Check runtime storage

Pallet DarwiniaStaking
+ Entry: StorageEntryMetadata { name: "CollatorsCache0", modifier: Default, ty: Plain(UntrackedSymbol { id: 43, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" Exposure cache 0."] }
+ Entry: StorageEntryMetadata { name: "CollatorsCache1", modifier: Default, ty: Plain(UntrackedSymbol { id: 43, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" Exposure cache 1."] }
+ Entry: StorageEntryMetadata { name: "CollatorsCache2", modifier: Default, ty: Plain(UntrackedSymbol { id: 43, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" Exposure cache 2."] }
+ Entry: StorageEntryMetadata { name: "CollatorsCacheState", modifier: Default, ty: Plain(UntrackedSymbol { id: 372, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 1, 2], docs: [" Collator cache state.", "", " To avoid extra DB RWs during new session, such as:", " ```nocompile", " previous = current;", " current = next;", " next = elect();", " ```", "", " Now, with data:", " ```nocompile", " cache1 == previous;", " cache2 == current;", " cache3 == next;", " ```", " Just need to shift the marker and write the storage map once:", " ```nocompile", " mark(cache3, current);", " mark(cache2, previous);", " mark(cache1, next);", " cache1 = elect();", " ```"] }
+ Entry: StorageEntryMetadata { name: "ExposureCacheStates", modifier: Default, ty: Plain(UntrackedSymbol { id: 372, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 1, 2], docs: [" Exposure cache states.", "", " To avoid extra DB RWs during new session, such as:", " ```nocompile", " previous = current;", " current = next;", " next = elect();", " ```", "", " Now, with data:", " ```nocompile", " cache1 == previous;", " cache2 == current;", " cache3 == next;", " ```", " Just need to shift the marker and write the storage map once:", " ```nocompile", " mark(cache3, current);", " mark(cache2, previous);", " mark(cache1, next);", " cache1 = elect();", " ```"] }
- Entry: StorageEntryMetadata { name: "ExposureCacheStates", modifier: Default, ty: Plain(UntrackedSymbol { id: 372, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 1, 2], docs: [" Exposure cache states.", "", " To avoid extra DB RWs during new session, such as:", " ```nocompile", " previous = current;", " current = next;", " next = elect();", " ```", "", " Now, with data:", " ```nocompile", " cache1 == previous;", " cache2 == current;", " cache3 == next;", " ```", " Just need to shift the marker and write the storage map once:", " ```nocompile", " mark(cache3, current);", " mark(cache2, previous);", " mark(cache1, next);", " cache1 = elect();", " ```"] }
- Entry: StorageEntryMetadata { name: "KtonRewardDistributionContract", modifier: Default, ty: Plain(UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }), default: [109, 111, 100, 108, 100, 97, 47, 115, 116, 97, 107, 105, 0, 0, 0, 0, 0, 0, 0, 0], docs: [" KTON reward distribution contract address."] }
+ Entry: StorageEntryMetadata { name: "KtonStakingContract", modifier: Optional, ty: Plain(UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" KTON staking contract address."] }
+ Entry: StorageEntryMetadata { name: "MigrationStartPoint", modifier: Default, ty: Plain(UntrackedSymbol { id: 6, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], docs: [" Migration start point."] }
+ Entry: StorageEntryMetadata { name: "RingStakingContract", modifier: Optional, ty: Plain(UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [" RING staking contract address."] }

Pallet Deposit
+ Entry: StorageEntryMetadata { name: "DepositContract", modifier: Optional, ty: Plain(UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }), default: [0], docs: [] }

Copy link

Check 7a2e09b darwinia-dev

Check runtime version

Check runtime storage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-EVM [Component] Something about EVM C-Pallet [Component] Something about pallet C-Runtime [Component] Something about runtime S-Audited [Security] Audited
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants