Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 833 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 833 Bytes

@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) {/*...*/}