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 dApp to work with the single-asset balance model. #80

Merged
merged 24 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
8 changes: 8 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ on:

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

build-and-test:
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ env:

jobs:

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

fmt:
runs-on: ubuntu-latest
Expand Down
91 changes: 26 additions & 65 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,52 +16,52 @@ codegen-units = 1
lto = true

[workspace.dependencies.soroban-env-common]
version = "0.0.11"
version = "0.0.12"
git = "https://github.com/stellar/rs-soroban-env"
rev = "c551daf"
rev = "65498c8"

[workspace.dependencies.soroban-env-guest]
version = "0.0.11"
version = "0.0.12"
git = "https://github.com/stellar/rs-soroban-env"
rev = "c551daf"
rev = "65498c8"

[workspace.dependencies.soroban-env-macros]
version = "0.0.11"
version = "0.0.12"
git = "https://github.com/stellar/rs-soroban-env"
rev = "c551daf"
rev = "65498c8"

[workspace.dependencies.soroban-env-host]
version = "0.0.11"
version = "0.0.12"
git = "https://github.com/stellar/rs-soroban-env"
rev = "c551daf"
rev = "65498c8"

[workspace.dependencies.soroban-native-sdk-macros]
version = "0.0.11"
version = "0.0.12"
git = "https://github.com/stellar/rs-soroban-env"
rev = "c551daf"
rev = "65498c8"


[workspace.dependencies.soroban-spec]
version = "0.3.2"
version = "0.4.3"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "e2ecbee"
rev = "51e5e6d"

[workspace.dependencies.soroban-sdk]
version = "0.3.2"
version = "0.4.3"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "e2ecbee"
rev = "51e5e6d"

[workspace.dependencies.soroban-sdk-macros]
version = "0.3.2"
version = "0.4.3"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "e2ecbee"
rev = "51e5e6d"

[workspace.dependencies.soroban-auth]
version = "0.3.2"
version = "0.4.3"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "e2ecbee"
rev = "51e5e6d"

[workspace.dependencies.stellar-xdr]
version = "0.0.11"
version = "0.0.12"
git = "https://github.com/stellar/rs-stellar-xdr"
rev = "dbf2aba"
rev = "154e07e"
19 changes: 2 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,11 @@ backed by smart contracts on Stellar.

### Dependencies

1. `soroban-cli v0.3.3`. See https://soroban.stellar.org/docs/getting-started/setup#install-the-soroban-cli
2. `docker` for Standalone and Futurenet backends.
1. `soroban-cli v0.4.0`. See https://soroban.stellar.org/docs/getting-started/setup#install-the-soroban-cli
2. `docker` (both Standalone and Futurenet backends require it).
3. `Node.js v17`
4. `Freighter wallet v2.9.1`. Download it from https://github.com/stellar/freighter/releases/tag/2.9.1 and Enable "Experimental Mode" in the settings (gear icon).

### Backend (Local Sandbox)

1. Run the backend with `soroban serve`
2. Run `./initialize.sh sandbox` to load the contracts and initialize it.
- Note: this will create a `.soroban` sub-directory, to contain the sandbox
network data.
3. Add the Sandbox custom network in Freighter
| | |
|---|---|
| Name | Sandbox |
| URL | http://localhost:8000/soroban/rpc |
| Passphrase | Local Sandbox Stellar Network ; September 2022 |
| Allow HTTP connection | Enabled |
| Switch to this network | Enabled |

### Backend (Local Standalone Network)

1. Run the backend docker container with `./quickstart.sh standalone`, and wait for it to start.
Expand Down
Loading