Skip to content

Commit

Permalink
chore: add full abi coder tests (#3349)
Browse files Browse the repository at this point in the history
* chore: added tests around all `abi-contract` tests

* chore: changeset

* fix Eq for ExternalEnum

* fix equals use

* linting

* minor fixes within contract code

* fix comparison at types_value_then_value_then_void_then_void

* implementing missing Eq

* using let for heap types

* rename vec_32_from

* rename some functions

* rename types_option_geo

* type_struct_external

* rename contract abi

* fix test case types_enum_external

* implement Eqs related to types_struct_with_implicit_generics fn

* implementing types_struct_with_implicit_generics

* add test for types_struct_with_implicit_generics

* unskip test

* use let instead of const to avoid run-time compile error

* fixing some tests

* fix multi_arg_b256_bool fn and its test

* unskip multi_arg_vector_vector

* unskip multi_arg_vector_b256

* unskip multi_arg_struct_vector

* implement multi_arg_u64_struct

* add test for multi_arg_u64_struct

* implement multi_arg_str_str

* add test for multi_arg_str_str

* implement Eq for Vec<u64>

* implement fn multi_arg_u32_vector_vector

* add test for multi_arg_u32_vector_vector

* remove wrong async

* adding multiple equalies func

* fixing fn return type

* implement multi_arg_complex

* add test case

* chore: fix typegen tests

* chore: removed un-need `@ts-expect-error` from `abi-coder.test.ts`

* chore: fix failing type checking

* chore: added whitespace between each describe block

* chore: added whitespace (main.sw)

* chore: implemented `types_struct_with_vector`

* chore: tidy up/linting

* chore: implemented `types_struct_with_array_of_enums`

* chore: implemented `types_struct_with_single_option` test

* chore: added missing test

* feat: added Equality for `StructWithSingleOption`

* chore: skip failing test

* feat: implemented configurables tests

* chore: fixed typegen tests

* chore: remove changes to `abi-typegen`

* chore: forc format

* feat: added tests for logs + function properties

* chore: enable browser tests for abi-coder test

---------

Co-authored-by: Sérgio Torres <30977845+Torres-ssf@users.noreply.github.com>
Co-authored-by: Torres-ssf <sergio.uft@gmail.com>
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
  • Loading branch information
4 people authored Nov 25, 2024
1 parent 670a50d commit 6061481
Show file tree
Hide file tree
Showing 12 changed files with 4,560 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changeset/long-ducks-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Loading

0 comments on commit 6061481

Please sign in to comment.