Skip to content

Commit dfa519c

Browse files
committed
New frontend only
0 parents  commit dfa519c

File tree

846 files changed

+67285
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

846 files changed

+67285
-0
lines changed

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: cargo
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "04:00"
8+
timezone: America/Los_Angeles
9+
labels:
10+
- "automerge"
11+
open-pull-requests-limit: 3
12+
ignore:
13+
- dependency-name: "cbindgen"

.github/workflows/pull-request.yml

+134
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
name: Pull Request
2+
3+
defaults:
4+
run:
5+
working-directory: ./rust
6+
7+
on:
8+
pull_request:
9+
push:
10+
branches: [master]
11+
12+
jobs:
13+
all_github_action_checks:
14+
runs-on: ubuntu-latest
15+
needs:
16+
- rustfmt
17+
- clippy
18+
- cargo-build-test
19+
steps:
20+
- run: echo "Done"
21+
working-directory: ./
22+
23+
rustfmt:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
28+
- name: Set env vars
29+
run: |
30+
source ci/rust-version.sh
31+
echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV
32+
33+
- uses: actions-rs/toolchain@v1
34+
with:
35+
toolchain: ${{ env.RUST_STABLE }}
36+
override: true
37+
profile: minimal
38+
components: rustfmt
39+
40+
- name: Run fmt
41+
uses: actions-rs/cargo@v1
42+
with:
43+
command: fmt
44+
args: --manifest-path ./rust/Cargo.toml --all -- --check
45+
46+
clippy:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v2
50+
51+
- name: Set env vars
52+
run: |
53+
source ci/rust-version.sh
54+
echo "RUST_NIGHTLY=$rust_nightly" >> $GITHUB_ENV
55+
56+
- uses: actions-rs/toolchain@v1
57+
with:
58+
toolchain: ${{ env.RUST_NIGHTLY }}
59+
override: true
60+
profile: minimal
61+
components: clippy
62+
63+
- uses: actions/cache@v2
64+
with:
65+
path: |
66+
~/.cargo/registry
67+
~/.cargo/git
68+
target
69+
key: cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
70+
restore-keys: |
71+
cargo-clippy-
72+
73+
- name: Install dependencies
74+
run: ./ci/install-build-deps.sh
75+
76+
- name: Run clippy
77+
uses: actions-rs/cargo@v1
78+
with:
79+
command: clippy
80+
args: --manifest-path ./rust/Cargo.toml -Zunstable-options --workspace --all-targets -- --deny=warnings
81+
82+
cargo-build-test:
83+
runs-on: ubuntu-latest
84+
steps:
85+
- uses: actions/checkout@v2
86+
87+
- name: Set env vars
88+
run: |
89+
source ci/rust-version.sh
90+
echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV
91+
source ci/solana-version.sh
92+
echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV
93+
94+
- uses: actions-rs/toolchain@v1
95+
with:
96+
toolchain: ${{ env.RUST_STABLE }}
97+
override: true
98+
profile: minimal
99+
100+
- uses: actions/cache@v2
101+
with:
102+
path: |
103+
~/.cargo/registry
104+
~/.cargo/git
105+
# target # Removed due to build dependency caching conflicts
106+
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}}
107+
108+
- uses: actions/cache@v2
109+
with:
110+
path: |
111+
~/.cargo/bin/rustfilt
112+
key: cargo-bpf-bins-${{ runner.os }}
113+
114+
- uses: actions/cache@v2
115+
with:
116+
path: |
117+
~/.cache
118+
key: solana-${{ env.SOLANA_VERSION }}
119+
120+
- name: Install dependencies
121+
run: |
122+
./ci/install-build-deps.sh
123+
./ci/install-program-deps.sh
124+
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
125+
126+
- name: Build and test
127+
run: ./ci/cargo-build-test.sh
128+
129+
- name: Upload programs
130+
uses: actions/upload-artifact@v2
131+
with:
132+
name: programs
133+
path: "rust/target/deploy/*.so"
134+
if-no-files-found: error

.gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
node_modules/
2+
build/
3+
dist/
4+
lib/
5+
deploy/
6+
docs/lockup-ui/
7+
.DS_Store
8+
*~
9+
.idea
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
*.css
14+
*.css.map
15+
!js/packages/metaplex/src/fonts/fonts.css
16+
!js/packages/metaplex/src/utils/globals.css
17+
target
18+
.env
19+
.vscode
20+
bin
21+
config.json
22+
node_modules
23+
./package-lock.json
24+
hfuzz_target
25+
hfuzz_workspace
26+
**/*.so
27+
**/.DS_Store

.mergify.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Validate your changes with:
2+
#
3+
# $ curl -F '[email protected]' https://gh.mergify.io/validate/
4+
#
5+
# https://doc.mergify.io/
6+
pull_request_rules:
7+
- name: automatic merge (squash) on CI success
8+
conditions:
9+
- check-success=all_github_action_checks
10+
- label=automerge
11+
- author≠@dont-squash-my-commits
12+
actions:
13+
merge:
14+
method: squash
15+
# Join the dont-squash-my-commits group if you won't like your commits squashed
16+
- name: automatic merge (rebase) on CI success
17+
conditions:
18+
- check-success=all_github_action_checks
19+
- label=automerge
20+
- author=@dont-squash-my-commits
21+
actions:
22+
merge:
23+
method: rebase
24+
- name: remove automerge label on CI failure
25+
conditions:
26+
- label=automerge
27+
- "#status-failure!=0"
28+
actions:
29+
label:
30+
remove:
31+
- automerge
32+
comment:
33+
message: automerge label removed due to a CI failure
34+
- name: remove outdated reviews
35+
conditions:
36+
- base=master
37+
actions:
38+
dismiss_reviews:
39+
changes_requested: true

.prettierrc

Whitespace-only changes.

.travis/affects.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Check if files in the commit range match one or more prefixes
4+
#
5+
6+
(
7+
set -x
8+
git diff --name-only "$TRAVIS_COMMIT_RANGE"
9+
)
10+
11+
for file in $(git diff --name-only "$TRAVIS_COMMIT_RANGE"); do
12+
for prefix in "$@"; do
13+
if [[ $file =~ ^"$prefix" ]]; then
14+
exit 0
15+
fi
16+
done
17+
done
18+
19+
echo "No modifications to $*"
20+
exit 1

0 commit comments

Comments
 (0)