Git Product home page Git Product logo

abi2solidity's People

Contributors

dependabot[bot] avatar maxme avatar raburski 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  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

abi2solidity's Issues

Error if import using angular 13/14

'ABI2solidity' is declared but its value is never read.ts(6133) Could not find a declaration file for module 'abi2solidity'. 'C:/Users/GCyber/Desktop/abi2solidity/node_modules/abi2solidity/dist/abi2solidity.js' implicitly has an 'any' type. Try npm i --save-dev @types/abi2solidityif it exists or add a new declaration (.d.ts) file containingdeclare module 'abi2solidity';ts(7016)

CLI or web.

jorge@MacBook-Pro % cat example.json

[
  {
    "constant": false,
    "inputs": [],
    "name": "f",
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "stateMutability": "nonpayable",
    "type": "function"
  }
]

%jorge@MacBook-Pro backendfs % abi2solidity -i example.json -o test.sol
/Users/jorge/.yarn/bin/abi2solidity: line 1: use strict: command not found
/Users/jorge/.yarn/bin/abi2solidity: line 3: syntax error near unexpected token (' /Users/jorge/.yarn/bin/abi2solidity: line 3: var _commander = require('commander');'

Tested with:

jorge@MacBook-Pro backends % node -v
v16.16.0
v14.20.0
and also 18. x (latest)
Monterey 12.4
bash and zsh.

Is this a Typescript, Javascript, or Node.js Package? I Couldn't use it programmatically either and report after I can actually use it on the command line.

EDIT: actually installation is broken, at least global.
We need better documentation. I will contribute whatever I can.

Doesn't work with newer Solidity versions

This library is great, but fails to generate valid ABIs on newer versions of Solidity in various ways, ie not marking functions as payable when appropriate.

Any plans to maintain?

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.