@neargen-js/core
TypeScript icon, indicating that this package has built-in type declarations

0.0.8-dev • Public • Published

@neargen-js/core

Core package for @neargen-js/abigen and @neargen-js/typegen

Contract ABI specification

{
    contractName: string; // The name of the smart contract
    methods: { 
        view: Array<NearFunctionView>, // array of view functions
        call: Array<NearFunctionCall> // array of call functions
    }
    byteCode: string // The bytecode of the smart contract. Is not yet implemented
}   

You can check more detailed abi type definitions here

Current limitations

For now, contract methods can have only 1 object parameter. In other cases, abi might be generated incorrectly. Example:

@call({})
public some_method({ someValue }:{ someValue: string }) {/*...*/}

/* But NOT: */
@call({})
public some_method(someValue: string) {/*...*/}

Readme

Keywords

Package Sidebar

Install

npm i @neargen-js/core

Weekly Downloads

6

Version

0.0.8-dev

License

MIT

Unpacked Size

12.8 kB

Total Files

10

Last publish

Collaborators

  • kostyamospan