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

feat: concept for accounting on ai agent mechs when staking #128

Merged
merged 14 commits into from
Oct 18, 2023

Conversation

kupermind
Copy link
Collaborator

@kupermind kupermind commented Oct 13, 2023

  • Accounting for AI agent mechs specifics when staking services interacting with them.

@kupermind kupermind requested review from 77ph and mariapiamo October 13, 2023 18:54
@@ -161,13 +163,14 @@ abstract contract ServiceStakingBase is ERC721TokenReceiver, IErrorsRegistries {

/// @dev ServiceStakingBase constructor.
/// @param _stakingParams Service staking parameters.
/// @param _numNonces Number of service multisig nonces depending on implementation.
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure I follow why we need this

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, I see below..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Refactored, no need for that now.

nonces[1] = IAgentMech(agentMech).getRequestsCount(multisig);
}

/// @dev Checks if the service multisig liveness ratio passes the defined liveness threshold.
Copy link
Contributor

Choose a reason for hiding this comment

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

Docstring could explain what exactly liveness means in this context / implementation

function getRequestsCount(address account) external view returns (uint256 requestsCount);
}

/// @title ServiceStakingMechAgentNativeToken - Smart contract for staking a service with the service interacting wiht
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// @title ServiceStakingMechAgentNativeToken - Smart contract for staking a service with the service interacting wiht
/// @title ServiceStakingMechAgentNativeToken - Smart contract for staking a service with the service interacting with

@kupermind kupermind changed the title feat: concept for accounting on ai registry mechs when staking feat: concept for accounting on ai agent mechs when staking Oct 13, 2023
@kupermind kupermind merged commit 431f5b0 into main Oct 18, 2023
2 checks passed
@kupermind kupermind deleted the agent_mech_modification branch October 18, 2023 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants