Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] generate contract ABI on contract compilation #5166

Open
RoyTimes opened this issue Nov 8, 2021 · 2 comments
Open

[feature request] generate contract ABI on contract compilation #5166

RoyTimes opened this issue Nov 8, 2021 · 2 comments
Labels
community Issues created by community

Comments

@RoyTimes
Copy link

RoyTimes commented Nov 8, 2021

I noticed that there is no contract ABI generator for the SDKs. If this is an intentional decision, I wonder why.

If not, I guess the following high-level structure would be helpful for developers, just a very rough draft:

 chain metadata version: version string
 source: 

 { hash: a chain storage key? - where the wasm blob is stored compiler info.... sdk info... } 

contract: {
 name/account: contract name/contract account id(xxx.near)?
 version: contract version
 author: 

 {Alice <[email protected]>} 

}
 func: {
 "method selector like 0x17ff6720" : 

 { mutate states? or view func, constructor? bool, payables? bool, name? for SDKs/clients, // now on func parameters & return types args w/borsh types, returnType?, } 

}
 storage: {} // maybe it's a good idea to give info on storage items in the contract 
 types: {} // if the contract has some customized types 
 // - define how they are supposed to be serialize or deserialize with borsh 
@bowenwang1996
Copy link
Collaborator

Feel free to read about the history here near/NEPs#3

@stale
Copy link

stale bot commented Feb 6, 2022

This issue has been automatically marked as stale because it has not had recent activity in the last 2 months.
It will be closed in 7 days if no further activity occurs.
Thank you for your contributions.

@stale stale bot added the S-stale label Feb 6, 2022
@akhi3030 akhi3030 removed the S-stale label Jul 8, 2022
@telezhnaya telezhnaya added the community Issues created by community label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Issues created by community
Projects
None yet
Development

No branches or pull requests

4 participants