abi-wan-kanabi
Advanced tools
Comparing version 2.1.0-rc.3 to 2.1.0-rc.4
@@ -53,3 +53,3 @@ #!/usr/bin/env node | ||
return `import { Contract, RpcProvider, constants } from 'starknet'; | ||
import { ABI } from './abi'; | ||
import { ABI } from './${module}'; | ||
@@ -63,2 +63,6 @@ async function main() { | ||
console.log("version", version) | ||
// Abiwan is now successfully installed, just start writing your contract | ||
// function calls (\`const ret = contract.your_function()\`) and you'll get | ||
// helpful editor autocompletion, linting errors ... | ||
} | ||
@@ -65,0 +69,0 @@ main().catch(console.error)`; |
@@ -27,3 +27,3 @@ #!/usr/bin/env node | ||
return `import { Contract, RpcProvider, constants } from 'starknet'; | ||
import { ABI } from './abi'; | ||
import { ABI } from './${module}'; | ||
@@ -37,2 +37,6 @@ async function main() { | ||
console.log("version", version) | ||
// Abiwan is now successfully installed, just start writing your contract | ||
// function calls (\`const ret = contract.your_function()\`) and you'll get | ||
// helpful editor autocompletion, linting errors ... for free ! Enjoy ! | ||
} | ||
@@ -42,3 +46,2 @@ main().catch(console.error)` | ||
async function run() { | ||
@@ -60,13 +63,7 @@ const json: { abi: object } = await fs.readJson(argv.input) | ||
const output_path = path.parse(argv.output) | ||
const usage_snippet = usage(output_path.name) | ||
const usage_snippet_highlighted = cardinal.highlight(usage_snippet) | ||
console.log(`✅ Successfully generated ${colors.red(argv.output)}`) | ||
console.log(`💡 Here's a code snippet to get you started:\n`) | ||
console.log(usage_snippet_highlighted) | ||
@@ -73,0 +70,0 @@ } |
{ | ||
"name": "abi-wan-kanabi", | ||
"version": "2.1.0-rc.3", | ||
"version": "2.1.0-rc.4", | ||
"description": "Abi parser for Cairo smart contracts, based on wagmi abitype", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71639
1661