Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example dapp to Protocol 21 #154

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4071fac
update contracts and tests
Julian-dev28 Jun 21, 2024
4c99e90
update example dapp
Julian-dev28 Jun 26, 2024
f4c97c6
update sdk versions
Julian-dev28 Jun 28, 2024
0185fe8
revert back to signAndSend()
Julian-dev28 Jun 28, 2024
d7e57a1
format
Julian-dev28 Jun 28, 2024
ee903ce
remove bun
Julian-dev28 Jun 28, 2024
fb1d60f
Update nodejs.yml
Julian-dev28 Jun 28, 2024
682fb88
update rust version
Julian-dev28 Jun 28, 2024
0b5a5a0
Update nodejs.yml
Julian-dev28 Jun 28, 2024
05706c8
update for workflows.
Julian-dev28 Jun 28, 2024
355f798
add references to rust version in contract cargo.toml
Julian-dev28 Jun 28, 2024
037bfbf
remove cargo install_soroban
Julian-dev28 Jun 28, 2024
eb7ec8d
Update package-lock.json
Julian-dev28 Jun 28, 2024
2b3fb19
fix build issue
Julian-dev28 Jun 28, 2024
897f7a0
Update package-lock.json
Julian-dev28 Jun 28, 2024
10abed2
fix type errors
Julian-dev28 Jun 28, 2024
5a00a4a
Update tsconfig.json
Julian-dev28 Jun 28, 2024
fce59f4
Update tsconfig.json
Julian-dev28 Jun 28, 2024
8f5abd7
Update tsconfig.json
Julian-dev28 Jun 28, 2024
1d76120
Update package.json
Julian-dev28 Jun 28, 2024
3fbc6c8
add pre-install
Julian-dev28 Jun 28, 2024
a9e0fec
Update nodejs.yml
Julian-dev28 Jun 28, 2024
f9f2587
Update nodejs.yml
Julian-dev28 Jun 28, 2024
901891a
remove futurenet from github workflow
Julian-dev28 Jun 28, 2024
2de8e6f
add slash
Julian-dev28 Jun 28, 2024
c93da49
Update tsconfig.json
Julian-dev28 Jul 1, 2024
f1f8498
use stellar cli vs soroban cli
kalepail Jul 1, 2024
c428352
Squashed commit of the following:
Julian-dev28 Jul 26, 2024
b4bfa5b
add testnet
Julian-dev28 Jul 26, 2024
e9dbd13
fixed the build error
Ugo-X Aug 1, 2024
3469ceb
fixed the cargo format check
Ugo-X Aug 1, 2024
10de6b3
Merge pull request #170 from Ugo-X/update-P21
Julian-dev28 Aug 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# paths = ["/path/to/override"] # path dependency overrides

[alias] # command aliases
install_soroban = "install --git https://github.com/AhaLabs/soroban-tools --rev c7fb7e08ba8efa9828d9df863d991558f269e35b --root ./target soroban-cli --debug"
install_stellar = "install --locked stellar-cli --version 21.0.0 --force --root ./target stellar-cli --debug"
b = "build --target wasm32-unknown-unknown --release"
# c = "check"
# t = "test"
Expand Down
45 changes: 22 additions & 23 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,35 @@ on:
pull_request:

jobs:

complete:
if: always()
needs: [build-and-test]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1

build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: stellar/actions/rust-cache@main
- run: rustup update
- run: rustup target add wasm32-unknown-unknown
- run: make build
- run: cargo install_soroban
- uses: actions/setup-node@v3
with:
node-version: 18.14.2
cache: 'npm'
- run: |
mkdir -p .soroban-example-dapp
echo 'futurenet' > .soroban-example-dapp/network
echo 'CAU23MVDEW7VMB3AXC5PL5GZO3HBYZPEIP2P46X4T3AIC4Y7FXYZWES5' > .soroban-example-dapp/abundance_token_id
echo 'CDJPYH5HNGZ24SEWXFJOW6RXXHHNKU4XPCPBMB2VRTDPTMVPLYFQKZIE' > .soroban-example-dapp/crowdfund_id
echo 'Test SDF Future Network ; October 2022' > .soroban-example-dapp/passphrase
echo 'https://rpc-futurenet.stellar.org/' > .soroban-example-dapp/rpc-url
echo '{"network":"futurenet","rpcUrl":"https://rpc-futurenet.stellar.org","networkPassphrase":"Test SDF Future Network ; October 2022"}' > shared/config.json
- uses: actions/checkout@v3
- uses: stellar/actions/rust-cache@main
- run: rustup update
- run: rustup target add wasm32-unknown-unknown
- run: make build
- run: cargo install_stellar
- uses: actions/setup-node@v3
with:
node-version: 18.20.3
cache: 'npm'
- run: |
mkdir -p .soroban-example-dapp
echo 'futurenet' > .soroban-example-dapp/network
echo 'CAU23MVDEW7VMB3AXC5PL5GZO3HBYZPEIP2P46X4T3AIC4Y7FXYZWES5' > .soroban-example-dapp/abundance_token_id
echo 'CDJPYH5HNGZ24SEWXFJOW6RXXHHNKU4XPCPBMB2VRTDPTMVPLYFQKZIE' > .soroban-example-dapp/crowdfund_id
echo 'Test SDF Future Network ; October 2022' > .soroban-example-dapp/passphrase
echo 'https://rpc-futurenet.stellar.org/' > .soroban-example-dapp/rpc-url
echo '{"network":"futurenet","rpcUrl":"https://rpc-futurenet.stellar.org","networkPassphrase":"Test SDF Future Network ; October 2022"}' > shared/config.json

- run: npm ci
- run: npm run build
- run: npm ci
- run: npm run build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ yarn-error.log*

*.sublime-project
*.sublime-workspace

contracts/*/test_snapshots/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.14.2
18.20.3
Loading
Loading