168 Commits

Author SHA1 Message Date
aaroncox 27cadab49b Fix tests so they pass in node 20 2026-05-05 13:40:39 -07:00
aaroncox 57457d97fa 1.2.2-rc3 2026-05-05 13:16:53 -07:00
aaroncox 7c47d2f984 Better readonly exception handling 2026-05-05 13:15:49 -07:00
aaroncox 52421ef28d v1.2.2-rc2 v1.2.2-rc2 2025-07-25 11:25:25 -07:00
aaroncox 5bbb8b913b Catch/throw error during readonly call 2025-07-25 11:24:25 -07:00
Aaron Cox 30b43b683f Allow extracting nodeos API query params from cursor 2025-06-17 15:53:53 -07:00
Aaron Cox 1e84f06e27 Version 1.2.1 1.2.1 2025-02-01 17:18:34 -08:00
Aaron Cox bf9792eeb1 Helper to return next_key 2025-02-01 17:18:06 -08:00
Aaron Cox a402273b4b Version 1.2.0 1.2.0 2024-12-21 11:16:20 -08:00
Aaron Cox 7df3e66822 Add debug flag to allow json: true on table requests 2024-12-21 11:16:03 -08:00
Aaron Cox 1a074d7c77 Revert "Update dependencies"
This reverts commit 7d1353964e.
2024-12-02 15:12:18 -08:00
Aaron Cox 7d1353964e Update dependencies 2024-12-02 15:07:13 -08:00
Aaron Cox 513e0f5b38 Fixed false-y nature of JS 0 in table query
Fixes #70
2024-06-16 10:10:35 -07:00
Aaron Cox eec0425c87 Version 1.1.5 1.1.5 2024-01-30 09:31:35 -08:00
Daniel Fugere c8c774db15 add reverse param to query method (#67)
* enhancement: add reverse param to query method

closes issue #46

* Added test for reverse

---------

Co-authored-by: Aaron Cox <aaron@greymass.com>
2024-01-30 09:31:13 -08:00
Aaron Cox be60571c18 Version 1.1.4 1.1.4 2024-01-16 17:08:16 -08:00
Aaron Cox 8c47751db5 Make data optional 2024-01-16 17:08:06 -08:00
Aaron Cox 5697ef4b2f Version 1.1.3 1.1.3 2024-01-16 11:46:08 -08:00
Aaron Cox f65a8c3eb4 Implemented readonly method 2024-01-16 11:41:15 -08:00
Aaron Cox 90b7d9daf4 Updating Antelope package 2024-01-16 11:36:07 -08:00
Aaron Cox 2866c48b75 Version 1.1.2 1.1.2 2024-01-04 16:38:11 -08:00
Aaron Cox 6be2bd25dd Merge pull request #66 from wharfkit/fixing-get
get() returns undefined when no data is returned by API
2024-01-04 16:36:21 -08:00
dafuga 27756ee22a fix: get() returns undefined when no data is returned 2024-01-04 19:27:53 -05:00
Aaron Cox 40c5c30121 Version 1.1.1 1.1.1 2023-11-22 10:53:44 -08:00
Aaron Cox 8871b50ad3 Changing default RowType 2023-11-22 10:52:50 -08:00
Aaron Cox 6beddc4bed Version 1.1.0 1.1.0 2023-11-22 10:02:31 -08:00
Aaron Cox 89cc47a584 Merge pull request #63 from wharfkit/dev
1.0.0 Release
2023-11-07 12:45:28 -08:00
Aaron Cox 559b24691d Added missing mock data for get_info 2023-11-07 12:43:50 -08:00
Aaron Cox 29e90cd373 Version 1.0.0 1.0.0 2023-11-07 12:42:27 -08:00
Aaron Cox 3cc9f07d9b Updating dependencies for 1.0.0 release 2023-11-07 12:42:16 -08:00
Aaron Cox 433ad11fd2 Merge pull request #59 from rakeden/patch-1
minor change to README.md
2023-10-12 12:18:35 -07:00
Rakeden b84ee84431 enhance README.md 2023-10-12 12:47:54 +02:00
Daniel Fugere 96778e255d chore: cleaning up JSDoc (#58) 2023-09-29 11:24:56 -07:00
Aaron Cox 597286cb3c 0.4.3 - Bug Fixes
* Fixed issue with `scope` not being applied to queries

Fixes #56

* Updating dependencies

* Adding `index_position` as a fallback since `index` doesn't work most of the time

* Version 0.4.3
2023-08-31 14:35:23 -07:00
Daniel Fugere 22d5f7b37b Removed codegen logic (#55)
* chore: removed codegen logic

* Removed a few more things

---------

Co-authored-by: Aaron Cox <aaron@greymass.com>
2023-08-28 17:27:50 -07:00
Aaron Cox 383562cd07 Version 0.4.2 0.4.2 2023-08-26 09:10:49 -07:00
Aaron Cox d1b2afd78d All system contract compatibility and better tests (#52)
* Rewrote tests to remove recursion and throw

* removed try/catch

* Fixed issue with Symbol typing

* Switching imports to wharfkit/antelope

* catching `Bool` type

* Dynamically import all core types related to ABIs

* Adding missing types

* Fixing TableNames key stringify

* Updating tests to support many contracts

* Changing imports over to wharfkit/antelope instead of session

* Removed notes

* Only override `action` and `table` call if data for those exist

* Scopes should accept generic numbers and cast to strings

Fixes #53

* Fixed scope logic

It was casting undefined to a string and never using `this.account`

* Allow passing `scope` as 2nd param to `contract.table`

This matches the syntax used in the CDT, as discussed here:

https://github.com/orgs/wharfkit/discussions/5#discussioncomment-6515701

* Version 0.4.1

* chore: renamed EOSIO_CORE variables

* refactor: added helper folder

* enhancement: making sure that Name is always in contract imports

* fix: removing $ from field name when applicable

* chore: added full eosio abi

* cleanup: removed contracts folder

* fix: parsing data types properly

* fix: using proper eosio abi

* fix: handling variant and alias types

* fix: handling booleans properly

* fix: handling variants in external and internal types

* cleanup: removed redundant Types namespace from Struct field type

* style: linted

---------

Co-authored-by: dafuga <danielfugere28@gmail.com>
2023-08-26 08:51:02 -07:00
Daniel Fugere 17a4b85097 Adjusting codegen script (#51)
* fix: unit tests tweaking

* fix: getting the codegen to output correct structs

* fix: getting the codegen class to import correct dependencies

* chore: added action method to generated Contract class

* chore: generating interfaces

* chore: got codegen script geenrating correct rewards.gm helper class

* style: linted

* cleanup: code cleanup
2023-08-19 20:17:51 -07:00
Aaron Cox ab1346f9b6 Version 0.4.0 0.4.0 2023-08-17 15:40:17 -07:00
Aaron Cox a08cfcb673 Supporting typed actions and enabling autocomplete (#45)
* Altering action calls to be able to support typed inputs

* Delete example-contract.ts

* Renamed ActionData to ActionDataType

* Use prettier on generated code, and fixed tests

* Adding prettier plugin to cleanup imports

* Reverting back to old action syntax + new table syntax

* Implementing scope calls and cursors (#48)

* Moved `TableCursor` to `TableRowCursor` and extended abstract

* Version 0.4.0-beta1

* Implemented scope cursors
2023-08-16 14:34:08 -07:00
Aaron Cox 1160a92989 Generated vs mocked (#43)
* Moved ABI data to root of namespace

* Removed underscore in front of namespace

* Added new test setup to test mock and generated at the same time

* Add test to ensure the generated and mock contracts are equal

* Added note

* Linting + Ignore mock file

* Removed unused parameter

* Implemented `PartialBy` generic on generated contract

Fixes #44

* Re-enabled some tests

* Renamed `types` to `Types` in namespace

This matches the other camel casing we're doing

* Started migrating some contract tests to a generic function

This will allow us to run the same tests are run in the Contract tests against the generated tests

* Removing unused test data

* Updated ABICache

* Version 0.3.2

* Updating dependencies for ESR + Session

* Version 0.3.3

* Updating mock-data

* Removed export of codegen

Resolves #40

* Version 0.3.4
2023-08-08 09:58:31 -07:00
Daniel Fugere 6c85e09859 Adjusting codegen script (#39)
* cleanup: codegen cleanup

* fix: getting codegen script running again

* enhancement: generating contract class in correct format

* chore: added codegen tests

* chore: added tests for utils functions

* style: linted

* cleanup: code cleanup
2023-07-28 22:24:21 -07:00
Aaron Cox 4eb418fe82 Version 0.3.1 0.3.1 2023-07-28 12:25:09 -07:00
Aaron Cox b3170851c7 Upgrading ABICache 2023-07-28 12:24:57 -07:00
Aaron Cox e85eb57d55 Version 0.3.0 0.3.0 2023-07-28 10:07:15 -07:00
Aaron Cox 001f0733a4 Migrating from @greymass/eosio to @wharfkit/antelope 2023-07-28 10:06:25 -07:00
Aaron Cox 3a0ced260c Query Merge (#36)
undefined
2023-07-26 17:30:04 -07:00
Aaron Cox 9b90b04956 Merge pull request #35 from wharfkit/first-row
Make query in `get()` optional to just fetch first row
2023-07-25 09:34:16 -07:00
Aaron Cox 53566ccaac Make query in get() optional to just fetch first row 2023-07-24 23:28:25 -07:00
Aaron Cox e2f6e00d46 Version 0.2.1 0.2.1 2023-07-24 22:24:35 -07:00