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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
dd49b44
chore: wait 5 mins before lhci
gaboesquivel Jun 10, 2024
e1e5381
feat: sanity ai assistant (#230)
gaboesquivel Jun 10, 2024
5c185e3
chore: update bun lock
gaboesquivel Jun 10, 2024
2bf7648
feat: articles i18n with sanity ai assist (#231)
gaboesquivel Jun 11, 2024
412f287
feat(translations):english,spanish,french (#233)
AnoukRImola Jun 12, 2024
a146582
style: change the related articles section styles (#234)
TopETH Jun 13, 2024
935d8da
feat: translations (#235)
AnoukRImola Jun 13, 2024
6865349
feat: new sections (#226)
gaboesquivel Jun 17, 2024
4a4a27d
chore: cleanup
gaboesquivel Jun 18, 2024
5d8f13d
fix: update styles on hero card
TopETH Jun 18, 2024
4aacc7a
chore: update middleware filter
gaboesquivel Jun 18, 2024
4889bb7
chore: cleanup
gaboesquivel Jun 18, 2024
592cf03
chore: cleanup
gaboesquivel Jun 18, 2024
f2896ef
chore: nohoist sanity
gaboesquivel Jun 18, 2024
a8263ac
chore: update dependencies
gaboesquivel Jun 18, 2024
c7401e0
chore: remove sanity
gaboesquivel Jun 18, 2024
9fbcd16
feat: new homepage sections
gaboesquivel Jun 18, 2024
7c6eb00
chore: use correct parragraph class
gaboesquivel Jun 18, 2024
197c0ae
chore: update bunlock
gaboesquivel Jun 18, 2024
5012d66
debug: youtube integration
gaboesquivel Jun 18, 2024
df3aac0
chore: optimizing video sections
gaboesquivel Jun 18, 2024
6e0c6f7
chore: optimizing video sections
gaboesquivel Jun 18, 2024
b89a1f1
chore: 8 cards instead of 12
gaboesquivel Jun 18, 2024
f5c5e55
feat(translate):FAQ dictionary added in all languages (#240)
AnoukRImola Jun 18, 2024
631471b
chore: fix build
gaboesquivel Jun 18, 2024
994b976
wip: learn section
gaboesquivel Jun 18, 2024
bb0c0de
wip: learn section
gaboesquivel Jun 18, 2024
3cf9778
hotfix: youtube api key
gaboesquivel Jun 18, 2024
2c5cd8d
hotfix: hide card footer
gaboesquivel Jun 18, 2024
f2fd81f
chore: optimizing video sections
gaboesquivel Jun 18, 2024
a8a50e1
wip: section component
gaboesquivel Jun 18, 2024
d3025ba
wip: section component
gaboesquivel Jun 18, 2024
e8b6d76
wip: section component
gaboesquivel Jun 18, 2024
5b14f77
styles: section margin
gaboesquivel Jun 18, 2024
e176603
chore: media card
gaboesquivel Jun 18, 2024
11dd150
chore: youtube player
gaboesquivel Jun 18, 2024
f6a1438
chore: reorder sections
gaboesquivel Jun 18, 2024
4a80ea0
chore: use old nav
gaboesquivel Jun 18, 2024
a361324
chore: fix nav bugs
gaboesquivel Jun 18, 2024
0d2bd35
fix: lang selector
gaboesquivel Jun 18, 2024
a1b0f3c
wip: layout and build updates
gaboesquivel Jun 18, 2024
8e349c6
wip: ui improvements
gaboesquivel Jun 19, 2024
a4c2c7e
wip: ui improvements
gaboesquivel Jun 19, 2024
a9e3696
wip: ui improvements
gaboesquivel Jun 19, 2024
82d4c54
wip: ui improvements
gaboesquivel Jun 19, 2024
85acbc9
wip: ui improvements
gaboesquivel Jun 19, 2024
43eb35f
wip: feature images
gaboesquivel Jun 19, 2024
a2066e1
fix: middleware bug
gaboesquivel Jun 19, 2024
bda4b70
chore: ui improvements
gaboesquivel Jun 19, 2024
51dd8de
fix: broken links
gaboesquivel Jun 20, 2024
1140b64
feat: translations (#244)
AnoukRImola Jun 20, 2024
521e9a3
chore: optimize locales management
gaboesquivel Jun 20, 2024
6a78600
chore: new nav struct feature flag
gaboesquivel Jun 20, 2024
6405863
wip: update sections order
gaboesquivel Jun 20, 2024
f4387ae
fix: bad links
gaboesquivel Jun 20, 2024
a4064fc
chore: optimize locales management
gaboesquivel Jun 20, 2024
db41f1b
chore: ui improvements
gaboesquivel Jun 20, 2024
fe90525
wip: lang selector alignment
gaboesquivel Jun 21, 2024
ab2b578
chore: add vercel dev
gaboesquivel Jun 21, 2024
cea5edc
wip: wallet updates (#246)
gaboesquivel Jun 21, 2024
ffdb4ef
fix: nav routes
gaboesquivel Jun 21, 2024
c57b25f
wip: project page updates
gaboesquivel Jun 21, 2024
e042089
wip: project presale countdown
gaboesquivel Jun 21, 2024
b4ef67a
feat: translations nav (#247)
AnoukRImola Jun 21, 2024
7e4058d
wip: new sections feature flag
gaboesquivel Jun 22, 2024
4bbb1d5
fix: build bug
gaboesquivel Jun 22, 2024
b604a1a
fix: presale page countdown
gaboesquivel Jun 22, 2024
a7c7b5c
wip: i18n build cache
gaboesquivel Jun 22, 2024
4c97b77
wip: i18n build cache
gaboesquivel Jun 23, 2024
59b5b2e
wip: i18n build cache
gaboesquivel Jun 24, 2024
a14d139
chore: update bun lock
gaboesquivel Jun 24, 2024
6130bc7
chore: add translation
gaboesquivel Jun 24, 2024
220db71
fix: mobile nav bug
gaboesquivel Jun 24, 2024
26df57f
fix: mobile nav bug
gaboesquivel Jun 24, 2024
0713910
feat: ai translations (#249)
gaboesquivel Jun 24, 2024
6363686
fix: build error
gaboesquivel Jun 24, 2024
15aed04
feat: lang selector feature flag
gaboesquivel Jun 24, 2024
7bc243d
Merge branch 'develop' into v1
gaboesquivel Jun 24, 2024
b88fa2e
Merge branch 'develop' into canary
gaboesquivel Jun 24, 2024
128ba55
chore: update bun lock
gaboesquivel Jun 24, 2024
4274a82
Merge branch 'develop' into v1
gaboesquivel Jun 24, 2024
7e481a1
Merge branch 'develop' into canary
gaboesquivel Jun 24, 2024
8c3d720
Merge branch 'develop' into v1
gaboesquivel Jun 24, 2024
43581d0
Merge branch 'develop' into canary
gaboesquivel Jun 24, 2024
0afeb9b
Merge branch 'develop' into v1
gaboesquivel Jun 24, 2024
5dc813c
Merge branch 'develop' into canary
gaboesquivel Jun 24, 2024
d6a187c
Merge branch 'develop' into canary
gaboesquivel Jun 24, 2024
50e166a
Merge branch 'develop' into v1
gaboesquivel Jun 24, 2024
166ab94
debug: file imports
gaboesquivel Jun 25, 2024
722ea4c
wip: blog dictionaries
gaboesquivel Jun 28, 2024
f27b8f7
chore: use lang ts
gaboesquivel Jun 29, 2024
071145e
chore: fake orders script
gaboesquivel Jun 29, 2024
6f0765d
wip: anthrophic claude sonnet translations
gaboesquivel Jun 29, 2024
e9d5d3a
Merge branch 'v1' into canary
gaboesquivel Jun 29, 2024
c1006cc
wip: adjust media item width
gaboesquivel Jun 29, 2024
d70d87f
wip: adjust recent articles section
gaboesquivel Jun 29, 2024
540a72b
Merge branch 'v1' into canary
gaboesquivel Jun 29, 2024
48efb44
content: claude sonnet translations
gaboesquivel Jun 29, 2024
d2716fa
Merge branch 'v1' into canary
gaboesquivel Jun 29, 2024
4d9ada2
fix: kyc button
gaboesquivel Jun 29, 2024
d22134a
Merge branch 'v1' into canary
gaboesquivel Jun 29, 2024
1922bce
chore: update bunlock
gaboesquivel Jun 29, 2024
a94f207
chore: update bunlock
gaboesquivel Jun 29, 2024
1c2ba32
wip: ui updates
gaboesquivel Jun 30, 2024
013f80e
Merge branch 'v1' into canary
gaboesquivel Jun 30, 2024
8ae5a6a
wip: ui updates
gaboesquivel Jul 1, 2024
076bd13
Merge branch 'v1' into canary
gaboesquivel Jul 1, 2024
25d8101
chore: cta explorations
gaboesquivel Jul 1, 2024
f75908b
wip: ui updates
gaboesquivel Jul 3, 2024
30d27c3
fix: main nav alignment
gaboesquivel Jul 3, 2024
e2d689e
wip: new footer
gaboesquivel Jul 3, 2024
0d8e362
wip: ui updates
gaboesquivel Jul 3, 2024
727032d
Merge branch 'v1' into canary
gaboesquivel Jul 3, 2024
aae99d4
Merge branch 'develop' into v1
gaboesquivel Jul 4, 2024
9f87faa
wip: section order and futura font
gaboesquivel Jul 4, 2024
fc34439
wip: fonts and margins
gaboesquivel Jul 4, 2024
af0d2d4
feat: new hero
gaboesquivel Jul 5, 2024
2f8d79e
feat: home hero and layout updates
gaboesquivel Jul 6, 2024
eddef70
wip: project landing page updates
gaboesquivel Jul 7, 2024
6de3711
feat: update new sections
gaboesquivel Jul 8, 2024
36deb51
wip: categories section exploration
gaboesquivel Jul 8, 2024
068d2f5
fix: missing image in translation
gaboesquivel Jul 8, 2024
596e7bd
chore: review mobile css, responsive layout, multibase events, typogr…
gaboesquivel Jul 8, 2024
bb41908
debug: site build
gaboesquivel Jul 8, 2024
63b8d4d
debug: site build
gaboesquivel Jul 8, 2024
61fafee
debug: site build
gaboesquivel Jul 8, 2024
56859f0
fix: build issues
gaboesquivel Jul 8, 2024
b45749c
debug: mobile layout width
gaboesquivel Jul 8, 2024
bb34a43
debug: site build
gaboesquivel Jul 8, 2024
6bea928
fix: initial lang setup on middleware
gaboesquivel Jul 8, 2024
e3b84d9
fix: initial lang setter on client component
gaboesquivel Jul 8, 2024
68de1d7
fix: initial lang setter on client component
gaboesquivel Jul 8, 2024
8a0f3c5
fix: mobile alignment
gaboesquivel Jul 8, 2024
fbfde1e
chore: disable lang setter
gaboesquivel Jul 8, 2024
20d1d96
chore: retest settter
gaboesquivel Jul 8, 2024
6ac89b8
chore: retest settter
gaboesquivel Jul 8, 2024
63c918b
chore: home and layout fixes
gaboesquivel Jul 8, 2024
f3c2649
chore: reduce home section padding on mobile
gaboesquivel Jul 8, 2024
980a064
feat: new landing, layout style fixes, multibase, translations, exper…
gaboesquivel Jul 8, 2024
4c20117
Merge branch 'develop' into v1
gaboesquivel Jul 8, 2024
b0f580e
Merge branch 'v1' into canary
gaboesquivel Jul 8, 2024
ba86898
fix: home hero alignments
gaboesquivel Jul 8, 2024
2170b3f
fix: home hero alignments
gaboesquivel Jul 8, 2024
091f22e
chore: bigger headings on mobile
gaboesquivel Jul 8, 2024
702c7ae
Merge branch 'develop' into canary
gaboesquivel Jul 8, 2024
f897f5e
chore: bigger headings on mobile
gaboesquivel Jul 8, 2024
c8f4ab6
chore: bigger headings on mobile
gaboesquivel Jul 8, 2024
a136f86
fix: ui details
gaboesquivel Jul 8, 2024
2f20214
fix: ui details
gaboesquivel Jul 9, 2024
cf849a4
Merge branch 'develop' into canary
gaboesquivel Jul 9, 2024
6dae3d1
debug: feature flags
gaboesquivel Jul 9, 2024
f3c7192
debug: force new vercel deployment
gaboesquivel Jul 9, 2024
ce44533
chore: remove console log
gaboesquivel Jul 9, 2024
cc9886c
debug: login issues
gaboesquivel Jul 10, 2024
e6180d3
chore: fix react bugs
gaboesquivel Jul 10, 2024
1d0d23d
feat: update footer and faq
gaboesquivel Jul 10, 2024
ef6fafc
fix: shortlinks
gaboesquivel Jul 10, 2024
6eff591
feat: update footer
gaboesquivel Jul 10, 2024
8e10348
feat: update footer
gaboesquivel Jul 10, 2024
50360e2
Merge branch 'develop' into canary
gaboesquivel Jul 14, 2024
d710554
wip: presale deposits
gaboesquivel Jul 14, 2024
cb84e37
docs: supabase + webapp + general readme docs upt
AndlerRL Jul 16, 2024
703adc4
feat: presale deposits
gaboesquivel Jul 17, 2024
3de18bc
wip: presale transactions table
gaboesquivel Jul 18, 2024
62b88ab
chore: cursor rules
gaboesquivel Jul 18, 2024
4651b4c
chore: cursor rules
gaboesquivel Jul 18, 2024
ea77700
wip: presale transactions table
gaboesquivel Jul 18, 2024
9b7eb9b
chore: update bunlock
gaboesquivel Jul 18, 2024
7f403e2
chore: update auction bids and project info
gaboesquivel Jul 18, 2024
7fd9e5c
chore: initial cursor ai rules (#268)
gaboesquivel Jul 19, 2024
4e1e48e
Merge branch 'develop' into canary
gaboesquivel Jul 19, 2024
cecec11
chore: cursor rules
gaboesquivel Jul 18, 2024
9199019
chore: update deps
gaboesquivel Jul 19, 2024
5f135ee
db: track last indexed block
gaboesquivel Jul 19, 2024
7bc20de
Merge branch 'develop' into canary
gaboesquivel Jul 19, 2024
f621d0c
db: update schema and generated types
gaboesquivel Jul 19, 2024
d88e8e1
chore: update orm db queries
gaboesquivel Jul 19, 2024
97ed331
chore(indexer): fix dockerfile
gaboesquivel Jul 19, 2024
9050553
chore(indexer): fix dockerfile
gaboesquivel Jul 19, 2024
2568ebd
chore(indexer): fix dockerfile
gaboesquivel Jul 19, 2024
a8d7c71
chore(indexer): correct node-fetch version
gaboesquivel Jul 19, 2024
62d5a9f
chore(indexer): correct node-fetch version
gaboesquivel Jul 19, 2024
623187d
chore(indexer): add missing supabasejs dep
gaboesquivel Jul 19, 2024
ea2974e
chore(indexer): add missing supabasejs dep
gaboesquivel Jul 19, 2024
49a796c
devops(indexer): use registry cache
gaboesquivel Jul 19, 2024
26f59de
devops(indexer): revert use reg cache
gaboesquivel Jul 19, 2024
5f8a94b
docs(supabase): update readme
gaboesquivel Jul 19, 2024
69c2f57
wip(indexer): presale module
gaboesquivel Jul 19, 2024
6f77c55
wip(indexer): dfuse client optimization
gaboesquivel Jul 20, 2024
9c71f57
wip(supabase): update db schemas and migrations
gaboesquivel Jul 20, 2024
334d2bd
chore: learn section feature flag
gaboesquivel Jul 20, 2024
5dbe460
chore: add .env.development
gaboesquivel Jul 20, 2024
2f494e2
chore(webapp): add learn section feature flag
gaboesquivel Jul 20, 2024
bf9539f
Merge branch 'main' into develop
gaboesquivel Jul 20, 2024
6c11e1e
Merge branch 'develop' into canary
gaboesquivel Jul 20, 2024
cf93517
chore: fix build
gaboesquivel Jul 20, 2024
cc5e346
Merge branch 'main' into canary
gaboesquivel Jul 20, 2024
b52d255
Merge branch 'develop' into canary
gaboesquivel Jul 21, 2024
c5782d4
Merge branch 'develop' into canary
gaboesquivel Jul 22, 2024
b912c96
wip: presale issuer
gaboesquivel Jul 22, 2024
cc6f742
chore: setup test environment
gaboesquivel Jul 22, 2024
6a9c6ea
Merge branch 'test' into canary
gaboesquivel Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ This package provides a shared ESLint configuration to ensure consistent coding

Similar to `config-eslint`, this package offers a shared TypeScript configuration to standardize TypeScript compilation options across the project.

#### Smartsale Contracts (`/packages/smartsale-contracts`)
#### Smartsale Contracts (`/packages/app-contracts`)

Contains smart contracts for the Smartsale platform, including auction contracts, ERC20 tokens, and other blockchain-based contracts. These are essential for the project's blockchain functionalities.

#### Smartsale Env (`/packages/smartsale-env`)
#### Smartsale Env (`/packages/app-env`)

Provides environment configurations and utilities for the Smartsale platform, ensuring that different environments (development, testing, production) can be managed and configured efficiently.

#### Smartsale Lib (`/packages/smartsale-lib`)
#### Smartsale Lib (`/packages/app-lib`)

A library of reusable code for the Smartsale platform, including utility functions, blockchain interaction helpers, and common components used across the project.

Expand Down
4 changes: 2 additions & 2 deletions apps/faucet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"postcss": "^8.4.39",
"react": "18.x",
"react-dom": "18.x",
"smartsale-env": "workspace:*",
"smartsale-contracts": "workspace:*",
"app-env": "workspace:*",
"app-contracts": "workspace:*",
"tailwind-merge": "^2.4.0",
"tailwindcss": "^3.4.6",
"tailwindcss-animate": "^1.0.7",
Expand Down
2 changes: 1 addition & 1 deletion apps/faucet/src/components/add-token-to-metamask.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EVMTokenContractData } from "smartsale-contracts";
import { EVMTokenContractData } from "app-contracts";
import { useSwitchChain } from "wagmi";
import { Button } from "./ui/button";

Expand Down
2 changes: 1 addition & 1 deletion apps/faucet/src/components/faucet-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
TestnetMBOTSPL,
TestnetUSDCred,
TestnetUSDT,
} from "smartsale-contracts";
} from "app-contracts";
import { TokenSelect } from "./token-select";
import { parseUnits } from "viem";
import { AddTokenToWallet } from "./add-token-to-metamask";
Expand Down
2 changes: 1 addition & 1 deletion apps/faucet/src/components/providers.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ReactNode } from "react";

import { WagmiProvider } from "wagmi";
import { eosEvmTestnet } from "smartsale-env";
import { eosEvmTestnet } from "app-env";
import {
metaMaskWallet,
trustWallet,
Expand Down
2 changes: 1 addition & 1 deletion apps/faucet/src/components/token-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
SelectValue,
} from "@/components/ui/select";
import { SelectProps } from "@radix-ui/react-select";
import { TokenContractData } from "smartsale-contracts";
import { TokenContractData } from "app-contracts";

export function TokenSelect({ options, ...props }: TokenSelectParams) {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/faucet/src/hooks/use-usdt-balance.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TestnetUSDCred } from "smartsale-contracts";
import { TestnetUSDCred } from "app-contracts";
import { formatUnits } from "viem";
import { useAccount, useReadContract } from "wagmi";

Expand Down
6 changes: 3 additions & 3 deletions apps/indexer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ WORKDIR /app
COPY package.json .
COPY apps/supabase/package.json ./apps/supabase/package.json
COPY apps/indexer/package.json ./apps/indexer/package.json
COPY packages/smartsale-env/package.json ./packages/smartsale-env/package.json
COPY packages/smartsale-contracts/package.json ./packages/smartsale-contracts/package.json
COPY packages/smartsale-lib/package.json ./packages/smartsale-lib/package.json
COPY packages/app-env/package.json ./packages/app-env/package.json
COPY packages/app-contracts/package.json ./packages/app-contracts/package.json
COPY packages/app-lib/package.json ./packages/app-lib/package.json
COPY packages/tsconfig/package.json ./packages/tsconfig/package.json
COPY packages/config-typescript/package.json ./packages/config-typescript/package.json
COPY packages/config-eslint/package.json ./packages/config-eslint/package.json
Expand Down
8 changes: 4 additions & 4 deletions apps/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"lodash": "^4.17.21",
"node-fetch": "2.6.4",
"resend": "^3.4.0",
"smartsale-contracts": "workspace:*",
"smartsale-env": "workspace:*",
"smartsale-lib": "workspace:*",
"app-contracts": "workspace:*",
"app-env": "workspace:*",
"app-lib": "workspace:*",
"viem": "latest",
"ws": "^8.18.0"
},
Expand All @@ -40,7 +40,7 @@
"rimraf": "^6.0.1",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"tsconfig": "workspace:*",
"@repo/typescript-config": "workspace:*",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.5.3"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Address } from 'viem'
import { privateKeyToAccount } from 'viem/accounts'
import { smartsaleEnv } from 'smartsale-env'
import { smartsaleEnv } from 'app-env'

export const appenv = {
sentry: {
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getErrorMessage } from 'smartsale-lib'
import { getErrorMessage } from 'app-lib'
import { startAuctionIndexer } from './modules/auction'
import { startSwapsService } from './modules/swaps'
import { startExpress } from './routes/healthcheck'
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/lib/evm-client.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { http, createPublicClient, PublicClient, createWalletClient } from 'viem'
import { sepolia } from 'viem/chains'
import { appenv } from '../config'
import { eosEvmTestnet } from 'smartsale-env'
import { eosEvmTestnet } from 'app-env'

export const client: PublicClient = createPublicClient({
chain: eosEvmTestnet,
Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/src/modules/auction/auction-indexer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Log, stringify } from 'viem'
import { client } from '~/lib/evm-client'
import { TestnetEasyAuction } from 'smartsale-contracts'
import { TestnetEasyAuction } from 'app-contracts'
import {
bigintToPostgresTimestamp,
getEvents,
Expand All @@ -10,7 +10,7 @@ import {
import { NewAuctionEvent, NewSellOrderEvent, NewUserEvent } from '~/modules/auction/auction.type'

import BN from 'bn.js'
import { eosEvmTestnet } from 'smartsale-env'
import { eosEvmTestnet } from 'app-env'
import { upsertAuctionDetail, upsertOrder } from '~/lib/supabase-client'

export async function startAuctionIndexer() {
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/modules/auction/easyauction.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getContract } from 'viem'
import { client } from '../../lib/evm-client'
import { TestnetEasyAuction } from 'smartsale-contracts'
import { TestnetEasyAuction } from 'app-contracts'

export const easyAuction = getContract({
...TestnetEasyAuction,
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/modules/presale/eos-contributions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { smartsaleEnv } from 'smartsale-env'
import { smartsaleEnv } from 'app-env'
import { stringify } from 'viem/utils'
import { createFirehoseSubscription } from '~/lib/dfuse-client'
import { issueTokens } from './presale-issuer'
Expand Down
6 changes: 3 additions & 3 deletions apps/indexer/src/modules/presale/evm-contributions.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { EVMTokenContractData, SepoliaUSDT, TestnetUSDT } from 'smartsale-contracts'
import { EVMTokenContractData, SepoliaUSDT, TestnetUSDT } from 'app-contracts'
import { runPromisesInSeries } from '~/lib/utils'

import { Address, Log, PublicClient, createPublicClient, http, parseAbiItem, stringify } from 'viem'
import { TransferEvent } from '~/modules/auction/auction.type'
import { sepolia } from 'viem/chains'
import { smartsaleChains } from 'smartsale-env'
import { smartsaleChains } from 'app-env'

const tokens: EVMTokenContractData[] = [SepoliaUSDT, TestnetUSDT]

Expand All @@ -14,7 +14,7 @@ export async function listenToEvmContributions() {
}

async function listenToEvmTransfersFn(token: EVMTokenContractData) {
const chain = smartsaleChains.test.get(token.chainId)
const chain = smartsaleChains.dev.get(token.chainId)
if (!chain) return
console.log(`listening usdt transfers for token ${token.symbol} on chain ${chain.name}`)
const client: PublicClient = createPublicClient({
Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/src/modules/presale/presale-issuer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TestnetUSDCred } from 'smartsale-contracts'
import { eosEvmTestnet } from 'smartsale-env'
import { TestnetUSDCred } from 'app-contracts'
import { eosEvmTestnet } from 'app-env'
import { createWalletClient } from 'viem'
import { appenv } from '~/config'
import { Address, http } from 'viem'
Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/src/modules/swaps/cred-issuer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TestnetUSDCred } from 'smartsale-contracts'
import { eosEvmTestnet } from 'smartsale-env'
import { TestnetUSDCred } from 'app-contracts'
import { eosEvmTestnet } from 'app-env'
import { createWalletClient } from 'viem'
import { appenv } from '~/config'
import { Address, http } from 'viem'
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/modules/swaps/eos-transfers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { smartsaleEnv } from 'smartsale-env'
import { smartsaleEnv } from 'app-env'
import { stringify } from 'viem/utils'
import { createFirehoseSubscription } from '~/lib/dfuse-client'
import { issueTokens } from './cred-issuer'
Expand Down
6 changes: 3 additions & 3 deletions apps/indexer/src/modules/swaps/evm-transfers.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { EVMTokenContractData, SepoliaUSDT, TestnetUSDT } from 'smartsale-contracts'
import { EVMTokenContractData, SepoliaUSDT, TestnetUSDT } from 'app-contracts'
import { runPromisesInSeries } from '~/lib/utils'

import { Address, Log, PublicClient, createPublicClient, http, parseAbiItem, stringify } from 'viem'
import { TransferEvent } from '~/modules/auction/auction.type'
import { sepolia } from 'viem/chains'
import { smartsaleChains } from 'smartsale-env'
import { smartsaleChains } from 'app-env'

const tokens: EVMTokenContractData[] = [SepoliaUSDT, TestnetUSDT]

Expand All @@ -14,7 +14,7 @@ export async function listenToEvmTransfers() {
}

async function listenToEvmTransfersFn(token: EVMTokenContractData) {
const chain = smartsaleChains.test.get(token.chainId)
const chain = smartsaleChains.dev.get(token.chainId)
if (!chain) return
console.log(`listening usdt transfers for token ${token.symbol} on chain ${chain.name}`)
const client: PublicClient = createPublicClient({
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../packages/tsconfig/node16.json",
"extends": "../../packages/config-typescript/node16.json",
"include": ["./src/**/*", "src/lib/utils.ts"],
"exclude": ["node_modules"],
"compilerOptions": {
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/actions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use server'

import { cookies } from 'next/headers'
import { fromEntries } from 'smartsale-lib'
import { fromEntries } from 'app-lib'
import { handleAxiosError } from '@/lib/utils'
import axios from 'axios'
import { Resend } from 'resend'
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/components/dialogs/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useSession } from '@/hooks/use-session'
import { useRouter } from 'next/navigation'
import QRCode from 'react-qr-code'
import { useEffectOnce } from 'react-use'
import { runtimeEnv } from 'smartsale-lib'
import { runtimeEnv } from 'app-lib'

export function RegisterDialogContent({
updateDialogContent
Expand Down
4 changes: 2 additions & 2 deletions apps/webapp/components/layout/header/bitcash-access.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { useRouter, useSearchParams } from 'next/navigation'
import { useEffect, useState } from 'react'
// import { bitcashLogin } from '@/lib/esr'
import { useToggle } from 'react-use'
import { TestnetUSDCred } from 'smartsale-contracts'
import { runtimeEnv } from 'smartsale-lib'
import { TestnetUSDCred } from 'app-contracts'
import { runtimeEnv } from 'app-lib'
import { useAccount } from 'wagmi'

export function BitcashAccessButton({
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/components/layout/header/nav-links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { appConfig } from '@/lib/config'
import { useAccountModal, useConnectModal } from '@rainbow-me/rainbowkit'
import Link from 'next/link'
import { useRouter } from 'next/navigation'
import { formatAddress } from 'smartsale-lib'
import { formatAddress } from 'app-lib'
import { useAccount } from 'wagmi'
import { v4 as uuidv4 } from 'uuid'

Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/components/layout/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { ThemeProvider as NextThemesProvider } from 'next-themes'
import { ThemeProviderProps } from 'next-themes/dist/types'
import { eosEvmTestnet } from 'smartsale-env'
import { eosEvmTestnet } from 'app-env'
import { WagmiProvider } from 'wagmi'
import { sepolia } from 'wagmi/chains'
import { UseSigningRequestProvider } from '@/hooks/use-signing-request'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useSession } from '@/hooks/use-session'
import { useRouter } from 'next/navigation'
import QRCode from 'react-qr-code'
import { useEffectOnce } from 'react-use'
import { runtimeEnv } from 'smartsale-lib'
import { runtimeEnv } from 'app-lib'

export function RegisterDialogContent({
updateDialogContent
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/components/layout/session/session-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useAccountModal } from '@rainbow-me/rainbowkit'
import { User, Wallet } from 'lucide-react'
import { useRouter } from 'next/navigation'
import { isMobile } from 'react-device-detect'
import { formatAddress } from 'smartsale-lib'
import { formatAddress } from 'app-lib'
import { useAccount } from 'wagmi'
import {
Popover,
Expand Down
18 changes: 9 additions & 9 deletions apps/webapp/components/routes/project/auction/auction-bids.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { cn } from '@/lib/utils'
import { readContract, writeContract } from '@wagmi/core'
import { erc20Abi } from 'abitype/abis'
import { useEffect, useState } from 'react'
import { TestnetEasyAuction, TestnetUSDCred } from 'smartsale-contracts'
import { toSmallestUnit } from 'smartsale-lib'
import { TestnetEasyAuction, TestnetUSDCred } from 'app-contracts'
import { toSmallestUnit } from 'app-lib'
import { Address } from 'viem'
import { useAccount, useWriteContract } from 'wagmi'
import { wagmiConfig } from '../../../layout/providers'
Expand Down Expand Up @@ -139,8 +139,8 @@ export function AuctionBids({ project }: AuctionBidsProps) {
<Table>
<TableHeader>
<TableRow>
<TableHead className="font-semibold bg-muted">Max Price</TableHead>
<TableHead className="font-semibold bg-muted">Bid Amount</TableHead>
<TableHead className="bg-muted font-semibold">Max Price</TableHead>
<TableHead className="bg-muted font-semibold">Bid Amount</TableHead>
</TableRow>
</TableHeader>
<TableBody>
Expand Down Expand Up @@ -191,7 +191,7 @@ export function AuctionBids({ project }: AuctionBidsProps) {
</Button>

<div className="flex flex-col gap-2">
<p className="flex justify-between w-full">
<p className="flex w-full justify-between">
{textValues.currentBid.split(':').map((txt, index) =>
!index ? (
<b key={txt} className="block">
Expand All @@ -202,7 +202,7 @@ export function AuctionBids({ project }: AuctionBidsProps) {
)
)}
</p>
<p className="flex justify-between w-full">
<p className="flex w-full justify-between">
{textValues.currentCost.split(':').map((txt, index) =>
!index ? (
<b key={txt} className="block">
Expand All @@ -213,7 +213,7 @@ export function AuctionBids({ project }: AuctionBidsProps) {
)
)}
</p>
<p className="mt-2 text-sm text-right">{textValues.maxTokenLimit}</p>
<p className="mt-2 text-right text-sm">{textValues.maxTokenLimit}</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -250,14 +250,14 @@ function CurrencyInput({ handlechange, ...props }: CurrencyInputProps) {

return (
<div className="relative">
<span className="absolute inset-y-0 flex items-center left-2">$</span>
<span className="absolute inset-y-0 left-2 flex items-center">$</span>

<input
type="text" // Changed to text to handle manual formatting
value={value}
onChange={handleChange}
onBlur={handleBlur}
className="w-full pl-6 bg-transparent focus:outline-none"
className="w-full bg-transparent pl-6 focus:outline-none"
{...props}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import BN from 'bn.js'
import { format } from 'date-fns'
import Link from 'next/link'
import { useEffect, useState } from 'react'
import { TestnetEasyAuction } from 'smartsale-contracts'
import { formatAddress } from 'smartsale-lib'
import { TestnetEasyAuction } from 'app-contracts'
import { formatAddress } from 'app-lib'
import { useAccount, useReadContract } from 'wagmi'

export function AuctionOrders() {
Expand Down Expand Up @@ -80,7 +80,7 @@ export function AuctionOrders() {

return (
<>
<h2 className="px-2 py-5 heading3">Orders</h2>
<h2 className="heading3 px-2 py-5">Orders</h2>
<Table>
<TableHeader>
<TableRow>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
EVMTokenContractData,
TestnetUSDT,
TokenContractData
} from 'smartsale-contracts'
} from 'app-contracts'
import { parseUnits } from 'viem'
import { useAccount, useSwitchChain, useWriteContract } from 'wagmi'
import { appConfig } from '@/lib/config'
Expand Down Expand Up @@ -110,7 +110,7 @@ function PresaleDeposit() {
Transfer tokens to participate in the presale.
</CardDescription>
</CardHeader>
<div className="flex flex-col mb-5">
<div className="mb-5 flex flex-col">
<label htmlFor="deposit" className="text-sm font-bold"></label>
<div className="flex items-center justify-between">
<div className="flex min-w-[40%] flex-col">
Expand Down
Loading
Loading