Skip to content

Commit

Permalink
✨ Deploy a first version of the SDK (cartridge-gg#16)
Browse files Browse the repository at this point in the history
* ✨ Deploy a first version of the SDK

* 🐛 Export bindings

* 🚀 Deploy new version

* ♻️ Rename society into social and deploy a new version

* 🚀 Deploy a new version of the sdk

* 🚀 New version

* 🚀 Deploy on sepolia

* 🚀 Deploy new versions

* ♻️ Refactor and add sub/fetch features in sdk

* ✨ Add game management in sdk

* ✨ Migrate to dojo sdk

* ✨ Add achievement module

* 💄 Code format

* 🚀 Deploy new version

* 🐛 Fix minor issues

* 🚀 Deploy new version

* 🐛 Move pin ability from registry to social

* ♻️ Refactor sdk and add policies

* 💄 Code style

* 🚀 Deploy a new version

* 🐛 Move pin ability from registry to social

* ♻️ Refacto and export policies

* 🐛 Fix exports
  • Loading branch information
bal7hazar authored Jan 15, 2025
1 parent e5ae5cc commit d1f81d6
Show file tree
Hide file tree
Showing 82 changed files with 12,850 additions and 413 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish to npm

on:
push:
tags:
- "v*"

env:
WORKING_DIRECTORY: ./kits/typescript

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: npm install

- name: Build SDK
working-directory: ${{ env.WORKING_DIRECTORY }}
run: npm run build

- name: Publish to npm
working-directory: ${{ env.WORKING_DIRECTORY }}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dependencies = [
]

[[package]]
name = "society"
name = "social"
version = "0.0.0"
dependencies = [
"dojo",
Expand Down
2 changes: 1 addition & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = [
"packages/controller",
"packages/provider",
"packages/registry",
"packages/society",
"packages/social",
"packages/achievement",
]
description = "Dojo achievement library"
Expand Down
6 changes: 3 additions & 3 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ This starter project is a constant work in progress and contributions are greatl

1. **Report a Bug**

- If you think you have encountered a bug, and we should know about it, feel free to report it [here](https://github.com/dojoengine/dojo-starter/issues) and we will take care of it.
- If you think you have encountered a bug, and we should know about it, feel free to report it [here](https://github.com/dojoengine/dojo-starter/issues) and we will take care of it.

2. **Request a Feature**

- You can also request for a feature [here](https://github.com/dojoengine/dojo-starter/issues), and if it's viable, it will be picked for development.
- You can also request for a feature [here](https://github.com/dojoengine/dojo-starter/issues), and if it's viable, it will be picked for development.

3. **Create a Pull Request**
- It can't get better then this, your pull request will be appreciated by the community.
- It can't get better then this, your pull request will be appreciated by the community.

Happy coding!
4 changes: 2 additions & 2 deletions contracts/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies = [
"dojo_cairo_test",
"provider",
"registry",
"society",
"social",
]

[[package]]
Expand Down Expand Up @@ -64,7 +64,7 @@ dependencies = [
]

[[package]]
name = "society"
name = "social"
version = "0.0.0"
dependencies = [
"dojo",
Expand Down
12 changes: 7 additions & 5 deletions contracts/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ achievement = { path = ".." }
controller = { path = ".." }
provider = { path = ".." }
registry = { path = ".." }
society = { path = ".." }
social = { path = ".." }
starknet = "2.8.4"
cairo_test = "2.8.4"

Expand All @@ -36,10 +36,12 @@ build-external-contracts = [
"registry::models::index::m_Access",
"registry::models::index::m_Achievement",
"registry::models::index::m_Game",
"society::models::index::m_Alliance",
"society::models::index::m_Guild",
"society::models::index::m_Member",
"society::events::index::e_Follow",
"social::models::index::m_Alliance",
"social::models::index::m_Guild",
"social::models::index::m_Member",
"social::events::index::e_Follow",
]

[profile.slot]
[profile.sepolia]
[profile.mainnet]
2 changes: 1 addition & 1 deletion contracts/dojo_dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ default = "ARCADE"
]

[writers]
"ARCADE" = ["ARCADE-Registry", "ARCADE-Slot", "ARCADE-Society", "ARCADE-Wallet"]
"ARCADE" = ["ARCADE-Registry", "ARCADE-Slot", "ARCADE-Social", "ARCADE-Wallet"]

[env]
rpc_url = "http://localhost:5050/"
Expand Down
29 changes: 29 additions & 0 deletions contracts/dojo_sepolia.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[world]
name = "Cartridge World"
description = "Cartridge World"
website = "https://github.com/dojoengine/dojo-starter"
seed = "arcade"

[world.socials]
x = "https://x.com/ohayo_dojo"
discord = "https://discord.gg/FB2wR6uF"
github = "https://github.com/dojoengine/dojo-starter"
telegram = "https://t.me/dojoengine"

[namespace]
default = "ARCADE"

[init_call_args]
"ARCADE-Registry" = [
"0x059b1a0c489b635d7c7f43594d187362ddd2dcea6c82db4eef2579fd185b3753",
]

[writers]
"ARCADE" = ["ARCADE-Registry", "ARCADE-Slot", "ARCADE-Social", "ARCADE-Wallet"]

[env]
rpc_url = "https://api.cartridge.gg/x/starknet/sepolia"
account_address = "0x059b1a0c489b635d7c7f43594d187362ddd2dcea6c82db4eef2579fd185b3753"
ipfs_config.url = "https://ipfs.infura.io:5001"
ipfs_config.username = "2EBrzr7ZASQZKH32sl2xWauXPSA"
ipfs_config.password = "12290b883db9138a8ae3363b6739d220"
2 changes: 1 addition & 1 deletion contracts/dojo_slot.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ default = "ARCADE"
]

[writers]
"ARCADE" = ["ARCADE-Registry", "ARCADE-Slot", "ARCADE-Society", "ARCADE-Wallet"]
"ARCADE" = ["ARCADE-Registry", "ARCADE-Slot", "ARCADE-Social", "ARCADE-Wallet"]

[env]
rpc_url = "https://api.cartridge.gg/x/arcade/katana"
Expand Down
Loading

0 comments on commit d1f81d6

Please sign in to comment.