Skip to content

Commit 224f761

Browse files
committed
sequence-core-1.0.0
1 parent e90b2e6 commit 224f761

2,195 files changed

Lines changed: 524627 additions & 0 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.
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)
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": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}
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: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
31+
32+
**Smartphone (please complete the following information):**
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
38+
39+
**Additional context**
40+
Add any other context about the problem here.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Custom issue template
3+
about: Describe this issue template's purpose here.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.
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' }}
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
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'
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Publish Dists for Packages
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build-and-push:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- uses: ./.github/actions/install-dependencies
19+
20+
- name: Build package
21+
run: pnpm run build
22+
23+
- name: Prepare dist branch
24+
run: |
25+
PACKAGES=("services/guard" "services/identity-instrument" "services/relayer" "wallet/core" "wallet/primitives" "wallet/wdk" "wallet/dapp-client")
26+
27+
for PACKAGE in "${PACKAGES[@]}"; do
28+
BRANCH="dists/$PACKAGE"
29+
PKG_DIR="packages/$PACKAGE"
30+
31+
echo "📦 Publishing $PACKAGE to $BRANCH"
32+
33+
mkdir -p /tmp/$PACKAGE
34+
shopt -s dotglob
35+
cp -r $PKG_DIR/* /tmp/$PACKAGE || true
36+
37+
cd /tmp/$PACKAGE
38+
git init
39+
git checkout -b $BRANCH
40+
41+
git config user.name "github-actions"
42+
git config user.email "actions@github.com"
43+
44+
echo "🔧 Rewriting workspace: deps in package.json..."
45+
node -e '
46+
const fs = require("fs");
47+
const path = require("path");
48+
const pkgPath = path.resolve("package.json");
49+
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
50+
const repo = "github:0xsequence/sequence.js";
51+
52+
const versions = {
53+
"@0xsequence/guard": `${repo}#dists/services/guard`,
54+
"@0xsequence/identity-instrument": `${repo}#dists/services/identity-instrument`,
55+
"@0xsequence/relayer": `${repo}#dists/services/relayer`,
56+
"@0xsequence/wallet-core": `${repo}#dists/wallet/core`,
57+
"@0xsequence/wallet-primitives": `${repo}#dists/wallet/primitives`,
58+
"@0xsequence/wallet-wdk": `${repo}#dists/wallet/wdk`,
59+
};
60+
61+
const rewrite = (deps = {}) => {
62+
for (const k in deps) {
63+
if (deps[k].startsWith("workspace:")) {
64+
const version = versions[k];
65+
66+
if (!version) {
67+
console.warn(`No version found for ${k}, skipping...`);
68+
continue;
69+
}
70+
71+
deps[k] = version;
72+
console.log(`→ ${k} → ${deps[k]}`);
73+
}
74+
}
75+
};
76+
77+
rewrite(pkg.dependencies);
78+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2));
79+
'
80+
81+
git add .
82+
git commit -m "Build: publish $PACKAGE dist"
83+
84+
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
85+
git push -f origin HEAD:$BRANCH
86+
87+
cd -
88+
done

0 commit comments

Comments
 (0)