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

feat!: Incorporate upstream breaking changes and update stellar deps #12

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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.lock

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

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repository = "https://github.com/stellar/soroban-rpc"
authors = ["Stellar Development Foundation <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
version = "21.4.0"
version = "22.0.0-rc.1"
edition = "2021"
rust-version = "1.74.0"
autobins = false
Expand All @@ -20,7 +20,6 @@ crate-type = ["rlib"]
stellar-strkey = "0.0.9"
stellar-xdr = { version = "=22.0.0-rc.1.1", features = ["curr", "std", "serde", "base64"] }


termcolor = "1.1.3"
termcolor_output = "1.0.1"
clap = { version = "4.1.8", features = ["derive"] }
Expand Down
23 changes: 23 additions & 0 deletions src/fixtures/curr_simulation_response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"jsonrpc": "2.0",
"id": 8675309,
"result": {
"transactionData": "AAAAAAAAAAIAAAAGAAAAASxiqIvl5E+k9crKi8h1V87Ud/UtOOfWNftOQUbizvLRAAAAFAAAAAEAAAAHtG6wcUh/yelE4Mo5xb8iCSWybOS5ZuiiNrZ/Ps7wmesAAAAAAGYCGQAAHmwAAAAAAAAAAAABaUc=",
"minResourceFee": "92487",
"events": [
"AAAAAQAAAAAAAAAAAAAAAgAAAAAAAAADAAAADwAAAAdmbl9jYWxsAAAAAA0AAAAgLGKoi+XkT6T1ysqLyHVXztR39S0459Y1+05BRuLO8tEAAAAPAAAACWdldF9hZG1pbgAAAAAAAAE=",
"AAAAAQAAAAAAAAABLGKoi+XkT6T1ysqLyHVXztR39S0459Y1+05BRuLO8tEAAAACAAAAAAAAAAIAAAAPAAAACWZuX3JldHVybgAAAAAAAA8AAAAJZ2V0X2FkbWluAAAAAAAAEgAAAAAAAAAAZhscwQWxblWcuoqgH9hR7LnJ7IEonYTcPa9GWIRKJrY="
],
"results": [
{
"auth": [],
"xdr": "AAAAEgAAAAAAAAAAZhscwQWxblWcuoqgH9hR7LnJ7IEonYTcPa9GWIRKJrY="
}
],
"cost": {
"cpuInsns": "3685209",
"memBytes": "1751351"
},
"latestLedger": 53795023
}
}
40 changes: 40 additions & 0 deletions src/fixtures/curr_transaction_response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"jsonrpc": "2.0",
"id": 8675309,
"result": {
"status": "SUCCESS",
"latestLedger": 53794558,
"latestLedgerCloseTime": "1728063258",
"oldestLedger": 53777279,
"oldestLedgerCloseTime": "1727963878",
"applicationOrder": 251,
"envelopeXdr": "AAAAAgAAAABmGxzBBbFuVZy6iqAf2FHsucnsgSidhNw9r0ZYhEomtgAD0HkDDjo/AABLOQAAAAEAAAAAAAAAAAAAAABnACeAAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABLGKoi+XkT6T1ysqLyHVXztR39S0459Y1+05BRuLO8tEAAAAJc2V0X3ByaWNlAAAAAAAAAwAAAAMAAAABAAAAAQAAAAkAAAAAAAAAAAAAAAJUC+QAAAAAAQAAAAAAAAAAAAAAASxiqIvl5E+k9crKi8h1V87Ud/UtOOfWNftOQUbizvLRAAAACXNldF9wcmljZQAAAAAAAAMAAAADAAAAAQAAAAEAAAAJAAAAAAAAAAAAAAACVAvkAAAAAAAAAAABAAAAAAAAAAIAAAAGAAAAASxiqIvl5E+k9crKi8h1V87Ud/UtOOfWNftOQUbizvLRAAAAFAAAAAEAAAAHtG6wcUh/yelE4Mo5xb8iCSWybOS5Z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