Commit Graph

53 Commits

Author SHA1 Message Date
dafuga 8047c6df32 enhancement: making data param on readonly method optional 2024-01-16 17:11:39 -08:00
dafuga ef60a9405e chore: implementing return values codegen 2024-01-16 16:59:12 -08:00
Aaron Cox bd7e9b243c The changes we need added to code generation 2024-01-16 12:14:26 -08:00
Aaron Cox 477d753547 The updated test 2024-01-16 12:14:16 -08:00
Aaron Cox b3d9398861 Updated contract kit 2024-01-16 12:12:47 -08:00
Aaron Cox 797c7a1105 Fixed contract name 2024-01-16 12:12:38 -08:00
Aaron Cox d90610e11a Failing test 2024-01-16 11:58:45 -08:00
Aaron Cox d924693af6 Initial testing.gm for return values 2024-01-16 11:51:28 -08:00
Aaron Cox a43b105c3e Version 2.5.1 2.5.1 2024-01-12 15:20:35 -08:00
Aaron Cox 4a92987ca3 Fixed includes 2024-01-12 15:20:25 -08:00
Aaron Cox b54e94ed91 Version 2.5.0 2.5.0 2024-01-12 12:26:04 -08:00
Vance Chi fdb769fe1a Fix variant interface and update mock contracts (#28) 2024-01-12 12:25:23 -08:00
Daniel Fugere ad6f2964e3 enhancement: allowing the use of generate without --url or contractName (#30) 2024-01-12 12:24:16 -08:00
Aaron Cox 66f45af5fe Version 2.4.0 2.4.0 2023-12-18 11:02:51 -08:00
Vance Chi 32c5500876 Fix according to atomicassets usage (#26)
* Fix variant struct and variant interface

* Fix type alias lose array info

* Add command to generate all mock contracts

* Update mock contracts
2023-12-18 11:02:00 -08:00
Daniel Fugere 576295edae fix: parsing types in variants (#25) 2023-12-14 08:10:04 -08:00
Aaron Cox 603687b9e0 Version 2.3.0 2.3.0 2023-12-12 16:13:41 -08:00
Vance Chi 14b494fbea Fix variant extends typo (#24)
* Fix variant extends typo

* Remove boid test data
2023-12-12 16:10:28 -08:00
Daniel Fugere ee3952ece1 Contract & action param changes (#23)
* enhancement: generating constructor that lets you pass account name

* enhancement: using JS native types in params

* enhancement: no longer lowercasing field names

* enhancement: handling variants in action type interface generation

* fix: getting interfaces generated properly

* fix: importing correct core types

* style: linted

* fix: regenerated mock contracts with latest code

* fix: placing base structs before their dependents
2023-12-12 16:09:18 -08:00
Daniel Fugere c2e7433b61 fix: stop lowercasing struct field names (#21) 2023-12-08 18:43:36 -08:00
Aaron Cox 0d956bfac1 Version 2.2.0 2.2.0 2023-12-06 15:26:01 -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
Aaron Cox afb1b126b1 Version 2.1.0 2.1.0 2023-11-22 13:10:30 -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
Aaron Cox d71dd06055 Version 2.0.0 2.0.0 2023-11-07 12:56:16 -08:00
Aaron Cox ded61514fe Updating dependencies for new releases 2023-11-07 12:56:00 -08:00
Aaron Cox 5d0738e388 Version 1.9.1 1.9.1 2023-11-06 18:28:09 -08:00
Aaron Cox 50598548d8 Merge branch 'master' of https://github.com/wharfkit/cli 2023-11-06 18:27:34 -08:00
Aaron Cox f3c42d0d2c Version 1.9.0 1.9.0 2023-11-06 18:27:22 -08:00
Daniel Fugere 5eb7527bc0 fix: handling names with periods (#16)
closes issue #15
2023-11-06 18:26:48 -08:00
Aaron Cox 80252b79ef Version 1.8.0 1.8.0 2023-10-20 09:44:46 -07:00
Aaron Cox 3b5756b13f Embedding node-fetch to support older nodejs 2023-10-20 09:44:29 -07:00
Daniel Fugere 25b85339ad fix: using correct parameter name in account command (#14) 2023-10-20 09:36:52 -07:00
Aaron Cox beb3a9ba3b Version 1.7.0 1.7.0 2023-10-19 22:57:05 -07:00
Daniel Fugere e342e5a24f enhancement: using less verbose names (#13) 2023-10-19 22:56:48 -07:00
Aaron Cox 20cb5e9cb3 Version 1.6.0 1.6.0 2023-10-19 22:35:49 -07:00
Aaron Cox d2d3e3fa14 Merge branch 'master' of https://github.com/wharfkit/cli 2023-10-19 22:35:34 -07:00
Aaron Cox 7847663758 Version 1.5.0 1.5.0 2023-10-19 22:35:25 -07:00
Daniel Fugere e4f5f0014b Added keys and account creation to wharfkit command (#12)
* chore: added keys and account creation to wharfkit command

* chore: added keys and account creation implementations

* chore: getting commands working

* enhancement: added params validation

* refactor: sharing log function
2023-10-19 22:29:13 -07:00
Aaron Cox 3250f20a4c Version 1.4.0 1.4.0 2023-09-27 09:49:24 -07: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
Aaron Cox b92358140b Version 1.3.0 1.3.0 2023-09-26 10:20:44 -07:00
Aaron Cox 1a655bd345 Moving eslint to dependencies since its used during runtime 2023-09-26 10:19:31 -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
Aaron Cox 336b147fc3 Update README.md 2023-09-08 17:16:58 -07:00
Aaron Cox 5b3656f7fa Version 1.2.0 1.2.0 2023-09-08 17:06:14 -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
Aaron Cox 917d4b2b65 Added README 2023-08-28 17:22:33 -07:00
Aaron Cox 1a2a1339b5 Version 1.0.1 1.0.1 2023-08-28 17:11:32 -07:00
Aaron Cox 02ee66f0e6 Embedding prettier config into source (path was breaking it) 2023-08-28 17:11:14 -07:00