Code Monkey home page Code Monkey logo

Comments (7)

ElliotFriedman avatar ElliotFriedman commented on June 21, 2024 1

to expand on the assert test for GRACE_PERIOD, all state variables that get set in a constructor or during initialization need to be tested for correctness

from v1-core.

Namaskar-1F64F avatar Namaskar-1F64F commented on June 21, 2024

@ElliotFriedman Did you look into the factory by chance? I forget the context there.

I think it was whether or not using a clone factory with the overhead of each call made sense.

Or maybe it was if it was possible at all. I think @RusseII might have run into trouble deploying at all with the size of our contracts + imports.

from v1-core.

RusseII avatar RusseII commented on June 21, 2024

Or maybe it was if it was possible at all. I think @RusseII might have run into trouble deploying at all with the size of our contracts + imports.

I think the issue was if we did not use the clone factory then the contract size was too large for us to deploy. I think @ElliotFriedman had some issue like this in the past and was going to see if it was possible to deploy the bondFactory + bond code separately to reduce contract size with a regular factory?

from v1-core.

ElliotFriedman avatar ElliotFriedman commented on June 21, 2024

It really should be possible. Try running hardhat contract size on your contracts in their current state, then try doing another run of the contract size after you remove the creation of a new bond token in the factory. The factory bytecode should be smaller after you remove the creation of the new token.

from v1-core.

RusseII avatar RusseII commented on June 21, 2024

@Namaskar-1F64F ready to close this?

from v1-core.

Namaskar-1F64F avatar Namaskar-1F64F commented on June 21, 2024

It really should be possible. Try running hardhat contract size on your contracts in their current state, then try doing another run of the contract size after you remove the creation of a new bond token in the factory. The factory bytecode should be smaller after you remove the creation of the new token.

After removing the bond and the instantiation,

- import "./Bond.sol";
- tokenImplementation = address(new Bond());
+ tokenImplementation = address(0x0);

using hh size-contracts
CleanShot 2022-06-13 at 19 45 50@2x

from v1-core.

ElliotFriedman avatar ElliotFriedman commented on June 21, 2024

Nice!

from v1-core.

Related Issues (20)

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.