Skip to content

Commit a284918

Browse files
dmkozhleighmccullochmootz12
authored
Update SDK to p27 and add CAP-71 auth delegation support. (#1896)
### What Update SDK to p27 and add CAP-71 auth delegation support. ### Why Adapting to p27 changes. ### Known limitations I haven't added targeted tests for CAP-71 functions, as these are just simple wrappers over host functions. I think a full-fledged example in soroban-examples would be more appropriate. --------- Co-authored-by: Leigh <351529+leighmcculloch@users.noreply.github.com> Co-authored-by: mootz12 <mootz12@protonmail.com>
1 parent a938dd5 commit a284918

247 files changed

Lines changed: 1018 additions & 324 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,28 @@ soroban-token-spec = { version = "26.1.0", path = "soroban-token-spec" }
3030
stellar-asset-spec = { version = "26.1.0", path = "stellar-asset-spec" }
3131

3232
[workspace.dependencies.soroban-env-common]
33-
version = "=26.1.3"
34-
# git = "https://github.com/stellar/rs-soroban-env"
35-
# rev = "c0e58f94ff2983a09440cef6a54253349fd3c4db"
33+
version = "=27.0.0"
34+
#git = "https://github.com/stellar/rs-soroban-env"
35+
#rev = "7fb0a840812fe8921bb48bebf7b4aa7160467ec8"
3636

3737
[workspace.dependencies.soroban-env-guest]
38-
version = "=26.1.3"
39-
# git = "https://github.com/stellar/rs-soroban-env"
40-
# rev = "c0e58f94ff2983a09440cef6a54253349fd3c4db"
38+
version = "=27.0.0"
39+
#git = "https://github.com/stellar/rs-soroban-env"
40+
#rev = "7fb0a840812fe8921bb48bebf7b4aa7160467ec8"
4141

4242
[workspace.dependencies.soroban-env-host]
43-
version = "=26.1.3"
44-
# git = "https://github.com/stellar/rs-soroban-env"
45-
# rev = "c0e58f94ff2983a09440cef6a54253349fd3c4db"
43+
version = "=27.0.0"
44+
#git = "https://github.com/stellar/rs-soroban-env"
45+
#rev = "7fb0a840812fe8921bb48bebf7b4aa7160467ec8"
4646

4747
[workspace.dependencies.stellar-strkey]
4848
version = "=0.0.16"
4949

5050
[workspace.dependencies.stellar-xdr]
51-
version = "=26.0.1"
52-
# git = "https://github.com/stellar/rs-stellar-xdr"
53-
# rev = "dd7a165a193126fd37a751d867bee1cb8f3b55a6"
51+
version = "=27.0.0"
52+
#git = "https://github.com/stellar/rs-stellar-xdr"
53+
#rev = "a749b69b3471aec0c20ec431b0297f3414d66421"
5454
default-features = false
55-
features = ["curr"]
5655

5756
#[patch.crates-io]
5857
#soroban-env-common = { path = "../rs-soroban-env/soroban-env-common" }

soroban-meta/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ edition = "2021"
1111
rust-version.workspace = true
1212

1313
[dependencies]
14-
stellar-xdr = { workspace = true, features = ["curr", "std"] }
14+
stellar-xdr = { workspace = true, features = ["std"] }
1515
thiserror = "1.0.32"
1616
wasmparser = "0.116.1"

soroban-meta/src/read.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::io::Cursor;
22

3-
use stellar_xdr::curr as stellar_xdr;
43
use stellar_xdr::{Limited, Limits, ReadXdr, ScMetaEntry};
54
use wasmparser::{BinaryReaderError, Parser, Payload};
65

soroban-meta/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::read;
22
use std::fs;
3-
use stellar_xdr::curr::{Limits, ScMetaEntry, ScMetaV0, StringM, WriteXdr};
3+
use stellar_xdr::{Limits, ScMetaEntry, ScMetaV0, StringM, WriteXdr};
44

55
#[test]
66
fn test_from_wasm() {

soroban-sdk-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ doctest = false
1818
soroban-spec = { workspace = true }
1919
soroban-spec-rust = { workspace = true }
2020
soroban-env-common = { workspace = true }
21-
stellar-xdr = { workspace = true, features = ["curr", "std"] }
21+
stellar-xdr = { workspace = true, features = ["std"] }
2222
syn = {version="2.0.77",features=["full"]}
2323
quote = "1.0"
2424
proc-macro2 = "1.0"

soroban-sdk-macros/src/derive_enum.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use syn::{
66
Visibility,
77
};
88

9-
use stellar_xdr::curr as stellar_xdr;
109
use stellar_xdr::{
1110
Error as XdrError, ScSpecEntry, ScSpecTypeDef, ScSpecUdtUnionCaseTupleV0, ScSpecUdtUnionCaseV0,
1211
ScSpecUdtUnionCaseVoidV0, ScSpecUdtUnionV0, StringM, VecM, WriteXdr, SCSYMBOL_LIMIT,

soroban-sdk-macros/src/derive_enum_int.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use itertools::MultiUnzip;
22
use proc_macro2::TokenStream as TokenStream2;
33
use quote::{format_ident, quote};
4-
use stellar_xdr::curr as stellar_xdr;
54
use stellar_xdr::{ScSpecUdtEnumV0, StringM};
65
use syn::{
76
ext::IdentExt as _, spanned::Spanned, Attribute, DataEnum, Error, ExprLit, Ident, Lit, Path,

soroban-sdk-macros/src/derive_error_enum_int.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use itertools::MultiUnzip;
22
use proc_macro2::TokenStream as TokenStream2;
33
use quote::{format_ident, quote};
4-
use stellar_xdr::curr as stellar_xdr;
54
use stellar_xdr::{ScSpecEntry, ScSpecUdtErrorEnumCaseV0, ScSpecUdtErrorEnumV0, StringM, WriteXdr};
65
use syn::{
76
ext::IdentExt as _, spanned::Spanned, Attribute, DataEnum, Error, ExprLit, Ident, Lit, Path,

soroban-sdk-macros/src/derive_event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use heck::ToSnakeCase;
77
use proc_macro2::Span;
88
use proc_macro2::TokenStream as TokenStream2;
99
use quote::{format_ident, quote};
10-
use stellar_xdr::curr::{
10+
use stellar_xdr::{
1111
ScSpecEntry, ScSpecEventDataFormat, ScSpecEventParamLocationV0, ScSpecEventParamV0,
1212
ScSpecEventV0, ScSymbol, StringM, WriteXdr,
1313
};

0 commit comments

Comments
 (0)