Skip to content

Commit

Permalink
Merge pull request #46 from gilescope/giles-remove-nightly-features
Browse files Browse the repository at this point in the history
remove toggle, add midnight chain
  • Loading branch information
gilescope committed Jul 21, 2024
2 parents e756cb8 + 3fc07e3 commit aaa62e3
Show file tree
Hide file tree
Showing 20 changed files with 985 additions and 1,021 deletions.
180 changes: 172 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ spacemouse = []
bake = ["jpeg-encoder", "png"]
raw_images = []

[workspace]
members = [
"crates/emojidot",
"crates/polkadyn",
"crates/polkapipe",
"crates/scale-borrow",
"crates/scale-value-to-borrowed",
]

[dependencies]
emojidot = { path="./crates/emojidot" }
glam = "0.22.0"
Expand Down
17 changes: 12 additions & 5 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,33 @@ WORKDIR /dotsamaworld
ENV CARGO_TERM_COLOR=always

prep:
RUN apt-get update && apt-get install curl gcc pkg-config openssl libasound2-dev cmake build-essential python3 libfreetype6-dev libexpat1-dev libxcb-composite0-dev libssl-dev libx11-dev libfontconfig1-dev -y -qq
# CARGO function adds caching to cargo runs.
# See https://github.com/earthly/lib/tree/main/rust
DO rust+INIT --keep_fingerprints=true
COPY --keep-ts --dir assets src crates Cargo.lock Cargo.toml .
RUN rustup target add wasm32-unknown-unknown
RUN rustup component add rustfmt clippy
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
RUN cargo binstall trunk -y
COPY --keep-ts --dir assets src crates index.html fixup.sh Cargo.lock Cargo.toml .

build:
FROM +prep
DO rust+CARGO --args="build --release --target wasm32-unknown-unknown" --output="release/[^/\.]+"
DO rust+CARGO --args="build --release --workspace --target wasm32-unknown-unknown" --output="release/[^/\.]+"

fmt:
FROM +prep
DO rust+CARGO --args="fmt --check --all"

check:
FROM +prep
DO rust+CARGO --args="clippy --target wasm32-unknown-unknown"
DO rust+CARGO --args="clippy --target wasm32-unknown-unknown --workspace"

test:
FROM +prep
RUN apt-get update && apt-get install gcc pkg-config openssl libasound2-dev cmake build-essential python3 libfreetype6-dev libexpat1-dev libxcb-composite0-dev libssl-dev libx11-dev libfontconfig1-dev -y -qq
DO rust+CARGO --args="test --locked --verbose"
DO rust+CARGO --args="test --workspace --locked --verbose"

dist:
FROM +prep
RUN trunk build --release
RUN ./fixup.sh
Binary file added assets/branding/2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/branding/3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/branding/4.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/branding/5.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/branding/baked.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions crates/emojidot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ pub fn event_emoji(pallet: &str, variant: &str) -> Option<char> {
("Loans", "RepaidBorrow") => Some('⭐'),
("Loans", "Borrowed") => Some('💰'),
("Loans", "RewardPaid") => Some('🥕'),
("Midnight", "ContractCalled") => Some('🔀'),
("Midnight", "TxApplied") => Some('👍'),
("Mining", "MiningResourceMintedTo") => Some('⛏'),
("MultiTokens", "TokenCreated") => Some('👶'),
Expand Down Expand Up @@ -242,6 +243,7 @@ pub fn extrinsic_emoji(pallet: &str, variant: &str) -> Option<char> {
("Farming", "withdraw_lp") => Some('📉'),
("Farming", "withdraw_claim") => Some('🌾'),
("Farming", "deposit") => Some('🌾'),
("Grandpa", "noteStalled") => Some('🔧'),
("Honzon", "adjust_loan") => Some('✒'),
("Honzon", "adjust_loan_by_debit_value") => Some('✒'),
("ImOnline", "heartbeat") => Some('💓'),
Expand Down
Loading

0 comments on commit aaa62e3

Please sign in to comment.