Skip to content

Commit

Permalink
Merge pull request #297 from icon-project/soroban/xcall-multi
Browse files Browse the repository at this point in the history
feat: soroban xcall contracts
  • Loading branch information
gcranju authored Sep 17, 2024
2 parents 3284b2f + 89e9ac8 commit 44f947a
Show file tree
Hide file tree
Showing 79 changed files with 6,908 additions and 1 deletion.
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.78.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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

### Soroban ###
.soroban
test_snapshots

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

Expand Down
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[workspace]
members = [
"contracts/cosmwasm-vm/*",

"contracts/soroban/contracts/*",
"contracts/soroban/libs/*"
]

[workspace.package]
Expand Down Expand Up @@ -37,6 +38,8 @@ cw-common={ git="https://github.com/icon-project/IBC-Integration.git", branch =
cw-mock-dapp = {path="contracts/cosmwasm-vm/cw-mock-dapp"}
cw-mock-dapp-multi = { path="contracts/cosmwasm-vm/cw-mock-dapp-multi"}

soroban-sdk = "21.6.0"

[profile.release]
opt-level = 'z'
debug = false
Expand Down
Loading

0 comments on commit 44f947a

Please sign in to comment.