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

Auth Next changes in SDK #848

Merged
merged 23 commits into from
Feb 4, 2023
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fd0d2ad
Introduce the Address type and replace AccountId/Invoker.
dmkozh Feb 3, 2023
dd3fec7
Changed ledger info to use network id instead of the passphrase.
dmkozh Feb 3, 2023
204ed0e
Minor test updates.
dmkozh Feb 3, 2023
d83ea21
Remove soroban-auth library.
dmkozh Nov 28, 2022
6ff463e
Update token spec and corresponding tests.
dmkozh Feb 3, 2023
d976836
Introduce a library for the account contract SDK.
dmkozh Feb 3, 2023
40b5b95
Cargo update.
dmkozh Feb 3, 2023
60a6dbd
!fixup doctest fix
dmkozh Feb 3, 2023
96ecc26
Fix cfg() on reject_err, make escalate_error_to_panic empty, add comm…
graydon Feb 3, 2023
c339bcd
!fixup Remove unnecessary dependency
dmkozh Feb 3, 2023
b04fa72
!fixup Remove soroban-auth README.md
dmkozh Feb 3, 2023
e9d3628
!fixup Update rust version for soroban-account
dmkozh Feb 3, 2023
b41c63a
Print account id strkeys in non-Wasm mode.
dmkozh Feb 3, 2023
bd8c762
Merge branch 'auth_next_impl' of https://github.com/dmkozh/rs-soroban…
dmkozh Feb 3, 2023
e713c4a
!fixup Updated docstring
dmkozh Feb 3, 2023
62bd6a2
!fixup Move Address test utils to testutils.rs
dmkozh Feb 3, 2023
94d225a
Use strkey for contract addresses.
dmkozh Feb 4, 2023
09ef712
Use a single `register_stellar_asset_contract` helper for registering…
dmkozh Feb 4, 2023
e7de2df
!fixup doc update
dmkozh Feb 4, 2023
571bf7e
!fixup Renamed soroban-account -> soroban-auth
dmkozh Feb 4, 2023
7589716
!fixup Leave only the Address trait in testutils
dmkozh Feb 4, 2023
7a81494
!fixup doctest fix
dmkozh Feb 4, 2023
1ae8ac0
try making cfgs consistent with others
leighmcculloch Feb 4, 2023
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
42 changes: 24 additions & 18 deletions Cargo.lock

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

13 changes: 6 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
resolver = "2"

members = [
"soroban-sdk",
"soroban-auth",
"soroban-sdk",
"soroban-sdk-macros",
"soroban-spec",
"soroban-ledger-snapshot",
Expand Down Expand Up @@ -37,27 +37,26 @@ soroban-token-spec = { version = "0.4.3", path = "soroban-token-spec" }
[workspace.dependencies.soroban-env-common]
version = "0.0.12"
git = "https://github.com/stellar/rs-soroban-env"
rev = "96ea6dcbb2a57208b2ba1dc202490b92d4ba537e"
rev = "fc611e5cdd50bcc3113ff1ccb4a09d3ad0dc68f4"

[workspace.dependencies.soroban-env-guest]
version = "0.0.12"
git = "https://github.com/stellar/rs-soroban-env"
rev = "96ea6dcbb2a57208b2ba1dc202490b92d4ba537e"
rev = "fc611e5cdd50bcc3113ff1ccb4a09d3ad0dc68f4"

[workspace.dependencies.soroban-env-host]
version = "0.0.12"
git = "https://github.com/stellar/rs-soroban-env"
rev = "96ea6dcbb2a57208b2ba1dc202490b92d4ba537e"
rev = "fc611e5cdd50bcc3113ff1ccb4a09d3ad0dc68f4"

[workspace.dependencies.stellar-strkey]
version = "0.0.6"
version = "0.0.7"
git = "https://github.com/stellar/rs-stellar-strkey"
rev = "5e582a8b"

[workspace.dependencies.stellar-xdr]
version = "0.0.12"
git = "https://github.com/stellar/rs-stellar-xdr"
rev = "154e07e"
rev = "763b104d0eb0147c0be94620254c223677fd4b7b"
default-features = false

# [patch."https://github.com/stellar/rs-soroban-env"]
Expand Down
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ CARGO_TEST_SUBCOMMAND:=$(shell type -p cargo-nextest >/dev/null && echo nextest
CARGO_DOC_ARGS?=--open

doc: fmt
cargo test --doc -p soroban-sdk -p soroban-sdk-macros -p soroban-auth --features testutils
cargo +nightly doc -p soroban-sdk -p soroban-auth --no-deps --features docs,testutils $(CARGO_DOC_ARGS)
cargo test --doc -p soroban-sdk -p soroban-sdk-macros --features testutils
cargo +nightly doc -p soroban-sdk --no-deps --features docs,testutils $(CARGO_DOC_ARGS)

test: fmt build
cargo hack --feature-powerset --ignore-unknown-features --features testutils --exclude-features docs $(CARGO_TEST_SUBCOMMAND)
Expand All @@ -29,11 +29,6 @@ readme:
&& cat ../target/doc/soroban_sdk.json \
| jq -r '.index[.root].docs' \
> README.md
cd soroban-auth \
&& cargo +nightly rustdoc -- -Zunstable-options -wjson \
&& cat ../target/doc/soroban_auth.json \
| jq -r '.index[.root].docs' \
> README.md

watch:
cargo watch --clear --watch-when-idle --shell '$(MAKE)'
Expand Down
18 changes: 2 additions & 16 deletions soroban-auth/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "soroban-auth"
description = "Soroban authorization sdk"
description = "Soroban auth SDK."
homepage = "https://github.com/stellar/rs-soroban-sdk"
repository = "https://github.com/stellar/rs-soroban-sdk"
authors = ["Stellar Development Foundation <[email protected]>"]
readme = "README.md"
readme = "../README.md"
license = "Apache-2.0"
version.workspace = true
edition = "2021"
Expand All @@ -13,22 +13,8 @@ rust-version = "1.67"
[lib]
doctest = false

[features]
testutils = ["soroban-sdk/testutils", "dep:ed25519-dalek", "dep:rand"]
docs = []

[dependencies]
soroban-sdk = { workspace = true }

[target.'cfg(not(target_family="wasm"))'.dependencies]
ed25519-dalek = { version = "1.0.1", optional = true }
rand = { version = "0.7.3", optional = true }

[dev_dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
stellar-strkey = { workspace = true }
ed25519-dalek = { version = "1.0.1" }
rand = { version = "0.7.3" }

[package.metadata.docs.rs]
all-features = true
15 changes: 0 additions & 15 deletions soroban-auth/README.md

This file was deleted.

Loading