ink_abi 1.0.0
ink_abi: ^1.0.0 copied to clipboard
ink! abi encoder and decoder
1.0.0 #
Breaking Changes #
- Complete architectural redesign from custom type system to substrate-metadata integration
- Removed
InkAbiDescriptionclass - functionality absorbed by registry - Removed
TypesNormalizerclass - no longer needed with substrate-metadata types - Removed all custom interfaces in
/lib/interfaces/directory - Removed
/lib/utils/directory - Changed import path from
package:ink_abi/ink_abi_base.darttopackage:ink_abi/ink_abi.dart - Field access changed from camelCase to snake_case (e.g.,
totalSupply→total_supply) decodeEventFromHex()merged intodecodeEvent()
Added #
InkMetadataRegistryNew centralized registry handling all type resolution and codec management- Structured model classes with JSON serialization:
MessageSpec- Message specification with selector, args, returnType, mutates, payableConstructorSpec- Constructor specificationEventSpec- Enhanced event specification replacingInkAbiEventArgSpec- Argument specification with type infoTypeSpec- Type specification linking type IDs to display namesTypeInfo- Type information helper class
- Exception hierarchy with rich error context:
InkAbiException- Base exception with context supportEncodingException- Specialized for encoding failures with factory methodsDecodingException- Specialized for decoding failuresInkEventException- Event-specific exceptionTypeResolutionException- Type lookup failures
- New
decodeConstructorOutput()method - New accessor methods:
messages,constructors,registry versionproperty getter
Changed #
InkAbinow delegates toInkMetadataRegistryinstead of managing codecs directly- Leverages
substrate_metadata'sPortableRegistryandMetadataTypeRegistryinstead of custom implementation - Converts ink! types to substrate
PortableTypeformat internally SelectorByteInputenhanced with proper error handling and validation
0.3.1 #
0.3.0 #
- Bump polkadart version to 0.7.0
0.2.3 #
- Improves state mutation for ink smart contracts
0.2.2 #
- Upgrade
ink_abito work with the new version ofink_cli
0.2.1 #
- Packages were bumped for new publish workflow
0.2.0 #
- All packages have been bumped to add web support
0.1.0 #
- Removes
json_schema2from being a required dependency
0.0.2 #
- Add CodecTypeInterfaces to support
ink_cli
0.0.1 #
- Initial version if
ink_abi