Skip to content

Commit eb67bd5

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

34 files changed

Lines changed: 619 additions & 719 deletions

.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

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: 390 additions & 518 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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
*

contracts/scripts/utils/init-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dotenv.config({ path: `.env.${chainId}`, quiet: true })
1717
*
1818
* @options
1919
* Environment variables:
20-
* CHAIN - Target chain to deploy the contract to (must be initialized with `bunx papi add <chain>`). Default: `dev`
20+
* CHAIN - Target chain to deploy the contract to (must be initialized with `bunx polkadot-api add <chain>`). Default: `dev`
2121
* ACCOUNT_URI - Account to deploy the contract from. If not set, uses `.env.{CHAIN}` or defaults to `//Alice`
2222
*/
2323
export async function initApi() {
@@ -30,7 +30,7 @@ export async function initApi() {
3030
const wsUrl = papiJson.entries[chainId as keyof typeof papiJson.entries]?.wsUrl
3131
if (!chain || !wsUrl) {
3232
throw new Error(
33-
`Chain '${chainId}' not found. Make sure to initialize with 'bunx papi add …' first!`,
33+
`Chain '${chainId}' not found. Make sure to initialize with 'bunx polkadot-api add …' first!`,
3434
)
3535
}
3636

create-inkathon-app/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
"prepublishOnly": "bun run build"
3030
},
3131
"dependencies": {
32-
"@inquirer/prompts": "^7.8.6",
33-
"commander": "^14.0.1",
32+
"@inquirer/prompts": "^8.0.2",
33+
"commander": "^14.0.2",
3434
"picocolors": "^1.1.1",
35-
"semver": "^7.7.2",
35+
"semver": "^7.7.3",
3636
"snakecase-keys": "^9.0.2",
3737
"yocto-spinner": "^1.0.0"
3838
},
3939
"devDependencies": {
4040
"@types/node": "^22.0.0",
4141
"@types/semver": "^7.7.1",
42-
"typescript": "^5.9.2"
42+
"typescript": "^5.9.3"
4343
},
4444
"keywords": [
4545
"ink",

0 commit comments

Comments
 (0)