Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/governance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"module": "index.ts",
"type": "module",
"devDependencies": {
"@types/bun": "^1.2.23"
"@types/bun": "^1.3.3"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@polkadot-api/descriptors": "file:.papi/descriptors",
"@polkadot-api/sdk-governance": "workspace:*",
"polkadot-api": "^1.19.1",
"polkadot-api": "^1.22.0",
"rxjs": "7.8.2"
}
}
4 changes: 2 additions & 2 deletions examples/ink-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"module": "index.ts",
"type": "module",
"devDependencies": {
"@types/bun": "^1.2.23"
"@types/bun": "^1.3.3"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand All @@ -13,7 +13,7 @@
"@polkadot-api/sdk-ink": "workspace:*",
"@polkadot-labs/hdkd": "^0.0.25",
"@polkadot-labs/hdkd-helpers": "^0.0.26",
"polkadot-api": "^1.19.1",
"polkadot-api": "^1.22.0",
"rxjs": "7.8.2"
}
}
2 changes: 1 addition & 1 deletion examples/remote-proxy/.papi/descriptors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"types": "./dist/index.d.ts",
"sideEffects": false,
"peerDependencies": {
"polkadot-api": ">=1.11.2"
"polkadot-api": ">=1.21.0"
}
}
8 changes: 4 additions & 4 deletions examples/remote-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"preview": "vite preview"
},
"devDependencies": {
"@types/node": "^24.5.2",
"@types/node": "^24.10.1",
"ts-node": "^10.9.2",
"typescript": "^5.9.2",
"vite": "^7.1.7"
"typescript": "^5.9.3",
"vite": "^7.2.4"
},
"dependencies": {
"@polkadot-api/descriptors": "file:.papi/descriptors",
"@polkadot-api/sdk-remote-proxy": "workspace:*",
"polkadot-api": "1.19.1",
"polkadot-api": "1.22.0",
"rxjs": "^7.8.2"
}
}
4 changes: 2 additions & 2 deletions examples/staking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"module": "index.ts",
"type": "module",
"devDependencies": {
"@types/bun": "^1.2.15"
"@types/bun": "^1.3.3"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@polkadot-api/descriptors": "file:.papi/descriptors",
"@polkadot-api/sdk-staking": "workspace:*",
"polkadot-api": "^1.13.1",
"polkadot-api": "^1.22.0",
"rxjs": "7.8.2"
}
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"trailingComma": "all"
},
"devDependencies": {
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-node-resolve": "^16.0.1",
"prettier": "^3.6.2",
"rollup": "^4.52.3",
"rollup-plugin-dts": "^6.2.3",
"@rollup/plugin-alias": "^6.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"prettier": "^3.7.1",
"rollup": "^4.53.3",
"rollup-plugin-dts": "^6.3.0",
"rollup-plugin-esbuild": "^6.2.1",
"typescript": "^5.9.2",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.2.4"
"vitest": "^4.0.14"
},
"packageManager": "pnpm@10.17.0+sha512.fce8a3dd29a4ed2ec566fb53efbb04d8c44a0f05bc6f24a73046910fb9c3ce7afa35a0980500668fa3573345bd644644fa98338fa168235c80f4aa17aa17fbef"
"packageManager": "pnpm@10.24.0+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a"
}
6 changes: 6 additions & 0 deletions packages/common-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Unreleased

## 0.2.0 2025-11-28

### Fixed

- Update to PAPI 1.22

## 0.1.0 2025-09-29

### Added
Expand Down
6 changes: 3 additions & 3 deletions packages/common-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot-api/common-sdk-utils",
"version": "0.1.0",
"version": "0.2.0",
"sideEffects": false,
"author": "Victor Oliva (https://github.com/voliva)",
"repository": {
Expand Down Expand Up @@ -41,11 +41,11 @@
},
"license": "MIT",
"peerDependencies": {
"polkadot-api": "^1.8.1",
"polkadot-api": ">=1.22.0",
"rxjs": ">=7.8.1"
},
"devDependencies": {
"polkadot-api": "^1.19.1",
"polkadot-api": "^1.22.0",
"rxjs": "^7.8.2"
}
}
6 changes: 4 additions & 2 deletions packages/common-utils/src/asyncTransaction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Binary, Transaction } from "polkadot-api"
import type { Binary, HexString, Transaction } from "polkadot-api"
import { from, switchMap } from "rxjs"

export type AsyncTransaction<
Expand All @@ -8,10 +8,11 @@ export type AsyncTransaction<
Asset = any,
> = Omit<
Transaction<Arg, Pallet, Name, Asset>,
"decodedCall" | "getEncodedData"
"decodedCall" | "getEncodedData" | "getBareTx"
> & {
decodedCall: Promise<Transaction<Arg, Pallet, Name, Asset>["decodedCall"]>
getEncodedData: () => Promise<Binary>
getBareTx: () => Promise<HexString>
waited: Promise<Transaction<Arg, Pallet, Name, Asset>>
}

Expand Down Expand Up @@ -41,6 +42,7 @@ export const wrapAsyncTx = <
promise.then((tx) => tx.getPaymentInfo(...args)),
decodedCall: promise.then((tx) => tx.decodedCall),
getEncodedData: () => promise.then((tx) => tx.getEncodedData()),
getBareTx: () => promise.then((tx) => tx.getBareTx()),
waited: promise,
}
}
6 changes: 6 additions & 0 deletions packages/sdk-accounts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Unreleased

## 0.6.0 2025-11-28

### Fixed

- Update to PAPI 1.22

## 0.5.1 2025-10-10

### Fixed
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk-accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot-api/sdk-accounts",
"version": "0.5.1",
"version": "0.6.0",
"sideEffects": false,
"author": "Victor Oliva (https://github.com/voliva)",
"repository": {
Expand Down Expand Up @@ -42,15 +42,15 @@
"license": "MIT",
"dependencies": {
"@polkadot-api/common-sdk-utils": "workspace:*",
"@polkadot-api/substrate-bindings": "^0.16.3",
"@polkadot-api/substrate-bindings": "^0.16.5",
"@react-rxjs/utils": "^0.9.7"
},
"peerDependencies": {
"polkadot-api": ">=1.12.0",
"polkadot-api": ">=1.22.0",
"rxjs": ">=7.8.0"
},
"devDependencies": {
"polkadot-api": "^1.19.1",
"polkadot-api": "^1.22.0",
"rxjs": "^7.8.2"
}
}
6 changes: 6 additions & 0 deletions packages/sdk-governance/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Unreleased

## 0.4.0 2025-11-28

### Fixed

- Update to PAPI 1.22

## 0.3.5 2025-09-29

### Fixed
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk-governance/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot-api/sdk-governance",
"version": "0.3.5",
"version": "0.4.0",
"sideEffects": false,
"author": "Victor Oliva (https://github.com/voliva)",
"repository": {
Expand Down Expand Up @@ -42,16 +42,16 @@
"license": "MIT",
"dependencies": {
"@polkadot-api/common-sdk-utils": "workspace:*",
"@polkadot-api/substrate-bindings": "^0.16.3",
"@polkadot-api/substrate-bindings": "^0.16.5",
"@react-rxjs/utils": "^0.9.7",
"scale-ts": "^1.6.1"
},
"peerDependencies": {
"polkadot-api": ">=1.12.0",
"polkadot-api": ">=1.22.0",
"rxjs": ">=7.8.0"
},
"devDependencies": {
"polkadot-api": "^1.19.1",
"polkadot-api": "^1.22.0",
"rxjs": "^7.8.2"
}
}
11 changes: 3 additions & 8 deletions packages/sdk-governance/src/bounties/child-sdk-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,19 @@ interface CuratorUnassignable {
unassignCurator(): Transaction<any, string, string, unknown>
}
export interface CuratorProposedChildBounty
extends GenericChildBounty,
CuratorUnassignable,
ClosableBounty {
extends GenericChildBounty, CuratorUnassignable, ClosableBounty {
type: "CuratorProposed"
curator: SS58String
acceptCuratorRole(): Transaction<any, string, string, unknown>
}
export interface ActiveChildBounty
extends GenericChildBounty,
CuratorUnassignable,
ClosableBounty {
extends GenericChildBounty, CuratorUnassignable, ClosableBounty {
type: "Active"
curator: SS58String
award(beneficiary: SS58String): Transaction<any, string, string, unknown>
}
export interface PendingPayoutChildBounty
extends GenericChildBounty,
CuratorUnassignable {
extends GenericChildBounty, CuratorUnassignable {
type: "PendingPayout"
curator: SS58String
beneficiary: SS58String
Expand Down
19 changes: 7 additions & 12 deletions packages/sdk-governance/src/bounties/sdk-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export interface ProposedBounty<
TEnums extends {
origin: unknown
} = { origin: unknown },
> extends GenericBounty,
ClosableBounty {
>
extends GenericBounty, ClosableBounty {
type: "Proposed"
approve(): Transaction<any, string, string, unknown>
filterApprovingReferenda(referenda: OngoingReferendum<TEnums>[]): Promise<
Expand All @@ -44,8 +44,8 @@ export interface FundedBounty<
TEnums extends {
origin: unknown
} = { origin: unknown },
> extends GenericBounty,
ClosableBounty {
>
extends GenericBounty, ClosableBounty {
type: "Funded"
proposeCurator(
curator: SS58String,
Expand Down Expand Up @@ -75,26 +75,21 @@ interface CuratorUnassignable {
unassignCurator(): Transaction<any, string, string, unknown>
}
export interface CuratorProposedBounty
extends GenericBounty,
CuratorUnassignable,
ClosableBounty {
extends GenericBounty, CuratorUnassignable, ClosableBounty {
type: "CuratorProposed"
curator: SS58String
acceptCuratorRole(): Transaction<any, string, string, unknown>
}
export interface ActiveBounty
extends GenericBounty,
CuratorUnassignable,
ClosableBounty {
extends GenericBounty, CuratorUnassignable, ClosableBounty {
type: "Active"
curator: SS58String
updateDue: number
extendExpiry(remark?: string): Transaction<any, string, string, unknown>
award(beneficiary: SS58String): Transaction<any, string, string, unknown>
}
export interface PendingPayoutBounty
extends GenericBounty,
CuratorUnassignable {
extends GenericBounty, CuratorUnassignable {
type: "PendingPayout"
curator: SS58String
beneficiary: SS58String
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-ink/.papi/descriptors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"types": "./dist/index.d.ts",
"sideEffects": false,
"peerDependencies": {
"polkadot-api": ">=1.11.2"
"polkadot-api": ">=1.21.0"
}
}
6 changes: 6 additions & 0 deletions packages/sdk-ink/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Unreleased

## 0.6.0 2025-11-28

### Fixed

- Update to PAPI 1.22

## 0.5.1 2025-09-30

### Fixed
Expand Down
16 changes: 8 additions & 8 deletions packages/sdk-ink/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot-api/sdk-ink",
"version": "0.5.1",
"version": "0.6.0",
"sideEffects": false,
"author": "Victor Oliva (https://github.com/voliva)",
"repository": {
Expand Down Expand Up @@ -41,20 +41,20 @@
},
"license": "MIT",
"dependencies": {
"@ethereumjs/rlp": "^10.0.0",
"@ethereumjs/rlp": "^10.1.0",
"@polkadot-api/common-sdk-utils": "workspace:*",
"@polkadot-api/substrate-bindings": "^0.16.3",
"abitype": "^1.1.1",
"viem": "^2.37.9"
"@polkadot-api/substrate-bindings": "^0.16.5",
"abitype": "^1.2.0",
"viem": "^2.40.3"
},
"peerDependencies": {
"@polkadot-api/ink-contracts": ">=0.4.0",
"polkadot-api": ">=1.19.0",
"polkadot-api": ">=1.22.0",
"rxjs": ">=7.8.0"
},
"devDependencies": {
"@polkadot-api/ink-contracts": "^0.4.0",
"polkadot-api": "^1.19.1",
"@polkadot-api/ink-contracts": "^0.4.3",
"polkadot-api": "^1.22.0",
"rxjs": "^7.8.2"
}
}
2 changes: 1 addition & 1 deletion packages/sdk-multisig/.papi/descriptors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"types": "./dist/index.d.ts",
"sideEffects": false,
"peerDependencies": {
"polkadot-api": ">=1.11.2"
"polkadot-api": ">=1.21.0"
}
}
Loading