Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: CashScript/cashscript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: CashScript/cashscript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: simplification
Choose a head ref
  • 14 commits
  • 28 files changed
  • 1 contributor

Commits on May 12, 2020

  1. Add optimisations

    - Use NUMEQUALVERIFY for the final function in a contract
    - Only drop final OP_VERIFY if remaining stack < 5
    - Calculate byte size for OP_RETURN output HexLiterals
      so this does not need to be done by the script
    - Update fixtures
    rkalis committed May 12, 2020
    Configuration menu
    Copy the full SHA
    3b94084 View commit details
    Browse the repository at this point in the history
  2. Add start of OperationSimulation

    - UnaryOp and BinaryOp can now be simulated if all operands are literals
    - bitcoin-ts is used for this simulation so it's executed as it would be in practice
    rkalis committed May 12, 2020
    Configuration menu
    Copy the full SHA
    d4c0089 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b5a3938 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    014dded View commit details
    Browse the repository at this point in the history
  5. Small changes

    - Re-order OperationSimulations.ts
    - Remove GlobalFunction.REQUIRE as it's unused
    rkalis committed May 12, 2020
    Configuration menu
    Copy the full SHA
    6facd03 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8c13f32 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d41f874 View commit details
    Browse the repository at this point in the history
  8. Update boolean decoding

    - Used to only treat numeric 0 as false
    - Now treats any 0 value as false
    rkalis committed May 12, 2020
    Configuration menu
    Copy the full SHA
    982d1c7 View commit details
    Browse the repository at this point in the history
  9. Refactor OptimisationSimulation

    - Generalised across types
    rkalis committed May 12, 2020
    Configuration menu
    Copy the full SHA
    1a0baf4 View commit details
    Browse the repository at this point in the history
  10. Add simulation of SizeOp

    rkalis committed May 12, 2020
    Configuration menu
    Copy the full SHA
    6afe219 View commit details
    Browse the repository at this point in the history
  11. Add simulation of casting

    rkalis committed May 12, 2020
    Configuration menu
    Copy the full SHA
    8a9ef04 View commit details
    Browse the repository at this point in the history
  12. Allow Blocks to be used as Statements

    - This is a prerequisite for simplification of (among others) if-statements
    - Make list of statements required (it was already de facto so)
    - [Code generation] Move scope depth tracking and scope cleanup
      to BlockNode rather than BranchNode
    rkalis committed May 12, 2020
    Configuration menu
    Copy the full SHA
    e7b9960 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    598fec4 View commit details
    Browse the repository at this point in the history
  14. Finalise OperationSimulations

    - Add applySplitAndIndex
    - Add applyRequire
    - Instantiation simplification will be done in the code generation
      due to complexity and partial simplification
    rkalis committed May 12, 2020
    Configuration menu
    Copy the full SHA
    62523c1 View commit details
    Browse the repository at this point in the history
Loading