Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Moonbeam #4

Open
wants to merge 121 commits into
base: subsocial/staking
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
711ab6d
fix list benchmarks command (#1518)
nbaztec May 18, 2022
81f9bf0
Switch to exhaustive selector match in staking precompiles (#1521)
tgmichel May 18, 2022
2bac6ea
build runtimes without feature on-chain-release-build (#1513)
librelois May 19, 2022
3dc7902
create local asset id just encoding once (#1523)
girazoki May 19, 2022
1bb4b65
Inject blocks per year and blocks per round to the inflation info
TarekkMA May 20, 2022
ab475d2
Use rounded up computation when calculating fee (#1511)
girazoki May 20, 2022
7a6f4bd
fix(orbiters): panic if we trying to add an orbiter just after removi…
librelois May 20, 2022
bbea752
remove unnecessary import
TarekkMA May 20, 2022
7b22367
Make author_mapping::set_keys take 1 input like pallet_session::set_k…
4meta5 May 20, 2022
15b1a1f
v0.9.20 dependency update (#1489)
tgmichel May 23, 2022
84d6367
Force compiled wasm for tracing tests (#1529)
May 23, 2022
ce40228
Introduce exponential length fee for substrate-based fees (#1496)
notlesh May 23, 2022
511b255
Author priority fees fix (#1528)
tgmichel May 24, 2022
418d7af
fix(orbiters):use orbiters for author mapping to enable author forwar…
librelois May 24, 2022
8b6399c
do not issue rewards for leaving delegators (#1515)
nbaztec May 24, 2022
533d7d7
PrecompileHandle trait (subcall support) + precompile testing utils (…
nanocryk May 24, 2022
0045e17
Batch precompile (#1498)
nanocryk May 24, 2022
16fce4d
Girazoki enable signed transact message in xcm transactor (#1449)
girazoki May 24, 2022
ba741c0
Cleanup 1500 migrations (#1532)
May 24, 2022
248ae43
Fix author mapping set_keys to take input Vec<u8> (#1535)
4meta5 May 26, 2022
da03fdc
Fix author mapping setKeys precompile to take 1 input like extrinsic …
4meta5 May 27, 2022
0c7df79
releases notes: prefix pr numbers by # (#1533)
librelois May 30, 2022
454c05a
Fix Github Action Typescript Api (#1539)
May 30, 2022
e8f5e17
[MOON-1714] disallow bond_more when revoke is pending (#1545)
nbaztec May 30, 2022
ad5c304
bump frontier + test gas estimation (#1554)
nanocryk May 31, 2022
4ea5120
Update ERC20.sol (#1553)
hyd628 May 31, 2022
5d9f785
Reduced minimum staking delegation in Moonbase (#1547)
May 31, 2022
5a88c11
Prevent DELEGATECALL for custom precompiles (#1551)
May 31, 2022
daadfd0
update benchmarking weight for staking operation (#1555)
nbaztec May 31, 2022
bf3df1e
Move spec_version to 1601 (#1558)
May 31, 2022
e9959b6
Only fetch from relay, and additionally, check for pre and post 1600 …
girazoki May 31, 2022
c3fdb79
Better message for typescript-api action (#1562)
May 31, 2022
3f40504
typescript API v0.1601.0 (#1561)
github-actions[bot] Jun 2, 2022
31f6c52
fix local assets selectors (#1563)
albertov19 Jun 2, 2022
b775e50
Girazoki remove moonbase runtime benchmarks flag (#1531)
girazoki Jun 2, 2022
3a3beef
enable xcm migrations for moonbeam (#1567)
girazoki Jun 2, 2022
fc8894b
bring nimbus change kick off authorship validation (#1569)
girazoki Jun 2, 2022
d0ca195
Update copyright year notices to 2022 (#1575)
notlesh Jun 7, 2022
60427d8
Girazoki benchmark kick off authorship validaton (#1516)
girazoki Jun 7, 2022
c6dd0c0
Add dev-dependency for precompile-utils with testing (#1577)
notlesh Jun 7, 2022
98ff46b
Remove `tiny-hderive` (#1578)
tgmichel Jun 8, 2022
05fdccc
Refactoring tests (#1573)
Jun 9, 2022
805f06f
[MOON-1716] add --all to benchmarking script (#1564)
nbaztec Jun 9, 2022
8369da6
v0.24.0 (#1583)
librelois Jun 9, 2022
3eb3cd3
Update runtime version to 1700 (#1584)
Jun 9, 2022
bccb3f3
fix indirect read of bond amount value (#1591)
nbaztec Jun 10, 2022
64e5041
Update nix 0.23 (#1592)
tgmichel Jun 13, 2022
fd0ad80
add nesting limit to batch precompile (#1595)
nanocryk Jun 13, 2022
0923228
Orbiters: add storage entry RegisteredOrbiter & events OrbiterRegiste…
librelois Jun 13, 2022
35ebd0a
Update `exit-future` 0.2.0 (#1596)
tgmichel Jun 13, 2022
3dbef1b
[MOON-1711] cleanup state on collator exit, add hotfix extrinsic (#1541)
nbaztec Jun 14, 2022
c39a717
Harmonize crate names (#1580)
nanocryk Jun 14, 2022
bb6aa88
Girazoki test mock hrmp (#1560)
girazoki Jun 14, 2022
d4a37e0
Bring LengthToFee changes to Moonriver and Moonbeam runtimes (#1579)
notlesh Jun 14, 2022
db5ee06
Fix dead link due to crate renaming (#1602)
nanocryk Jun 14, 2022
70074f2
add smoke tests for evaluating rewards (#1574)
nbaztec Jun 15, 2022
0eba896
update editorconfig-checker version (#1599)
nbaztec Jun 15, 2022
93cc766
handle delegators with 0-value bond in staking-rewards smoke test (#1…
nbaztec Jun 15, 2022
c1b7cc4
Fixes smoke types (#1607)
Jun 15, 2022
1f1b300
Improve smoke tests (#1609)
Jun 16, 2022
31675ca
Upgrade typescript API for runtime 1605 (#1610)
github-actions[bot] Jun 17, 2022
2007f74
Fix tracing tests (#1606)
librelois Jun 17, 2022
e40d8d0
Remove grandpa revert (#1612)
davxy Jun 18, 2022
d4e80e8
Adds decoding smoke test (#1598)
Jun 18, 2022
ec82d26
Adds smoke tests for orbiter pallet (#1611)
Jun 18, 2022
a6910fb
Upgrade test dependencies (#1614)
Jun 19, 2022
318bf8b
PrecompileSet util with opt-out checks (#1601)
nanocryk Jun 20, 2022
beb2c99
[MOON-1737] adds IdentityJudgement Proxy type support (#1597)
nbaztec Jun 20, 2022
81d69ac
Restore support for 1500 runtime smoke tests (#1618)
Jun 20, 2022
35ca3a7
Fixers orbiter smoke test for removed orbiters (#1619)
Jun 21, 2022
24459a9
Girazoki add account20 hash struct (#1565)
girazoki Jun 22, 2022
a9e8dfc
record raw tracing memory usage with limit (#1546)
nanocryk Jun 23, 2022
dce1f4f
Adds get-binary tools script (#1627)
Jun 24, 2022
2c06d21
[MOON-1378] endow test accounts (#1634)
nbaztec Jun 29, 2022
e5931b6
Adds support for git tags in get-binary (#1638)
Jun 29, 2022
3ca713b
Preserve enum variant attributes (#1637)
intendednull Jun 29, 2022
729d570
Refactor solidity tests (#1639)
Jun 29, 2022
371db4e
Adds rpc types to moonbeam-types-bundle (#1613)
Jun 30, 2022
e783f0a
Call Permit Precompile (#1617)
nanocryk Jun 30, 2022
349af40
[WIP] Adds fork tests (#1433)
Jun 30, 2022
74324db
Prevent rust code formatting check to fail on spaces after tabs (#1646)
Jun 30, 2022
13c685d
Improve precompile-utils (#1642)
nanocryk Jul 1, 2022
ae705bb
update call-permit (#1648)
nanocryk Jul 1, 2022
1696bb5
Upgrade dependencies to polkadot v0.9.23 (#1622)
librelois Jul 1, 2022
056fb9d
Fix typo and update launch version (#1652)
girazoki Jul 3, 2022
a5c2a57
[MOON-1788] fix staking interface (#1620)
nbaztec Jul 4, 2022
c66830b
fix tracing tests (#1650)
librelois Jul 4, 2022
db1f064
Ethereum Call Xcm (#1641)
girazoki Jul 5, 2022
36d572c
remove perf-test (#1632)
nbaztec Jul 5, 2022
08b13e1
Pin frontier `81c4b28` (#1658)
tgmichel Jul 5, 2022
8ec7a31
Replace staking reserves with locks (#1604)
notlesh Jul 5, 2022
3d08352
improve batch precompile docs (#1657)
nanocryk Jul 7, 2022
a75c7f8
Add weight trader tests (#1664)
notlesh Jul 8, 2022
d6d9b3e
Adds support for solidity test in subfolders (#1665)
Jul 8, 2022
a3790ee
Increase srtool version (#1666)
Jul 8, 2022
a7a7d7b
add check-features build action (#1670)
nbaztec Jul 11, 2022
749749e
Use the same constant (before supply factor) for WEIGHT_FEE (#1660)
notlesh Jul 11, 2022
632ddb4
refactor tests for parachain staking (#1534)
nbaztec Jul 12, 2022
db2df4d
Fix geth error mismatches (#1673)
tgmichel Jul 12, 2022
41a6052
Fix modifiers for xcm-transactor (#1674)
girazoki Jul 13, 2022
c2d45ba
Girazoki remove xcm migrations (#1671)
girazoki Jul 14, 2022
5313e76
[Companion Cumulus#1382] Disable Beefy to prevent memory leak (#1679)
Jul 14, 2022
e04e6f0
Filter anonymous proxy (#1680)
Jul 14, 2022
6bedcf2
Girazoki test limits outbound xcmp queue (#1676)
girazoki Jul 15, 2022
f722fef
Temp receipt root fix (#1678)
tgmichel Jul 15, 2022
2e8425b
Reduces gas limit in ethereum transaction for test (#1682)
Jul 17, 2022
6772792
Randomness (includes relay BABE randomness and local VRF) (#1376)
4meta5 Jul 18, 2022
af6901e
Support 1700 new api-augment in tests (#1685)
Jul 18, 2022
4e2a578
bump client version to v0.25.0 (#1687)
Jul 18, 2022
0c7d6c7
compile parachain system with runtime-benchmarks (#1688)
girazoki Jul 18, 2022
0b4b7cb
Refactor and add new xcm tests (#1681)
girazoki Jul 18, 2022
dc9d72b
update nimbus (#1689)
nbaztec Jul 18, 2022
26c0b8b
fix tracing tests: 1000 loop require higher gas limit (#1692)
librelois Jul 21, 2022
6a1e569
[MOON-1745] re-add status Leaving as deprecated (#1702)
nbaztec Jul 21, 2022
4d605c8
Add blurb about diener to README.md (#1704)
notlesh Jul 22, 2022
c0e8325
Read both delegator and collator migration storage (#1695)
notlesh Jul 22, 2022
f19ba9d
Test substrate events after evm revert/success (#1655)
nanocryk Jul 25, 2022
800cf03
`EthereumXcmTransactionV2` (#1694)
tgmichel Jul 26, 2022
7d4f5fc
[MOON-1806] remove deprecated parachain-staking items (#1700)
nbaztec Jul 26, 2022
4198688
Merge commit PureStake:7d4f5fc324e8cfd26083985f12c37da874c15b07 into …
TarekkMA Aug 10, 2022
f771916
update Cargo.lock
TarekkMA Aug 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .ecrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"SpacesAftertabs": true
}
32 changes: 17 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
run: |
ls /tmp/bin/ec-linux-amd64 || \
cd /tmp && \
wget https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.1.0/ec-linux-amd64.tar.gz && \
wget https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.5.0/ec-linux-amd64.tar.gz && \
tar xvf ec-linux-amd64.tar.gz && \
chmod +x bin/ec-linux-amd64
- name: Check files
Expand All @@ -128,10 +128,10 @@ jobs:
uses: actions/checkout@v2
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Use Node.js 14.x
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: 16.x
- name: Check with Prettier
run: npx prettier --check --ignore-path .prettierignore '**/*.(yml|js|ts|json)'

Expand Down Expand Up @@ -338,20 +338,20 @@ jobs:
with:
name: moonbeam
path: build
- name: Use Node.js 14.x
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: 16.x
- name: Typescript integration tests (against dev service)
run: |
chmod uog+x build/moonbeam

#### Preparing the repository
cd moonbeam-types-bundle
npm install
npm ci
npm run build
cd ../tests
npm install
npm ci
cd ..

#### Retrieving docker image as base to run tests
Expand Down Expand Up @@ -393,6 +393,7 @@ jobs:
if [[ $FILECOUNT -eq 0 ]]; then
echo "All package-lock.json files are valid"
else
git diff --cached
echo "The following package-lock.json files have uncommitted changes"
echo $DIFF_INDEX | grep package-lock.json
false
Expand All @@ -411,10 +412,10 @@ jobs:
with:
name: moonbeam
path: build
- name: Use Node.js 14.x
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: 16.x
- name: Get tracing runtimes
run: |
./scripts/build-last-tracing-runtime.sh ${{ needs.set-tags.outputs.git_branch }}
Expand All @@ -425,14 +426,15 @@ jobs:
BINARY_PATH: ../build/moonbeam
ETHAPI_CMD: --ethapi=txpool,debug,trace
FORCE_WASM_EXECUTION: true
FORCE_COMPILED_WASM: true
WASM_RUNTIME_OVERRIDES: moonbase-overrides
run: |
chmod uog+x build/moonbeam
cd moonbeam-types-bundle
npm install
npm ci
npm run build
cd ../tests
npm install
npm ci
node_modules/.bin/mocha --exit --parallel -j 2 -r ts-node/register 'tracing-tests/**/test-*.ts'

typescript-para-tests:
Expand Down Expand Up @@ -461,10 +463,10 @@ jobs:
docker create -ti --name dummy $DOCKER_TAG bash
docker cp dummy:/usr/local/bin/polkadot build/polkadot
docker rm -f dummy
- name: Use Node.js 14.x
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: 16.x
- name: Typescript integration tests (against dev service)
env:
OVERRIDE_RUNTIME_PATH: ./runtimes
Expand All @@ -477,9 +479,9 @@ jobs:

#### Preparing the repository
cd moonbeam-types-bundle
npm install
npm ci
cd ../tests
npm install
npm ci
cd ..

POLKADOT_REPO=${{ needs.set-tags.outputs.polkadot_repo }}
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/check-features.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Check rarely used build features

on:
push:
branches:
- master

jobs:
check:
name: check features
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Setup Rust toolchain
run: rustup show
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-check-features-${{ hashFiles('**/Cargo.lock') }}
- name: cargo check
run: cargo check --features try-runtime,runtime-benchmarks
4 changes: 2 additions & 2 deletions .github/workflows/enforce-pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
enforce-noteworthiness-label:
runs-on: ubuntu-latest
steps:
- uses: yogevbd/[email protected].0
- uses: yogevbd/[email protected].2
with:
REQUIRED_LABELS_ANY: "B0-silent,B5-clientnoteworthy,B7-runtimenoteworthy"
REQUIRED_LABELS_ALL: ""
BANNED_LABELS: ""
enforce-auditability-label:
runs-on: ubuntu-latest
steps:
- uses: yogevbd/[email protected].0
- uses: yogevbd/[email protected].2
with:
REQUIRED_LABELS_ANY: "D1-audited👍,D5-nicetohaveaudit⚠️,D9-needsaudit👮,D2-notlive,D3-trivial"
REQUIRED_LABELS_ALL: ""
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/publish-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ jobs:
ref: ${{ github.event.inputs.to }}
- name: Srtool build
id: srtool_build
uses: chevdor/[email protected]
env:
BUILD_OPTS: --features on-chain-release-build
uses: chevdor/[email protected]
with:
chain: ${{ matrix.chain }}
tag: 1.57.0
tag: 1.62.0
- name: Summary
run: |
echo '${{ steps.srtool_build.outputs.json }}' | jq . > ${{ matrix.chain }}-srtool-digest.json
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/upgrade-typescript-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
workflow_dispatch:
inputs:
spec_version:
description: runtime spec version
description: runtime spec version (ex. 1601)
required: true

jobs:
create-tracing-runtime:
upgrading-typescript-api:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -25,6 +25,7 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
base: master
branch: "typescript-api-${{ github.event.inputs.spec_version }}"
commit-message: typescript API v0.${{ github.event.inputs.spec_version }}.0"
draft: true
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/tests/binaries
/tests/runtimes
/tests/specs
/tests/build
/tests/rococo*.json

# Moonbeam-Launch
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ tests/util/tracer/blockscout_tracer*

# Dist folders should not be formatted
*/dist/

# Typescript-api is autogenerated
/typescript-api/
Loading