Comments (5)
i propose to use a pattern to define function which will be processed by the transormer,
by instance:
##deser_greetings(firstArg: string, secondArg: i32)
would mean that this function has to be transformed for its args to be deserialized
from as.
It could be great to find a pattern that the IDE doesn't complains
maybe with decorator like as-serde: https://github.com/ask-lang/serde-as/tree/main/packages/as-serde
from as.
yes we should do a similar thing for serialization of function arguments, function return value and storage value, but let's start with de-serialize function argument.
from as.
I wanted us to do a similar thing for serialization, as a precompilation thing. Maybe we should discuss this idea a bit more @peterjah @Thykof
from as.
@gregLibert is this still an issue now that we are working on protobuf?
from as.
Related Issues (20)
- No Args.nextU16()
- Simplify / merge `enum ProtoType` `getTypeName()` and `MassaCustomType` HOT 1
- Massa-type bignum serialization methods looks incorrect HOT 1
- non urgent: explicitly link the source of this code HOT 1
- using @massaExport() causes code duplication
- @massaExport transformer fails when used with more than one function that are using custom_type
- Custom type resolution failed when using @massaExport with both u128 and u256
- allow SC exported functions to return arrays
- Add some functional tests for as-transformer
- Error in message u256
- Transformer does not support single Array as function argument.
- [Protobuf] Array of integer other than i32 or u32 are not working HOT 1
- as-transformer fail on generateEvent HOT 1
- [as-transformer] Do not rename functions decorated with @massaExport HOT 2
- nextSerializable<T> fails on classe with constructor that requires argements HOT 2
- Incorrect serialization of Array<u256> HOT 2
- add unit tests for serializableObjectsArrayToBytes
- Upgrade assemblyscript + as-pect HOT 3
- Add a way to deser a string or bytes in Args with max specified len
- Fix test coverage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from as.