* Updated ABI definitions & parsing * Run type generation * Definitions (should be ok-ish) * Cleanup names * Allow aliasses on structs (JSON parsing) * Cleanup json mapping passing * s/types/lookup/ * Parsing as per current output * InkSelector * MtRegistryIndex * String lookup tests * Remove serd ovverride comments (it works as-is) * inkRegistry tests * Extract primitive types * s/ty/id/ * Start of parsing into types (actually to be TypeDef) * Parsing * stringify struct fields * Small cleanups * Add type index to project lookup * Prefix with index * Fix interface generation * Latest contract metadata (#2118) * Add new (provisional) incrementer contract metadata * Update and regenerate type definitions * WIP: generate new format scale-info types * WIP: implementing variants * Implement variants * Fix up type resolution * Fix registry spec tests * Fix lints and some tests * Fix inkTypes tests * Fix some lints * Make imports same line like original * Comment out (temporarily) sanitize import to make CI pass * Sanitize * Remove indices * Remove index * Adjust ContractAbi interface (empty rpc) * linting * Pull in Andrew's changes * Cleanups * Some more cleanups * Update with v3 contracts * Adjust with actual types * Regenerate * Update ABI parsing (#2695) * Adjust ABI code * Cleanup * Merge non-code * Type naming * Simplify Base * Rename 1 * rename 2 * Rename 3 * Simplify * Add index to AbiMessage * Pass actual message or index for call * Rename param * Simplify * Expose call & exec * s/call/read/ * Cleanup asserts * AccountId as per spec * displayName is path * Update definitions * Flatten ABIType into TypeDef * Rewrite * Fix tests * Updates Co-authored-by: Andrew Jones <ascjones@gmail.com>
106 lines
2.1 KiB
JSON
106 lines
2.1 KiB
JSON
{
|
|
"metadataVersion": "0.1.0",
|
|
"source": {
|
|
"hash": "0x98f9fc872ae9db158c8f695018a1b3c5a2fb863f9bed7c83ec039f05ea67fc57",
|
|
"language": "ink! 3.0.0",
|
|
"compiler": "rustc 1.48.0-nightly"
|
|
},
|
|
"contract": {
|
|
"name": "flipper",
|
|
"version": "3.0.0",
|
|
"authors": [
|
|
"Parity Technologies <admin@parity.io>"
|
|
]
|
|
},
|
|
"spec": {
|
|
"constructors": [
|
|
{
|
|
"args": [
|
|
{
|
|
"name": "init_value",
|
|
"type": {
|
|
"displayName": [
|
|
"bool"
|
|
],
|
|
"id": 1
|
|
}
|
|
}
|
|
],
|
|
"docs": [
|
|
" Creates a new flipper smart contract initialized with the given value."
|
|
],
|
|
"name": [
|
|
"new"
|
|
],
|
|
"selector": "0xd183512b"
|
|
},
|
|
{
|
|
"args": [],
|
|
"docs": [
|
|
" Creates a new flipper smart contract initialized to `false`."
|
|
],
|
|
"name": [
|
|
"default"
|
|
],
|
|
"selector": "0x6a3712e2"
|
|
}
|
|
],
|
|
"docs": [],
|
|
"events": [],
|
|
"messages": [
|
|
{
|
|
"args": [],
|
|
"docs": [
|
|
" Flips the current value of the Flipper's bool."
|
|
],
|
|
"mutates": true,
|
|
"name": [
|
|
"flip"
|
|
],
|
|
"payable": false,
|
|
"returnType": null,
|
|
"selector": "0xc096a5f3"
|
|
},
|
|
{
|
|
"args": [],
|
|
"docs": [
|
|
" Returns the current value of the Flipper's bool."
|
|
],
|
|
"mutates": false,
|
|
"name": [
|
|
"get"
|
|
],
|
|
"payable": false,
|
|
"returnType": {
|
|
"displayName": [
|
|
"bool"
|
|
],
|
|
"id": 1
|
|
},
|
|
"selector": "0x1e5ca456"
|
|
}
|
|
]
|
|
},
|
|
"storage": {
|
|
"struct": {
|
|
"fields": [
|
|
{
|
|
"layout": {
|
|
"cell": {
|
|
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
"ty": 1
|
|
}
|
|
},
|
|
"name": "value"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"types": [
|
|
{
|
|
"def": {
|
|
"primitive": "bool"
|
|
}
|
|
}
|
|
]
|
|
} |