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.0 to 2.1.0-rc.1

12

dist/generate.js

@@ -46,7 +46,15 @@ #!/usr/bin/env node

async function run() {
console.log("Wech ya wsmk, rana jina !");
const json = await fs.readJson(argv.input);
const content = `export const ABI = ${JSON.stringify(json.abi, null, 2)} as const;\n`;
let abi = json.abi;
if (typeof abi === 'string') {
console.log('String dab ben dab');
abi = JSON.parse(abi);
}
else {
console.log('machi string ya jeddek');
}
const content = `export const ABI = ${JSON.stringify(abi, null, 2)} as const;\n`;
await fs.writeFile(argv.output, content);
}
run().catch(console.error);
//# sourceMappingURL=generate.js.map

5

kanabi.ts

@@ -100,3 +100,6 @@ import { ResolvedConfig } from './config'

type AbiEventKind = 'nested' | 'data' | 'key'
// TODO: Do we need to handle 'key' and 'data' differently ?
// TODO: 'flat' is found in some ABIs but it's not mentioned in the ABI spec:
// https://github.com/starkware-libs/starknet-specs/blob/master/api/starknet_metadata.json#L507:L509
type AbiEventKind = 'nested' | 'data' | 'key' | 'flat'

@@ -103,0 +106,0 @@ export type AbiEventMember = {

{
"name": "abi-wan-kanabi",
"version": "2.1.0-rc.0",
"version": "2.1.0-rc.1",
"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