Skip to content

Commit c13aaca

Browse files
committed
feat: upgrade starknet peerDependency
1 parent f52a83e commit c13aaca

File tree

17 files changed

+91
-85
lines changed

17 files changed

+91
-85
lines changed

.github/pull_request_template.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Closes #
1212

1313
<!-- Make sure all of these are complete -->
1414

15-
- [ ] Linked relevant issue
16-
- [ ] Updated relevant documentation
17-
- [ ] Added relevant tests
18-
- [ ] Add a dedicated CI job for new examples
19-
- [ ] Performed self-review of the code
15+
- [ ] Linked relevant issue
16+
- [ ] Updated relevant documentation
17+
- [ ] Added relevant tests
18+
- [ ] Add a dedicated CI job for new examples
19+
- [ ] Performed self-review of the code

examples/example-nodejs-bot/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ A Discord bot for interacting with your Dojo world via Torii.
44

55
Features:
66

7-
- Poll a Torii for information.
8-
- Expose a slash command for reading Torii state.
9-
- Easy to extend with new commands.
10-
- GraphQL codegen for Torii models.
7+
- Poll a Torii for information.
8+
- Expose a slash command for reading Torii state.
9+
- Easy to extend with new commands.
10+
- GraphQL codegen for Torii models.
1111

1212
---
1313

examples/example-vite-kitchen-sink/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ sozo migrate apply
4545

4646
### Notes
4747

48-
- you main want to update `actions` contract address in `src/components/caller-counter.tsx` & `src/components/global-counter.tsx` which is hardcoded in those files.
49-
- if you want to have braavos & argent wallet working, you need to deploy classes and deploy your wallet manually.
48+
- you main want to update `actions` contract address in `src/components/caller-counter.tsx` & `src/components/global-counter.tsx` which is hardcoded in those files.
49+
- if you want to have braavos & argent wallet working, you need to deploy classes and deploy your wallet manually.

examples/example-vite-kitchen-sink/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"@radix-ui/react-slot": "^1.1.0",
2323
"@radix-ui/react-switch": "^1.1.0",
2424
"@radix-ui/react-tooltip": "^1.1.2",
25-
"@starknet-react/chains": "^3.0.0",
26-
"@starknet-react/core": "2.9.0",
25+
"@starknet-react/chains": "catalog:*",
26+
"@starknet-react/core": "catalog:*",
2727
"@t3-oss/env-core": "^0.11.1",
2828
"@t3-oss/env-nextjs": "^0.11.1",
2929
"class-variance-authority": "^0.7.0",

examples/example-vite-react-sdk/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ This template provides a minimal setup to get React working in Vite with HMR and
44

55
Currently, two official plugins are available:
66

7-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
7+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
99

1010
## Expanding the ESLint configuration
1111

1212
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
1313

14-
- Configure the top-level `parserOptions` property like this:
14+
- Configure the top-level `parserOptions` property like this:
1515

1616
```js
1717
export default tseslint.config({
@@ -25,9 +25,9 @@ export default tseslint.config({
2525
});
2626
```
2727

28-
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29-
- Optionally add `...tseslint.configs.stylisticTypeChecked`
30-
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
28+
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29+
- Optionally add `...tseslint.configs.stylisticTypeChecked`
30+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
3131

3232
```js
3333
// eslint.config.js

examples/example-vite-svelte-recs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also pow
1414

1515
**Why use this over SvelteKit?**
1616

17-
- It brings its own routing solution which might not be preferable for some users.
18-
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
17+
- It brings its own routing solution which might not be preferable for some users.
18+
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
1919

2020
This template contains as little as possible to get started with Vite + TypeScript + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
2121

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818
},
1919
"peerDependencies": {
20-
"starknet": "6.11.0"
20+
"starknet": "catalog:*"
2121
},
2222
"devDependencies": {
2323
"@dojoengine/torii-client": "workspace:*",

packages/create-burner/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
"test": "vitest run --coverage"
1313
},
1414
"peerDependencies": {
15+
"@starknet-react/core": "catalog:*",
16+
"get-starknet-core": "catalog:*",
1517
"react": "^18.2.0",
1618
"react-dom": "^18.2.0",
17-
"starknet": "6.11.0"
19+
"starknet": "catalog:*"
1820
},
1921
"exports": {
2022
".": {
@@ -42,9 +44,7 @@
4244
"dependencies": {
4345
"@dojoengine/core": "workspace:*",
4446
"@scure/bip32": "^1.5.0",
45-
"@starknet-react/core": "2.3.0",
4647
"encoding": "^0.1.13",
47-
"get-starknet-core": "^3.3.3",
4848
"js-cookie": "^3.0.5"
4949
}
5050
}

packages/create-burner/readme.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ Easily manage, create, and interact with burner accounts on Starknets using this
3333

3434
## Features:
3535

36-
- Initialize and manage burner accounts.
37-
- Abstracts away intricacies related to creating, fetching, and setting active burner accounts.
38-
- Easily integrate with React apps using the provided hook.
39-
- Vanilla JS support.
36+
- Initialize and manage burner accounts.
37+
- Abstracts away intricacies related to creating, fetching, and setting active burner accounts.
38+
- Easily integrate with React apps using the provided hook.
39+
- Vanilla JS support.
4040

4141
## Table of Contents
4242

43-
- [Installation](#installation)
44-
- [Usage](#usage)
45-
- [With React](#with-react)
46-
- [Vanilla JavaScript](#vanilla-javascript)
47-
- [API](#api)
48-
- [Contribute](#contribute)
49-
- [License](#license)
43+
- [Installation](#installation)
44+
- [Usage](#usage)
45+
- [With React](#with-react)
46+
- [Vanilla JavaScript](#vanilla-javascript)
47+
- [API](#api)
48+
- [Contribute](#contribute)
49+
- [License](#license)
5050

5151
## Installation
5252

@@ -58,7 +58,7 @@ yarn add @dojoengine/create-burner starknet
5858

5959
### In the wild:
6060

61-
- [dojo-starter-react-app](https://github.com/dojoengine/dojo-starter-react-app)
61+
- [dojo-starter-react-app](https://github.com/dojoengine/dojo-starter-react-app)
6262

6363
## Usage
6464

@@ -90,25 +90,25 @@ const activeAccount = manager.getActiveAccount();
9090

9191
## API
9292

93-
- **useBurner**: A React hook that provides functionalities like creating burners, selecting them, and more.
94-
95-
- `get(address: string)`: Get a burner account based on its address.
96-
- `list()`: List all burners.
97-
- `select(address: string)`: Set a burner as the active account.
98-
- `create()`: Create a new burner.
99-
- `account`: The active burner account.
100-
- `isDeploying`: A boolean that indicates whether a burner is being deployed.
101-
- `listConnectors()`: List all available connectors that can be used with Starknet React.
102-
103-
- **BurnerManager**: A class for vanilla JS that offers methods to manage burner accounts.
104-
- `init()`: Initializes the manager.
105-
- `getActiveAccount()`: Retrieves the active burner account.
106-
- `get(address: string)`: Get a burner account based on its address.
107-
- `list()`: List all burners.
108-
- `select(address: string)`: Set a burner as the active account.
109-
- `create()`: Create a new burner.
110-
- `account`: The active burner account.
111-
- `isDeploying`: A boolean that indicates whether a burner is being deployed.
93+
- **useBurner**: A React hook that provides functionalities like creating burners, selecting them, and more.
94+
95+
- `get(address: string)`: Get a burner account based on its address.
96+
- `list()`: List all burners.
97+
- `select(address: string)`: Set a burner as the active account.
98+
- `create()`: Create a new burner.
99+
- `account`: The active burner account.
100+
- `isDeploying`: A boolean that indicates whether a burner is being deployed.
101+
- `listConnectors()`: List all available connectors that can be used with Starknet React.
102+
103+
- **BurnerManager**: A class for vanilla JS that offers methods to manage burner accounts.
104+
- `init()`: Initializes the manager.
105+
- `getActiveAccount()`: Retrieves the active burner account.
106+
- `get(address: string)`: Get a burner account based on its address.
107+
- `list()`: List all burners.
108+
- `select(address: string)`: Set a burner as the active account.
109+
- `create()`: Create a new burner.
110+
- `account`: The active burner account.
111+
- `isDeploying`: A boolean that indicates whether a burner is being deployed.
112112

113113
## Contribute
114114

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
},
1313
"license": "MIT",
1414
"peerDependencies": {
15+
"get-starknet-core": "catalog:*",
1516
"react": "^18.2.0",
16-
"starknet": "6.11.0",
17+
"starknet": "catalog:*",
1718
"type-fest": "^2.14.0"
1819
},
1920
"exports": {
@@ -41,7 +42,6 @@
4142
"@latticexyz/utils": "^2.2.8",
4243
"encoding": "^0.1.13",
4344
"fast-deep-equal": "^3.1.3",
44-
"get-starknet-core": "^3.3.3",
4545
"js-cookie": "^3.0.5",
4646
"rxjs": "7.5.5",
4747
"zustand": "^4.5.5"

0 commit comments

Comments
 (0)