Giter Club home page Giter Club logo

Comments (3)

VictorCMiraldo avatar VictorCMiraldo commented on September 2, 2024

The relevant functions we might need are at: https://github.com/input-output-hk/plutus-apps/blob/main/plutus-contract/src/Plutus/Contract/Request.hs

from cooked-validators.

VictorCMiraldo avatar VictorCMiraldo commented on September 2, 2024

#45 closes this

from cooked-validators.

VictorCMiraldo avatar VictorCMiraldo commented on September 2, 2024

For documentation's sake:

As of merging #45, time management closely follows that of plutus-contract. The reason being that we want to provide an instance of MonadMockChain (Contract w s e) and its impossible to retrieve the SlotConfig from within the contract monad.

Ok... its not impossible... we can observe the slot config by waitNSlots 1, then recording the current time t0, then repeating this and getting t1. Now we could do some linear extrapolation and find out SlotConfig. I'm not sure its worthwhile to do all of this.

from cooked-validators.

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.