Skip to content

Commit b7df14d

Browse files
authored
Merge branch 'master' into feat/decode-account-data-at-inspector
2 parents 5490038 + e5935e5 commit b7df14d

File tree

155 files changed

+17169
-6619
lines changed

Some content is hidden

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

155 files changed

+17169
-6619
lines changed

.browserslistrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[production]
2+
>0.2% and supports bigint and not dead
3+
not op_mini all
4+
5+
[development]
6+
last 1 chrome version
7+
last 1 firefox version
8+
last 1 safari version
9+
supports bigint

.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"semi": ["error", "always"],
66
// Temporary rule to ignore any explicit any type warnings in TypeScript files
77
"@typescript-eslint/no-explicit-any": "off",
8-
"object-curly-spacing": ["error", "always"]
8+
"object-curly-spacing": ["error", "always"],
9+
// Do not rely on non-null assertions, please. Make it off to see other errors.
10+
"@typescript-eslint/no-non-null-assertion": "off"
911
},
1012
"overrides": [
1113
// Only uses Testing Library lint rules in test files

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## Description
2+
3+
<!-- Provide a brief description of the changes in this PR -->
4+
5+
## Type of change
6+
7+
<!-- Check the appropriate options that apply to this PR -->
8+
9+
- [ ] Bug fix
10+
- [ ] New feature
11+
- [ ] Protocol integration
12+
- [ ] Documentation update
13+
- [ ] Other (please describe):
14+
15+
## Screenshots
16+
17+
<!-- For UI changes, especially protocol screens, include screenshots showing the changes -->
18+
<!-- This is REQUIRED for protocol integration PRs -->
19+
20+
## Testing
21+
22+
<!-- Describe how you tested your changes -->
23+
<!-- For protocol integrations, explain how you verified the protocol data is correctly displayed -->
24+
25+
## Related Issues
26+
27+
<!-- Link to any related issues this PR addresses -->
28+
<!-- Example: Fixes #123, Addresses #456 -->
29+
30+
## Checklist
31+
32+
<!-- Verify that you have completed the following before requesting review -->
33+
34+
- [ ] My code follows the project's style guidelines
35+
- [ ] I have added tests that prove my fix/feature works
36+
- [ ] All tests pass locally and in CI
37+
- [ ] I have updated documentation as needed
38+
- [ ] CI/CD checks pass
39+
- [ ] I have included screenshots for protocol screens (if applicable)
40+
- [ ] For security-related features, I have included links to related information
41+
42+
## Additional Notes
43+
44+
<!-- Add any other context about the PR here -->
45+
<!-- For Solana Verify (Verified Builds) related changes, note that bugs should be reported to disclosures@solana.org -->

.github/workflows/ci.yaml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ on:
66
pull_request:
77
branches: [master]
88

9+
env:
10+
# cash folder for pnpm_store, nextjs and playwright later on
11+
PW_CACHE_AFFIX: pw
12+
PW_CACHE_FOLDER: ~/.cache/ms-playwright
13+
914
jobs:
1015
Build-And-Test:
1116
runs-on: ubuntu-latest
1217

1318
strategy:
1419
matrix:
15-
node-version: [18.x]
20+
node-version: ['20.x']
1621

1722
steps:
1823
- name: Checkout
@@ -29,11 +34,29 @@ jobs:
2934
node-version: ${{ matrix.node-version }}
3035
cache: 'pnpm'
3136

37+
- name: Setup pnpm config
38+
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
39+
40+
- name: Setup Cache
41+
uses: actions/cache@v4
42+
id: pnpm_store_cache
43+
with:
44+
path: |
45+
${{ env.PW_CACHE_FOLDER }}
46+
${{ github.workspace }}/.next/cache
47+
key: ${{ runner.os }}-${{ env.PW_CACHE_AFFIX }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/.browserslistrc') }}-${{ hashFiles('**/*.ts', '**/*.tsx') }}
48+
restore-keys: |
49+
${{ runner.os }}-${{ env.PW_CACHE_AFFIX }}-
50+
${{ runner.os }}-${{ env.PW_CACHE_AFFIX }}-${{ hashFiles('**/pnpm-lock.yaml') }}-
51+
3252
- name: Install dependencies
3353
run: pnpm install
3454

3555
- name: Build
3656
run: pnpm build
3757

3858
- name: Test
39-
run: pnpm test:ci
59+
env:
60+
TEST_SERIAL_TIMEOUT: ${{ vars.TEST_SERIAL_TIMEOUT }}
61+
run: |
62+
pnpm test:ci

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ next-env.d.ts
4040
# vim
4141
*.sw*
4242
.editorconfig
43+
*storybook.log

.prettierrc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const prettierConfigSolana = require('@solana/prettier-config-solana');
2+
3+
module.exports = {
4+
...prettierConfigSolana,
5+
plugins: [prettierConfigSolana.plugins ?? []].concat(['prettier-plugin-tailwindcss']),
6+
endOfLine: 'lf',
7+
};

.storybook/layout.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.storybook/main.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { StorybookConfig } from '@storybook/experimental-nextjs-vite';
2+
3+
const config: StorybookConfig = {
4+
stories: ['../app/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5+
addons: ['@storybook/addon-essentials', '@storybook/experimental-addon-test'],
6+
framework: {
7+
name: '@storybook/experimental-nextjs-vite',
8+
options: {},
9+
},
10+
staticDirs: ['../public'],
11+
};
12+
export default config;

.storybook/manager.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { addons } from '@storybook/manager-api';
2+
import { themes } from '@storybook/theming';
3+
4+
addons.setConfig({
5+
theme: themes.light,
6+
});

.storybook/preview.tsx

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import type { Preview } from '@storybook/react';
2+
import React from 'react';
3+
4+
import { Rubik } from 'next/font/google';
5+
// import './layout.min.css';
6+
import '@/app/styles.css';
7+
8+
const rubikFont = Rubik({
9+
display: 'auto',
10+
subsets: ['latin'],
11+
variable: '--explorer-default-font',
12+
weight: ['300', '400', '700'],
13+
});
14+
15+
const preview: Preview = {
16+
parameters: {
17+
backgrounds: {
18+
values: [{ name: 'Dark', value: '#161b19' }],
19+
default: 'Dark',
20+
},
21+
controls: {
22+
matchers: {
23+
color: /(background|color)$/i,
24+
date: /Date$/i,
25+
},
26+
},
27+
},
28+
decorators: [
29+
Story => (
30+
<div id="storybook-outer" className={rubikFont.className}>
31+
<Story />
32+
</div>
33+
),
34+
],
35+
};
36+
37+
export default preview;

0 commit comments

Comments
 (0)