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

New contracts and tests #4

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c34e757
refactor: :fire: support for sadaiv id
aditipolkam May 9, 2023
0039116
Merge remote branch new-features into new-features
aditipolkam May 9, 2023
2ea2e92
feat: :sparkles: add functions for new structure
aditipolkam May 17, 2023
ebeb3c6
refactor: :fire: contracts with diff logic and write tests
aditipolkam May 20, 2023
03a1a66
refactor: :fire: modify contracts and add backup test
aditipolkam May 20, 2023
7a96384
feat: :clown_face: add owner mapping
aditipolkam May 20, 2023
d1bdd2a
fix: :bug: add new owner function
aditipolkam May 22, 2023
572cb97
refactor: :rotating_light: add deploy script and modify backup contract
aditipolkam May 22, 2023
8d44d6c
docs: :bulb: add comments to describe functions
aditipolkam May 22, 2023
33212c1
fix: :bug: uid for build mapping and add timestamp
aditipolkam May 23, 2023
025084e
feat: :zap: add onlyOwner modifier for adding providers
aditipolkam May 24, 2023
fa11422
perf: :ambulance: emit build hash identifier
aditipolkam May 24, 2023
7ec7f1e
fix: :bug: check if address regsitered before updates
aditipolkam May 24, 2023
7688e06
modify: 🛠️contract for forked repo struct
aditipolkam May 25, 2023
08774bc
removed need of signatures in contracts
tusharojha May 28, 2023
0a16656
upgraded contract with solving infinite gas issue
tusharojha May 29, 2023
5b9602a
fixed bug in contract addProvider
tusharojha May 30, 2023
8eff20a
add scripts
aditipolkam May 31, 2023
b874787
Merge branch 'new-features' of https://github.com/sadaiv-ci/contracts…
aditipolkam May 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: 💡 add comments to describe functions
aditipolkam committed May 22, 2023
commit 8d44d6cd584676eca653d7878f36a37da59085ad
3 changes: 3 additions & 0 deletions contracts/SadaivId.sol
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ contract SadaivId {
event NewProfileChange(string cid);
event NewProvider(uint256 sadaivId, uint256 provider);

//register new user(with scw address) if not already registered
function registerUser(
string memory message,
bytes memory signature,
@@ -45,6 +46,7 @@ contract SadaivId {
emit NewUser(githubId, sadaivId.current(), signer);
}

//function to add new github account ids for a single sadaiv userid
function addProviders(
string memory message,
bytes memory signature,
@@ -64,6 +66,7 @@ contract SadaivId {
emit NewProvider(_sadaivId, _newId);
}

//change the contributor data cid
function changeContributorData(
string memory message,
bytes memory signature,