Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Capped set solidity #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danielNg25
Copy link

An implementation of Capped set in solidity:
Each "element" in the set is a pair: an address and a value.
When the set gets too big (i.e., it reaches its max), it should boot out the element with the lowest
value.
Its constructor takes an argument numElements that represents the maximum number of
elements that can be in the set.

Copy link
Collaborator

@zxstim zxstim left a comment

Choose a reason for hiding this comment

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

Please remove all files except:

  1. contracts (only the necessary contracts to make the implementation work)
  2. tests
  3. scripts (deployments, interactions, etc.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants