hermeznetwork / contracts Goto Github PK
View Code? Open in Web Editor NEWHermez network protocol smart contracts
Home Page: https://github.com/hermeznetwork/contracts
License: GNU General Public License v3.0
Hermez network protocol smart contracts
Home Page: https://github.com/hermeznetwork/contracts
License: GNU General Public License v3.0
Write specification and implementation regarding how to manage proporly the state root upgrade.
updateRoot
which should be called N times, depending on current account numbers and maximum accocunt that the circuit can handleupdateBatchNumber
< updateBatchNumber
Apply proper changes to hermez contract to support the following new features:
The condition checking if it has an address in the config file, is missing.
In the deployment script, it's deployed with a proxy.
It should be deployed directly because it must not be upgradable.
Hi, would it be possible to release a GitHub package with the repository?
The main motivation would be to allow other devs to consume the contracts as a package.json dependency.
Something similar to:
npm install @hermeznetwork/[email protected]
or
"@hermeznetwork/contracts": "^1.0.0"
More info on how to do this: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry
Best,
Galimba
Add functionalities to Rollup.sol
contract to support massive migration features
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:
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
.
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.
Research best MAX_TOKEN_WITHDRAW
Hi,
Trying to deploy smart contract on localnetwork(ganache). But unable to deploy a contract.
How to deploy a contract?
I tried below smart contract:
https://goerli.etherscan.io/address/0x9926b1681b6C94A7De9472a93Db397Fee868cE7d#code
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.