Skip to content

Commit

Permalink
Merge pull request #12 from unicef/release/20231012
Browse files Browse the repository at this point in the history
changes between 20230922 to 20231012
  • Loading branch information
dappsar authored Oct 12, 2023
2 parents de6d52a + 08648da commit fcc833a
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 1,075 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,15 @@ slither .

When deploying the handler contract:

- Update the 'env' variables in both the frontend and backend with new SC address.
- Update the handler contract address in settings table in database.
- Update the ABI code of the handler to both the frontend and backend.
- Add the user scheduler's wallet as an owner.
- Add the user admin's wallet as an owner.
- Call the 'addSupportedToken' function with the address of the GIGA ERC20 Token.
- Increase the allowance in the ERC20 Token contract for the handler's address.


## TODO (Improvements)

- Separate data logic into two smart contracts.
- Maintain history of smart contract implementations (logic and data) to have the physical contract + SC relationship (due to changes in the ABI).
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract GigacountsContractHandlerV6 {
contract GigacountsContractHandler {
address public owner;
mapping(address => bool) public owners;
uint8 totalSupportedTokens;
Expand Down Expand Up @@ -59,6 +59,7 @@ contract GigacountsContractHandlerV6 {
checkHowCandSendFunds = false;
checkHowCanReceiveFunds = false;
totalSupportedTokens = 0;
locked = false;
}

modifier onlyOwner() {
Expand Down
30 changes: 0 additions & 30 deletions contracts/GigacountsContractHandlerV0.sol

This file was deleted.

51 changes: 0 additions & 51 deletions contracts/GigacountsContractHandlerV1.sol

This file was deleted.

190 changes: 0 additions & 190 deletions contracts/GigacountsContractHandlerV2.sol

This file was deleted.

Loading

0 comments on commit fcc833a

Please sign in to comment.