nethermindeth / starknet-abi-form Goto Github PK
View Code? Open in Web Editor NEWStarknet ABI Form
Home Page: https://www.npmjs.com/package/starknet-abi-forms
License: Apache License 2.0
Starknet ABI Form
Home Page: https://www.npmjs.com/package/starknet-abi-forms
License: Apache License 2.0
Since flat
kind was added to Cairo compiler it should be also added to yupAbiEventFieldSchema to correct ABI validation.
Start with a project intro and a nice picture demonstrating the functionality of the tool.
Link to the blog post @prix0007 wrote.
Improve the installation instructions.
Include a contributed section!
When the contract's abi consists of some 'not expected' types, no input fields are generated. For example, if you have a contract constructor ABI like this:
{
"type": "constructor",
"name": "constructor",
"inputs": [
{
"name": "decimals",
"type": "core::integer::u8"
},
{
"name": "initial_supply",
"type": "core::integer::u256"
},
{
"name": "recipient",
"type": "core::starknet::contract_address::ContractAddress"
}
]
},
We will have the following output(I have used a storybook to demonstrate):
As you see field total_supply
is mentioned on the top, but there isn't an input field for it.
If we will change initial_supply
type from core::integer::u256
to core::integer::u128
it will work correctly:
So I think the problem is in some kind of type verification.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.