Comparing version 0.0.11 to 0.0.12
@@ -32,4 +32,6 @@ let fs = require("fs"); | ||
let config_path = usingPathArg ? path.dirname(config) : __dirname; | ||
let config_path = usingPathArg ? path.dirname(config) : process.cwd(); | ||
console.log('config_path in abi2oas: ',config_path); | ||
let contract_path = path.resolve(config_path, this.config.contract); | ||
console.log('resulting contract_path in abi2oas: ',contract_path); | ||
this.contract = JSON.parse(fs.readFileSync(contract_path)); //cs = contract_schema | ||
@@ -36,0 +38,0 @@ } |
{ | ||
"name": "abi2oas", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Ingests a smart contract's ABI and autogenerates an OpenAPI JSON, ready for Swagger codegen.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -98,6 +98,6 @@ # abi2oas | ||
### Short-Term | ||
-[x] Fix autogen to use GET or POST based on whether the function is `constant`, not whether it has inputs or outputs. | ||
-[x] User-friendly CLI interaction via commander | ||
-[] Check that the static `convert` method is working when imported to another npm package. | ||
-[x] Fix autogen to use GET or POST based on whether the function is `constant`, not whether it has inputs or outputs. | ||
-[] Add default definitions for Ethereum primitive types other than address & receipt | ||
-[] User-friendly CLI interaction via commander | ||
-[] Write tests for a variety of contracts | ||
@@ -104,0 +104,0 @@ |
43573
856