Skip to content

Commit 0110e67

Browse files
committed
Blockchain Services - EpicChain Lab's
0 parents  commit 0110e67

File tree

129 files changed

+19701
-0
lines changed

Some content is hidden

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

129 files changed

+19701
-0
lines changed

.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Don't allow people to merge changes to these generated files, because the result
2+
# may be invalid. You need to run "rush update" again.
3+
pnpm-lock.yaml merge=text
4+
shrinkwrap.yaml merge=binary
5+
npm-shrinkwrap.json merge=binary
6+
yarn.lock merge=binary
7+
8+
# Rush's JSON config files use JavaScript-style code comments. The rule below prevents pedantic
9+
# syntax highlighters such as GitHub's from highlighting these comments as errors. Your text editor
10+
# may also require a special configuration to allow comments in JSON.
11+
#
12+
# For more information, see this issue: https://github.com/microsoft/rushstack/issues/1088
13+
#
14+
*.json linguist-language=JSON-with-Comments

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: ['main']
5+
pull_request:
6+
branches: ['main']
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 2
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 16
17+
- name: Rush Install
18+
run: node common/scripts/install-run-rush.js update
19+
- name: Rush rebuild
20+
run: node common/scripts/install-run-rush.js rebuild --verbose

.github/workflows/main.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: AI Code Reviewer
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
permissions: write-all
9+
jobs:
10+
review:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v3
15+
16+
- name: AI Code Reviewer
17+
uses: simplitech/ai-codereviewer@main
18+
with:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
21+
OPENAI_API_MODEL: 'gpt-4' # Optional: defaults to "gpt-4"
22+
exclude: '**/*.json, **/*.md' # Optional: exclude patterns separated by commas

.github/workflows/npm-publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish all Blockchain Services Libs (Blockchain-Service, BS-Asteroid-sdk, BS-Ethereum, BS-Neo-Legacy, BS-Neo3, BS-React-Native-Decrypt)
2+
3+
on: workflow_dispatch
4+
5+
env:
6+
NODE_VERSION: 16.x
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
environment: release
12+
permissions:
13+
contents: write
14+
pages: write
15+
id-token: write
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 2
21+
- name: Setup Node Version ${{ env.NODE_VERSION }}
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: ${{ env.NODE_VERSION }}
25+
- name: Config Git Properties
26+
run: |
27+
git config --global user.email [email protected]
28+
git config --global user.name github-actions
29+
- name: Install RushJS
30+
run: npm install -g @microsoft/rush
31+
- name: Verify Change Logs
32+
run: rush change --verify
33+
- name: Update package.json version(s)
34+
run: rush version --bump
35+
- name: Install dependencies
36+
run: rush update
37+
- name: Build Projects
38+
run: rush rebuild
39+
- name: Publish Projects
40+
run: rush publish --apply --target-branch main --publish --npm-auth-token ${{ secrets.NPM_TOKEN }} --add-commit-details --include-all
41+
- name: Commit and Push package.json version update
42+
run: |
43+
git add .
44+
git commit -m "Update package.json version(s)"
45+
git push --no-verify

.gitignore

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Logs
2+
*.log
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
7+
# Runtime data
8+
*.pid
9+
*.seed
10+
*.pid.lock
11+
12+
# Directory for instrumented libs generated by jscoverage/JSCover
13+
lib-cov
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
18+
# nyc test coverage
19+
.nyc_output
20+
21+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
22+
.grunt
23+
24+
# Bower dependency directory (https://bower.io/)
25+
bower_components
26+
27+
# node-waf configuration
28+
.lock-wscript
29+
30+
# Compiled binary addons (https://nodejs.org/api/addons.html)
31+
build/Release
32+
33+
# Dependency directories
34+
node_modules/
35+
jspm_packages/
36+
dist/
37+
docs/
38+
39+
# Optional npm cache directory
40+
.npm
41+
42+
# Optional eslint cache
43+
.eslintcache
44+
45+
# Optional REPL history
46+
.node_repl_history
47+
48+
# Output of 'npm pack'
49+
*.tgz
50+
51+
# Yarn Integrity file
52+
.yarn-integrity
53+
54+
# dotenv environment variables file
55+
.env
56+
57+
# next.js build output
58+
.next
59+
60+
# OS X temporary files
61+
.DS_Store
62+
63+
# IntelliJ IDEA project files; if you want to commit IntelliJ settings, this recipe may be helpful:
64+
# https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
65+
.idea/
66+
*.iml
67+
68+
# Rush temporary files
69+
common/deploy/
70+
common/temp/
71+
common/autoinstallers/*/.npmrc
72+
**/.rush/temp/
73+
74+
# Heft temporary files
75+
.heft
76+
.log

.prettierignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#-------------------------------------------------------------------------------------------------------------------
2+
# Keep this section in sync with .gitignore
3+
#-------------------------------------------------------------------------------------------------------------------
4+
5+
👋 (copy + paste your .gitignore file contents here) 👋
6+
7+
#-------------------------------------------------------------------------------------------------------------------
8+
# Prettier-specific overrides
9+
#-------------------------------------------------------------------------------------------------------------------
10+
11+
# Rush files
12+
common/changes/
13+
common/scripts/
14+
common/config/
15+
CHANGELOG.*
16+
17+
# Package manager files
18+
pnpm-lock.yaml
19+
yarn.lock
20+
package-lock.json
21+
shrinkwrap.json
22+
23+
# Build outputs
24+
dist/
25+
lib/
26+
docs/
27+
28+
# Prettier reformat code blocks inside Markdown, which affects rendered output
29+
*.md
30+
*.html
31+
polyfill.js
32+
babel.config.js

.prettierrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"quoteProps": "as-needed",
5+
"jsxSingleQuote": false,
6+
"trailingComma": "es5",
7+
"tabWidth": 2,
8+
"printWidth": 120,
9+
"arrowParens": "avoid",
10+
"bracketSpacing": true,
11+
"bracketSameLine": false,
12+
"endOfLine": "lf"
13+
}

0 commit comments

Comments
 (0)