-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore: env updates #288
chore: env updates #288
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
NEXT_PUBLIC_ENABLE_WALLET_REDIRECT=true | ||
NEXT_PUBLIC_FEAT_NEW_NAV_STRUCT=true | ||
NEXT_PUBLIC_FEAT_PRESALE=true | ||
NEXT_PUBLIC_NEW_SECTIONS=true | ||
NEXT_PUBLIC_LEARN_SECTION=true | ||
NEXT_PUBLIC_NEW_I18N=false | ||
NEXT_PUBLIC_EXPLORATIONS=false |
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,11 @@ | ||||||
# app-env | ||||||
|
||||||
This package manages the environment configurations for the smartsale project, covering production, pre-production, and development settings. | ||||||
|
||||||
## Environments | ||||||
|
||||||
- **Production (prod)**: [bitlauncher.ai](https://bitlauncher.ai) - Mainnet auction contracts with real tokens. | ||||||
- **Pre-Production (test)**: [test.bitlauncher.ai](https://test.bitlauncher.ai) - Mainnet pre-prod auction contracts with real tokens. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (documentation): Consider changing 'pre-prod' to 'pre-production' for consistency. Using 'pre-production' instead of 'pre-prod' would maintain consistency with the rest of the document.
Suggested change
|
||||||
- **Development (dev)**: [dev.bitlauncher.ai](https://dev.bitlauncher.ai) - Testnet auction contracts with mocked tokens. | ||||||
|
||||||
All preview deployments run against the development environment. |
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -31,7 +31,7 @@ const prod: SmartsaleEnvConfig = { | |||||||||||||
auction: "0x", | ||||||||||||||
bk: "launchpad.bk", | ||||||||||||||
}, | ||||||||||||||
usdt: [EOSUSDT], | ||||||||||||||
usdt: [EOSUSDT,...usdcContracts, ...usdtContracts], | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Potential issue with spread operator usage. Ensure that |
||||||||||||||
}; | ||||||||||||||
|
||||||||||||||
const dev: SmartsaleEnvConfig = { | ||||||||||||||
|
@@ -41,7 +41,6 @@ const dev: SmartsaleEnvConfig = { | |||||||||||||
}, | ||||||||||||||
chains: smartsaleChains.dev, | ||||||||||||||
esrCallbackUrl: "https://dev.bitlauncher.ai/api/esr", | ||||||||||||||
// esrCallbackUrl: "https://192.168.23.3:3000/api/esr", | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Consider removing commented-out code. Leaving commented-out code can clutter the codebase and make it harder to maintain. If this line is no longer needed, consider removing it entirely.
Suggested change
|
||||||||||||||
issuer: { | ||||||||||||||
eos: "gaboesquivel", | ||||||||||||||
evm: "0x", | ||||||||||||||
|
@@ -57,59 +56,21 @@ const dev: SmartsaleEnvConfig = { | |||||||||||||
}, | ||||||||||||||
usdt: [EOSFakeBITUSD, EOSFakeUSDT, SepoliaUSDT, TestnetUSDT], | ||||||||||||||
}; | ||||||||||||||
|
||||||||||||||
const canary: SmartsaleEnvConfig = { | ||||||||||||||
supabase: { | ||||||||||||||
url : 'https://mitkjznioyrucenuzsdb.supabase.co', | ||||||||||||||
anonKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1pdGtqem5pb3lydWNlbnV6c2RiIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTMxMzA3MzgsImV4cCI6MjAyODcwNjczOH0.uVdiJfaonQfWvL--71QFAdiXGMiN1SRYlYGLNiSuNC0', | ||||||||||||||
}, | ||||||||||||||
chains: smartsaleChains.dev, | ||||||||||||||
esrCallbackUrl: "https://canary.bitlauncher.ai/api/esr", | ||||||||||||||
issuer: { | ||||||||||||||
eos: "gaboesquivel", | ||||||||||||||
evm: "0x", | ||||||||||||||
}, | ||||||||||||||
bitcash: { | ||||||||||||||
bank: "bkbbanktest3", | ||||||||||||||
token: "bkbtokentest", | ||||||||||||||
accounts: "bkbaccountst", | ||||||||||||||
}, | ||||||||||||||
smartsale: { | ||||||||||||||
auction: "0x", | ||||||||||||||
bk: "bkblaunchpad", | ||||||||||||||
}, | ||||||||||||||
usdt: [EOSFakeBITUSD, EOSFakeUSDT, SepoliaUSDT, TestnetUSDT, ...usdcContracts, ...usdtContracts], | ||||||||||||||
}; | ||||||||||||||
|
||||||||||||||
// pre production tests | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Unclear comment. The comment
Suggested change
|
||||||||||||||
const test: SmartsaleEnvConfig = { | ||||||||||||||
supabase: { | ||||||||||||||
url : 'https://mitkjznioyrucenuzsdb.supabase.co', | ||||||||||||||
anonKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1pdGtqem5pb3lydWNlbnV6c2RiIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTMxMzA3MzgsImV4cCI6MjAyODcwNjczOH0.uVdiJfaonQfWvL--71QFAdiXGMiN1SRYlYGLNiSuNC0', | ||||||||||||||
}, | ||||||||||||||
chains: smartsaleChains.prod, | ||||||||||||||
...prod, | ||||||||||||||
// supabase: { | ||||||||||||||
// url : 'https://mitkjznioyrucenuzsdb.supabase.co', | ||||||||||||||
// anonKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1pdGtqem5pb3lydWNlbnV6c2RiIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTMxMzA3MzgsImV4cCI6MjAyODcwNjczOH0.uVdiJfaonQfWvL--71QFAdiXGMiN1SRYlYGLNiSuNC0', | ||||||||||||||
// }, | ||||||||||||||
esrCallbackUrl: "https://test.bitlauncher.ai/api/esr", | ||||||||||||||
issuer: { | ||||||||||||||
eos: "gaboesquivel", | ||||||||||||||
evm: "0x", | ||||||||||||||
}, | ||||||||||||||
bitcash: { | ||||||||||||||
bank: "bkbbanktest3", | ||||||||||||||
token: "bkbtokentest", | ||||||||||||||
accounts: "bkbaccountst", | ||||||||||||||
}, | ||||||||||||||
smartsale: { | ||||||||||||||
auction: "0x", | ||||||||||||||
bk: "bkblaunchpad", | ||||||||||||||
}, | ||||||||||||||
usdt: [EOSFakeBITUSD, EOSFakeUSDT, SepoliaUSDT, TestnetUSDT, ...usdcContracts, ...usdtContracts], | ||||||||||||||
}; | ||||||||||||||
|
||||||||||||||
// common environment configs | ||||||||||||||
export const smartsaleEnv = { | ||||||||||||||
prod, | ||||||||||||||
dev, | ||||||||||||||
test, | ||||||||||||||
canary, | ||||||||||||||
}; | ||||||||||||||
|
||||||||||||||
// expiclit type to enforce it | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (documentation): Consider capitalizing 'smartsale' to 'SmartSale'.
It might be a proper noun or brand name, so capitalizing it could be more appropriate.