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

feat: setup test environment #276

Merged
merged 202 commits into from
Jul 22, 2024
Merged

feat: setup test environment #276

merged 202 commits into from
Jul 22, 2024

Conversation

gaboesquivel
Copy link
Member

@gaboesquivel gaboesquivel commented Jul 22, 2024

Summary by Sourcery

This pull request sets up a new test environment by introducing new USDT contract configurations, refactoring environment configurations, updating import paths, and cleaning up obsolete files. Documentation has been updated to reflect these changes.

  • New Features:
    • Introduced new USDT contract configurations for multiple blockchain networks in the app-contracts package.
  • Enhancements:
    • Refactored environment configurations to include a new 'dev' environment and updated references from 'test' to 'dev' where applicable.
    • Updated import paths across multiple files to reflect the new package structure, replacing 'smartsale-contracts' and 'smartsale-env' with 'app-contracts' and 'app-env' respectively.
  • Documentation:
    • Updated README.md to reflect the new package names and paths for app-contracts, app-env, and app-lib.
  • Chores:
    • Deleted obsolete contract files and TypeScript configuration files from the smartsale-contracts and tsconfig packages.

gaboesquivel and others added 30 commits June 10, 2024 11:48
* feat: sanity integration

* feat: sanity ai assistant

* chore: move deps to webapp pkg.json
* feat: articles i18n with sanity ai assist

* feat: articles i18n with sanity ai assist

* chore: chinese simplified
* style: change the related articles section styles

* refactor: simplify the code from coderabbitai

* fix: correct component key values from coderabbitai review

* fix: update code from coderabbitai review
* feat(translations):english,spanish,french

* feat(translations):indonesian,korean

* saving changes

* complete dictionaries
* wip: new sections

* wip: footer links component

* wip: faq component

* wip: recent articles component

* chore: cleanup

* fix: update blog hero section

* style: fix blog hero section

* feat(translations):english,spanish,french (#233)

* wip: new navigation

* wip: footer navigation

* wip: footer navigation

* wip: footer updates

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* fix: update blog hero to dynamic

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

---------

Co-authored-by: Nathanael Liu <[email protected]>
Co-authored-by: Anouk Rímola <[email protected]>
Copy link

vercel bot commented Jul 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bitcash-faucet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 3:20pm
bitlauncher ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 3:20pm
bitlauncher.ai ❌ Failed (Inspect) Jul 22, 2024 3:20pm
smartsale-faucet ❌ Failed (Inspect) Jul 22, 2024 3:20pm

Copy link
Contributor

coderabbitai bot commented Jul 22, 2024

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

sourcery-ai bot commented Jul 22, 2024

Reviewer's Guide by Sourcery

This pull request sets up the test environment by making several key changes across multiple files. The changes include renaming environment configurations, updating import paths, adding new USDT contract data, and making minor code style adjustments.

File-Level Changes

Files Changes
apps/indexer/src/modules/presale/evm-contributions.ts
apps/indexer/src/modules/swaps/evm-transfers.ts
apps/indexer/src/config.ts
apps/indexer/src/lib/evm-client.ts
apps/indexer/src/modules/auction/auction-indexer.ts
apps/indexer/src/modules/auction/easyauction.ts
Updated import paths for contract data and environment configurations, and changed chain environment from 'test' to 'dev'.
apps/webapp/components/routes/project/auction/auction-bids.tsx
apps/webapp/components/routes/project/auction/auction-orders.tsx
apps/webapp/components/routes/wallet/tabs/transactions-table.tsx
Adjusted className order for better readability.
apps/webapp/components/layout/header/bitcash-access.tsx
apps/webapp/hooks/use-balance.ts
apps/webapp/components/dialogs/register.tsx
apps/webapp/components/layout/session/register-dialog-content.tsx
apps/webapp/hooks/use-auction-data.ts
apps/webapp/lib/config.ts
apps/webapp/scripts/translate.ts
apps/webapp/services/datocms/datocms-blog.service.ts
Updated import paths for utility functions and contract data.
packages/app-env/src/env.ts
packages/app-env/src/chains.ts
Renamed 'test' environment to 'dev' and updated chain environment configurations.
packages/app-contracts/src/prod/usdc.ts
packages/app-contracts/src/index.ts
packages/app-contracts/src/prod/usdt.ts
packages/app-contracts/src/prod/index.ts
Added new USDT contract data and updated export paths.
packages/smartsale-contracts/src/prod/testnet-easy-auction.ts
packages/smartsale-contracts/src/prod/testnet-mbots-prelaunch.ts
packages/smartsale-contracts/src/prod/testnet-usd-cred.ts
packages/smartsale-contracts/src/usdt.ts
packages/smartsale-contracts/src/prod/sepolia-usdt.ts
packages/smartsale-contracts/src/prod/testnet-usdt.ts
packages/smartsale-contracts/src/prod/testnet-allow-list.ts
packages/smartsale-contracts/src/prod/testnet-deposit-order.ts
packages/smartsale-contracts/src/prod/index.ts
Deleted old contract data files as part of refactoring.
packages/tsconfig/nextjs.json
packages/tsconfig/vite.json
packages/tsconfig/base.json
packages/tsconfig/react-library.json
packages/tsconfig/node16.json
packages/tsconfig/vite.node.json
Deleted old TypeScript configuration files as part of refactoring.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @gaboesquivel - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider adding a migration guide or update script to help with the transition from 'smartsale-' to 'app-' package names, as this change might affect areas not covered in this PR.
  • The introduction of a 'dev' environment alongside 'test' and 'prod' is a good addition, but please ensure this is clearly documented and consistently used throughout the project.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟡 Security: 1 issue found
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

symbol: "USDT",
decimals: 6,
indexFromBlock: 0,
chainId: 1, // Ethereum Mainnet
Copy link
Contributor

Choose a reason for hiding this comment

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

🚨 issue (security): Chain ID verification

Verify that the chain IDs for each entry are correct and correspond to the intended blockchain networks.

Copy link

⚡️ Lighthouse report

Page: https://bitlauncher-1n1pv9mda-bitcash.vercel.app/
Report https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1721661645570-41925.report.html

Category Score
🟠 Performance 78
🟢 Accessibility 93
🟢 Best practices 100
🟠 SEO 67
🔴 PWA 38

Page: https://bitlauncher-1n1pv9mda-bitcash.vercel.app/about
Report https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1721661646172-99853.report.html

Category Score
🟢 Performance 91
🟢 Accessibility 93
🟢 Best practices 100
🟠 SEO 67
🔴 PWA 38

Page: https://bitlauncher-1n1pv9mda-bitcash.vercel.app/security
Report https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1721661646526-59549.report.html

Category Score
🟢 Performance 91
🟢 Accessibility 93
🟢 Best practices 100
🟠 SEO 67
🔴 PWA 38

Page: https://bitlauncher-1n1pv9mda-bitcash.vercel.app/bitcash-bitlauncher
Report https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1721661646954-34301.report.html

Category Score
🟢 Performance 92
🟢 Accessibility 93
🟢 Best practices 100
🟠 SEO 67
🔴 PWA 38

Page: https://bitlauncher-1n1pv9mda-bitcash.vercel.app/blog
Report https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1721661647319-16059.report.html

Category Score
🟢 Performance 91
🟢 Accessibility 93
🟢 Best practices 100
🟠 SEO 67
🔴 PWA 38

Page: https://bitlauncher-1n1pv9mda-bitcash.vercel.app/blog/ai
Report undefined

Category Score
🔴 Performance 31
🟠 Accessibility 65
🟠 Best practices 74
🟠 SEO 86
🔴 PWA 38

gaboesquivel added a commit that referenced this pull request Jul 22, 2024
* chore: wait 5 mins before lhci

* feat: sanity ai assistant (#230)

* feat: sanity integration

* feat: sanity ai assistant

* chore: move deps to webapp pkg.json

* chore: update bun lock

* feat: articles i18n with sanity ai assist (#231)

* feat: articles i18n with sanity ai assist

* feat: articles i18n with sanity ai assist

* chore: chinese simplified

* feat(translations):english,spanish,french (#233)

* style: change the related articles section styles (#234)

* style: change the related articles section styles

* refactor: simplify the code from coderabbitai

* fix: correct component key values from coderabbitai review

* fix: update code from coderabbitai review

* feat: translations (#235)

* feat(translations):english,spanish,french

* feat(translations):indonesian,korean

* saving changes

* complete dictionaries

* feat: new sections (#226)

* wip: new sections

* wip: footer links component

* wip: faq component

* wip: recent articles component

* chore: cleanup

* fix: update blog hero section

* style: fix blog hero section

* feat(translations):english,spanish,french (#233)

* wip: new navigation

* wip: footer navigation

* wip: footer navigation

* wip: footer updates

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* fix: update blog hero to dynamic

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

---------

Co-authored-by: Nathanael Liu <[email protected]>
Co-authored-by: Anouk Rímola <[email protected]>

* chore: cleanup

* fix: update styles on hero card

* chore: update middleware filter

* chore: cleanup

* chore: cleanup

* chore: nohoist sanity

* chore: update dependencies

* chore: remove sanity

* feat: new homepage sections

* chore: use correct parragraph class

* chore: update bunlock

* debug: youtube integration

* chore: optimizing video sections

* chore: optimizing video sections

* chore: 8 cards instead of 12

* feat(translate):FAQ dictionary added in all languages (#240)

* chore: fix build

* wip: learn section

* wip: learn section

* hotfix: youtube api key

* hotfix: hide card footer

* chore: optimizing video sections

* wip: section component

* wip: section component

* wip: section component

* styles: section margin

* chore: media card

* chore: youtube player

* chore: reorder sections

* chore: use old nav

* chore: fix nav bugs

* fix: lang selector

* wip: layout and build updates

* wip: ui improvements

* wip: ui improvements

* wip: ui improvements

* wip: ui improvements

* wip: ui improvements

* wip: feature images

* fix: middleware bug

* chore: ui improvements

* fix: broken links

* feat: translations (#244)

* FAQ dict update

* feat:three dictionaries added

* fix: build

---------

Co-authored-by: Gabo Esquivel <[email protected]>

* chore: optimize locales management

* chore: new nav struct feature flag

* wip: update sections order

* fix: bad links

* chore: optimize locales management

* chore: ui improvements

* wip: lang selector alignment

* chore: add vercel dev

* wip: wallet updates (#246)

* fix: nav routes

* wip: project page updates

* wip: project presale countdown

* feat: translations nav (#247)

* wip: new sections feature flag

* fix: build bug

* fix: presale page countdown

* wip: i18n build cache

* wip: i18n build cache

* wip: i18n build cache

* chore: update bun lock

* chore: add translation

* fix: mobile nav bug

* fix: mobile nav bug

* feat: ai translations (#249)

* wip: ai translations

* wip: ai translations

* wip: ai translations

* fix: build error

* feat: lang selector feature flag

* chore: update bun lock

* debug: file imports

* wip: blog dictionaries

* chore: use lang ts

* chore: fake orders script

* wip: anthrophic claude sonnet translations

* wip: adjust media item width

* wip: adjust recent articles section

* content: claude sonnet translations

* fix: kyc button

* chore: update bunlock

* chore: update bunlock

* wip: ui updates

* wip: ui updates

* chore: cta explorations

* wip: ui updates

* fix: main nav alignment

* wip: new footer

* wip: ui updates

* wip: section order and futura font

* wip: fonts and margins

* feat: new hero

* feat: home hero and layout updates
close #259

* wip: project landing page updates

* feat: update new sections

* wip: categories section exploration

* fix: missing image in translation

* chore: review mobile css, responsive layout, multibase events, typography and spacing

* debug: site build

* debug: site build

* debug: site build

* fix: build issues

* debug: mobile layout width

* debug: site build

* fix: initial lang setup on middleware

* fix: initial lang setter on client component

* fix: initial lang setter on client component

* fix: mobile alignment

* chore: disable lang setter

* chore: retest settter

* chore: retest settter

* chore: home and layout fixes

* chore: reduce home section padding on mobile

* feat: new landing, layout style fixes, multibase, translations, experiments (#261)

* chore: wait 5 mins before lhci

* feat: sanity ai assistant (#230)

* feat: sanity integration

* feat: sanity ai assistant

* chore: move deps to webapp pkg.json

* chore: update bun lock

* feat: articles i18n with sanity ai assist (#231)

* feat: articles i18n with sanity ai assist

* feat: articles i18n with sanity ai assist

* chore: chinese simplified

* feat(translations):english,spanish,french (#233)

* style: change the related articles section styles (#234)

* style: change the related articles section styles

* refactor: simplify the code from coderabbitai

* fix: correct component key values from coderabbitai review

* fix: update code from coderabbitai review

* feat: translations (#235)

* feat(translations):english,spanish,french

* feat(translations):indonesian,korean

* saving changes

* complete dictionaries

* feat: new sections (#226)

* wip: new sections

* wip: footer links component

* wip: faq component

* wip: recent articles component

* chore: cleanup

* fix: update blog hero section

* style: fix blog hero section

* feat(translations):english,spanish,french (#233)

* wip: new navigation

* wip: footer navigation

* wip: footer navigation

* wip: footer updates

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* fix: update blog hero to dynamic

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

* wip: navigation and site structure

---------

Co-authored-by: Nathanael Liu <[email protected]>
Co-authored-by: Anouk Rímola <[email protected]>

* chore: cleanup

* fix: update styles on hero card

* chore: update middleware filter

* chore: cleanup

* chore: cleanup

* chore: nohoist sanity

* chore: update dependencies

* chore: remove sanity

* feat: new homepage sections

* chore: use correct parragraph class

* chore: update bunlock

* debug: youtube integration

* chore: optimizing video sections

* chore: optimizing video sections

* chore: 8 cards instead of 12

* feat(translate):FAQ dictionary added in all languages (#240)

* chore: fix build

* wip: learn section

* wip: learn section

* hotfix: youtube api key

* hotfix: hide card footer

* chore: optimizing video sections

* wip: section component

* wip: section component

* wip: section component

* styles: section margin

* chore: media card

* chore: youtube player

* chore: reorder sections

* chore: use old nav

* chore: fix nav bugs

* fix: lang selector

* wip: layout and build updates

* wip: ui improvements

* wip: ui improvements

* wip: ui improvements

* wip: ui improvements

* wip: ui improvements

* wip: feature images

* fix: middleware bug

* chore: ui improvements

* fix: broken links

* feat: translations (#244)

* FAQ dict update

* feat:three dictionaries added

* fix: build

---------

Co-authored-by: Gabo Esquivel <[email protected]>

* chore: optimize locales management

* chore: new nav struct feature flag

* wip: update sections order

* fix: bad links

* chore: optimize locales management

* chore: ui improvements

* wip: lang selector alignment

* chore: add vercel dev

* wip: wallet updates (#246)

* fix: nav routes

* wip: project page updates

* wip: project presale countdown

* feat: translations nav (#247)

* wip: new sections feature flag

* fix: build bug

* fix: presale page countdown

* wip: i18n build cache

* wip: i18n build cache

* wip: i18n build cache

* chore: update bun lock

* chore: add translation

* fix: mobile nav bug

* fix: mobile nav bug

* feat: ai translations (#249)

* wip: ai translations

* wip: ai translations

* wip: ai translations

* fix: build error

* feat: lang selector feature flag

* debug: file imports

* wip: blog dictionaries

* chore: use lang ts

* chore: fake orders script

* wip: anthrophic claude sonnet translations

* wip: adjust media item width

* wip: adjust recent articles section

* content: claude sonnet translations

* fix: kyc button

* wip: ui updates

* wip: ui updates

* chore: cta explorations

* wip: ui updates

* fix: main nav alignment

* wip: new footer

* wip: ui updates

* wip: section order and futura font

* wip: fonts and margins

* feat: new hero

* feat: home hero and layout updates
close #259

* wip: project landing page updates

* feat: update new sections

* wip: categories section exploration

* fix: missing image in translation

* chore: review mobile css, responsive layout, multibase events, typography and spacing

* debug: site build

* debug: site build

* debug: site build

* fix: build issues

* debug: mobile layout width

* debug: site build

* fix: initial lang setup on middleware

* fix: initial lang setter on client component

* fix: initial lang setter on client component

* fix: mobile alignment

* chore: disable lang setter

* chore: retest settter

* chore: retest settter

* chore: home and layout fixes

* chore: reduce home section padding on mobile

---------

Co-authored-by: Anouk Rímola <[email protected]>
Co-authored-by: Nathanael Liu <[email protected]>

* fix: home hero alignments

* fix: home hero alignments

* chore: bigger headings on mobile

* chore: bigger headings on mobile

* chore: bigger headings on mobile

* fix: ui details

* fix: ui details

* debug: feature flags

* debug: force new vercel deployment

* chore: remove console log

* debug: login issues

* chore: fix react bugs

* feat: update footer and faq

* fix: shortlinks

* feat: update footer

* feat: update footer

* wip: presale deposits

* docs: supabase + webapp + general readme docs upt

* feat: presale deposits

* wip: presale transactions table

* chore: cursor rules

* chore: cursor rules

* wip: presale transactions table

* chore: update bunlock

* chore: update auction bids and project info

* chore: initial cursor ai rules (#268)

* chore: cursor rules

* chore: update cursor agent conventions and readme files

* chore: update bunlock

* chore: remove unused file

* chore: fix build

* chore: fix build

* chore: fix build

* chore: update readme

* chore: add prompt rule for responsive css

* chore: update conventions

* chore: update deps

* chore: update cursorrules

* chore: cursor rules

* chore: update deps

* db: track last indexed block

* db: update schema and generated types

* chore: update orm db queries

* chore(indexer): fix dockerfile

* chore(indexer): fix dockerfile

* chore(indexer): fix dockerfile

* chore(indexer): correct node-fetch version

* chore(indexer): correct node-fetch version

* chore(indexer): add missing supabasejs dep

* chore(indexer): add missing supabasejs dep

* devops(indexer): use registry cache

* devops(indexer): revert use reg cache

* docs(supabase): update readme

* wip(indexer): presale module

* wip(indexer): dfuse client optimization

* wip(supabase): update db schemas and migrations

* chore: learn section feature flag

* chore: add .env.development

* chore(webapp): add learn section feature flag

* chore: fix build

* wip: presale issuer

* chore: setup test environment

---------

Co-authored-by: Anouk Rímola <[email protected]>
Co-authored-by: Nathanael Liu <[email protected]>
Co-authored-by: Roberto Lucas <[email protected]>
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