Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: docs snippets utility functions #1011

Merged
merged 50 commits into from
Jul 24, 2023

Conversation

danielbate
Copy link
Member

@danielbate danielbate commented May 22, 2023

  • Introduction of createAndDeployContractFromProject to reduce code duplication in tests
  • Renaming of helixfied -> hexlified

danielbate and others added 30 commits May 10, 2023 17:13
Torres-ssf
Torres-ssf previously approved these changes May 29, 2023
@danielbate danielbate enabled auto-merge (squash) May 29, 2023 13:17
Copy link
Member

@arboleya arboleya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we extract createAndDeployContractFromProject() into its own file? Other tests would benefit from having it shared.

I'd suggest adding it here:

  • packages/utils/src/test-utils/deployForcProject.ts

@danielbate danielbate disabled auto-merge May 29, 2023 15:15
@arboleya arboleya requested review from Torres-ssf and arboleya July 23, 2023 09:35
@danielbate
Copy link
Member Author

Could we extract createAndDeployContractFromProject() into its own file? Other tests would benefit from having it shared.

I'd suggest adding it here:

  • packages/utils/src/test-utils/deployForcProject.ts

So this couldn't be extracted because of cyclic dependency issues, unless we do want a fuels dep in utils. I think utils should remain as fuels agnostic and purely functional helpers. Then fuel-gauge and docs-snippets can have their own helpers.

@danielbate danielbate marked this pull request as draft July 24, 2023 11:10
@danielbate danielbate marked this pull request as ready for review July 24, 2023 11:11
@danielbate danielbate enabled auto-merge (squash) July 24, 2023 11:12
Copy link
Member

@Dhaiwat10 Dhaiwat10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

@danielbate danielbate merged commit 39479c2 into master Jul 24, 2023
@danielbate danielbate deleted the db/refactor/docs-snippets-utility-functions branch July 24, 2023 11:27
nedsalk pushed a commit that referenced this pull request Jul 25, 2023
* feat: create evm address interface

* feat: create evm address clas

* feat: unit tests for evm address wrapper class

* chore: linting

* chore: linting

* feat: support from public key in evm address

* feat: remove evm address class and unit tests

* feat: create types for B256 Evm and Evm address

* feat: create address utility function to convert a b256 to an evm b256

* feat: add address function to return as evm addres

* feat: add unit tests for address to evm address and utility function

* feat: create snippets util function generate test wallet and deploy a contract

* test: create docs snippets tests for evm address

* chore: remove redundant gitignore from evm address doc snippet contract

* test: rename evm address docs snippet test

* docs: create documentation for evm address

* docs: modify docs snippets for evm address

* docs: add evm address to docs config

* test: alter evm address test asserttions

* docs: update evm address title capitalisation

* feat: add evm address type to typegen

* test: add unit test for evm address type with forc project

* test: add evm address to full typegen test suit

* feat: add ignore evm struct to struct typegen

* feat: add evm address type to supported types in typegen

* chore: changeset

* feat: add forc projects to workspace

* test: add address import to dts test

* refactor: rename helixfied to hexlified

* refactor: use deploy contract test util in types docs snippets test

* chore: changeset

* chore: delete redundant gitignore

* feat: remove address from evm dts

* refactor: clean up remain helix references

* refactor: fix hexlified casing

* chore: force rebuild

* chore: force rebuild

* test: implement deploy project test across more docs tests

* chore: adjusting residual tyops after merging with master

---------

Co-authored-by: danielbate <--global>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants