Skip to content

Commit

Permalink
Merge pull request #2 from ckb-cell/feat/update-cell-deps
Browse files Browse the repository at this point in the history
Update cell deps every 5 mintus
  • Loading branch information
duanyytop authored May 29, 2024
2 parents 3d637ba + 52c5368 commit 714e10b
Show file tree
Hide file tree
Showing 9 changed files with 235 additions and 1,000 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint

on:
pull_request:
push:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: '20'
- uses: pnpm/[email protected]
with:
version: 8
- name: Install dependency
run: pnpm install
- name: Lint
run: pnpm lint

24 changes: 24 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update CellDeps Every 5 Minutes

on:
schedule:
- cron: '*/5 * * * *' # Run every 5 minutes

jobs:
Update:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: '20'
- uses: pnpm/[email protected]
with:
version: 8
- name: Install dependency
run: pnpm install

- name: Update CellDeps
run: |
pnpm update:cellDeps
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ dist

# Stores VSCode versions used for testing VSCode extensions
.vscode-test
.vscode

# yarn v2
.yarn/cache
Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

24 changes: 12 additions & 12 deletions deployment/cell-deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,49 @@
"rgbpp": {
"testnet": {
"outPoint": {
"txHash": "0xf1de59e973b85791ec32debbba08dff80c63197e895eb95d67fc1e9f6b413e00",
"index": "0x0"
"index": "0x0",
"txHash": "0xf1de59e973b85791ec32debbba08dff80c63197e895eb95d67fc1e9f6b413e00"
},
"depType": "code"
},
"mainnet": {
"outPoint": {
"txHash": "0x04c5c3e69f1aa6ee27fb9de3d15a81704e387ab3b453965adbe0b6ca343c6f41",
"index": "0x0"
"index": "0x0",
"txHash": "0x04c5c3e69f1aa6ee27fb9de3d15a81704e387ab3b453965adbe0b6ca343c6f41"
},
"depType": "code"
}
},
"btcTime": {
"testnet": {
"outPoint": {
"txHash": "0xde0f87878a97500f549418e5d46d2f7704c565a262aa17036c9c1c13ad638529",
"index": "0x0"
"index": "0x0",
"txHash": "0xde0f87878a97500f549418e5d46d2f7704c565a262aa17036c9c1c13ad638529"
},
"depType": "code"
},
"mainnet": {
"outPoint": {
"txHash": "0x6257bf4297ee75fcebe2654d8c5f8d93bc9fc1b3dc62b8cef54ffe166162e996",
"index": "0x0"
"index": "0x0",
"txHash": "0x6257bf4297ee75fcebe2654d8c5f8d93bc9fc1b3dc62b8cef54ffe166162e996"
},
"depType": "code"
}
},
"xudt": {
"testnet": {
"outPoint": {
"txHash": "0xbf6fb538763efec2a70a6a3dcb7242787087e1030c4e7d86585bc63a9d337f5f",
"index": "0x0"
"index": "0x0",
"txHash": "0xbf6fb538763efec2a70a6a3dcb7242787087e1030c4e7d86585bc63a9d337f5f"
},
"depType": "code"
}
},
"unique": {
"testnet": {
"outPoint": {
"txHash": "0xff91b063c78ed06f10a1ed436122bd7d671f9a72ef5f5fa28d05252c17cf4cef",
"index": "0x0"
"index": "0x0",
"txHash": "0xff91b063c78ed06f10a1ed436122bd7d671f9a72ef5f5fa28d05252c17cf4cef"
},
"depType": "code"
}
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@rgbpp-sdk/ckb",
"name": "typeid-contract-cell-deps",
"version": "0.1.0",
"scripts": {
"test": "vitest",
"format": "prettier --check 'src/*.ts'",
"update:cellDeps": "npx ts-node src/index.ts",
"format": "prettier --write 'src/*.ts'",
"lint": "eslint --ext .ts src/*"
},
"types": "./lib/index.d.ts",
Expand All @@ -18,8 +18,7 @@
"eslint": "^8.56.0",
"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.4.3",
"vitest": "^1.4.0"
"typescript": "^5.4.3"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 714e10b

Please sign in to comment.