Giter Site home page Giter Site logo

second-state / lity Goto Github PK

View Code? Open in Web Editor NEW
56.0 18.0 20.0 26.92 MB

A rule-based contract-oriented high-level language.

Home Page: https://www.litylang.org/

License: GNU General Public License v3.0

CMake 0.79% C++ 77.66% C 0.06% Shell 1.79% Python 0.21% Batchfile 0.14% Solidity 17.38% Dockerfile 0.04% JavaScript 0.08% Yul 1.85%
lity solidity language

lity's Introduction

Lity

Latest Release Build Status Docs

Lity is an open-source language enhanced from Solidity. With new grammar extension, it is highly optimized for enterprise and easy to use for financial industry developers. The flexible interface and unlimited built-in functions can reduce gas cost and accelerate executing time. You can now encrypt large-sized data in the blink of an eye without running out of gas anymore.

Getting Started

To get started you can find an introduction to the language in the Lity documentation.

The changelog for this project can be found here.

How to Contribute

Contributors Pull Requests

Please see our contribution guidelines in the Lity documentation.

Contact

Issues

Feel free to report bugs, issues, or send a feature request using Github issues.

License

License

See the LICENSE file.

Note

This repository is a fork from Solidity.

lity's People

Contributors

arkpar avatar asinyagin avatar axic avatar bobsummerwill avatar chfast avatar chriseth avatar christianparpart avatar cjentzsch avatar debris avatar denton-l avatar djudjuu avatar ekpyron avatar erak avatar federicobond avatar gavofyork avatar gluk256 avatar hydai avatar jamesray1 avatar lefterisjp avatar leonardoalt avatar lianahus avatar nicolaisoeborg avatar pirapira avatar randomnetcat avatar roadriverrail avatar sifmelcara avatar subtly avatar totoroxd avatar vor0220 avatar winsvega avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lity's Issues

The method personal_newAccount does not exist/is not available

I followed this tutorial to deploy a CMT Travis Mainnet Node. However, after i attached to it and try to create a new account, there is an error occur:

image

unlockAccount() also not working, but cmt.getBlock() works fine.

I tried to attach to the public rpc service that CMT provided: rpc.cybermiles.io:8545 but the same error occur.

There is another issue about attaching to this Travis Console, see here: Issue #19

Any idea how can i fix this ? Thanks.

Error: invalid solidity type!: safeuint

I am getting the following error

> deployedSmartTokenContract.c();
Error: invalid solidity type!: safeuint
    at web3-cmt.js:8993:15
    at web3-cmt.js:9179:16
    at map (<native code>)
    at web3-cmt.js:9178:12
    at web3-cmt.js:9151:25
    at web3-cmt.js:12393:18
    at web3-cmt.js:12416:16
    at apply (<native code>)
    at web3-cmt.js:12540:12
    at <anonymous>:1:1

If I compile and deploy the the contract C and then call its function c as per the example at https://lity.readthedocs.io/en/latest/safeuint.html#example

pragma solidity ^0.4.22;

contract C{
    function c() public pure returns (safeuint) {
        safeuint a = 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
        safeuint b = 0x8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
        return (a*b);
    }
}

EVM version check

Should check EVM version parameter when codegen Lity-only instruction set.

Currently, these functions have never been used.

bool hasENI() const {return *this == lity(); }
bool hasIsValidator() const {return *this == lity(); }
bool hasFreeGas() const {return *this == lity(); }
bool hasRand() const {return *this == lity(); }

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.