feat: initialize Kurdistan SDK - independent fork of Polkadot SDK

This commit is contained in:
2025-12-13 15:44:15 +03:00
commit 286de54384
6841 changed files with 1848356 additions and 0 deletions
@@ -0,0 +1,32 @@
// Copyright (C) Parity Technologies (UK) Ltd.
// This file is part of Pezkuwi.
// Pezkuwi is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Pezkuwi is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
//! Test error when using a badly formatted attribute.
use xcm_procedural::Builder;
struct Xcm<Call>(pub Vec<Instruction<Call>>);
#[derive(Builder)]
enum Instruction<Call> {
#[builder(funds_holding = 2)]
WithdrawAsset(u128),
BuyExecution { fees: u128 },
UnpaidExecution { weight_limit: (u32, u32) },
Transact { call: Call },
}
fn main() {}
@@ -0,0 +1,5 @@
error: Expected `builder(loads_holding)` or `builder(pays_fees)`
--> tests/ui/builder_pattern/badly_formatted_attribute.rs:25:5
|
25 | #[builder(funds_holding = 2)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -0,0 +1,29 @@
// Copyright (C) Parity Technologies (UK) Ltd.
// This file is part of Pezkuwi.
// Pezkuwi is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Pezkuwi is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
//! Test error when there's no `UnpaidExecution` instruction.
use xcm_procedural::Builder;
struct Xcm<Call>(pub Vec<Instruction<Call>>);
#[derive(Builder)]
enum Instruction<Call> {
BuyExecution { fees: u128 },
Transact { call: Call },
}
fn main() {}
@@ -0,0 +1,6 @@
error: No UnpaidExecution instruction
--> tests/ui/builder_pattern/no_unpaid_execution.rs:25:5
|
25 | / BuyExecution { fees: u128 },
26 | | Transact { call: Call },
| |____________________________^
@@ -0,0 +1,5 @@
error: Expected `builder(loads_holding)` or `builder(pays_fees)`
--> tests/ui/builder_pattern/unexpected_attribute.rs:25:5
|
25 | #[builder(funds_holding)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -0,0 +1,25 @@
// Copyright (C) Parity Technologies (UK) Ltd.
// This file is part of Pezkuwi.
// Pezkuwi is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Pezkuwi is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
//! Test error when attaching the derive builder macro to something
//! other than the XCM `Instruction` enum.
use xcm_procedural::Builder;
#[derive(Builder)]
struct SomeStruct;
fn main() {}
@@ -0,0 +1,5 @@
error: Expected the `Instruction` enum
--> tests/ui/builder_pattern/wrong_target.rs:23:1
|
23 | struct SomeStruct;
| ^^^^^^^^^^^^^^^^^^