git.delta.rocks / unique-network / refs/commits / 8e1a9b3c3bc4

difftreelog

misk: add prettier configuration for solidity files

Trubnikov Sergey2022-09-13parent: #8c337cf.patch.diff
in: master

7 files changed

modified.maintain/scripts/generate_sol.shdiffbeforeafterboth
1#!/bin/sh1#!/bin/sh
2set -eu2set -eu
3
4PRETTIER_CONFIG="$(pwd)""/.prettierrc"
35
4tmp=$(mktemp)6tmp=$(mktemp)
5cargo test --package $PACKAGE -- $NAME --exact --nocapture --ignored | tee $tmp7cargo test --package $PACKAGE -- $NAME --exact --nocapture --ignored | tee $tmp
6raw=$(mktemp --suffix .sol)8raw=$(mktemp --suffix .sol)
7sed -n '/=== SNIP START ===/, /=== SNIP END ===/{ /=== SNIP START ===/! { /=== SNIP END ===/! p } }' $tmp > $raw9sed -n '/=== SNIP START ===/, /=== SNIP END ===/{ /=== SNIP START ===/! { /=== SNIP END ===/! p } }' $tmp > $raw
10
8formatted=$(mktemp)11formatted=$(mktemp)
12echo $raw
13echo $formatted
9prettier --use-tabs $raw > $formatted14prettier --config $PRETTIER_CONFIG $raw > $formatted
1015
11mv $formatted $OUTPUT16mv $formatted $OUTPUT
1217
added.prettierignorediffbeforeafterboth

no changes

added.prettierrcdiffbeforeafterboth

no changes

modifiedpallets/unique/src/eth/stubs/CollectionHelpers.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth

no syntactic changes

modifiedtests/src/eth/api/CollectionHelpers.soldiffbeforeafterboth

no syntactic changes

modifiedtests/src/eth/fractionalizer/Fractionalizer.soldiffbeforeafterboth

no syntactic changes