Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rebased with latest condor-rc branch, refactored HowTo #390

Closed
wants to merge 4 commits into from

Conversation

cnorburn
Copy link
Collaborator

No description provided.

@cnorburn cnorburn requested a review from meywood February 10, 2025 09:59
meywood
meywood previously approved these changes Feb 14, 2025
@meywood meywood dismissed their stale review February 14, 2025 13:40

Conflicts not resolved

Copy link
Collaborator

@meywood meywood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve conlicts

@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
@JsonSubTypes.Type(value = DelegatorKindPurse.class, name = "Purse"),
@JsonSubTypes.Type(value = DelegatorKindPublicKey.class, name = "PublicKey")})
public interface DelegatorKind {}
public class DelegatorKind extends SeigniorageAllocation {
Copy link
Collaborator

@meywood meywood Feb 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you adding these fields to DelegatorKind it does not implement these in the Rust code. There are 2 different DelegatorKind enums in the rust codebase. The original needs to stay as it and a new delegator kind placeholder creating for the top level one.

 /// Info about a seigniorage allocation for a delegator
    DelegatorKind {
        /// Delegator kind
        delegator_kind: DelegatorKind,
        /// Validator's public key
        validator_public_key: PublicKey,
        /// Allocated amount
        amount: U512,
    },

@meywood meywood linked an issue Feb 17, 2025 that may be closed by this pull request
@meywood meywood added this to the Condor milestone Feb 17, 2025
@meywood meywood self-requested a review February 17, 2025 17:16
@meywood
Copy link
Collaborator

meywood commented Feb 18, 2025

Please ensure all unit tests are passing

Copy link
Collaborator

@meywood meywood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit tests are failing. Bring upto date with condor-rc and fix tests in error

@Test
void validateGetStateEntityAccountCondor() throws IOException {

final String inputJson = getPrettyJson(loadJsonFromFile("entity/getstateentity-account-condor-test.json"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't find this test resource "entity/getstateentity-account-condor-test.json"

@meywood
Copy link
Collaborator

meywood commented Feb 20, 2025

This was reworked in PR #393 #393 so closing this PR

@meywood meywood closed this Feb 20, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Extend StateEntity for Condor
2 participants