Skip to content

Commit

Permalink
Merge branch 'feat/sui-multisig' of github.com:icon-project/xcall-mul…
Browse files Browse the repository at this point in the history
…ti into sui-xcall-testnet-deploy
  • Loading branch information
Itshyphen committed Oct 23, 2024
2 parents eda1518 + d615d88 commit 6895fe4
Show file tree
Hide file tree
Showing 212 changed files with 23,188 additions and 105 deletions.
112 changes: 77 additions & 35 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,33 @@ jobs:
./gradlew optimizedJar
./gradlew zipOutputOptimizedJars
- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: javascore-contracts
path: ./contracts/javascore/build/javascore-contracts.zip
build_wasm:
name: Build Cosmwasm Contracts
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: true
# build_wasm:
# name: Build Cosmwasm Contracts
# runs-on: ubuntu-latest
# steps:
# - name: Checkout sources
# uses: actions/checkout@v3
# with:
# submodules: true

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Compile WASM
run: |
# rustup component add rustfmt --toolchain 1.78.0-x86_64-unknown-linux-gnu
# rustup component add clippy --toolchain 1.78.0-x86_64-unknown-linux-gnu
bash ./scripts/optimize-cosmwasm.sh
cd artifacts/archway && zip -r ../../cosmwasm-contracts.zip . -j
# - name: Cache Rust dependencies
# uses: Swatinem/rust-cache@v2
# - name: Compile WASM
# run: |
# # rustup component add rustfmt --toolchain 1.78.0-x86_64-unknown-linux-gnu
# # rustup component add clippy --toolchain 1.78.0-x86_64-unknown-linux-gnu
# bash ./scripts/optimize-cosmwasm.sh
# cd artifacts/archway && zip -r ../../cosmwasm-contracts.zip . -j

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: cosmwasm-contracts
path: cosmwasm-contracts.zip
# - name: Upload Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: cosmwasm-contracts
# path: cosmwasm-contracts.zip
build_solidity:
name: Build Solidity Contracts
runs-on: ubuntu-latest
Expand All @@ -73,48 +73,90 @@ jobs:
cd artifacts && zip -r ../../../solidity-contracts.zip . -j
- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: solidity-contracts
path: solidity-contracts.zip

build_stellar:
name: Build stellar Contracts
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
submodules: true
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79.0
target: wasm32-unknown-unknown
override: true
profile: minimal

- name: Install wasm32
run: |
rustup target add wasm32-unknown-unknown
cargo install --locked stellar-cli --features opt
- name: Compile WASM
run: |
bash ./scripts/optimize-stellar.sh
cd artifacts/stellar && zip -r ../../stellar-contracts.zip . -j
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: stellar-contracts
path: stellar-contracts.zip

release:
name: Release and Publish
runs-on: ubuntu-latest
needs:
- build_javascore
- build_wasm
# - build_wasm
- build_stellar
- build_solidity
steps:
- name: Initialize variables
id: vars
run: |
echo «::set-output name=date::$(date +'%Y-%m-%d')»
echo «::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)»
- name: Download Javascore Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: javascore-contracts
path: javascore-contracts

- name: Download Cosmwasm Artifacts
uses: actions/download-artifact@v2
with:
name: cosmwasm-contracts
path: cosmwasm-contracts
# - name: Download Cosmwasm Artifacts
# uses: actions/download-artifact@v4
# with:
# name: cosmwasm-contracts
# path: cosmwasm-contracts

- name: Download Solidity Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: solidity-contracts
path: solidity-contracts

- name: Download Stellar Artifacts
uses: actions/download-artifact@v4
with:
name: stellar-contracts
path: stellar-contracts

- name: Unzip Javascore Artifacts
run: unzip javascore-contracts/javascore-contracts.zip -d javascore-contracts && rm -rf javascore-contracts/javascore-contracts.zip

- name: Unzip Cosmwasm Artifacts
run: unzip cosmwasm-contracts/cosmwasm-contracts.zip -d cosmwasm-contracts && rm -rf cosmwasm-contracts/cosmwasm-contracts.zip
# - name: Unzip Cosmwasm Artifacts
# run: unzip cosmwasm-contracts/cosmwasm-contracts.zip -d cosmwasm-contracts && rm -rf cosmwasm-contracts/cosmwasm-contracts.zip

- name: Unzip Cosmwasm Artifacts
run: unzip solidity-contracts/solidity-contracts.zip -d solidity-contracts && rm -rf solidity-contracts/solidity-contracts.zip

- name: Unzip Stellar Artifacts
run: unzip stellar-contracts/stellar-contracts.zip -d stellar-contracts && rm -rf stellar-contracts/stellar-contracts.zip

- name: Changelog
uses: scottbrenner/generate-changelog-action@master
Expand All @@ -126,9 +168,9 @@ jobs:
uses: jmgilman/actions-generate-checksum@v1
with:
patterns: |
cosmwasm-contracts/*.wasm
javascore-contracts/*.jar
solidity-contracts/*
./stellar-contracts/*
output: check256sums.txt

- name: Create Release
Expand All @@ -141,6 +183,6 @@ jobs:
${{ steps.Changelog.outputs.changelog }}
files: |
./javascore-contracts/*.jar
./cosmwasm-contracts/*.wasm
./solidity-contracts/*
./stellar-contracts/*
check256sums.txt
43 changes: 43 additions & 0 deletions .github/workflows/stellar-build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Test Stellar contracts
on:
push:
branches:
- '**'
pull_request:
branches:
- main
paths:
- contracts/soroban/**
- libraries/common/rust/**
- .github/workflows/stellar-build-and-test.yml

defaults:
run:
working-directory: contracts/soroban
jobs:
Build:
name: Build Stellar Contracts
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: true

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79.0
target: wasm32-unknown-unknown
override: true
profile: minimal

- name: Install wasm32
run: |
rustup target add wasm32-unknown-unknown
cargo install --locked soroban-cli
- name: Build & Test Stellar Contracts
working-directory: contracts/soroban
run: |
soroban contract build
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

### Solana ###
# Logs
.anchor
test-ledger

### Soroban ###
.soroban
test_snapshots

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Expand Down
6 changes: 0 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@
[submodule "contracts/evm/lib/solidity-examples"]
path = contracts/evm/lib/solidity-examples
url = https://github.com/LayerZero-Labs/solidity-examples
[submodule "contracts/evm/lib/openzeppelin-contracts"]
path = contracts/evm/lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "contracts/evm/lib/openzeppelin-contracts-upgradeable"]
path = contracts/evm/lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
Loading

0 comments on commit 6895fe4

Please sign in to comment.