Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* naive first marshalling attemmpt * int 8-int64 supported * negative numbers support * support maps * funky benchmark * structs reflection caching attempt * some fuzz tests * fix speed comment * relocate implementation out of test * benchmark * rename test to TestMakeSureMarshalUnmarshalIsNotTooSlow * fix fuzz test * spec tests for js implant * update spec tests * remove fuzz test * simplify to 2 types * restore original logic * rewrite marshal with avalanchego's wrappers.Packer * pack bytes with uint32 and everything else with uint16 * check for long arrays and strings, marshal maps with uint16 * update benchmark results * move to codec * come back to codec.packer * speed up TestMakeSureMarshalUnmarshalIsNotTooSlow a bit * support pointer to a struct * auto marshaller integration * lint * remove a slow test breaking CI * fix linter errors * faster reflection cache * minimize test to exclude testing errors * unsafe type caching * simplify benchmark * update benchmarks * add benchmark results * add benchmem * add benchmem results * deprecate string operations * move empty address error * empty file * lint * remove .prof * correct 'marshall' to 'marshal' according to Go conventions * simplify codec.Packer * get chainid from tmpnet instead of the platform (#1458) * lint * change to linearcodec * lint * go mod tidy * add serialize tag to Transfer * abi generation * spec tests * ABI in RPC * HasTypeID as a separate iface * add TypeParser.GetRegisteredTypes method * move ABI to core API * remove unused errors * auto size calculation * rename LinearCodecInstance * lint * update from #1198 * from clean slate * return abi logic * nit: remove function name in panics * transaction test nit * catch up with main * lint * rename HasTypeID to Typed * separate package for abi * restore spec tests * treat codec.Address as a byte array while serializing * comments and nits * use set.Set instead of map[reflect.Type]bool * lint * remove memo field * require serialize=true * remove a breaker * calculate ABI in place * use ABI as struct in implementation * stable ABI hash * ABI wants its own ABI * rename abi to vmabi * remove ABI for ABI * redo map as an array * clean up test specs a bit * basic codegen and refactor tests WIP * trying different naming * spec simplification WIP * go generate * lower case json * proper codegen test * further simplify spec tests * transfer test * file based spec test * simplify tests * ABI of ABI * Outer/Inner struct tests for TS debug * lint * check ABI * lost in merge * remove comment lines in abi test * remove a debug statement * move mock abi file * rename to abigen * use cobra * Update codec/address.go Co-authored-by: aaronbuchwald <[email protected]> Signed-off-by: containerman17 <[email protected]> * require that the " characters in address string * rename ABI-related stuff * fix tests after renaming * test full marshal cycle * TestDescribeVM * Update abi/codegen.go Co-authored-by: aaronbuchwald <[email protected]> Signed-off-by: containerman17 <[email protected]> * remove StringAsBytes * add unicode package * lint * go mod tidy * flatten types def in abi * don't use mixed receivers * inline vm.Hash into a test * rename abi.VM to abi.ABI * remove embed * funish renaming * get rid of vm.getabi * nit avoid redundant import alias * DescribeVM -> NewABI * lint * mock gen * share typesAlreadyProcessed across describing multiple actions * put a comment on each test * Update abi/auto_marshal_abi_spec_test.go Co-authored-by: aaronbuchwald <[email protected]> Signed-off-by: containerman17 <[email protected]> * nit: objectBytes * remove mustPrintOrderedJSON * comment on empty names * comment on IsUpper * revert typealias * TODO here to switch to the new address format * We should follow the style of funcName does X * use rune in cobra * comment on Dereference * comment on serialize tag * use %s and t instead of t.String() * readme * rename mockabi_test * lint --------- Signed-off-by: containerman17 <[email protected]> Co-authored-by: aaronbuchwald <[email protected]>
- Loading branch information