-
Notifications
You must be signed in to change notification settings - Fork 52
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
Rc 1 #1851
Rc 1 #1851
Changes from 64 commits
7ed275b
d4b459c
fd88f3c
3586373
aa55533
57688d2
37f544c
02461f5
dfaf38c
8b5d625
d67ca2d
30555a9
8c3dafc
b03ef6f
26a81c9
341574f
b15ac4c
0decb19
16fef7f
434956a
9e6aba5
9f4fce9
7951044
78e365c
2a25fc8
f1f875d
23be36d
1d429c4
680539a
ecae590
2310a62
dab5e2b
1b2960b
4f4c1a0
003ac93
aa87c34
f32cc95
e30fdc1
c6f15ba
a34984b
e138a98
db9998c
8baa182
8309a9b
c1e4d12
276aa0a
c5a873f
55b5807
003d70f
ada1944
359e1c8
0472626
ac1ee24
63d8757
b86500b
c81f5e1
757dea6
6fa946b
f260a49
a702529
9d52288
023c067
b85a25f
406b8a3
8cbdb57
d3fb7ec
e3ff5d7
e470d21
cd75fda
c13cd08
e9cb7a9
f3ef035
2486827
a2d9695
8ec19e7
c667dec
b453596
932c950
928b171
ba0494b
eb2b859
e31afc0
59cddd4
963476d
fb1e3db
4c7f964
6de7390
5dc3bc0
9dbc41f
95f5490
22449f4
7833d38
d005d7d
0cc2229
8248678
0e1332b
074124e
5f6a2c0
e8a568d
822ad1f
1ba99ae
325b8be
6f632ba
dfd5c5f
2c80369
df7697d
dca104d
6685c57
51a1802
57edcbf
1e94beb
a6d95ec
71d3639
ef27bff
b11dec3
60bbf41
75b16fe
205b141
a7b5c14
018d7f8
e9f0700
716f745
2834f08
7b451f5
3327118
1fcc5de
5872a6e
6f771ef
dcfb369
3f1549f
366dc55
77490fa
b49927b
8fd2093
61f98f2
e526ce5
8ac82fb
d87355e
c654835
9f6db40
82e89c5
17403a0
e6c9b45
0c78279
258e8c9
d5ed29f
009e1ea
3893817
83ad711
2fd4dce
83c4c02
7bd5b26
81c777e
23b011a
63ca259
8e48a21
662ed39
c95a216
e41a1d2
8cede70
e0c6189
1904495
2f40afc
d527a64
d63d298
5109861
ee9e868
523bb99
2b2cfcc
c40fd9d
5a4272b
a505a7c
80b1a2b
78b962f
8abf12d
6016c5a
a3501e4
91ec567
bd0fefd
a2f561a
4074074
284dfbb
3dd4130
1c08457
ba6a127
d2882c9
a770f1b
17e94db
78db91e
e27460a
ab4fbaf
91425f7
e4c3327
773908d
c0527f7
f2ff3c4
dbcb4b0
086721e
051bc65
d1f00ca
7d527a2
4da1f66
4d7fdf7
8a2cc87
6660583
cd391e2
74454f1
bf0f35d
add877d
d005dc2
523c2ae
38e703e
79afdf2
8f1160b
76e9fb3
f3656b9
05b0d80
a3254b6
a15c3ca
d7f9eb9
4ee6227
5310fc9
c40b852
b892b31
859802c
5665eb0
8c37e8a
3a98461
891e09a
446933f
0845541
579efe7
80376c5
b8803f5
957c5f2
4f92f84
2f8dda6
7212a73
3ddbf7f
6f6c17a
cd9b9d2
c88ee86
c115ba7
2cf90eb
e4fe14f
ff15188
841183d
405a1d9
8314257
0683274
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,31 @@ | ||
name: test season pass | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "contracts/**" | ||
- "client/**" | ||
- "**/manifest.json" | ||
- "discord-bot/**" | ||
- "config/**" | ||
- ".github/**" | ||
- "pnpm-lock.yaml" | ||
|
||
env: | ||
SCARB_VERSION: v2.8.2 | ||
|
||
jobs: | ||
test-season-pass: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: software-mansion/setup-scarb@v1 | ||
with: | ||
tool-versions: season_pass/contracts/.tool-versions | ||
- uses: foundry-rs/setup-snfoundry@v3 | ||
with: | ||
tool-versions: season_pass/contracts/.tool-versions | ||
Comment on lines
+17
to
+27
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. 💡 Codebase verification 🛠️ Refactor suggestion Update actions and pin the Ubuntu version. The current workflow uses
🔗 Analysis chainConsider updating actions and pinning the Ubuntu version. The job setup looks good overall, but there are a few suggestions for improvement:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- runs-on: ubuntu-latest
+ runs-on: ubuntu-22.04
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify the existence and content of the .tool-versions file
# Test: Check if the file exists and display its content
if [ -f "season_pass/contracts/.tool-versions" ]; then
echo "Content of .tool-versions file:"
cat "season_pass/contracts/.tool-versions"
else
echo "Error: .tool-versions file not found"
exit 1
fi
Length of output: 201 Script: #!/bin/bash
# Description: Check the version of actions/checkout in the workflow file
# Use grep to find the actions/checkout version
echo "Checking actions/checkout version:"
grep 'uses: actions/checkout@' .github/workflows/test-season-pass.yml || { echo "actions/checkout not found"; exit 1; }
Length of output: 184 Script: #!/bin/bash
# Description: Verify if the Ubuntu version is pinned in the workflow file
# Check if runs-on is set to ubuntu-latest
echo "Checking runs-on configuration:"
if grep -q 'runs-on: ubuntu-latest' .github/workflows/test-season-pass.yml; then
echo "runs-on is set to ubuntu-latest. Consider pinning to a specific version like ubuntu-22.04."
exit 1
else
echo "runs-on is pinned to a specific Ubuntu version."
fi
Length of output: 346 |
||
- run: scarb build | ||
working-directory: season_pass/contracts | ||
- run: snforge test | ||
working-directory: season_pass/contracts |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
node_modules | ||
node_modules | ||
target | ||
.snfoundry_cache |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
scarb 2.7.0 | ||
dojo 1.0.0-alpha.12 | ||
dojo 1.0.0-alpha.16 |
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,6 +1,6 @@ | ||||||||||||||||
VITE_PUBLIC_MASTER_ADDRESS="0x779c2c098f066ddde5850ec8426511e46e6499adf0b5c77e8961917413b57db" | ||||||||||||||||
VITE_PUBLIC_MASTER_PRIVATE_KEY="0x189765c7b9daa2efdd3025d3236a929ce5e510834b8cba4f002a0d5c1accb5a" | ||||||||||||||||
VITE_PUBLIC_WORLD_ADDRESS="0x76ca3dfc3e96843716f882546f0db96b7da0cf988bdba284b469d0defb2f48f" | ||||||||||||||||
VITE_PUBLIC_WORLD_ADDRESS="0x320b2713e324fe3125bbc42d85ff69cb3c0908b436fa38a35746dbc45deeb11" | ||||||||||||||||
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. 💡 Codebase verification Old VITE_PUBLIC_WORLD_ADDRESS still present in deployment manifests The old VITE_PUBLIC_WORLD_ADDRESS is still found in the following files:
Please verify if these instances need to be updated to the new address to ensure consistency across your deployment configurations. 🔗 Analysis chainVerify the new VITE_PUBLIC_WORLD_ADDRESS value The VITE_PUBLIC_WORLD_ADDRESS has been updated to a new value. This change could have significant implications for the entire system in the production environment. Please confirm that this new address is correct and has been thoroughly tested. Run the following script to check for any other occurrences of the old address in the codebase: If any occurrences are found, they may need to be updated as well. Please run the following script to search for any remaining instances of the old VITE_PUBLIC_WORLD_ADDRESS: Please run the following script to search for any remaining instances of the old VITE_PUBLIC_WORLD_ADDRESS: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Search for any remaining instances of the old VITE_PUBLIC_WORLD_ADDRESS
OLD_ADDRESS="0x76ca3dfc3e96843716f882546f0db96b7da0cf988bdba284b469d0defb2f48f"
echo "Searching for occurrences of the old address:"
rg "$OLD_ADDRESS" --type-not env
Length of output: 294 Script: #!/bin/bash
# Description: Search for any remaining instances of the old VITE_PUBLIC_WORLD_ADDRESS
OLD_ADDRESS="0x76ca3dfc3e96843716f882546f0db96b7da0cf988bdba284b469d0defb2f48f"
echo "Searching for occurrences of the old address:"
rg "$OLD_ADDRESS" --type-not dotenv
Length of output: 300 Script: #!/bin/bash
# Description: Search for any remaining instances of the old VITE_PUBLIC_WORLD_ADDRESS
OLD_ADDRESS="0x76ca3dfc3e96843716f882546f0db96b7da0cf988bdba284b469d0defb2f48f"
echo "Searching for occurrences of the old address:"
rg "$OLD_ADDRESS" --glob '!*.env*'
Length of output: 530 |
||||||||||||||||
VITE_PUBLIC_ACCOUNT_CLASS_HASH="0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c" | ||||||||||||||||
VITE_EVENT_KEY="0x1a2f334228cee715f1f0f54053bb6b5eac54fa336e0bc1aacf7516decb0471d" | ||||||||||||||||
VITE_PUBLIC_TORII="https://api.cartridge.gg/x/eternum-42/torii" | ||||||||||||||||
|
@@ -10,3 +10,7 @@ VITE_PUBLIC_GAME_VERSION="v0.9.0" | |||||||||||||||
VITE_PUBLIC_SHOW_FPS=false | ||||||||||||||||
VITE_PUBLIC_GRAPHICS_DEV=false | ||||||||||||||||
VITE_PUBLIC_TORII_RELAY="/dns4/api.cartridge.gg/tcp/443/x-parity-wss/%2Fx%2Feternum-42%2Ftorii%2Fwss" | ||||||||||||||||
|
||||||||||||||||
VITE_SEASON_PASS_ADDRESS="0x0" | ||||||||||||||||
VITE_REALMS_ADDRESS="0x0" | ||||||||||||||||
VITE_LORDS_ADDRESS="0x0" | ||||||||||||||||
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. Reconsider using placeholder addresses in production The newly added variables VITE_SEASON_PASS_ADDRESS, VITE_REALMS_ADDRESS, and VITE_LORDS_ADDRESS are all set to "0x0". This is unusual for a production environment and could potentially lead to issues or security risks. Consider the following actions:
Example: -VITE_SEASON_PASS_ADDRESS="0x0"
-VITE_REALMS_ADDRESS="0x0"
-VITE_LORDS_ADDRESS="0x0"
+# TODO: Update with actual addresses before deployment
+VITE_SEASON_PASS_ADDRESS="NOT_YET_DEPLOYED"
+VITE_REALMS_ADDRESS="NOT_YET_DEPLOYED"
+VITE_LORDS_ADDRESS="NOT_YET_DEPLOYED" Additionally, consider adding checks in the application code to ensure these addresses are properly set before using them. 📝 Committable suggestion
Suggested change
|
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.
🛠️ Refactor suggestion
Consider using the SCARB_VERSION environment variable.
The
SCARB_VERSION
environment variable is defined but not explicitly used in the workflow steps. To ensure consistency and make version updates easier, consider using this variable in the setup steps.Update the Scarb setup step to use the environment variable:
- uses: software-mansion/setup-scarb@v1 with: + scarb-version: ${{ env.SCARB_VERSION }} tool-versions: season_pass/contracts/.tool-versions
📝 Committable suggestion