maxme / abi2solidity Goto Github PK
View Code? Open in Web Editor NEWConvert an ABI to a solidity interface
Convert an ABI to a solidity interface
'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 containing
declare module 'abi2solidity';ts(7016)
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.