Socket
Socket
Sign inDemoInstall

abi-wan-kanabi

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abi-wan-kanabi - npm Package Compare versions

Comparing version 2.1.0-rc.3 to 2.1.0-rc.4

6

dist/generate.js

@@ -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)`;

13

generate.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc