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

Capped set solidity#9

Open
danielNg25 wants to merge 1 commit intoklaytn:mainfrom
danielNg25:feature/capped_set
Open

Capped set solidity#9
danielNg25 wants to merge 1 commit intoklaytn:mainfrom
danielNg25:feature/capped_set

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
Contributor

@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