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

Bfe 178 ipfs fleek ci workflow #42

Merged
merged 63 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from 57 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
de8443b
BFE-56 moving berps to ipfs
bearpong Aug 20, 2024
88f1837
minor clean up
bearpong Aug 21, 2024
f7e4e6c
chore: add .env.bartio to git
bearpong Aug 26, 2024
3349887
chore: set-env to copy env presets to .env
bearpong Aug 26, 2024
ac3648c
ci: setup Test static build on IPFS Refs: BFE-178
bearpong Aug 22, 2024
e088d26
fix: pnpm version conflict with package.json BFE-178
bearpong Aug 22, 2024
237df4a
ci: deploy on fleek Refs: BFE-178
bearpong Aug 22, 2024
1b18d3e
build: set env files during ci workflow
bearpong Aug 26, 2024
ffd26a2
ci: updated deploy on fleek
bearpong Aug 26, 2024
648a127
build: update flows
bearpong Aug 26, 2024
f1c3552
revert: "chore: set-env to copy env presets to .env" to restore index…
bearpong Aug 26, 2024
9815d48
build: update flows env
bearpong Aug 26, 2024
a7ad490
ci: cache
bearpong Aug 26, 2024
63371a9
build: dotenv -c param to include .env.local
bearpong Aug 27, 2024
9dcb85d
revert: removed cache in workflows
bearpong Aug 27, 2024
e4bcbf4
ci: add env to actions
bearpong Aug 27, 2024
1952c51
fix: typo
bearpong Aug 27, 2024
692e1b3
fix: minor
bearpong Aug 27, 2024
5ff7b9e
ci: assign environment
bearpong Aug 27, 2024
59d5fc1
ci: added repo secrets instead of env
bearpong Aug 27, 2024
54518df
fix: wrong .env.bartio
bearpong Aug 27, 2024
3899537
build: added env vars
bearpong Aug 28, 2024
47a965b
fix: adding env to build cmd
bearpong Aug 28, 2024
d7e8eba
build: updated vars
bearpong Aug 28, 2024
4bf0e58
ci: added vars
bearpong Aug 28, 2024
dc49f88
ci: trying to fix build
bearpong Aug 28, 2024
38edf1f
ci: debugging fail
bearpong Aug 28, 2024
a749dcc
fix(perp): start trading on ipfs
bearpong Aug 29, 2024
550ae95
build(perp): added build:ipfs to avoid wrongful builds
bearpong Aug 29, 2024
f680b86
fix(perp): minor
bearpong Aug 30, 2024
22110ad
fix: testing ci build w/o rewriting charting access token
bearpong Aug 30, 2024
0757c8f
Revert "fix: testing ci build w/o rewriting charting access token"
bearpong Aug 30, 2024
8f6a5ea
ci: runs copy-trading-view.sh in the workflow
bearpong Aug 30, 2024
725bcdb
fix: ci no script
bearpong Aug 30, 2024
537a091
ci: upload on fleek
bearpong Aug 30, 2024
c3514cb
fix: add isIPFS env variable and fix wrong perp links
bearpong Aug 30, 2024
3b4eccc
Merge branch 'v2' into BFE-178-ipfs-fleek-ci-workflow
bearpong Aug 30, 2024
a8fe88a
Merge remote-tracking branch 'origin/v2' into BFE-178-ipfs-fleek-ci-w…
bearpong Aug 30, 2024
5d662aa
build: updated pnpm-lock
bearpong Aug 30, 2024
e912e84
ci: clean debug triggers
bearpong Aug 30, 2024
ef5faf6
Merge remote-tracking branch 'main/v2' into BFE-178-ipfs-fleek-ci-wor…
bearpong Sep 2, 2024
71490b6
build: added .env.artio
bearpong Sep 2, 2024
fc5bd72
Merge branch 'v2' into BFE-56-berps-decentralize-dapp
bearpong Sep 2, 2024
15fc16c
Merge remote-tracking branch 'main/v2' into BFE-56-berps-decentralize…
bearpong Sep 2, 2024
80e7321
ci: updated setenv scripts on workflows
bearpong Sep 2, 2024
846dd15
fix: env conflicts
bearpong Sep 2, 2024
7ce5242
fix: use dynamic api dev key
bearpong Sep 2, 2024
f5da58c
docs: added installation to readme
bearpong Sep 2, 2024
c4930d0
ci: added honey to ipfs
bearpong Sep 2, 2024
371348f
Merge branch 'BFE-56-berps-decentralize-dapp' into BFE-178-ipfs-fleek…
bearpong Sep 3, 2024
8d03eee
fix: CHARTING_ACCESS_TOKEN was missing (again?)
bearpong Sep 3, 2024
4339b7a
fix(ci): build should have no filters
bearpong Sep 3, 2024
4f4aadb
Merge branch 'v2' into BFE-56-berps-decentralize-dapp
bearpong Sep 4, 2024
6eead35
Merge branch 'v2' into BFE-56-berps-decentralize-dapp
bearpong Sep 4, 2024
28a879b
style: run format
bearpong Sep 4, 2024
877fcd3
Merge remote-tracking branch 'main/BFE-56-berps-decentralize-dapp' in…
bearpong Sep 4, 2024
7aa5c27
fix: remove sentry in static builds
bearpong Sep 5, 2024
2c0388c
Improvement: change bribe to incentive (#52)
ninibear030 Sep 5, 2024
edcc554
Feature: governance landing UI (#53)
ninibear030 Sep 5, 2024
4f12419
ci: updated fleek slugs
bearpong Sep 6, 2024
65083f7
chore: added v2 env
bearpong Sep 6, 2024
19778f2
chore: clean up local env
bearpong Sep 6, 2024
e0b991b
typo
bearpong Sep 6, 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
141 changes: 141 additions & 0 deletions .env.artio
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
# Block Explorer ===================================================================
NEXT_PUBLIC_BLOCK_EXPLORER_NAME="Beratrails"
NEXT_PUBLIC_BLOCK_EXPLORER="https://artio.beratrail.io"
# Homepage/foundation ==============================================================
NEXT_PUBLIC_HOMEPAGE_NAME="Berachain Foundation"
NEXT_PUBLIC_HOMEPAGE_URL="https://www.berachain.com"
# HONEY ===================================================================
NEXT_PUBLIC_HONEY_NAME="Honey"
NEXT_PUBLIC_HONEY_URL="https://artio.honey.berachain.com"

# BGT ===================================================================
NEXT_PUBLIC_BGT_NAME="BGT Station"
NEXT_PUBLIC_BGT_URL="https://artio.station.berachain.com"
# DEX ===================================================================
NEXT_PUBLIC_DEX_NAME="BEX"
NEXT_PUBLIC_DEX_URL="https://artio.bex.berachain.com"
# LEND ===================================================================
NEXT_PUBLIC_LEND_NAME="BEND"
NEXT_PUBLIC_LEND_URL="https://artio.bend.berachain.com"
NEXT_PUBLIC_LEND_DOCS_URL="https://docs.bend.berachain.com"
# LEND contract address ==========================================================
NEXT_PUBLIC_LEND_POOL_ADDRESS_PROVIDER="0x40C33CcbF44F554E1Bf8379BE1a5151Ab0F80f65"
NEXT_PUBLIC_LEND_ORACLE_ADDRESS="0x3031fE6A015f367D675476F48499C8A9517cEc34"
NEXT_PUBLIC_LEND_POOL_IMPLEMENTATION_ADDRESS="0x9261b5891d3556e829579964B38fe706D0A2D04a"
NEXT_PUBLIC_LEND_UI_DATA_PROVIDER_ADDRESS="0xfb618D1e361C362adDE4E148A4Dc85465a0A4A22"
NEXT_PUBLIC_LEND_REWARDS_ADDRESS="0x9e01a57C1febb35Cd366a8520F961dFee566E5ff"
NEXT_PUBLIC_LEND_HONEY_DEBT_TOKEN_ADDRESS="0x7f8E75356015fECfafF66e2B34F181A093Dc4519"
NEXT_PUBLIC_PERIPHERY_DEBT_TOKEN_ADDRESS= # todo: this is missing on artio
# PERPS ===================================================================
NEXT_PUBLIC_PERPS_NAME="BERPS"
NEXT_PUBLIC_PERPS_URL="https://artio.berps.berachain.com"
NEXT_PUBLIC_PERPS_DOCS_URL="https://docs.berps.berachain.com"
NEXT_PUBLIC_PERPS_ENDPOINT_URL="https://artio-bts-api-classic.berachain.com"
NEXT_PUBLIC_PERPS_PRICES_ENDPOINT_URL="https://hermes.pyth.network"
NEXT_PUBLIC_PERPS_PRICES_BENCHMARK_URL="https://benchmarks.pyth.network"
NEXT_PUBLIC_PERPS_COMPETITION_ID="default"
NEXT_PUBLIC_PERPS_PYTH_PRICES_MOCKED="false"
NEXT_PUBLIC_PERPS_TRADINGVIEW_ENABLED="false"

# PERPS contract address ==========================================================
NEXT_PUBLIC_TRADING_CONTRACT_ADDRESS="0x9251319b7bb51165a200cd03db0b0e4f94340258"
NEXT_PUBLIC_STORAGE_CONTRACT_ADDRESS="0x9324fcd4d9f09ab437de73370aecc14b115bdc28"
NEXT_PUBLIC_BORROWING_FEES_CONTRACT_ADDRESS="0x0f432fd81e1f4590bc80f6333d6b0ba9920450e2"
NEXT_PUBLIC_PAIRS_STORAGE_CONTRACT_ADDRESS="0x1d24186859f1a7a1f1bb2e7164fb44ea14a8a45a"
NEXT_PUBLIC_BHONEY_VAULT_CONTRACT_ADDRESS="" # todo: this is missing on artio
NEXT_PUBLIC_BHONEY_GAUGE_VAULT_CONTRACT_ADDRESS="" # todo: this is missing on artio
NEXT_PUBLIC_REFERRALS_CONTRACT_ADDRESS="0x340b8ca1c5289e3848067f5ecc11e067e43d933d"
NEXT_PUBLIC_PYTH_CONTRACT_ADDRESS="" # todo: this is missing on artio
# Faucet ===================================================================
NEXT_PUBLIC_FAUCET_NAME="Faucet"
NEXT_PUBLIC_FAUCET_URL="https://artio.faucet.berachain.com"

# Cloudinary & Media ===================================================================
NEXT_PUBLIC_TOKEN_LIST="https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/tokens/testnet/defaultTokenList.json"
NEXT_PUBLIC_MARKETS_LIST="" # todo: this is missing on artio
NEXT_PUBLIC_GAUGE_LIST="" # todo: this is missing on artio
NEXT_PUBLIC_VALIDATOR_LIST="https://raw.githubusercontent.com/berachain/default-token-list/main/src/validators/testnet/defaultValidatorList.json"
NEXT_PUBLIC_CLOUDINARY_URL="https://res.cloudinary.com/duv0g402y/image/upload/f_auto,q_auto/v1"
NEXT_PUBLIC_DOCS_URL="https://docs.berachain.com"
NEXT_PUBLIC_CAREERS_URL="https://careers.berachain.com/"
NEXT_PUBLIC_MEDIA_KIT_URL="https://drive.google.com/drive/folders/1r658Px_VhjiUEC4AQAhHRCBeVKjcRWU6"
NEXT_PUBLIC_BERAERA_BLOG_URL="https://medium.com/berachain-foundation/the-bera-era-has-begun-49a18c6d77c0"
NEXT_PUBLIC_FEEDBACK_URL=""

# Socials ===================================================================
NEXT_PUBLIC_TWITTER="https://twitter.com/berachain"
NEXT_PUBLIC_TELEGRAM="https://t.me/BerachainPortal"
NEXT_PUBLIC_DISCORD="https://discord.com/invite/berachain"
NEXT_PUBLIC_GITHUB="https://github.com/berachain"

# Chain ===================================================================
NEXT_PUBLIC_CHAIN_ID="80085"
NEXT_PUBLIC_CHAIN_NAME="Berachain-Artio"
NEXT_PUBLIC_NETWORK_NAME="Berachain-Artio"
NEXT_PUBLIC_JSON_RPC_URL="https://artio.rpc.berachain.com"
NEXT_PUBLIC_PUBLIC_JSON_RPC_URL="https://artio.rpc.berachain.com"
NEXT_PUBLIC_NETWORK_ICON_URL="https://res.cloudinary.com/duv0g402y/raw/upload/v1717603357/src/assets/bera.png"
NEXT_PUBLIC_NETWORK_CURRENCY="BERA"
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS="18"
NEXT_PUBLIC_NETWORK_CURRENCY_NAME="Bera"

# Chain contracts ===================================================================

NEXT_PUBLIC_MULTICALL_ADDRESS="0x9d1dB8253105b007DDDE65Ce262f701814B91125"
# NEXT_PUBLIC_MULTICALL_CREATION_BLOCK="6983"

# This is only going to work on whitelisted domains.
# Please create your own API key and add it to your .env.local file
NEXT_PUBLIC_DYNAMIC_API_KEY="b8a5104d-47e0-4965-b56a-0bcc31cf56f4"


# in seconds
NEXT_PUBLIC_BLOCKTIME="5"

# Honey Addresses ===================================================================
NEXT_PUBLIC_HONEY_ROUTER_ADDRESS="0xAd1782b2a7020631249031618fB1Bd09CD926b31"
# Honey Tokens ======================================================================
NEXT_PUBLIC_HONEY_ADDRESS="0x7EeCA4205fF31f947EdBd49195a7A88E6A91161B"
NEXT_PUBLIC_WBERA_ADDRESS="0x5806E416dA447b267cEA759358cF22Cc41FAE80F"
NEXT_PUBLIC_BERA_ADDRESS="0x0000000000000000000000000000000000000000"
NEXT_PUBLIC_STGUSDC_ADDRESS="0x1d0f659ff50d1830e449dd88e533cb11fb7a25e4"
NEXT_PUBLIC_WBTC_ADDRESS="0x9DAD8A1F64692adeB74ACa26129e0F16897fF4BB"
NEXT_PUBLIC_WETH_ADDRESS="0x8239FBb3e3D0C2cDFd7888D8aF7701240Ac4DcA4"
NEXT_PUBLIC_AHONEY_ADDRESS= # todo: this is missing on artio
NEXT_PUBLIC_VDHONEY_ADDRESS= # todo: this is missing on artio

# Dex Addresses ===================================================================
NEXT_PUBLIC_RPC_CROC_DEX= # todo: this is missing on artio
NEXT_PUBLIC_RPC_CROC_QUERY= # todo: this is missing on artio
NEXT_PUBLIC_RPC_CROC_IMPACT= # todo: this is missing on artio
NEXT_PUBLIC_RPC_CROC_MULTIPATH= # todo: this is missing on artio
NEXT_PUBLIC_RPC_CROC_MULTISWAP= # todo: this is missing on artio
NEXT_PUBLIC_RPC_CROC_ROUTER_ENDPOINT= # todo: this is missing on artio
NEXT_PUBLIC_RPC_CROC_INDEXER_ENDPOINT= # todo: this is missing on artio

# BGT Addresses ===================================================================
NEXT_PUBLIC_BGT_ADDRESS="0xAcD97aDBa1207dCf27d5C188455BEa8a32E80B8b"
NEXT_PUBLIC_BGT_STAKER= # todo: this is missing on artio
NEXT_PUBLIC_BGT_ENDPOINT= # todo: this is missing on artio
NEXT_PUBLIC_BGT_VAULT_BLACKLIST= # todo: this is missing on artio

# Subgraphs ===================================================================
NEXT_PUBLIC_BEND_SUBGRAPH_URL= # todo: this is missing on artio
NEXT_PUBLIC_HONEY_SUBGRAPH_URL= # todo: this is missing on artio
NEXT_PUBLIC_RPC_CROC_SUBGRAPH= # todo: this is missing on artio
NEXT_PUBLIC_BGT_SUBGRAPH_URL= # todo: this is missing on artio
NEXT_PUBLIC_BGT_STAKER_SUBGRAPH_URL= # todo: this is missing on artio

# Analytics - To be updated in .env.local ========================================
NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN=""
NEXT_PUBLIC_SENTRY_DSN=""
SENTRY_AUTH_TOKEN=""
SENTRY_ORG=""
SENTRY_PROJECT=""
NEXT_PUBLIC_PROJECT_NAME=""
# Uncomment the following line to activate analytics locally
# NEXT_PUBLIC_DEVELOPMENT_ANALYTICS="true"

# IPFS ===================================================================
# Uncomment the following line to build for IPFS
# NEXT_PUBLIC_HOST="ipfs"
141 changes: 141 additions & 0 deletions .env.bartio
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
# Block Explorer ===================================================================
NEXT_PUBLIC_BLOCK_EXPLORER_NAME="Beratrails"
NEXT_PUBLIC_BLOCK_EXPLORER="https://bartio.beratrail.io"
# Homepage/foundation ==============================================================
NEXT_PUBLIC_HOMEPAGE_NAME="Berachain Foundation"
NEXT_PUBLIC_HOMEPAGE_URL="https://www.berachain.com"
# HONEY ===================================================================
NEXT_PUBLIC_HONEY_NAME="Honey"
NEXT_PUBLIC_HONEY_URL="https://bartio.honey.berachain.com"

# BGT ===================================================================
NEXT_PUBLIC_BGT_NAME="BGT Station"
NEXT_PUBLIC_BGT_URL="https://bartio.station.berachain.com"
# DEX ===================================================================
NEXT_PUBLIC_DEX_NAME="BEX"
NEXT_PUBLIC_DEX_URL="https://bartio.bex.berachain.com"
# LEND ===================================================================
NEXT_PUBLIC_LEND_NAME="BEND"
NEXT_PUBLIC_LEND_URL="https://bartio.bend.berachain.com"
NEXT_PUBLIC_LEND_DOCS_URL="https://docs.bend.berachain.com"
# LEND contract address ==========================================================
NEXT_PUBLIC_LEND_POOL_ADDRESS_PROVIDER="0x8297A07f87a8576b88d46e636c05B84E4Ea8265D"
NEXT_PUBLIC_LEND_ORACLE_ADDRESS="0x18fDa978e01196B2D5037dF9a9c0C9d3ab843344"
NEXT_PUBLIC_LEND_POOL_IMPLEMENTATION_ADDRESS="0x30A3039675E5b5cbEA49d9a5eacbc11f9199B86D"
NEXT_PUBLIC_LEND_UI_DATA_PROVIDER_ADDRESS="0xa0f2eA8A4D77c7055BfddDC434C65f17868Dfaca"
NEXT_PUBLIC_LEND_REWARDS_ADDRESS="0x2E8410239bB4b099EE2d5683e3EF9d6f04E321CC"
NEXT_PUBLIC_LEND_HONEY_DEBT_TOKEN_ADDRESS="0x1339503343be5626B40Ee3Aee12a4DF50Aa4C0B9"
NEXT_PUBLIC_PERIPHERY_DEBT_TOKEN_ADDRESS="0x1339503343be5626B40Ee3Aee12a4DF50Aa4C0B9"
# PERPS ===================================================================
NEXT_PUBLIC_PERPS_NAME="BERPS"
NEXT_PUBLIC_PERPS_URL="https://bartio.berps.berachain.com"
NEXT_PUBLIC_PERPS_DOCS_URL="https://docs.berps.berachain.com"
NEXT_PUBLIC_PERPS_ENDPOINT_URL="https://bartio-berps.berachain-devnet.com"
NEXT_PUBLIC_PERPS_PRICES_ENDPOINT_URL="https://hermes.pyth.network"
NEXT_PUBLIC_PERPS_PRICES_BENCHMARK_URL="https://benchmarks.pyth.network"
NEXT_PUBLIC_PERPS_COMPETITION_ID="default"
NEXT_PUBLIC_PERPS_PYTH_PRICES_MOCKED="false"
NEXT_PUBLIC_PERPS_TRADINGVIEW_ENABLED="false"

# PERPS contract address ==========================================================
NEXT_PUBLIC_TRADING_CONTRACT_ADDRESS="0xb3395EeeA7701E0037bBC6Ab52953C6fB0c3326c"
NEXT_PUBLIC_STORAGE_CONTRACT_ADDRESS="0xB87196E95A7C38192D57087D54b3a5F996D17F1A"
NEXT_PUBLIC_BORROWING_FEES_CONTRACT_ADDRESS="0x0B92C464a41e515559064A737F6A165d43F01d43"
NEXT_PUBLIC_PAIRS_STORAGE_CONTRACT_ADDRESS="0x61C3ADb0a2c48B80F8fFcF51551d20053f686aCF"
NEXT_PUBLIC_BHONEY_VAULT_CONTRACT_ADDRESS="0x1306D3c36eC7E38dd2c128fBe3097C2C2449af64"
NEXT_PUBLIC_BHONEY_GAUGE_VAULT_CONTRACT_ADDRESS="0xC5Cb3459723B828B3974f7E58899249C2be3B33d"
NEXT_PUBLIC_REFERRALS_CONTRACT_ADDRESS="0x50023e115ead2111e29AFf61DBd8BE04F0CC94A6"
NEXT_PUBLIC_PYTH_CONTRACT_ADDRESS="0x2880aB155794e7179c9eE2e38200202908C17B43"
# Faucet ===================================================================
NEXT_PUBLIC_FAUCET_NAME="Faucet"
NEXT_PUBLIC_FAUCET_URL="https://bartio.faucet.berachain.com"

# Cloudinary & Media ===================================================================
NEXT_PUBLIC_TOKEN_LIST="https://raw.githubusercontent.com/berachain/default-lists/main/src/tokens/bartio/defaultTokenList.json"
NEXT_PUBLIC_MARKETS_LIST="https://raw.githubusercontent.com/berachain/default-lists/main/src/gauges/bartio/defaultGaugeList.json"
NEXT_PUBLIC_GAUGE_LIST="https://raw.githubusercontent.com/berachain/default-lists/main/src/gauges/bartio/defaultGaugeList.json"
NEXT_PUBLIC_VALIDATOR_LIST="https://raw.githubusercontent.com/berachain/default-lists/main/src/validators/bartio/defaultValidatorList.json"
NEXT_PUBLIC_CLOUDINARY_URL="https://res.cloudinary.com/duv0g402y/image/upload/f_auto,q_auto/v1"
NEXT_PUBLIC_DOCS_URL="https://docs.berachain.com"
NEXT_PUBLIC_CAREERS_URL="https://careers.berachain.com/"
NEXT_PUBLIC_MEDIA_KIT_URL="https://drive.google.com/drive/folders/1r658Px_VhjiUEC4AQAhHRCBeVKjcRWU6"
NEXT_PUBLIC_BERAERA_BLOG_URL="https://medium.com/berachain-foundation/the-bera-era-has-begun-49a18c6d77c0"
NEXT_PUBLIC_FEEDBACK_URL=""

# Socials ===================================================================
NEXT_PUBLIC_TWITTER="https://twitter.com/berachain"
NEXT_PUBLIC_TELEGRAM="https://t.me/BerachainPortal"
NEXT_PUBLIC_DISCORD="https://discord.com/invite/berachain"
NEXT_PUBLIC_GITHUB="https://github.com/berachain"

# Chain ===================================================================
NEXT_PUBLIC_CHAIN_ID="80084"
NEXT_PUBLIC_CHAIN_NAME="Berachain-bartio"
NEXT_PUBLIC_NETWORK_NAME="Berachain-bartio"
NEXT_PUBLIC_JSON_RPC_URL="https://bartio.rpc.berachain.com/"
NEXT_PUBLIC_PUBLIC_JSON_RPC_URL="https://bartio.rpc.berachain.com/"
NEXT_PUBLIC_NETWORK_ICON_URL="https://res.cloudinary.com/duv0g402y/raw/upload/v1717603357/src/assets/bera.png"
NEXT_PUBLIC_NETWORK_CURRENCY="BERA"
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS="18"
NEXT_PUBLIC_NETWORK_CURRENCY_NAME="Bera"

# Chain contracts ===================================================================

NEXT_PUBLIC_MULTICALL_ADDRESS="0x2A92Cb4C05eF36bd589EB8A70472dbA10c1F1212"
NEXT_PUBLIC_MULTICALL_CREATION_BLOCK="6983"

# This is only going to work on whitelisted domains.
# Please create your own API key and add it to your .env.local file
NEXT_PUBLIC_DYNAMIC_API_KEY="b8a5104d-47e0-4965-b56a-0bcc31cf56f4"


# in seconds
NEXT_PUBLIC_BLOCKTIME="4"

# Honey Addresses ===================================================================
NEXT_PUBLIC_HONEY_ROUTER_ADDRESS="0xAd1782b2a7020631249031618fB1Bd09CD926b31"
# Honey Tokens ======================================================================
NEXT_PUBLIC_HONEY_ADDRESS="0x0E4aaF1351de4c0264C5c7056Ef3777b41BD8e03"
NEXT_PUBLIC_WBERA_ADDRESS="0x7507c1dc16935B82698e4C63f2746A2fCf994dF8"
NEXT_PUBLIC_BERA_ADDRESS="0x0000000000000000000000000000000000000000"
NEXT_PUBLIC_STGUSDC_ADDRESS="0xd6D83aF58a19Cd14eF3CF6fe848C9A4d21e5727c"
NEXT_PUBLIC_WBTC_ADDRESS="0x286F1C3f0323dB9c91D1E8f45c8DF2d065AB5fae"
NEXT_PUBLIC_WETH_ADDRESS="0x6E1E9896e93F7A71ECB33d4386b49DeeD67a231A"
NEXT_PUBLIC_AHONEY_ADDRESS="0xD08391c5977ebF1a09bB5915908EF5cd95Edb7E0"
NEXT_PUBLIC_VDHONEY_ADDRESS="0x0bF0Eb9aE016A624E2149D4C5F47fD9276285C82"

# Dex Addresses ===================================================================
NEXT_PUBLIC_RPC_CROC_DEX="0xAB827b1Cc3535A9e549EE387A6E9C3F02F481B49"
NEXT_PUBLIC_RPC_CROC_QUERY="0x8685CE9Db06D40CBa73e3d09e6868FE476B5dC89"
NEXT_PUBLIC_RPC_CROC_IMPACT="0xCfEa3579a06e2e9a596D311486D12B3a49a919Cd"
NEXT_PUBLIC_RPC_CROC_MULTIPATH="0xaC6a0430517E078b48b41De9736e4652B35DF5c2"
NEXT_PUBLIC_RPC_CROC_MULTISWAP="0x21e2C0AFd058A89FCf7caf3aEA3cB84Ae977B73D"
NEXT_PUBLIC_RPC_CROC_ROUTER_ENDPOINT="https://bartio-bex-router.berachain-devnet.com"
NEXT_PUBLIC_RPC_CROC_INDEXER_ENDPOINT="https://bartio-bex-indexer.berachain-devnet.com/gcgo/"

# BGT Addresses ===================================================================
NEXT_PUBLIC_BGT_ADDRESS="0xbDa130737BDd9618301681329bF2e46A016ff9Ad"
NEXT_PUBLIC_BGT_STAKER="0x791fb53432eED7e2fbE4cf8526ab6feeA604Eb6d"
NEXT_PUBLIC_BGT_ENDPOINT="https://bartio-pol-indexer.berachain-devnet.com/berachain/v1alpha1/beacon"
NEXT_PUBLIC_BGT_VAULT_BLACKLIST="0x2E8410239bB4b099EE2d5683e3EF9d6f04E321CC"

# Subgraphs ===================================================================
NEXT_PUBLIC_BEND_SUBGRAPH_URL="https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bend-subgraph/v1/gn"
NEXT_PUBLIC_HONEY_SUBGRAPH_URL="https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/v1/gn"
NEXT_PUBLIC_RPC_CROC_SUBGRAPH="https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/v0.1.4/gn"
NEXT_PUBLIC_BGT_SUBGRAPH_URL="https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/v0.1.4/gn"
NEXT_PUBLIC_BGT_STAKER_SUBGRAPH_URL="https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bgt-staker-subgraph/v1/gn"

# Analytics - To be updated in .env.local ========================================
# NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN=""
# NEXT_PUBLIC_SENTRY_DSN=""
# SENTRY_AUTH_TOKEN=""
# SENTRY_ORG=""
# SENTRY_PROJECT=""
# NEXT_PUBLIC_PROJECT_NAME=""
# Uncomment the following line to activate analytics locally
# NEXT_PUBLIC_DEVELOPMENT_ANALYTICS="true"

# IPFS ===================================================================
# Uncomment the following line to build for IPFS
# NEXT_PUBLIC_HOST="ipfs"
13 changes: 13 additions & 0 deletions .env.local.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

CHARTING_ACCESS_TOKEN="" # Token to download tradingview charts library
NEXT_PUBLIC_PERPS_TRADINGVIEW_ENABLED="" # Enable tradingview charts, can be true if CHARTING_ACCESS_TOKEN is set
PERPS_OCT_KEY="" # OCT key to encode keys in local storage

# Set this to your own API key, with no CORS enabled.
NEXT_PUBLIC_DYNAMIC_API_KEY=""

NEXT_PUBLIC_SENTRY_DSN=""
SENTRY_AUTH_TOKEN=""
SENTRY_ORG=""
SENTRY_PROJECT=""
NEXT_PUBLIC_PROJECT_NAME=""
50 changes: 50 additions & 0 deletions .github/workflows/ipfs-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy on Fleek

on:
push:
branches: [ "v2" ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-22.04
env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
FLEEK_PROJECT_ID: ${{ secrets.FLEEK_PROJECT_ID }}
PERPS_OCT_KEY: ${{ secrets.PERPS_OCT_KEY }}
CHARTING_ACCESS_TOKEN: ${{ secrets.CHARTING_ACCESS_TOKEN }}

steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.CHARTING_ACCESS_TOKEN }}

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.18.2
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Install Fleek CLI
run: pnpm i -g @fleek-platform/cli

- name: Set environment variables
run: pnpm setenv:bartio

- name: Build all projects
run: NEXT_PUBLIC_HOST="ipfs" pnpm run build

- name: Deploy Berps
run: cd apps/perp && fleek sites deploy

- name: Deploy Bend
run: cd apps/lend && fleek sites deploy

- name: Deploy Honey
run: cd apps/honey && fleek sites deploy
39 changes: 39 additions & 0 deletions .github/workflows/ipfs-static-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

name: Test static build on IPFS

on:
workflow_dispatch:
pull_request:
branches:
- v2

jobs:
static-build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.CHARTING_ACCESS_TOKEN }}

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.18.2
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Set environment variables
run: pnpm setenv:bartio

- name: Build all projects
env:
PERPS_OCT_KEY: ${{ secrets.PERPS_OCT_KEY }}
CHARTING_ACCESS_TOKEN: ${{ secrets.CHARTING_ACCESS_TOKEN }}

run: 'NEXT_PUBLIC_HOST="ipfs" pnpm run build'

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ yarn-error.log*

# local env files
.env
.env.*
.env*.local
.env.push.*

Expand Down
Loading
Loading