Skip to content

Commit

Permalink
++Fix deployment script and update dependencies (#1882)
Browse files Browse the repository at this point in the history
* smol fix

* prettier
  • Loading branch information
aymericdelab authored Oct 21, 2024
1 parent e7e5e41 commit 20b6995
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 28 deletions.
11 changes: 6 additions & 5 deletions client/src/ui/components/bank/LiquidityTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ export const LiquidityTable = ({ bankEntityId, entity_id }: LiquidityTableProps)

const filteredResources = Object.entries(RESOURCE_TIERS).flatMap(([tier, resourceIds]) => {
if (tier === "lords") return [];
return resourceIds.filter((resourceId) =>
resources
.find((r) => r.id === resourceId)
?.trait.toLowerCase()
.includes(searchTerm.toLowerCase()),
return resourceIds.filter(
(resourceId) =>
resources
.find((r) => r.id === resourceId)
?.trait.toLowerCase()
.includes(searchTerm.toLowerCase()),
);
});

Expand Down
68 changes: 68 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ packages:
- "config"
- "bot"
- "balancing"
- "season_pass/scripts/deployment"
3 changes: 3 additions & 0 deletions scripts/indexer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ if [[ "$setConfig" == "true" ]]; then
echo "----- Building Eternum Season Pass Contract ----- "
printf "\n\n"

# source .env file in deployment
source ./season_pass/scripts/deployment/.env

# build and deploy season pass contract
cd season_pass/contracts && scarb --release build
cd ../scripts/deployment && npm run deploy
Expand Down
3 changes: 2 additions & 1 deletion season_pass/scripts/deployment/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.env
.env
addresses/*
10 changes: 0 additions & 10 deletions season_pass/scripts/deployment/addresses/dev/season_pass.json

This file was deleted.

6 changes: 0 additions & 6 deletions season_pass/scripts/deployment/addresses/dev/test_lords.json

This file was deleted.

6 changes: 0 additions & 6 deletions season_pass/scripts/deployment/addresses/dev/test_realms.json

This file was deleted.

0 comments on commit 20b6995

Please sign in to comment.