Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
e92d9c3
feat: write delegator state migration
wischli Sep 16, 2022
e703493
tests: comp api claim with claiming
wischli Sep 19, 2022
02eb407
stlye: fmt
wischli Sep 19, 2022
a8f0980
fix: migration after testing with try-runtime
wischli Sep 19, 2022
3290887
feat: asset DIDs and public credentials (#378)
ntn-x2 Sep 20, 2022
3ad5385
feat: Clone Spec 3
weichweich Sep 21, 2022
0fcb64e
chore: bump deps
wischli Sep 22, 2022
e650909
Version 1.7.3
weichweich Sep 22, 2022
f0224c5
Version 1.7.3b
wischli Oct 2, 2022
cfb4f51
feat: remove dyn filter & relay migration (#411)
weichweich Sep 27, 2022
763a60a
Version 1.7.4
weichweich Sep 27, 2022
3d844bb
fix: delete all storage entries
weichweich Sep 27, 2022
7890885
Add force_batch to supported DID calls (#417)
ntn-x2 Sep 29, 2022
e0a1d61
ci: add build pipelines to tags
wischli Oct 2, 2022
85de75d
ci: fix tag regex for gitlab
wischli Oct 2, 2022
bb324a7
ci: build on new tags
wischli Oct 2, 2022
b45a009
fix: block production for polkadot
weichweich Oct 3, 2022
d6288a8
updated fix
weichweich Oct 3, 2022
21d5268
refactor: repo uri in tomls
wischli Oct 5, 2022
d03c162
Merge remote-tracking branch 'origin/master' into develop
wischli Oct 5, 2022
93fb3ab
feat: upgrade to Polkadot v0.9.29 (#416)
wischli Oct 6, 2022
c9ac4a5
Fix serde encoding for LinkableAccountId to match what polkadot api l…
ntn-x2 Oct 11, 2022
2bec676
feat: remove client RPC for DIDs (#422)
ntn-x2 Oct 13, 2022
faa81ae
chore: runtime API renaming (#423)
ntn-x2 Oct 17, 2022
24d9924
Bump all version to 1.8.0 (#421)
ntn-x2 Oct 17, 2022
a0e7078
feat: upgrade to Polkadot v0.9.29 (#416)
wischli Oct 6, 2022
4353b6b
fix: runtime tomls
wischli Sep 7, 2022
f53441c
feat: remove client RPC for DIDs (#422)
ntn-x2 Oct 13, 2022
1b45adc
chore: runtime API renaming (#423)
ntn-x2 Oct 17, 2022
26977a9
tests: merge delegation from wf-2168-polkadot-v0.9.28
wischli Sep 7, 2022
dba1f00
chore: version 1.7.5
wischli Oct 17, 2022
3960fc1
fix: remove DidApi versioning + LinkableAccountId
wischli Oct 18, 2022
61b7495
ci: update srtool
wischli Oct 18, 2022
8eed4df
chore: update benchmarks
kiltbot Oct 19, 2022
4f69b92
fix: bench scripts
kiltbot Oct 19, 2022
a29cf87
fix: weight template
kiltbot Oct 19, 2022
5397568
fix: add missing did api
wischli Oct 19, 2022
3ffff0f
chore: remove RPC for public credentials and remove `Api` suffix from…
ntn-x2 Oct 20, 2022
af4f81b
Merge remote-tracking branch 'origin/release-1.7.5' into develop
wischli Oct 20, 2022
78d727a
ci: fix regex for tags
wischli Oct 20, 2022
b8fa7f4
ci: fix regex for tags
wischli Oct 20, 2022
b84929a
feat: cleanup duplicate deps (#419)
wischli Oct 20, 2022
5a14b10
Remove old DID runtime API (#425)
ntn-x2 Oct 21, 2022
70f3c5d
refactor(delegation): move impl Pallet into pallet mod (#428)
weichweich Oct 24, 2022
dfbd9e3
Merge remote-tracking branch 'origin/develop' into wf/1930-staking-re…
wischli Oct 27, 2022
4d66220
refactor: remove custom serde derivation for DID types (#429)
wischli Oct 28, 2022
bc0890f
Merge remote-tracking branch 'origin/develop' into wf/1930-staking-re…
wischli Oct 28, 2022
36e4abd
tests: add safety check to API rewards
wischli Oct 31, 2022
6b7c003
ci: fix spiritnet wasm build
wischli Oct 31, 2022
117a452
Merge remote-tracking branch 'origin/release-1.7.5' into develop
wischli Oct 31, 2022
56a5539
style: fmt
wischli Oct 31, 2022
98eab08
Merge branch 'develop' into wf/1930-staking-refactor
wischli Oct 31, 2022
e8ce908
Merge remote-tracking branch 'origin/wf/1930-staking-refactor' into w…
wischli Oct 31, 2022
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
10 changes: 5 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ build:
refs:
- develop
- master
- /^[0-9]+(?:\.[0-9]+){2}$/
- /^[0-9]+(?:\.[0-9]+){2}(?:-[0-9]+)?$/
variables:
DOCKER_HUB_PARACHAIN: "kiltprotocol/kilt-node"
DOCKER_HUB_STANDALONE: "kiltprotocol/mashnet-node"
Expand All @@ -69,13 +69,13 @@ build:

build-wasm-peregrine:
image:
name: $AWS_REGISTRY/kilt/srtool:latest
pull_policy: never
name: paritytech/srtool:1.64.0-0.9.23
entrypoint: [""]
stage: build
only:
- develop
- master
- /^[0-9]+(?:\.[0-9]+){2}(?:-[0-9]+)?$/
script:
- export PACKAGE=peregrine-runtime
- export RUNTIME_DIR=runtimes/peregrine
Expand All @@ -90,13 +90,13 @@ build-wasm-peregrine:

build-wasm-spiritnet:
image:
name: $AWS_REGISTRY/kilt/srtool:latest
pull_policy: never
name: paritytech/srtool:1.64.0-0.9.23
entrypoint: [""]
stage: build
only:
- develop
- master
- /^[0-9]+(?:\.[0-9]+){2}(?:-[0-9]+)?$/
script:
- export PACKAGE=spiritnet-runtime
- export RUNTIME_DIR=runtimes/spiritnet
Expand Down
18 changes: 9 additions & 9 deletions .maintain/runtime-weight-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,34 @@
use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;

/// Weight functions for `{{pallet}}`.
/// Weights for `{{pallet}}`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> {{pallet}}::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> WeightInfo<T> {
{{#each benchmarks as |benchmark|}}
{{#each benchmark.comments as |comment|}}
// {{comment}}
{{/each}}
fn {{benchmark.name~}}
pub(crate) fn {{benchmark.name~}}
(
{{~#each benchmark.components as |c| ~}}
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
) -> Weight {
({{underscore benchmark.base_weight}} as Weight)
Weight::from_ref_time({{underscore benchmark.base_weight}} as u64)
{{#each benchmark.component_weight as |cw|}}
// Standard Error: {{underscore cw.error}}
.saturating_add(({{underscore cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight))
.saturating_add(Weight::from_ref_time({{underscore cw.slope}} as u64).saturating_mul({{cw.name}} as u64))
{{/each}}
{{#if (ne benchmark.base_reads "0")}}
.saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}} as Weight))
.saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}} as u64))
{{/if}}
{{#each benchmark.component_reads as |cr|}}
.saturating_add(T::DbWeight::get().reads(({{cr.slope}} as Weight).saturating_mul({{cr.name}} as Weight)))
.saturating_add(T::DbWeight::get().reads(({{cr.slope}} as u64).saturating_mul({{cr.name}} as u64)))
{{/each}}
{{#if (ne benchmark.base_writes "0")}}
.saturating_add(T::DbWeight::get().writes({{benchmark.base_writes}} as Weight))
.saturating_add(T::DbWeight::get().writes({{benchmark.base_writes}} as u64))
{{/if}}
{{#each benchmark.component_writes as |cw|}}
.saturating_add(T::DbWeight::get().writes(({{cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight)))
.saturating_add(T::DbWeight::get().writes(({{cw.slope}} as u64).saturating_mul({{cw.name}} as u64)))
{{/each}}
}
{{/each}}
Expand Down
36 changes: 23 additions & 13 deletions .maintain/weight-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -48,32 +48,39 @@ pub trait WeightInfo {

/// Weights for {{pallet}} using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
{{#if (eq pallet "frame_system")}}
impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
{{else}}
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
{{/if}}
{{#each benchmarks as |benchmark|}}
{{#each benchmark.comments as |comment|}}
// {{comment}}
{{/each}}
{{#each benchmark.component_ranges as |range|}}
/// The range of component `{{range.name}}` is `[{{range.min}}, {{range.max}}]`.
{{/each}}
fn {{benchmark.name~}}
(
{{~#each benchmark.components as |c| ~}}
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
) -> Weight {
({{underscore benchmark.base_weight}} as Weight)
Weight::from_ref_time({{underscore benchmark.base_weight}} as u64)
{{#each benchmark.component_weight as |cw|}}
// Standard Error: {{underscore cw.error}}
.saturating_add(({{underscore cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight))
.saturating_add(Weight::from_ref_time({{underscore cw.slope}} as u64).saturating_mul({{cw.name}} as u64))
{{/each}}
{{#if (ne benchmark.base_reads "0")}}
.saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}} as Weight))
.saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}} as u64))
{{/if}}
{{#each benchmark.component_reads as |cr|}}
.saturating_add(T::DbWeight::get().reads(({{cr.slope}} as Weight).saturating_mul({{cr.name}} as Weight)))
.saturating_add(T::DbWeight::get().reads(({{cr.slope}} as u64).saturating_mul({{cr.name}} as u64)))
{{/each}}
{{#if (ne benchmark.base_writes "0")}}
.saturating_add(T::DbWeight::get().writes({{benchmark.base_writes}} as Weight))
.saturating_add(T::DbWeight::get().writes({{benchmark.base_writes}} as u64))
{{/if}}
{{#each benchmark.component_writes as |cw|}}
.saturating_add(T::DbWeight::get().writes(({{cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight)))
.saturating_add(T::DbWeight::get().writes(({{cw.slope}} as u64).saturating_mul({{cw.name}} as u64)))
{{/each}}
}
{{/each}}
Expand All @@ -85,28 +92,31 @@ impl WeightInfo for () {
{{#each benchmark.comments as |comment|}}
// {{comment}}
{{/each}}
{{#each benchmark.component_ranges as |range|}}
/// The range of component `{{range.name}}` is `[{{range.min}}, {{range.max}}]`.
{{/each}}
fn {{benchmark.name~}}
(
{{~#each benchmark.components as |c| ~}}
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
) -> Weight {
({{underscore benchmark.base_weight}} as Weight)
Weight::from_ref_time({{underscore benchmark.base_weight}} as u64)
{{#each benchmark.component_weight as |cw|}}
// Standard Error: {{underscore cw.error}}
.saturating_add(({{underscore cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight))
.saturating_add(Weight::from_ref_time({{underscore cw.slope}} as u64).saturating_mul({{cw.name}} as u64))
{{/each}}
{{#if (ne benchmark.base_reads "0")}}
.saturating_add(RocksDbWeight::get().reads({{benchmark.base_reads}} as Weight))
.saturating_add(RocksDbWeight::get().reads({{benchmark.base_reads}} as u64))
{{/if}}
{{#each benchmark.component_reads as |cr|}}
.saturating_add(RocksDbWeight::get().reads(({{cr.slope}} as Weight).saturating_mul({{cr.name}} as Weight)))
.saturating_add(RocksDbWeight::get().reads(({{cr.slope}} as u64).saturating_mul({{cr.name}} as u64)))
{{/each}}
{{#if (ne benchmark.base_writes "0")}}
.saturating_add(RocksDbWeight::get().writes({{benchmark.base_writes}} as Weight))
.saturating_add(RocksDbWeight::get().writes({{benchmark.base_writes}} as u64))
{{/if}}
{{#each benchmark.component_writes as |cw|}}
.saturating_add(RocksDbWeight::get().writes(({{cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight)))
.saturating_add(RocksDbWeight::get().writes(({{cw.slope}} as u64).saturating_mul({{cw.name}} as u64)))
{{/each}}
}
{{/each}}
}
}
Loading