Giter VIP home page Giter VIP logo

contract-js's People

Contributors

ankithvijay avatar devpavan04 avatar koshikraj avatar yathishram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

contract-js's Issues

Update the test directories and file names

Description:

Update the file names of SDK and contract tests and place them on different directories

Things to do:

  • Rename the test files and directories
  • Remove the test dependencies by using before, after statements

Expected outcome:

Repeated test runs shouldn't fail.

Update deploy flow to support other networks

Description:

Update the configs and hard hat tasks to support deployments to other networks.

Things to do:

  • Update hardhat.config.js to include all the tenets (Ethereum and Polygon) and mainnet
  • Add generate and account hardhat tasks
  • Update the networks.json to include the deployed addresses

Expected outcome:

Able to deploy the required contracts on testnet

Contract refactor for best practices

Description:

Best practices for security and readability of contracts

Things to do:

  • Add safeMath and secure fund transfer interfaces
  • Add ownable concept
  • Explore upgradeability approaches

Suggestions:

Add safe deprecation and updation feature

Description:

Add safe deprecation and updation feature for the creator.

  • Reject claim creation if the safe is deprecated.
  • Create a single method to update the safe info/ conditions.

Add claim incentive flow

Description:

Add a claim incentive functionality to withdraw partial or entire funds that were assigned after the safe recovery.

Things to do:

  • Map the fund amount to the Safien (guardian) after the safe recovery proof submission
  • Transfer the funds partially or entirely after invoking claimFunds.

Expected outcome:

  • Only guardians should be able to claim their incentives

Create an expiration based claim method

Description:

Create a new expiration-based claim method

  • The claim method will take an expiration time stamp
  • Allow the beneficiary to claim before the expiration time stamp
  • Write new tests for the method

D day based claim method

Description:

A safe claim can be created anytime before the D day but the claim will be passed only on the D day if and only if the D day is not canceled/ updated by the safe creator. The D day can be renewed anytime before the D day by the creator.

Things to do:

  • Update safe creation and claim methods

Rename variable and function names for better readability

Description:

Rename the variables of structs and a few functions

Things to do:

  • Rename claims and Safe struct variable
  • Remove the period concept fo signaling
  • Rename a few functions

Suggestions:

  • Follow best practices for naming

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.