-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mohiiit
committed
Dec 9, 2024
1 parent
2c10d3b
commit 7012489
Showing
1,580 changed files
with
1,279,008 additions
and
0 deletions.
There are no files selected for viewing
Submodule argent-contracts-starknet
added at
135219
Submodule braavos-account-cairo
added at
12b82a
Submodule starkgate-contracts-82e651f
added at
459418
Submodule starkgate-contracts-latest
added at
5a10fd
79 changes: 79 additions & 0 deletions
79
lib/starkgate-contracts-old/.github/workflows/npm-publish.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Straknet bridge abi CI/CD | ||
|
||
on: | ||
push: | ||
tags: | ||
|
||
jobs: | ||
build: | ||
if: github.event.base_ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v2 | ||
- name: Setup node.js environment | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
- name: Update npm version | ||
run: | | ||
export git_version=${GITHUB_REF#refs/*/} | ||
export npm_version=$(echo ${git_version//[A-Z]/} | tr -d '-') | ||
npm version --no-git-tag-version $npm_version | ||
- name: Commit and push npm version bump | ||
uses: Smart-Transportation/[email protected] | ||
with: | ||
github_token: ${{ secrets.TOKEN_GITHUB }} | ||
branch: 'main' | ||
message: "Bump npm package.json version" | ||
- name: Install latest npm package | ||
run: | | ||
export package_name=$(cut -d "=" -f 2 <<< $(npm run env | grep "npm_package_name")) | ||
npm i $package_name | ||
- name: Setup docker daemon | ||
uses: docker-practice/[email protected] | ||
- name: Build Dockerfile with build_image:latest tag | ||
run: | | ||
docker build --tag build_image . | ||
- name: Run build container in docker | ||
run: | | ||
docker run --name=build_container -d -it build_image /bin/bash | ||
- name: Copy artifacts from build_container | ||
run: | | ||
export package_name=$(cut -d "=" -f 2 <<< $(npm run env | grep "npm_package_name")) | ||
export git_version=${GITHUB_REF#refs/*/} | ||
export npm_version=$(echo ${git_version//[A-Z]/} | tr -d '-') | ||
mkdir -p node_modules/$package_name/artifacts/$npm_version | ||
docker cp build_container:/app/build/Release/src/starkware/starknet/apps/starkgate/artifacts/. node_modules/$package_name/artifacts/$npm_version/. | ||
- name: Pack npm | ||
run: | | ||
export package_name=$(cut -d "=" -f 2 <<< $(npm run env | grep "npm_package_name")) | ||
export git_version=${GITHUB_REF#refs/*/} | ||
export npm_version=$(echo ${git_version//[A-Z]/} | tr -d '-') | ||
cp package.json node_modules/$package_name/ | ||
cd node_modules/$package_name/ | ||
npm pack | ||
- name: Upload npm artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: package | ||
path: ${{ github.workspace }}/node_modules/@starkware-industries/starkgate-contracts/*.tgz | ||
|
||
publish: | ||
if: github.event.base_ref == 'refs/heads/main' | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: package | ||
- name: Setup node.js environment | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16.x | ||
registry-url: https://registry.npmjs.org | ||
- name: Publish | ||
run: npm publish --access public $(ls *.tgz) | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# Tgz files | ||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
cmake_minimum_required (VERSION 3.22) | ||
|
||
set (PYTHON_COMMAND python3.7) | ||
|
||
project(StarkGate VERSION 0.1.0) | ||
include(CTest) | ||
|
||
enable_testing() | ||
|
||
if (NOT DEFINED CMAKE_BUILD_TYPE) | ||
set(CMAKE_BUILD_TYPE Debug) | ||
endif() | ||
|
||
# Python library macro. | ||
find_program(PYTHON "python3") | ||
|
||
include("src/cmake_utils/cmake_rules.cmake") | ||
include("src/starkware/cairo/lang/cairo_cmake_rules.cmake") | ||
include("src/starkware/starknet/compiler/starknet_cmake_rules.cmake") | ||
|
||
# Repos needs to be first as it defines macros that are needed by src. | ||
add_subdirectory(src) |
Oops, something went wrong.