Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENG-5120] Permissions support for sats-connect-core #42

Merged
merged 47 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
2bfcf8a
WIP
aryzing Sep 10, 2024
dde53c4
WIP
aryzing Sep 10, 2024
8068990
Bump minor
aryzing Sep 26, 2024
34cfc1b
Update method name
aryzing Sep 26, 2024
fd6648a
Use xverse-core helpers
aryzing Sep 27, 2024
fb4f3cc
Add github registry
aryzing Sep 27, 2024
a59e32b
Use deterministic package registry configs in CI workflows
aryzing Sep 27, 2024
5d3807d
Update registry config
aryzing Sep 27, 2024
f6ee4ca
Update permissions response schema
aryzing Sep 27, 2024
f0df613
Add more permissions methods
aryzing Oct 2, 2024
33f23c7
Export type
aryzing Oct 2, 2024
dd0367e
Remove array from definition
aryzing Oct 2, 2024
8de5c5e
Rename type
aryzing Oct 2, 2024
9e0a0e8
Bump core
aryzing Oct 2, 2024
41679f1
Update lock
aryzing Oct 2, 2024
abebc6c
Update core
aryzing Oct 3, 2024
74b7cbd
Bump core
aryzing Oct 3, 2024
b12c6a0
Export types
aryzing Oct 3, 2024
8dd68ec
Export types
aryzing Oct 3, 2024
c85356a
Bump core
aryzing Oct 3, 2024
3e016c8
Remove register client method
aryzing Oct 3, 2024
dae2227
Remove webpack
aryzing Oct 3, 2024
f2c341d
Add types
aryzing Oct 3, 2024
60decf9
Add type
aryzing Oct 3, 2024
3e2b5e0
Add schema for signpsbt
aryzing Oct 3, 2024
6b481b3
Add missing param
aryzing Oct 3, 2024
b36c4be
Add schemas for stx call contract
aryzing Oct 3, 2024
81bbfa8
Refactor stx methods
aryzing Oct 4, 2024
507ea5a
Add missing exports
aryzing Oct 4, 2024
2646795
Update deploy contract params
aryzing Oct 4, 2024
cb37541
Update runes
aryzing Oct 4, 2024
7a7b8e3
Sort
aryzing Oct 4, 2024
966aba7
Fix types
aryzing Oct 4, 2024
f3fa310
Fix more type issues
aryzing Oct 4, 2024
20eab4b
Update export name
aryzing Oct 4, 2024
cdad770
Update vars
aryzing Oct 7, 2024
6fd4d2d
Update method
aryzing Oct 7, 2024
e891dde
Remove custom actions schema
aryzing Oct 8, 2024
8bc0e50
Bump core
aryzing Oct 8, 2024
dac1ed6
Bump core
aryzing Oct 11, 2024
ea2e4eb
Unwrap id
aryzing Oct 14, 2024
a057ae4
Bump core
aryzing Oct 16, 2024
a733cd7
Add connect/disconnect methods
aryzing Oct 19, 2024
90cdeaa
Add getAccount
aryzing Oct 19, 2024
ab37c98
wip: remove xverse-core dep
m-aboelenein Oct 24, 2024
3f8e822
updated lock file
m-aboelenein Oct 24, 2024
005a0fb
implement only necessary types
m-aboelenein Oct 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/build-and-publish-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,26 @@ jobs:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"

- name: Set `@secretkeylabs` scope to use GitHub Package Registry for package installation
run: |
echo "@secretkeylabs:registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${AUTH_TOKEN}" >> .npmrc
env:
AUTH_TOKEN: ${{ secrets.GH_PACKAGE_REGISTRY_TOKEN }}

- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_REGISTRY_TOKEN }}

- name: Run build
run: npm run build

- name: Publish to NPM package registry
run: npm publish --access=public --tag=latest
run: |
echo "@sats-connect:registry=https://registry.npmjs.org/" > .npmrc
echo "//registry.npmjs.org/:_authToken=$AUTH_TOKEN" >> .npmrc
npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }}
AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }}
24 changes: 14 additions & 10 deletions .github/workflows/build-and-publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ jobs:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'

- name: Set `@secretkeylabs` scope to use GitHub Package Registry for package installation
run: |
echo "@secretkeylabs:registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${AUTH_TOKEN}" >> .npmrc
env:
AUTH_TOKEN: ${{ secrets.GH_PACKAGE_REGISTRY_TOKEN }}

- name: Install dependencies
run: npm ci

- name: Run test build
run: npm run build-debug

- name: Run build
run: npm run build
- name: Run CI
run: npm run ci

- id: current-version
name: Get current version
Expand All @@ -37,7 +39,9 @@ jobs:
CURRENT_VERSION: ${{ steps.current-version.outputs.CURRENT_VERSION }}

- name: Publish to NPM package registry
run: npm publish --access=public --tag pr-$PR_NUMBER
run: |
echo "@sats-connect:registry=https://registry.npmjs.org/" > .npmrc
echo "//registry.npmjs.org/:_authToken=$AUTH_TOKEN" >> .npmrc
npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }}
Loading