Commit Graph

10 Commits

Author SHA1 Message Date
dafuga ef60a9405e chore: implementing return values codegen 2024-01-16 16:59:12 -08:00
Aaron Cox 477d753547 The updated test 2024-01-16 12:14:16 -08:00
Aaron Cox d90610e11a Failing test 2024-01-16 11:58:45 -08:00
Daniel Fugere ad6f2964e3 enhancement: allowing the use of generate without --url or contractName (#30) 2024-01-12 12:24:16 -08:00
Vance Chi 6e2fcb91eb Fix variant type generation (#20)
* Fix variant type generation

* Fix format of generated contract code

* Add base eslint config

* Use optional eslintrc file
2023-12-06 15:25:02 -08:00
Daniel Fugere 5e7c787716 Fixing table return types and other issues (#18)
* fix: importing Asset when Symbol is needed

* fix: handling cases where two structs have same names with different casing

* fix: using casing when looking for struct dependencies

* enhancement: exporting TableMap

* enhancement: exporting actions and tables as types

* chore: added boid contract to tests

* debug: setup working generics for table method

* chore: added table names with . to interface to break ts typing

* Updating to wharfkit/contract RC1

* enhancement: optimized generated contracts

* style: linted

* cleanup: code cleanup

* chore: updated contract kit

* fix: renamed generated variables and fixed table typing

* cleanup: code cleanup

* chore: updated contract kit

---------

Co-authored-by: Aaron Cox <aaron@greymass.com>
2023-11-22 13:09:46 -08:00
Daniel Fugere 88f2265702 Determining type imports in script as opposed to using eslint (#10)
* fix: determining type imports in script as opposed to using eslint

* fix: preventing infinite loop

chore: adding hegemon unit test

* style: linted
2023-09-27 09:48:57 -07:00
Daniel Fugere e8691b9a1f Fixes for more complex contracts (#9)
* fix: checking aliases when generating list of core imports

closes #7

* chore: upped dep versions

* fix: got tests passing

* fix: looking up aliases when generating abi type

closes #8

* style: linted

* fix: handling variants properly

* fix: looking at aliases when ordering structs

* fix: getting tests passing

* fix: using the Variant core class when applicable

* chore: formatted atomicassets JSON abi
2023-09-25 13:22:59 -07:00
Daniel Fugere 00a182b6a1 Fixes and enhancements (#6)
* chore: added -j option

closes #2

* chore: added contract command tests

* fix: using proper bool field type

closes issue #5

* fix: handle binary extensions

closes issue #4

* enhancement: removed root namespace

* style: linted

* fix: using type imports when applicable

* fix: preventing infinite loop in findDependency function
2023-09-08 17:05:15 -07:00
Daniel Fugere d91ee1965f Adding contract command (#1)
* chore: added contract command

* chore: added make check and make format

* chore: getting the generate command to work

* chore: added the --file option to the generate command

* fix: got tests passing

* chore: got rid of deprecation warnings

* chore: added ci check

* Bumping requirement to v18

* Use stdout instead of stderr

* Reworked shebang to disable experimental warnings

* Made logging less verbose

* Removed v16 testing

* Inverted logging logic to debug by default

---------

Co-authored-by: Aaron Cox <aaron@greymass.com>
2023-08-28 16:59:18 -07:00