-
Notifications
You must be signed in to change notification settings - Fork 37
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
Upgrade to Dojo v1.0.0 alpha.3 #1143
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
This pull request updates the project to use Dojo v1.0.0-alpha.3 and Cairo 2.7.0-rc.4. The changes include updating dependencies, CI workflows, and making necessary adjustments to the codebase to work with the new versions. The update allows for better resource usage estimation in tests and keeps the project current with the latest Dojo release. Overall, these changes seem beneficial for the project's development and maintenance.
Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!
@@ -6,7 +6,7 @@ version = "0.6.8" | |||
sierra-replace-ids = true | |||
|
|||
[dependencies] | |||
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-alpha.2" } | |||
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-alpha.3" } |
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.
Updating dojo dependency to v1.0.0-alpha.3 is good to stay current with the latest version.
@@ -35,7 +35,7 @@ jobs: | |||
steps: | |||
- name: Download Dojo release artifact | |||
run: | | |||
curl -L -o dojo-linux-x86_64.tar.gz https://github.com/dojoengine/dojo/releases/download/v1.0.0-alpha.1/dojo_v1.0.0-alpha.1_linux_amd64.tar.gz | |||
curl -L -o dojo-linux-x86_64.tar.gz https://github.com/dojoengine/dojo/releases/download/v1.0.0-alpha.3/dojo_v1.0.0-alpha.3_linux_amd64.tar.gz |
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.
Updating to use dojo v1.0.0-alpha.3 in the CI workflow is consistent with the dependency update.
@@ -45,7 +45,7 @@ | |||
cd contracts && sozo build | |||
- name: Run Dojo Test for ${{ matrix.test }} | |||
run: | | |||
cd contracts && sozo test -f ${{ matrix.test }} | |||
cd contracts && sozo test -f ${{ matrix.test }} --print-resource-usage |
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.
Adding the --print-resource-usage
flag to the test command is helpful for monitoring test performance and resource usage.
scarb 2.7.0-rc.4 |
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.
Updating scarb to 2.7.0-rc.4 aligns with using the latest Cairo version, which is good for compatibility with dojo v1.0.0-alpha.3.
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
User description
upgrade to newest dojo so we can use cairo 2.7.0 to better estimate resource usage in tests
PR Type
Enhancement, Tests
Description
--print-resource-usage
flag tosozo test
command in GitHub workflow.Changes walkthrough 📝
49 files
deploy.sh
Update Dojo deployment version in script
scripts/deploy.sh
test-contracts.yml
Update Dojo version and test command in workflow
.github/workflows/test-contracts.yml
--print-resource-usage
flag tosozo test
command.tool-versions
Update Scarb version
.tool-versions
Scarb.toml
Update Dojo dependency version
contracts/Scarb.toml
lib.cairo
Change module visibility to public
contracts/src/lib.cairo
bank.cairo
Change Bank struct visibility to public
contracts/src/models/bank/bank.cairo
Bank
struct visibility to publicliquidity.cairo
Change Liquidity struct visibility and update imports
contracts/src/models/bank/liquidity.cairo
Liquidity
struct visibility to publicdojo::model
instead ofdojo::database::introspect
market.cairo
Change Market struct visibility and update imports
contracts/src/models/bank/market.cairo
Market
struct visibility to publicdojo::model
instead ofdojo::database::introspect
buildings.cairo
Change Building struct visibility to public
contracts/src/models/buildings.cairo
Building
andBuildingQuantityv2
struct visibility to publiccapacity.cairo
Change Capacity struct visibility to public
contracts/src/models/capacity.cairo
Capacity
struct visibility to publiccombat.cairo
Change combat-related struct visibilities to public
contracts/src/models/combat.cairo
config.cairo
Change config struct visibilities to public
contracts/src/models/config.cairo
guild.cairo
Change Guild-related struct visibilities to public
contracts/src/models/guild.cairo
Guild
,GuildMember
, andGuildWhitelist
struct visibilities topublic
hyperstructure.cairo
Change Hyperstructure-related struct visibilities to public
contracts/src/models/hyperstructure.cairo
Progress
andContribution
struct visibilities to publiclevel.cairo
Change Level struct visibility to public
contracts/src/models/level.cairo
Level
struct visibility to publicmap.cairo
Change Tile struct visibility to public
contracts/src/models/map.cairo
Tile
struct visibility to publicmetadata.cairo
Change Metadata-related struct visibilities to public
contracts/src/models/metadata.cairo
EntityMetadata
andForeignKey
struct visibilities to publicmovable.cairo
Change Movable-related struct visibilities to public
contracts/src/models/movable.cairo
Movable
andArrivalTime
struct visibilities to publicname.cairo
Change Name-related struct visibilities to public
contracts/src/models/name.cairo
AddressName
andEntityName
struct visibilities to publicorder.cairo
Change Orders struct visibility to public
contracts/src/models/order.cairo
Orders
struct visibility to publicowner.cairo
Change Owner-related struct visibilities to public
contracts/src/models/owner.cairo
Owner
andEntityOwner
struct visibilities to publicpopulation.cairo
Change Population struct visibility to public
contracts/src/models/population.cairo
Population
struct visibility to publicposition.cairo
Change Position struct visibility and fix formatting
contracts/src/models/position.cairo
Position
struct visibility to publicproduction.cairo
Change Production-related struct visibilities to public
contracts/src/models/production.cairo
Production
,ProductionInput
, andProductionOutput
structvisibilities to public
quantity.cairo
Change Quantity-related struct visibilities to public
contracts/src/models/quantity.cairo
Quantity
andQuantityTracker
struct visibilities to publicrealm.cairo
Change Realm struct visibility to public
contracts/src/models/realm.cairo
Realm
struct visibility to publicresources.cairo
Change Resource-related struct visibilities to public
contracts/src/models/resources.cairo
road.cairo
Change Road struct visibility to public
contracts/src/models/road.cairo
Road
struct visibility to publicstamina.cairo
Change Stamina struct visibility to public
contracts/src/models/stamina.cairo
Stamina
struct visibility to publicstructure.cairo
Change Structure-related struct visibilities to public
contracts/src/models/structure.cairo
Structure
andStructureCount
struct visibilities to publictrade.cairo
Change Trade-related struct visibilities to public
contracts/src/models/trade.cairo
Trade
andStatus
struct visibilities to publicweight.cairo
Change Weight struct visibility to public
contracts/src/models/weight.cairo
Weight
struct visibility to publicsystems.cairo
Change system module visibility to public
contracts/src/systems.cairo
bank.cairo
Change InternalBankSystemsImpl visibility to public
contracts/src/systems/bank/contracts/bank.cairo
InternalBankSystemsImpl
implementation visibility to publicliquidity.cairo
Change InternalLiquiditySystemsImpl visibility to public
contracts/src/systems/bank/contracts/liquidity.cairo
InternalLiquiditySystemsImpl
implementation visibility topublic
swap.cairo
Change InternalSwapSystemsImpl visibility to public
contracts/src/systems/bank/contracts/swap.cairo
InternalSwapSystemsImpl
implementation visibility to publiccontracts.cairo
Change InternalHyperstructureSystemsImpl visibility to public
contracts/src/systems/hyperstructure/contracts.cairo
InternalHyperstructureSystemsImpl
implementation visibility topublic
contracts.cairo
Change InternalLevelingSystemsImpl visibility to public
contracts/src/systems/leveling/contracts.cairo
InternalLevelingSystemsImpl
implementation visibility topublic
contracts.cairo
Change InternalMapSystemsImpl visibility to public
contracts/src/systems/map/contracts.cairo
InternalMapSystemsImpl
implementation visibility to publiccontracts.cairo
Change InternalResourceSystemsImpl visibility to public
contracts/src/systems/resources/contracts.cairo
InternalResourceSystemsImpl
implementation visibility topublic
donkey_systems.cairo
Change InternalDonkeySystemsImpl visibility to public
contracts/src/systems/transport/contracts/donkey_systems.cairo
InternalDonkeySystemsImpl
implementation visibility to publictravel_systems.cairo
Change InternalTravelSystemsImpl visibility to public
contracts/src/systems/transport/contracts/travel_systems.cairo
InternalTravelSystemsImpl
implementation visibility to publicutils.cairo
Change utils module visibility to public
contracts/src/utils.cairo
map.cairo
Change map module visibility to public
contracts/src/utils/map.cairo
biomes.cairo
Change Biome enum visibility to public
contracts/src/utils/map/biomes.cairo
Biome
enum visibility to publicconstants.cairo
Change map constants module visibility to public
contracts/src/utils/map/constants.cairo
math.cairo
Change math functions and traits visibility to public
contracts/src/utils/math.cairo
number.cairo
Change number trait visibility to public
contracts/src/utils/number.cairo
world.cairo
Update import path in testing world
contracts/src/utils/testing/world.cairo
dojo::utils::test
instead ofdojo::test_utils
3 files
constants.cairo
Fix formatting issues in constants.cairo
contracts/src/constants.cairo
contracts.cairo
Fix formatting issues in combat contracts
contracts/src/systems/combat/contracts.cairo
random.cairo
Fix formatting issues in random.cairo
contracts/src/utils/random.cairo