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

Merge v10010062 into master #1016

Merged
merged 164 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
683a128
test: added CI for the Polkadex network
PraetorP Sep 11, 2023
9d3aabb
test(polkadex): added reserve malicious test
PraetorP Sep 11, 2023
7dbcac3
doc(polkadex CI): added comment
PraetorP Sep 11, 2023
e6da5c9
test(Polkadex CI): add comment, refactor
PraetorP Sep 12, 2023
d7ef52e
fix: remove baedeker
PraetorP Sep 12, 2023
8b26223
test: fix mocha settings
PraetorP Sep 12, 2023
74dbf88
Update tests/src/xcm/xcmUnique.test.ts
mrshiposha Sep 12, 2023
d1328b9
fix: pallet-presence test
mrshiposha Sep 12, 2023
80370d8
Merge pull request #992 from UniqueNetwork/fix/pallet-presence-releas…
CertainLach Sep 12, 2023
f8b8c4f
feat: add pallet-utility
mrshiposha Sep 12, 2023
749ee43
fix: techcomm prime can be set by council
mrshiposha Sep 12, 2023
58444d8
feat: add pallet-utility playground helper
mrshiposha Sep 12, 2023
a6d8651
test: governance init
mrshiposha Sep 12, 2023
8a54415
test: governance init fellowship
mrshiposha Sep 12, 2023
db9303e
tests: utility in pallet-presence
uandysmith Sep 13, 2023
465dd2a
fix: yarn fix
mrshiposha Sep 13, 2023
e0258a2
fix: pallet-utility pass features
mrshiposha Sep 13, 2023
e089f01
build: bump version to v943061
CertainLach Sep 13, 2023
867eaa1
Merge pull request #993 from UniqueNetwork/fix/governance-with-batch
CertainLach Sep 13, 2023
cd116b8
build: update Cargo.lock
CertainLach Sep 13, 2023
383d45a
refactor(playgorunds): code structure regroup
PraetorP Sep 14, 2023
04e6d94
tests: move scheduler to dev, move governance to separate file
uandysmith Sep 14, 2023
bd22bf4
fix(test): remove token schedulers from tests
PraetorP Sep 14, 2023
477a07d
fix(types): sudo for `DevShidenHelper`
PraetorP Sep 14, 2023
cc05551
update toolchain version
BuddyGlas Sep 15, 2023
1054e65
Merge pull request #997 from UniqueNetwork/ci/small-fix
CertainLach Sep 15, 2023
f32d3e5
Merge pull request #996 from UniqueNetwork/tests/playgrounds-refactor
CertainLach Sep 15, 2023
ef61569
feature: check formating before push
Sep 22, 2023
1e4737b
remove pre-push hook
Sep 22, 2023
cd77dae
fix: code review requests
Sep 22, 2023
9a3d9a7
Merge pull request #838 from UniqueNetwork/feature/pre-push-checks
CertainLach Sep 22, 2023
17ea847
feat: add mint_bulk_cross
Sep 22, 2023
a3eb5c5
test: add tests
Sep 22, 2023
9425c0a
fix: warnings
Sep 22, 2023
0c121c7
feat: add a way to split RFT between multiple owners on mint
Sep 22, 2023
752e2b0
fix: update weighting for mintBulkCross and forbid multiple owners + …
Sep 22, 2023
6486f2a
style: fix typos (#998)
omahs Sep 25, 2023
448629b
Merge pull request #986 from UniqueNetwork/feature/add_mint_bulk_cross
CertainLach Sep 25, 2023
81bcea4
fix: set token props only if something has changed
mrshiposha Sep 25, 2023
e3c9079
fix: dont read storage during minting when not needed
mrshiposha Sep 25, 2023
9c8e078
feat: add reset_token_properties benchmark
mrshiposha Sep 25, 2023
d63678e
feat: add integration-tests profile and use in CI
mrshiposha Sep 25, 2023
5ec8b82
chore: add temporary nft/rft weights
mrshiposha Sep 25, 2023
331f0fa
fix: cache chain build in CI
mrshiposha Sep 26, 2023
192f49d
fix: dont read tpp when not needed
mrshiposha Sep 26, 2023
9b4620c
chore: repeat temporary nft/rft benches
mrshiposha Sep 26, 2023
12a441c
fix: debug check if new token doesnt have any properties
mrshiposha Sep 26, 2023
915db56
chore: bench weights
mrshiposha Sep 26, 2023
cb1a9d8
fix: calibrate weights
mrshiposha Sep 26, 2023
7cc9052
fix: bench profile production
mrshiposha Sep 26, 2023
1acfc39
chore: bench weights repeats 400
mrshiposha Sep 27, 2023
2244ff0
ci(try-runtime): fix false-positive
BuddyGlas Sep 27, 2023
f2a1159
Merge pull request #1002 from UniqueNetwork/ci/fix-try-runtime
CertainLach Sep 27, 2023
d2c9363
tests: performance test for NFT tokens
uandysmith Sep 27, 2023
355fa3f
feat(test xcm): added generic `low level` xcm tests
PraetorP Sep 25, 2023
d91b2e0
fix(xcm unique test): typo
PraetorP Sep 25, 2023
fa6d62b
fix(unq xcm tests): restore state for the Acala
PraetorP Sep 25, 2023
1c40ef3
ci(xcm) : added llcxm test into wokrflow
PraetorP Sep 25, 2023
987aad3
fix(test xcm) : fix package
PraetorP Sep 25, 2023
10b8180
fix(xcmUnique): hook for Moonbeam
PraetorP Sep 26, 2023
eae22fa
refactor: xcm Unq tests
PraetorP Sep 26, 2023
9f2f03a
test(xcmUnique): switch to `uniqueAssetId` , typo
PraetorP Sep 27, 2023
dc6f0e2
fix(test xcm Unq): typos
PraetorP Sep 27, 2023
61fc26e
test(xcm qtz): added `XcmTestHelper`
PraetorP Sep 28, 2023
8d26c73
feat: allow xcm transact for sys,gov and utility
mrshiposha Sep 26, 2023
58b781a
feat: allow explicit unpaid execution from parent
mrshiposha Sep 28, 2023
f61ec5a
feat: add dmpQueue event section
mrshiposha Sep 28, 2023
0f67e15
test: relay does root ops
mrshiposha Sep 28, 2023
06b395f
fix: allow xcm transact for gov bodies when they exist
mrshiposha Sep 28, 2023
668280b
feat(xcm tests): `XcmHelper` integraion for QTZ\UNQ
PraetorP Sep 29, 2023
de0fd48
fix: cargo clippy
PraetorP Sep 29, 2023
44071b6
refactor: use type-safe propertywriter to set/delete properties
mrshiposha Sep 30, 2023
2657b80
fix: EREFUSED due to ws://localhost (?)
mrshiposha Sep 30, 2023
0900b3d
chore: temporary bench nft/rft/common
mrshiposha Sep 30, 2023
42bd0c6
chore: bench nft/rft/common
mrshiposha Sep 30, 2023
74a28c8
chore: calibrate weight2fee
mrshiposha Sep 30, 2023
716b83b
fix: rename makeUnpaidTransactProgram
mrshiposha Oct 2, 2023
a6308d9
fix: rename makeUnpaidSudoTransactProgram
mrshiposha Oct 2, 2023
d4981bc
fix: explaning comment about SetTopic relay router
mrshiposha Oct 2, 2023
cefeef5
fix: make _uniqueChainMultilocationForRelay private
mrshiposha Oct 2, 2023
17703e6
fix: set correct shiden/astar values for our chain
mrshiposha Oct 2, 2023
116f145
Update tests/src/xcm/xcm.types.ts
PraetorP Oct 2, 2023
0243f65
refactor(xcm test): rename `reserveTransferUNQfrom`
PraetorP Oct 2, 2023
78c4f0c
fix(test xcm): typos
PraetorP Oct 2, 2023
b4e7cb4
fix(tests xcm): remove vendor folder
PraetorP Oct 2, 2023
b6b1e0f
feat: add cli param disable-autoseal-on-tx
mrshiposha Oct 2, 2023
f78c926
Revert "fix(tests xcm): remove vendor folder"
PraetorP Oct 2, 2023
3107202
fix(tests xcm): remove vendor folder
PraetorP Oct 2, 2023
184b30a
feat: finalization can be enabled in dev mode
mrshiposha Oct 2, 2023
57b7f8c
fix: slightly fix broken pov-estimate
mrshiposha Oct 2, 2023
e105d72
fix: use config.ts for endpoints
mrshiposha Oct 2, 2023
5ef5e6b
fix: make perf test seq and remove unused functions
mrshiposha Oct 2, 2023
eebd0e2
fix: use OptionQuery for TokenProperties
mrshiposha Oct 2, 2023
6b27551
fix: unit tests
mrshiposha Oct 2, 2023
630fc89
fix: use lowercase letters in EVM errors
mrshiposha Oct 2, 2023
22b45b5
Merge pull request #1000 from UniqueNetwork/fix/minting-prop-weight
CertainLach Oct 2, 2023
bce2cc1
Merge pull request #1003 from UniqueNetwork/feature/llxcm-qtz
CertainLach Oct 2, 2023
4161c8e
refactor: drop legacy unique scheduler
CertainLach Oct 2, 2023
d893d0c
ci: drop zombienet
CertainLach Oct 2, 2023
51232b0
build: upgrade dependencies to polkadot v1.1.0
CertainLach Oct 2, 2023
d63bb38
build: regenerate lockfile
CertainLach Oct 2, 2023
c318883
refactor: move rpc to node
CertainLach Oct 2, 2023
a64769f
refactor: upgrade code for new substrate
CertainLach Oct 2, 2023
4dd1486
refactor: reorganize imports
CertainLach Oct 2, 2023
6ab76d3
style: retab runtime apis
CertainLach Oct 2, 2023
71150e7
feat: use new ethereum sponsoring interface
CertainLach Oct 2, 2023
4b36925
build: bump node version
CertainLach Oct 2, 2023
2eca527
fixup(rpc): move to node
CertainLach Oct 2, 2023
e48f2d1
fixup(imports): post-rebase
CertainLach Oct 2, 2023
fd6af75
fix: force_value in LazyValue
mrshiposha Oct 3, 2023
0e3444d
fix: clippy warn
mrshiposha Oct 3, 2023
f5ed3da
fix: remove unused import
mrshiposha Oct 3, 2023
f9563fa
fix(xcm test): hooks for `Astar`\`Shiden`
PraetorP Oct 3, 2023
13e91d3
fix(`evm-transaction-payment`): clippy
PraetorP Oct 4, 2023
716fee2
chore: remove unique-scheduler leftovers
CertainLach Oct 4, 2023
22a5178
build: bump spec_version
CertainLach Oct 9, 2023
c3c95ca
test: fix build
CertainLach Oct 9, 2023
ff74635
ci: fix eslint precommit regex
CertainLach Oct 9, 2023
7489c8a
doc: dev mode startup
CertainLach Oct 9, 2023
c14994f
doc: ethereum sponsoring clarification
CertainLach Oct 9, 2023
900be63
Merge pull request #1004 from UniqueNetwork/feature/update-polkadot-1.1
CertainLach Oct 9, 2023
4950cbc
fix: update benchmarks to v2
Oct 9, 2023
885f1d2
fix: compilation errors
Oct 10, 2023
af2b5f4
fix: build node with benchmarks
CertainLach Oct 11, 2023
5f71c37
fix: benchmarks
Oct 12, 2023
3db37f4
fix: clippy warnings
Oct 12, 2023
18a5c32
ci: fix unnecessary node rebuilds during benchmarking
CertainLach Oct 12, 2023
4275a8f
fix: remove preimage benchmark
Oct 12, 2023
90ad566
Merge pull request #1008 from UniqueNetwork/fix/update-benchmarks-to-v2
CertainLach Oct 12, 2023
437764b
refactor: property writer / fix set_token_props weight
mrshiposha Oct 5, 2023
5a68a95
fix: usage of nesting_budget in pallet-unique
mrshiposha Oct 11, 2023
5ec9dbe
refactor: LazyValue without generic Fn
mrshiposha Oct 11, 2023
da2e878
fix: properties consumed space tests
mrshiposha Oct 12, 2023
5464b28
fix: evm errors begin with a lower-case letter
mrshiposha Oct 12, 2023
aae21d3
fix: consumedSpace fallback
mrshiposha Oct 12, 2023
7428628
fix: EVM mint with properties, minor improvements
mrshiposha Oct 13, 2023
a46c1bd
chore: temporary common/nft/rft weights
mrshiposha Oct 13, 2023
ae91353
fix: remove unneeded PhantomData
mrshiposha Oct 13, 2023
442d14a
fix: mint_with_props_weight
mrshiposha Oct 13, 2023
1367a5f
fix: use saturating_add
mrshiposha Oct 13, 2023
4819755
fix: unit tests
mrshiposha Oct 13, 2023
478ee33
fix: clippy warns
mrshiposha Oct 13, 2023
71be677
Merge pull request #1007 from UniqueNetwork/fix/token-properties-benc…
CertainLach Oct 13, 2023
750f6e1
fix: lookahead collator build
CertainLach Oct 13, 2023
6f9bef9
fix: max create multiple items
mrshiposha Oct 16, 2023
d56113d
fix: remove unused fn in perf test
mrshiposha Oct 16, 2023
8c199c3
fix(inflation): BlockNumberProvider
CertainLach Oct 16, 2023
31bae1f
fix: separate depositor from sender in transfer_internal (#1013)
mrshiposha Oct 16, 2023
0cf3df0
Merge pull request #1014 from UniqueNetwork/fix/max-multiple-items
CertainLach Oct 16, 2023
0a49946
fix: forbid non-1 tokenid in native fungibles (#1015)
mrshiposha Oct 16, 2023
700b0c8
fix: enable throttling
CertainLach Oct 16, 2023
d0d6ce4
Merge pull request #1012 from UniqueNetwork/feature/lookahead-leftovers
CertainLach Oct 16, 2023
1f26742
test: fix build
CertainLach Oct 17, 2023
2f9af76
fix: ci intergration tests profile
mrshiposha Oct 17, 2023
e08c117
Merge pull request #1018 from UniqueNetwork/fix/ci-integration-tests-…
CertainLach Oct 17, 2023
cd9af93
build: run benchmarks
kozyrevdev Oct 17, 2023
8af05a8
build: switch to released ORML
CertainLach Oct 17, 2023
092e9b8
feat: propose-upgrade governance script (#1019)
mrshiposha Oct 17, 2023
c097c75
style: fix clippy warning
CertainLach Oct 17, 2023
01c5056
build: regenerate .env
CertainLach Oct 18, 2023
1a512da
ci: disable legacyRpc for node-only
CertainLach Oct 19, 2023
fc6f167
ci: ensure correct versions and legacyRpc flag
CertainLach Oct 19, 2023
973a8ea
test(xcm): manually initialize HRMP
CertainLach Oct 19, 2023
080da49
build: merge v10010062 into master
CertainLach Oct 24, 2023
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
3 changes: 2 additions & 1 deletion .baedeker/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.bdk-env
/rewrites.jsonnet
/rewrites*.jsonnet
/vendor
/baedeker-library
!/rewrites.example.jsonnet
4 changes: 2 additions & 2 deletions .baedeker/xcm-opal.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ local relay = {
spec: {Genesis:{
chain: relay_spec,
modify:: m.genericRelay($, hrmp = [
[$.parachains.opal.paraId, $.parachains.westmint.paraId, 8, 512],
[$.parachains.westmint.paraId, $.parachains.opal.paraId, 8, 512],
// [$.parachains.opal.paraId, $.parachains.westmint.paraId, 8, 512],
// [$.parachains.westmint.paraId, $.parachains.opal.paraId, 8, 512],
]),
}},
nodes: {
Expand Down
16 changes: 7 additions & 9 deletions .baedeker/xcm-quartz.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ local relay = {
spec: {Genesis:{
chain: relay_spec,
modify:: m.genericRelay($, hrmp = std.join([], [
[[$.parachains[a].paraId, $.parachains[b].paraId, 8, 512], [$.parachains[b].paraId, $.parachains[a].paraId, 8, 512]],
for [a, b] in [
['quartz', 'karura'],
['quartz', 'moonriver'],
['quartz', 'statemine'],
['quartz', 'shiden'],
]
// [[$.parachains[a].paraId, $.parachains[b].paraId, 8, 512], [$.parachains[b].paraId, $.parachains[a].paraId, 8, 512]],
// for [a, b] in [
// ['quartz', 'karura'],
// ['quartz', 'moonriver'],
// ['quartz', 'statemine'],
// ['quartz', 'shiden'],
// ]
])),
}},
nodes: {
Expand Down Expand Up @@ -60,7 +60,6 @@ local karura = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
legacyRpc: true,
},
for name in ['alice', 'bob']
},
Expand All @@ -80,7 +79,6 @@ local moonriver = {
[name]: {
bin: $.bin,
wantedKeys: 'para-nimbus',
legacyRpc: true,
},
for name in ['alith', 'baltathar']
},
Expand Down
13 changes: 5 additions & 8 deletions .baedeker/xcm-unique.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ local relay = {
modify:: m.genericRelay($, hrmp = std.join([], [
[[$.parachains[a].paraId, $.parachains[b].paraId, 8, 512], [$.parachains[b].paraId, $.parachains[a].paraId, 8, 512]],
for [a, b] in [
['unique', 'acala'],
['unique', 'moonbeam'],
['unique', 'statemint'],
['unique', 'astar'],
['unique', 'polkadex'],
// ['unique', 'acala'],
// ['unique', 'moonbeam'],
// ['unique', 'statemint'],
// ['unique', 'astar'],
// ['unique', 'polkadex'],
]
])),
}},
Expand Down Expand Up @@ -61,7 +61,6 @@ local acala = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
legacyRpc: true,
},
for name in ['alice', 'bob']
},
Expand All @@ -81,7 +80,6 @@ local moonbeam = {
[name]: {
bin: $.bin,
wantedKeys: 'para-nimbus',
legacyRpc: true,
},
for name in ['alith', 'baltathar']
},
Expand Down Expand Up @@ -116,7 +114,6 @@ local astar = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
legacyRpc: true,
},
for name in ['alice', 'bob']
},
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | b
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
nvm install v16.2.0 && \
npm install -g yarn && \
rustup toolchain install nightly-2021-11-11 && \
rustup default nightly-2021-11-11 && \
rustup toolchain install nightly-2023-05-22 && \
rustup default nightly-2023-05-22 && \
rustup target add wasm32-unknown-unknown && \
rustup component add rustfmt clippy && \
cargo install cargo-expand cargo-edit cargo-contract
4 changes: 2 additions & 2 deletions .docker/Dockerfile-chain-dev
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY . /dev_chain

WORKDIR /dev_chain

RUN cargo build --release
RUN cargo build --profile integration-tests --features=${NETWORK}-runtime
RUN echo "$NETWORK"

CMD cargo run --release --features=${NETWORK}-runtime -- --dev -linfo --rpc-cors=all --unsafe-rpc-external
CMD cargo run --profile integration-tests --features=${NETWORK}-runtime -- --dev -linfo --rpc-cors=all --unsafe-rpc-external
6 changes: 3 additions & 3 deletions .docker/Dockerfile-unique
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ RUN --mount=type=cache,target=/cargo-home/registry \
--mount=type=cache,target=/unique_parachain/unique-chain/target \
cd unique-chain && \
echo "Using runtime features '$RUNTIME_FEATURES'" && \
CARGO_INCREMENTAL=0 cargo build --release --features="$RUNTIME_FEATURES" --locked && \
mv ./target/release/unique-collator /unique_parachain/unique-chain/ && \
cd target/release/wbuild && find . -name "*.wasm" -exec sh -c 'mkdir -p "../../../wasm/$(dirname {})"; cp {} "../../../wasm/{}"' \;
CARGO_INCREMENTAL=0 cargo build --profile integration-tests --features="$RUNTIME_FEATURES" --locked && \
mv ./target/integration-tests/unique-collator /unique_parachain/unique-chain/ && \
cd target/integration-tests/wbuild && find . -name "*.wasm" -exec sh -c 'mkdir -p "../../../wasm/$(dirname {})"; cp {} "../../../wasm/{}"' \;

# ===== BIN ======

Expand Down
6 changes: 3 additions & 3 deletions .docker/additional/Dockerfile-chainql
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ RUN apt-get update && \
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none

RUN rustup toolchain uninstall $(rustup toolchain list) && \
rustup toolchain install nightly-2022-11-15 && \
rustup default nightly-2022-11-15 && \
rustup toolchain install nightly-2023-05-22 && \
rustup default nightly-2023-05-22 && \
rustup target list --installed && \
rustup show
RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2022-11-15
RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2023-05-22

RUN mkdir /unique_parachain
WORKDIR /unique_parachain
Expand Down
2 changes: 1 addition & 1 deletion .docker/additional/Dockerfile-polkadot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM ubuntu:22.04 as rust-builder
LABEL maintainer="Unique.Network"

ARG RUST_TOOLCHAIN=nightly-2022-10-09
ARG RUST_TOOLCHAIN=nightly-2023-05-22

ENV CARGO_HOME="/cargo-home"
ENV PATH="/cargo-home/bin:$PATH"
Expand Down
2 changes: 1 addition & 1 deletion .docker/docker-compose.gov.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ services:
options:
max-size: "1m"
max-file: "3"
command: cargo run --release --features={{ NETWORK }}-runtime,gov-test-timings -- --dev -linfo --rpc-cors=all --unsafe-rpc-external
command: cargo run --profile integration-tests --features={{ NETWORK }}-runtime,gov-test-timings -- --dev -linfo --rpc-cors=all --unsafe-rpc-external
83 changes: 0 additions & 83 deletions .docker/forkless-config/zombienet-forkless-data.toml

This file was deleted.

39 changes: 0 additions & 39 deletions .docker/forkless-config/zombienet-forkless-nodata.toml

This file was deleted.

22 changes: 11 additions & 11 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ DESTINATION_SPEC_VERSION=v942057

POLKADOT_MAINNET_BRANCH=release-v1.0.0
STATEMINT_BUILD_BRANCH=release-parachains-v9430
ACALA_BUILD_BRANCH=2.18.0
MOONBEAM_BUILD_BRANCH=runtime-2403
ASTAR_BUILD_BRANCH=v5.11.0
UNIQUE_MAINNET_BRANCH=release-v942057
ACALA_BUILD_BRANCH=2.21.0
MOONBEAM_BUILD_BRANCH=runtime-2500
ASTAR_BUILD_BRANCH=v5.18.0
UNIQUE_MAINNET_BRANCH=release-v943061
UNIQUE_REPLICA_FROM=wss://ws.unique.network:443
POLKADEX_BUILD_BRANCH=v1.1.0


KUSAMA_MAINNET_BRANCH=release-v1.0.0
STATEMINE_BUILD_BRANCH=release-parachains-v9430
KARURA_BUILD_BRANCH=release-karura-2.18.0
MOONRIVER_BUILD_BRANCH=runtime-2403
SHIDEN_BUILD_BRANCH=v5.15.0
QUARTZ_MAINNET_BRANCH=release-v942057
KARURA_BUILD_BRANCH=release-karura-2.21.0
MOONRIVER_BUILD_BRANCH=runtime-2500
SHIDEN_BUILD_BRANCH=v5.18.0
QUARTZ_MAINNET_BRANCH=release-v943061
QUARTZ_REPLICA_FROM=wss://ws-quartz.unique.network:443

UNIQUEWEST_MAINNET_BRANCH=release-v1.0.0
WESTMINT_BUILD_BRANCH=parachains-v9430
OPAL_MAINNET_BRANCH=release-v942057
WESTMINT_BUILD_BRANCH=parachains-v9435
OPAL_MAINNET_BRANCH=release-v943061
OPAL_REPLICA_FROM=wss://ws-opal.unique.network:443

UNIQUEEAST_MAINNET_BRANCH=release-v1.0.0
SAPPHIRE_MAINNET_BRANCH=release-v942057
SAPPHIRE_MAINNET_BRANCH=release-v943061
SAPPHIRE_REPLICA_FROM=wss://ws-sapphire.unique.network:443

6 changes: 5 additions & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ function check_bdk {
fi
}

if ! diff .githooks/pre-commit .git/hooks/pre-commit >/dev/null; then
echo -e "${RED}Hooks are updated, run make git-hooks${RESET}"
fi

watch_file .baedeker/.bdk-env/discover.env
if test -f .baedeker/.bdk-env/discover.env; then
check_bdk baedeker
Expand All @@ -30,7 +34,7 @@ if test -f .baedeker/.bdk-env/discover.env; then
fi

echo -e "${GREEN}Baedeker env updated${RESET}"
nginx_id=$(docker compose -f .baedeker/.bdk-env/docker-compose.yml ps --format=json | jq -r '.[] | select(.Service == "nginx") | .ID' -e)
nginx_id=$(docker compose -f .baedeker/.bdk-env/docker-compose.yml ps --format=json | jq -s 'flatten' | jq -r '.[] | select(.Service == "nginx") | .ID' -e)
if ! [ $? -eq 0 ]; then
echo -e "${RED}Nginx container not found${RESET}"
exit 0
Expand Down
42 changes: 42 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
#
# Pre-push hook verifying that inappropriate code will not be pushed.

# Colors for the terminal output
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color

echo "Starting cargo fmt.."
cargo fmt --check
FMT_EXIT="$?"

# Check that prettier formatting rules are not violated.
if [[ "${FMT_EXIT}" = 0 ]]; then
echo -e "${GREEN}cargo fmt succeded${NC}"
else
echo -e "${RED}Commit error!${NC}"
echo "Please format the code via 'cargo fmt', cannot commit unformatted code"
exit 1
fi

STAGED_TEST_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep "\.ts$\|\.js$")

if [[ "$STAGED_TEST_FILES" = "" ]]; then
echo -e "${GREEN}eslint succeded${NC}"
exit 0
fi

echo "Starting eslint.."
./tests/node_modules/.bin/eslint --max-warnings 0 ${STAGED_TEST_FILES[@]}
ESLINT_EXIT="$?"

if [[ "${ESLINT_EXIT}" = 0 ]]; then
echo -e "${GREEN}eslint succeded${NC}"
else
echo -e "${RED}Commit error!${NC}"
echo "Please format the code via 'yarn fix', cannot Commit unformatted code"
exit 1
fi

exit $?
Loading
Loading