Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3a7dfa5
Update navigation and documentation for basic contract deployment
nhussein11 Oct 20, 2025
8ca8842
fix: llms
nhussein11 Oct 20, 2025
0eef625
Fix navigation entry for deploying a basic contract (PVM) in .nav.yml
nhussein11 Oct 21, 2025
c20f681
Update deployment guides for basic EVM and PVM contracts, specifying …
nhussein11 Oct 21, 2025
16aef31
Update smart-contracts/cookbook/smart-contracts/deploy-basic-pvm.md
nhussein11 Oct 21, 2025
37d8abe
Update smart-contracts/cookbook/smart-contracts/deploy-basic-pvm.md
nhussein11 Oct 21, 2025
b3bc379
Fix: adding reference to polkadot hub
nhussein11 Oct 21, 2025
999e78c
fix: llms
nhussein11 Oct 21, 2025
ed1cdf2
fix evm
0xlukem Oct 23, 2025
0ee669e
fix pvm
0xlukem Oct 23, 2025
3824734
fix
0xlukem Oct 23, 2025
6d7b21e
fresh llms
0xlukem Oct 23, 2025
766c77f
Update bytecode writing method in EVM deployment guide and remove TOD…
nhussein11 Oct 23, 2025
3b6ff77
hiding pvm content
0xlukem Oct 23, 2025
3aeef4c
add tabbed content
0xlukem Oct 23, 2025
cf2a44a
llms
0xlukem Oct 23, 2025
1feeaf6
Merge branch 'staging/product-ia' into nhussein11/add-deploy-basic-pvm
0xlukem Oct 23, 2025
fc18dc3
merge issue
0xlukem Oct 23, 2025
b0015d8
llms
0xlukem Oct 23, 2025
7c155d6
break deploy-basic-evm in small sections
0xlukem Oct 24, 2025
3a50c0f
fix naming
0xlukem Oct 24, 2025
31646b4
feedback
0xlukem Oct 29, 2025
34abe1b
fix
0xlukem Oct 30, 2025
6494346
Merge branch 'staging/product-ia' into nhussein11/add-deploy-basic-pvm
0xlukem Oct 30, 2025
ee94462
feedback
0xlukem Oct 30, 2025
c97c843
Apply suggestions from code review
0xlukem Oct 31, 2025
a468128
feedback
0xlukem Oct 31, 2025
98537a6
Merge branch 'staging/product-ia' into nhussein11/add-deploy-basic-pvm
0xlukem Oct 31, 2025
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
39 changes: 1 addition & 38 deletions .ai/categories/infrastructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -10493,44 +10493,7 @@ touch /etc/systemd/system/polkadot-validator.service
In this unit file, you will write the commands that you want to run on server boot/restart:

```systemd title="/etc/systemd/system/polkadot-validator.service"
[Unit]
Description=Polkadot Node
After=network.target
Documentation=https://github.com/paritytech/polkadot-sdk

[Service]
EnvironmentFile=-/etc/default/polkadot
ExecStart=/usr/bin/polkadot $POLKADOT_CLI_ARGS
User=polkadot
Group=polkadot
Restart=always
RestartSec=120
CapabilityBoundingSet=
LockPersonality=true
NoNewPrivileges=true
PrivateDevices=true
PrivateMounts=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHostname=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
RemoveIPC=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
RestrictNamespaces=false
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=landlock_add_rule landlock_create_ruleset landlock_restrict_self seccomp mount umount2
SystemCallFilter=~@clock @module @reboot @swap @privileged
SystemCallFilter=pivot_root
UMask=0027

[Install]
WantedBy=multi-user.target

```

!!! warning "Restart delay and equivocation risk"
Expand Down
24 changes: 1 addition & 23 deletions .ai/categories/parachains.md
Original file line number Diff line number Diff line change
Expand Up @@ -2446,29 +2446,7 @@ To add a GitHub workflow for building the runtime:

{% raw %}
```yml
name: Srtool build

on: push

jobs:
srtool:
runs-on: ubuntu-latest
strategy:
matrix:
chain: ["asset-hub-kusama", "asset-hub-westend"]
steps:
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/[email protected]
with:
chain: ${{ matrix.chain }}
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
- name: Summary
run: |
echo '${{ steps.srtool_build.outputs.json }}' | jq . > ${{ matrix.chain }}-srtool-digest.json
cat ${{ matrix.chain }}-srtool-digest.json
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"

```
{% endraw %}

Expand Down
7,324 changes: 4,623 additions & 2,701 deletions .ai/categories/smart-contracts.md

Large diffs are not rendered by default.

25 changes: 2 additions & 23 deletions .ai/categories/tooling.md
Original file line number Diff line number Diff line change
Expand Up @@ -19119,27 +19119,7 @@ Let's start by setting up Hardhat for your Storage contract project:
1. Create a new folder called `contracts` and create a `Storage.sol` file. Add the contract code from the previous tutorial:

```solidity title="Storage.sol"
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;

contract Storage {
// State variable to store our number
uint256 private number;

// Event to notify when the number changes
event NumberChanged(uint256 newNumber);

// Function to store a new number
function store(uint256 newNumber) public {
number = newNumber;
emit NumberChanged(newNumber);
}

// Function to retrieve the stored number
function retrieve() public view returns (uint256) {
return number;
}
}

```

2. Compile the contract:
Expand Down Expand Up @@ -19185,8 +19165,7 @@ Testing is a critical part of smart contract development. Hardhat makes it easy

describe('Basic functionality', function () {
// Add your logic here
});
});

```

The `beforeEach` hook ensures stateless contract execution by redeploying a fresh instance of the Storage contract before each test case. This approach guarantees that each test starts with a clean and independent contract state by using `ethers.getSigners()` to obtain test accounts and `ethers.getContractFactory('Storage').deploy()` to create a new contract instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,29 +107,7 @@ To add a GitHub workflow for building the runtime:

{% raw %}
```yml
name: Srtool build

on: push

jobs:
srtool:
runs-on: ubuntu-latest
strategy:
matrix:
chain: ["asset-hub-kusama", "asset-hub-westend"]
steps:
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/[email protected]
with:
chain: ${{ matrix.chain }}
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
- name: Summary
run: |
echo '${{ steps.srtool_build.outputs.json }}' | jq . > ${{ matrix.chain }}-srtool-digest.json
cat ${{ matrix.chain }}-srtool-digest.json
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"

```
{% endraw %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,44 +181,7 @@ touch /etc/systemd/system/polkadot-validator.service
In this unit file, you will write the commands that you want to run on server boot/restart:

```systemd title="/etc/systemd/system/polkadot-validator.service"
[Unit]
Description=Polkadot Node
After=network.target
Documentation=https://github.com/paritytech/polkadot-sdk

[Service]
EnvironmentFile=-/etc/default/polkadot
ExecStart=/usr/bin/polkadot $POLKADOT_CLI_ARGS
User=polkadot
Group=polkadot
Restart=always
RestartSec=120
CapabilityBoundingSet=
LockPersonality=true
NoNewPrivileges=true
PrivateDevices=true
PrivateMounts=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHostname=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
RemoveIPC=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
RestrictNamespaces=false
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=landlock_add_rule landlock_create_ruleset landlock_restrict_self seccomp mount umount2
SystemCallFilter=~@clock @module @reboot @swap @privileged
SystemCallFilter=pivot_root
UMask=0027

[Install]
WantedBy=multi-user.target

```

!!! warning "Restart delay and equivocation risk"
Expand Down
Loading
Loading