Giter VIP home page Giter VIP logo

contracts's People

Contributors

davidsrz avatar druiz0992 avatar ed255 avatar eduadiez avatar invocamanman avatar jbaylina avatar krlosmata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

contracts's Issues

Define a event criteria

There should be a consistent criteria for using or not events.
Right now, some events are necessary in order to synchronize and forge blocks as:
event ForgeBatch
event L1UserTxEvent

Others like event UpdateFeeAddToken are only usefull to track all previous changes.
But not all the state variables that can be updated have and event to notify them.
So there's 2 options:

  • Emit events only when are necessary in order to synchronize and forge blocks
  • Also add events for every state variable that can be update

bootCoordinator URL

As far as I know, there's no way to obtain the bootCoordinator URL. But clients need it in order to send l2txs when a slot hasn't been bid.
I think it would be interesting to have the bootCoordinatorURL as a public variable, with an associated event when it's updated.

max contract size exceed

I am deploying hermez by using localDeploy.js , but this error appears.
I used to my private Ethereum blockchain (not ganache).

Here is the error.
image

How can I solve this problem?
Thank you.

Set global variable: MAX_FEE_TX

I think it would be better to set up a global variable MAX_FEE_TX which determines the total number of fee transactions that the protocol can handle. It is directly related with the length of idx where the coordinator could receive the accumulated fees.

The first version sets this number to 64 fee transactions as it is coded in the next line: https://github.com/hermeznetwork/contracts/blob/master/contracts/hermez/Hermez.sol#L894

I think we should make this parameter a global variable in the contract as it is done with _MAX_L1_TX.

upgrade state-root

Write specification and implementation regarding how to manage proporly the state root upgrade.

First draft

  • Stop rollup features until root is fully upgraded
  • Add function updateRoot which should be called N times, depending on current account numbers and maximum accocunt that the circuit can handle
  • add necessary information in events, so data could be synchronized
  • increase batch number by 1, which would set the updateBatchNumber
  • maintain old functionalities if batch number is < updateBatchNumber

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.