Giter VIP home page Giter VIP logo

flipkart-hackathon's Introduction

FungibleToken.sol (ERC20 Token Contract):

  1. Use: Acts as a digital currency bank.
  2. Functionality: Keeps track of how much of a specific digital currency each person holds.
  3. Interaction: Other contracts interact with this contract to add or subtract the currency from individuals' accounts.

ContractA.sol:

  1. Use: Acts as a helper to transfer funds and create new funds.
  2. Functionality: Coordinates transactions to give currency to individuals and generate new currency simultaneously.
  3. Interaction: Communicates with the FungibleToken contract to deduct funds from one account and transfer them to another, and also communicates with ContractB to create new funds and add them to the FungibleToken contract.

ContractB.sol:

  1. Use: Generates new units of the digital currency (tokens).
  2. Functionality: Creates additional currency units and adds them to the FungibleToken contract's balance.
  3. Interaction: Receives requests from ContractA to generate new currency and contributes these newly generated funds to the FungibleToken contract, increasing the total available balance.

Interaction Sequence:

  1. You request ContractA to transfer funds and generate new funds.
  2. ContractA communicates with FungibleToken to transfer funds from one account to another.
  3. Concurrently, ContractA communicates with ContractB to generate new funds.
  4. ContractB creates new currency units and adds them to the FungibleToken contract.
  5. The overall process ensures that existing funds are transferred and new funds are created, and coordinated by ContractA and ContractB.

This interaction ensures a synchronized flow of existing and new funds, managed by the helper (ContractA) and the fund generator (ContractB), both contributing to the FungibleToken contract's balance.

flipkart-hackathon's People

Contributors

rajat-gith avatar ronyrohit avatar rohit-kumar12 avatar

Watchers

 avatar

Forkers

rajat-gith

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.