Skip to content

Commit 0e41263

Browse files
authored
Merge pull request #466 from Polimec/03-05-chore_release_1.0
🔖 Release Polimec 1.0.0
2 parents fbeff8e + 879f256 commit 0e41263

File tree

11 files changed

+87
-94
lines changed

11 files changed

+87
-94
lines changed

Cargo.lock

+21-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ homepage = "https://www.polimec.org/"
3131
license-file = "LICENSE"
3232
readme = "README.md"
3333
repository = "https://github.com/Polimec/polimec-node"
34-
version = "0.9.0"
34+
version = "1.0.0"
3535

3636
[profile.release]
3737
# Substrate runtime requires unwinding.

README.md

+35-41
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Polimec
22

3-
> **Warning**: This project is under HEAVY development.
4-
53
Polimec is a blockchain platform built on Substrate, designed for robustness and scalability. This README provides guidelines for setting up and running Polimec as a Parachain using Zombienet.
64

75
## Table of Contents
@@ -22,79 +20,75 @@ Polimec is a blockchain platform built on Substrate, designed for robustness and
2220

2321
### Setting up the Relay Chain
2422

25-
1. **Clone the Polkadot Repository**:
23+
1. **Clone the Polkadot Repository**:
2624
`git clone https://github.com/paritytech/polkadot`
27-
2. **Checkout the specific branch**:
25+
2. **Checkout the specific branch**:
2826
`git checkout release-v1.0.0`
29-
3. **Compile the source**:
27+
3. **Compile the source**:
3028
`cargo build --release --package polkadot`
31-
4. **Add the Polkadot binary to your PATH**:
29+
4. **Add the Polkadot binary to your PATH**:
3230
`cp target/release/polkadot ~/.local/bin/polkadot`
3331

3432
### Setting up Polimec
3533

36-
1. **Clone the Polimec Repository**:
34+
1. **Clone the Polimec Repository**:
3735
`git clone <Polimec Repository URL>`
38-
2. **Compile the source**:
36+
2. **Compile the source**:
3937
`cargo build --release --package polimec-node`
40-
3. **Add the Polimec node binary to your PATH**:
38+
3. **Add the Polimec node binary to your PATH**:
4139
`cp target/release/polimec-node ~/.local/bin/polimec`
4240

4341
### Running the Network
4442

4543
1. **Launch the network with Zombienet**:
4644
`zombienet spawn scripts/zombienet/native/local-testnet.toml`
47-
2. A Polimec node is now reachable at https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:8080#/explorer
45+
2. A Polimec node is now reachable at https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:8080#/explorer
4846

4947
## Additional Resources
5048

5149
- **Compilation of the Runtime**: Use [srtool](https://github.com/paritytech/srtool) for compiling the runtime and generating the WASM blob.
5250

5351
```
5452
== Compact
55-
Version : polimec-mainnet-2 (polimec-mainnet-0.tx1.au1)
53+
Version : polimec-mainnet-1000000 (polimec-mainnet-0.tx7.au1)
5654
Metadata : V14
57-
Size : 5.95 MB (6238415 bytes)
58-
setCode : 0x0582b7c4d42bb46593ac2788d17c3d083eedfbc9d8ef3fb0c912378189d44f94
59-
authorizeUpgrade : 0xe8d26589c2c5257c3f52e21ba420eb0c6fd25fa5cee0878bc183ca0256dee9bc
60-
IPFS : Qmbi9ymmCdJVJCLsBAmYKWGYgYjGuHJLRdCPj9fvXQ3X9U
61-
BLAKE2_256 : 0x7ac6016ddf9179bb2d6d0284df4d60323519f20016647ba887057756d131b51e
62-
Wasm : runtimes/testnet/target/srtool/release/wbuild/polimec-runtime/polimec_runtime.compact.wasm
55+
Size : 6.09 MB (6388233 bytes)
56+
setCode : 0x51c78d58adc2b79d41ec2bcca074a17685bedadaf9c4e5a8d6c2426055262192
57+
authorizeUpgrade : 0x6bb01a720ef423759bc6541243cccffd0ec35dee69116e540906c23e2d61593f
58+
IPFS : QmRvqT7DfSFNYszTC9dH99Fdqta5XNEfnd4tXxM9vaW69y
59+
BLAKE2_256 : 0x78d8e5ac7bcaf6ad2f38701928f2c387a32dbc453ab58c000f88e48fa2dadd4c
60+
Wasm : runtimes/polimec/target/srtool/production/wbuild/polimec-runtime/polimec_runtime.compact.wasm
6361
6462
== Compressed
65-
Version : polimec-mainnet-2 (polimec-mainnet-0.tx1.au1)
63+
Version : polimec-mainnet-1000000 (polimec-mainnet-0.tx7.au1)
6664
Metadata : V14
67-
Size : 1.20 MB (1255405 bytes)
68-
Compression : 79.88%
69-
setCode : 0x84730f2715acaba69361390edf28cc788e0ebdf491380d02764f78f0c702ecb9
70-
authorizeUpgrade : 0x8dcd2827b4c86be23da13a93a8d63a38ad4952c1450738ed8471982bcb4fc714
71-
IPFS : QmPFr7QRFKM5jSuYfBNAg21dfiKEpvMxXMydLDZuW9yLFH
72-
BLAKE2_256 : 0x7341cc921de52eaea99af5865c3e36562cf49158dcb961daef3c2e06f531ae00
73-
Wasm : runtimes/testnet/target/srtool/release/wbuild/polimec-runtime/polimec_runtime.compact.compressed.wasm
65+
Size : 1.52 MB (1592474 bytes)
66+
Compression : 75.08%
67+
setCode : 0x7c0c21c12ca5722f9f0a916a9ef96be22d56452149b69c8a51344f5ecf651075
68+
authorizeUpgrade : 0x31a4614dcda36f15a84899147df88f31d128b4d6204b32b7510d7a5cf0e8bf84
69+
IPFS : Qme6jU3X5nWWpsgFFLFnhabCuFEphwvzJ5g91s8bQ3Ab3b
70+
BLAKE2_256 : 0x084190d81d4d8e2a17842ce8caebab8fc6051069ab0c06ca94bd8b4984d52dd7
71+
Wasm : runtimes/polimec/target/srtool/production/wbuild/polimec-runtime/polimec_runtime.compact.compressed.wasm
7472
```
7573
- **Utility Scripts**: Check the `scripts` directory for useful scripts. Use [just](https://github.com/casey/just) for executing scripts, e.g., `$ just build-parachain-node`.
7674

7775
```
7876
Available recipes:
79-
benchmark-pallet-funding # Benchmark the "Testnet" Runtime
80-
benchmark-runtime-funding # Benchmark the "Testnet" Runtime
81-
benchmarks-test
82-
build-all # Build everything
83-
build-base-runtime # Build the "Base" Runtime
84-
build-base-srtool # Build the "Base" Runtime using srtool
85-
build-parachain-node # Build the "Parachain" Node
86-
build-parachain-runtime # Build the "Testnet" Runtime
87-
build-parachain-srtool # Build the "Testnet" Runtime using srtool
88-
create-chainspec-base # Create the "Base" Runtime Chainspec
89-
default # Help information
90-
docker-build tag="latest" package="polimec-node" # Build the Node Docker Image
91-
run-node # Run the "Standalone" node in --dev mode
92-
test-runtime-features # Test the runtimes features
93-
zombienet path_to_file="scripts/zombienet/native/base-rococo-local.toml" # Use zombienet to spawn rococo + polimec testnet
77+
benchmark-extrinsics pallet="pallet-funding" extrinsics="*"
78+
benchmark-pallet chain="polimec-paseo-local" pallet="pallet-dispenser" # Run the Runtime benchmarks for a specific pallet
79+
benchmark-runtime
80+
build-polimec-paseo-srtool
81+
build-polimec-polkadot-srtool # Build the "Base" Runtime using srtool
82+
create-chainspec-base # Create the "Base" Runtime Chainspec
83+
default # Help information
84+
dev path_to_file="scripts/zombienet/polimec-paseo-local.toml" # Use zombienet to spawn rococo + polimec testnet
85+
docker-build tag="latest" package="polimec-node" # Build the Node Docker Image
86+
dry-run-benchmarks mode="fast-mode" pallet="*" extrinsic="*"
87+
test-integration # Run the integration tests
88+
test-runtime-features runtime="polimec-runtime" # Test the runtimes features
9489
```
9590

9691

9792
## Contributing
9893

9994
We welcome contributions! Feel free to raise issues or submit pull requests. Your feedback and contributions are valued as we develop Polimec into a robust and versatile software.
100-

integration-tests/Cargo.toml

+5-4
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ polimec-runtime.workspace = true
9191
default = [ "development-settings", "instant-mode", "std" ]
9292
instant-mode = [ "polimec-runtime/instant-mode" ]
9393
std = [
94+
"assets-common/std",
9495
"cumulus-pallet-xcm/std",
9596
"cumulus-primitives-core/std",
9697
"frame-metadata-hash-extension/std",
@@ -132,6 +133,8 @@ std = [
132133
"polkadot-parachain-primitives/std",
133134
"polkadot-primitives/std",
134135
"polkadot-runtime-parachains/std",
136+
"rococo-runtime-constants/std",
137+
"rococo-runtime/std",
135138
"scale-info/std",
136139
"serde/std",
137140
"sp-arithmetic/std",
@@ -143,16 +146,14 @@ std = [
143146
"sp-io/std",
144147
"sp-runtime/std",
145148
"sp-std/std",
146-
"rococo-runtime-constants/std",
147-
"rococo-runtime/std",
148149
"xcm-builder/std",
149150
"xcm-executor/std",
150151
"xcm-fee-payment-runtime-api/std",
151152
"xcm/std",
152-
"assets-common/std"
153153
]
154154
development-settings = [ "polimec-runtime/development-settings" ]
155155
runtime-benchmarks = [
156+
"assets-common/runtime-benchmarks",
156157
"cumulus-primitives-core/runtime-benchmarks",
157158
"frame-support/runtime-benchmarks",
158159
"frame-system/runtime-benchmarks",
@@ -185,8 +186,8 @@ runtime-benchmarks = [
185186
"polkadot-primitives/runtime-benchmarks",
186187
"polkadot-runtime-parachains/runtime-benchmarks",
187188
"polkadot-service/runtime-benchmarks",
188-
"sp-runtime/runtime-benchmarks",
189189
"rococo-runtime/runtime-benchmarks",
190+
"sp-runtime/runtime-benchmarks",
190191
"xcm-builder/runtime-benchmarks",
191192
"xcm-executor/runtime-benchmarks",
192193
"xcm-fee-payment-runtime-api/runtime-benchmarks",

nodes/parachain/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ runtime-benchmarks = [
8989
"frame-benchmarking-cli/runtime-benchmarks",
9090
"frame-benchmarking/runtime-benchmarks",
9191
"pallet-funding/runtime-benchmarks",
92+
"polimec-common/runtime-benchmarks",
9293
"polimec-runtime/runtime-benchmarks",
9394
"polkadot-cli/runtime-benchmarks",
9495
"polkadot-primitives/runtime-benchmarks",
@@ -97,6 +98,7 @@ runtime-benchmarks = [
9798
]
9899
try-runtime = [
99100
"pallet-funding/try-runtime",
101+
"polimec-common/try-runtime",
100102
"polimec-runtime/try-runtime",
101103
"polkadot-cli/try-runtime",
102104
"sp-runtime/try-runtime",
@@ -116,5 +118,5 @@ std = [
116118
"sp-consensus-aura/std",
117119
"sp-core/std",
118120
"sp-runtime/std",
119-
"xcm/std"
121+
"xcm/std",
120122
]

0 commit comments

Comments
 (0)