Giter Club home page Giter Club logo

hangman's Introduction

Plutus Pioneer Program | 3P C3

https://cabal.readthedocs.io/en/latest/getting-started.html

https://www.cis.upenn.edu/~cis194/spring13/lectures.html

Week #1

Enter a nix-shell. Build the English Auction contract with cabal build (you may need to run cabal update first). Go to the plutus-playground-client folder in the plutus-apps repository. Start the Playground server with plutus-playground-server. Start the Playground client (in another nix-shell) with npm start. Copy-paste the auction contract into the Playground editor, do not forget to remove the module header. Compile.

Week #2

a. Fix and complete the code in the Homework1 module.

b. Fix and complete the code in the Homework2 module.

Week #3

Week #4

Playground mocks

cabal repl


-- to determine wallet info

import Wallet.Emulator

mockWalletPaymentPubKeyHash $ knownWallet 1 -- a2c20c77887ace1cd986193e4e75babd8993cfd56995cd5cfce609c2

mockWalletPaymentPubKeyHash $ knownWallet 2 -- 80a4f45b56b88d1139da23bc4c3c75ec6d32943c087f250b86193ca7

mockWalletPaymentPubKeyHash $ knownWallet 3 -- 2e0ad60c3207248cecd47dbde3d752e0aad141d6b8f81ac2c6eca27c


-- to determine POSIX time of slots in the playground

import Ledger.Time import Ledger.TimeSlot import Data.Default

slotToBeginPOSIXTime def 10 -- 1596059101000 slotToBeginPOSIXTime def 20 -- 1596059111000

Some Plutus Modules

  • Ledger.Scripts, contains functions related to untyped Plutus scripts.
  • Ledger.Typed.Scripts, contains functions related to typed Plutus scripts.
  • Plutus.V1.Ledger.Interval, contains the definition of intervals and functions for working with them.
  • Plutus.V1.Ledger.Time, contains time-related types and functions.
  • PlutusTx, contains important types like Data and BuiltinData.
  • PlutusTx.IsData.Class, contains the ToData and FromData classes and related functions.
  • Wallet.Emulator, contains types and functions for dealing with wallets.

Additional Resources

hangman's People

Contributors

dmjio avatar

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.