Skip to content

Commit 049e847

Browse files
committed
feat: Updates & Upgrades
1 parent fd1ce5c commit 049e847

43 files changed

Lines changed: 643 additions & 750 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursor/rules/global.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Deployment addresses are automatically exported to `/contracts/deployments/<cont
101101

102102
1. Generate PAPI types for the chain:
103103
```bash
104-
bunx papi add -w <websocket-url> <chain-name>
104+
bunx polkadot-api add -w <websocket-url> <chain-name>
105105
```
106106
2. Add chain configuration in `/frontend/src/lib/reactive-dot/config.ts`:
107107
```typescript

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22
1+
v24

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Deployment addresses are automatically exported to `/contracts/deployments/<cont
9595

9696
1. Generate PAPI types for the chain:
9797
```bash
98-
bunx papi add -w <websocket-url> <chain-name>
98+
bunx polkadot-api add -w <websocket-url> <chain-name>
9999
```
100100
2. Add chain configuration in `/frontend/src/lib/reactive-dot/config.ts`:
101101
```typescript

biome.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
33
"files": {
44
"ignoreUnknown": true,
55
"includes": [
@@ -37,6 +37,9 @@
3737
"css": {
3838
"formatter": {
3939
"enabled": false
40+
},
41+
"parser": {
42+
"tailwindDirectives": true
4043
}
4144
},
4245
"assist": {

bun.lock

Lines changed: 385 additions & 534 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v24

contracts/.papi/descriptors/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"types": "./dist/index.d.ts",
2020
"sideEffects": false,
2121
"peerDependencies": {
22-
"polkadot-api": ">=1.11.2"
22+
"polkadot-api": ">=1.21.0"
2323
}
2424
}

contracts/codegen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ contracts=($(find $DIR -maxdepth 1 -mindepth 1 -type d -print | xargs -n 1 basen
1111
for i in "${contracts[@]}"
1212
do
1313
echo -e "\nGenerating types for '$DIR/$i'…"
14-
bunx papi ink add $DIR/$i/$i.contract
14+
bunx polkadot-api ink add $DIR/$i/$i.contract
1515
done

contracts/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
},
2222
"dependencies": {
2323
"@polkadot-api/descriptors": "file:.papi/descriptors",
24-
"@polkadot-api/sdk-ink": "^0.5.1",
25-
"@polkadot-labs/hdkd": "^0.0.24",
26-
"@types/bun": "^1.2.23",
24+
"@polkadot-api/sdk-ink": "^0.6.0",
25+
"@polkadot-labs/hdkd": "^0.0.26",
26+
"@types/bun": "^1.3.4",
2727
"dedent": "^1.7.0",
2828
"dotenv": "^17.2.3",
29-
"yocto-spinner": "^1.0.0"
29+
"yocto-spinner": "^1.0.0",
30+
"polkadot-api": "^1.23.1"
3031
}
3132
}

contracts/scripts/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { writeAddresses } from "./utils/write-addresses"
99
*
1010
* @options
1111
* Environment variables:
12-
* CHAIN - Target chain to deploy the contract to (must be initialized with `bunx papi add <chain>`). Default: `dev`
12+
* CHAIN - Target chain to deploy the contract to (must be initialized with `bunx polkadot-api add <chain>`). Default: `dev`
1313
* ACCOUNT_URI - Account to deploy the contract from. If not set, uses `.env.{CHAIN}` or defaults to `//Alice`
1414
* DIR - Directory to write the contract addresses to. Default: `./deployments`
1515
*

0 commit comments

Comments
 (0)