Skip to content

Commit

Permalink
feat(bindings-ts): support multi-auth workflows
Browse files Browse the repository at this point in the history
- add `atomic_swap` and `token` contracts from
  https://github.com/stellar/soroban-examples to `test-wasms`
- greatly complicate `ts-tests/package.json` to deploy & generate
  bindings for these new contracts, plus creating an `alice` identity
  and minting separate amounts of two separate tokens to the `root` user
  and `alice`
- add tests for atomic swap functionality inspired by
  https://github.com/stellar/soroban-react-atomic-swap
- let this logic guide needed updates to `bindings typescript`-generated
  libraries:
  - don't return flat values
  - instead, always return an object which will have at least a
    `txUnsigned` and `simulation` key
  - object contains all possibly-relevant fields from the logic it
    performs

Co-authored-by: Aristides Staffieri <[email protected]>
  • Loading branch information
chadoh and aristidesstaffieri committed Oct 19, 2023
1 parent 37379dd commit 1292f01
Show file tree
Hide file tree
Showing 47 changed files with 9,791 additions and 2,618 deletions.
298 changes: 155 additions & 143 deletions Cargo.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ version = "20.0.0-rc2"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "0992413f9b05e5bfb1f872bce99e89d9129b2e61"

[workspace.dependencies.soroban-token-sdk]
version = "20.0.0-rc2"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "0992413f9b05e5bfb1f872bce99e89d9129b2e61"

[workspace.dependencies.soroban-ledger-snapshot]
version = "20.0.0-rc2"
git = "https://github.com/stellar/rs-soroban-sdk"
Expand Down

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

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

Loading

0 comments on commit 1292f01

Please sign in to comment.