Git Product home page Git Product logo

Comments (5)

SilentCicero avatar SilentCicero commented on June 23, 2024

I think I would like to leverage more dot notation here.

mstruct Something( someVar: uint256 )

Something.someVar.get(memPtr)

We can make a very small change to Yul+ to add this clarity here.

As for other selector methods, yes, I'm fine with changing it to getXThing vs selectXThing

The mstruct change along with the selector change should make getters more consistent across the board.

Can you expand on what you mean by stateElement here?

Fine with adding distinct Ptr suffix until we get mem pointer types and types in Yul+.

from fuel-v1-contracts.

adlerjohn avatar adlerjohn commented on June 23, 2024

Can you expand on what you mean by stateElement here?

State element as in, a UTXO, a deposit, or a root [UTXO]. These aren't part of an inclusion proof, and so should be named distinctly.

from fuel-v1-contracts.

SilentCicero avatar SilentCicero commented on June 23, 2024
  • token -> tokenId where tokenId is used in all structs / events (e.e. Deposit) etc.

from fuel-v1-contracts.

SilentCicero avatar SilentCicero commented on June 23, 2024
  • amount -> value or a consistent use of either term value or amount.

Suggestion: amount for proofs (i.e. UTXO / Deposit), value for everything else.

from fuel-v1-contracts.

adlerjohn avatar adlerjohn commented on June 23, 2024

Closing in favor of rewriting contracts for future versions in Solidity.

from fuel-v1-contracts.

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.