Skip to content

Commit 8026716

Browse files
authored
Merge branch '0xsequence:master' into Wallet-connect-example
2 parents 774a64f + 87cf349 commit 8026716

445 files changed

Lines changed: 121456 additions & 17980 deletions

File tree

Some content is hidden

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

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "master",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["@0xsequence/wallet-primitives-cli", "docs", "web"]
11+
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @0xsequence/disable-codeowners-notifications @0xsequence/core
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Setup Node and PNPM dependencies
2+
3+
runs:
4+
using: 'composite'
5+
6+
steps:
7+
- name: Setup Node
8+
uses: actions/setup-node@v4
9+
with:
10+
node-version: 20
11+
12+
- name: Setup PNPM
13+
uses: pnpm/action-setup@v3
14+
with:
15+
version: 10
16+
run_install: false
17+
18+
- name: Get pnpm store directory
19+
id: pnpm-cache
20+
shell: bash
21+
run: |
22+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
23+
24+
- name: Setup pnpm cache
25+
uses: actions/cache@v4
26+
with:
27+
path: |
28+
${{ steps.pnpm-cache.outputs.STORE_PATH }}
29+
node_modules
30+
packages/*/node_modules
31+
~/.cache/puppeteer
32+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
33+
restore-keys: |
34+
${{ runner.os }}-pnpm-store-
35+
36+
- name: Install dependencies
37+
shell: bash
38+
run: pnpm install --frozen-lockfile
39+
if: ${{ steps.pnpm-cache.outputs.cache-hit != 'true' }}

.github/workflows/lerna.yml

Lines changed: 0 additions & 153 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: pnpm-format-label
2+
3+
on:
4+
pull_request:
5+
types: [labeled]
6+
7+
jobs:
8+
proto:
9+
if: ${{ github.event.label.name == 'pnpm format' }}
10+
uses: ./.github/workflows/pnpm-format.yml
11+
secrets: inherit
12+
13+
rm:
14+
if: ${{ github.event.label.name == 'pnpm format' }}
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Remove the label
18+
run: |
19+
LABEL=$(echo "${{ github.event.label.name }}" | sed 's/ /%20/g')
20+
curl -X DELETE \
21+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
22+
-H "Accept: application/vnd.github.v3+json" \
23+
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels/$LABEL

.github/workflows/pnpm-format.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: pnpm format
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
run:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
ref: ${{ github.head_ref }}
14+
fetch-depth: 20
15+
16+
- uses: ./.github/actions/install-dependencies
17+
18+
- run: pnpm format
19+
20+
- name: Commit back
21+
uses: 0xsequence/actions/git-commit@v0.0.4
22+
env:
23+
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN_GIT_COMMIT }}
24+
with:
25+
files: './'
26+
branch: ${{ github.head_ref }}
27+
commit_message: '[AUTOMATED] pnpm format'

.github/workflows/tests.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
on: [push]
2+
3+
name: tests
4+
5+
jobs:
6+
install:
7+
name: Install dependencies
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: ./.github/actions/install-dependencies
12+
13+
build:
14+
name: Run build
15+
runs-on: ubuntu-latest
16+
needs: [install]
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: ./.github/actions/install-dependencies
20+
- run: pnpm clean
21+
- run: pnpm build
22+
- run: pnpm typecheck
23+
- run: pnpm lint
24+
25+
tests:
26+
name: Run all tests
27+
runs-on: ubuntu-latest
28+
needs: [build]
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: ./.github/actions/install-dependencies
32+
- name: Install Foundry
33+
uses: foundry-rs/foundry-toolchain@v1
34+
with:
35+
version: v1.5.0
36+
- name: Start Anvil in background
37+
run: anvil --fork-url https://nodes.sequence.app/arbitrum &
38+
- run: pnpm build
39+
- run: pnpm test
40+
41+
# NOTE: if you'd like to see example of how to run
42+
# tests per package in parallel, see 'v2' branch
43+
# .github/workflows/tests.yml
44+
45+
# coverage:
46+
# name: Run coverage
47+
# runs-on: ubuntu-latest
48+
# needs: [install]
49+
# steps:
50+
# - uses: actions/checkout@v4
51+
# - uses: actions/setup-node@v4
52+
# with:
53+
# node-version: 20
54+
# - uses: actions/cache@v4
55+
# id: pnpm-cache
56+
# with:
57+
# path: |
58+
# node_modules
59+
# */*/node_modules
60+
# key: ${{ runner.os }}-install-${{ hashFiles('**/package.json', '**/pnpm.lock') }}
61+
# - run: pnpm dev && (pnpm coverage || true)
62+
# - uses: codecov/codecov-action@v1
63+
# with:
64+
# fail_ci_if_error: true
65+
# verbose: true
66+
# directory: ./coverage

.gitignore

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,41 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

3-
node_modules/
3+
# Dependencies
4+
node_modules
5+
.pnp
6+
.pnp.js
47

5-
*.js.map
6-
dist/
7-
typings/contracts/*Factory.ts
8+
# Local env files
9+
.env
10+
.env.local
11+
.env.development.local
12+
.env.test.local
13+
.env.production.local
814

9-
.DS_Store
10-
.vscode
11-
.idea/
12-
*.iml
15+
# Testing
16+
coverage
17+
18+
# Turbo
19+
.turbo
20+
21+
# Vercel
22+
.vercel
23+
24+
# Build Outputs
25+
.next/
26+
out/
27+
build
28+
dist
1329

30+
31+
# Debug
32+
npm-debug.log*
1433
yarn-debug.log*
1534
yarn-error.log*
16-
lerna-debug.log*
35+
36+
# Misc
37+
.DS_Store
38+
*.pem
39+
40+
# Husky
41+
.husky/

.prettierrc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"tabWidth": 2,
3-
"useTabs": false,
2+
"printWidth": 120,
43
"semi": false,
5-
"singleQuote": true,
6-
"trailingComma": "none",
7-
"printWidth": 80
4+
"singleQuote": true
85
}

0 commit comments

Comments
 (0)