Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
20 changes: 10 additions & 10 deletions Cargo.lock

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

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ soroban-token-spec = { version = "26.0.0-rc.1", path = "soroban-token-spec" }
stellar-asset-spec = { version = "26.0.0-rc.1", path = "stellar-asset-spec" }

[workspace.dependencies.soroban-env-common]
version = "=26.0.1"
version = "=26.1.2"
# git = "https://github.com/stellar/rs-soroban-env"
# rev = "f4d7b3299df8fc19e92769d0a26be2d032b78ccb"
# rev = "c0e58f94ff2983a09440cef6a54253349fd3c4db"

[workspace.dependencies.soroban-env-guest]
version = "=26.0.1"
version = "=26.1.2"
# git = "https://github.com/stellar/rs-soroban-env"
# rev = "f4d7b3299df8fc19e92769d0a26be2d032b78ccb"
# rev = "c0e58f94ff2983a09440cef6a54253349fd3c4db"

[workspace.dependencies.soroban-env-host]
version = "=26.0.1"
version = "=26.1.2"
# git = "https://github.com/stellar/rs-soroban-env"
# rev = "f4d7b3299df8fc19e92769d0a26be2d032b78ccb"
# rev = "c0e58f94ff2983a09440cef6a54253349fd3c4db"

[workspace.dependencies.stellar-strkey]
version = "=0.0.16"
Expand Down
8 changes: 4 additions & 4 deletions soroban-sdk/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ use crate::{
#[cfg(any(test, feature = "testutils"))]
use core::{cell::RefCell, cell::RefMut};
#[cfg(any(test, feature = "testutils"))]
use internal::{ContractInvocationEvent, InvocationResourceLimits};
use internal::{InvocationEvent, InvocationResourceLimits};
#[cfg(any(test, feature = "testutils"))]
use soroban_ledger_snapshot::LedgerSnapshot;
#[cfg(any(test, feature = "testutils"))]
Expand Down Expand Up @@ -680,10 +680,10 @@ impl Env {
let auth_snapshot = Rc::new(RefCell::new(AuthSnapshot::default()));
let auth_snapshot_in_hook = auth_snapshot.clone();
env_impl
.set_top_contract_invocation_hook(Some(Rc::new(move |host, event| {
.set_invocation_hook(Some(Rc::new(move |host, event| {
match event {
ContractInvocationEvent::Start => {}
ContractInvocationEvent::Finish => {
InvocationEvent::Start => {}
InvocationEvent::Finish => {
let new_auths = host
.get_authenticated_authorizations()
// If an error occurs getting the authenticated authorizations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 0
},
"auth": [
[],
[
[
"GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEGWF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,30 @@
"nonce": 0,
"mux_id": 0
},
"auth": [],
"auth": [
[
[
"CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
{
"function": {
"create_contract_v2_host_fn": {
"contract_id_preimage": {
"address": {
"address": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
"salt": "0000000000000000000000000000000000000000000000000000000000000000"
}
},
"executable": {
"wasm": "082ef6678547237e331161a8487a2eb11aa037114fde60f36dae3455ad72b4d3"
},
"constructor_args": []
}
},
"sub_invocations": []
}
]
]
],
"ledger": {
"protocol_version": 26,
"sequence_number": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@
"mux_id": 0
},
"auth": [
[
[
"CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
{
"function": {
"create_contract_v2_host_fn": {
"contract_id_preimage": {
"address": {
"address": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
"salt": "0000000000000000000000000000000000000000000000000000000000000000"
}
},
"executable": {
"wasm": "fd41d2f77920ca07b723e05f732a82db4c2f6459eb2be6b40c4f225434569550"
},
"constructor_args": []
}
},
"sub_invocations": []
}
]
],
[]
],
"ledger": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@
"mux_id": 0
},
"auth": [
[
[
"CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
{
"function": {
"create_contract_v2_host_fn": {
"contract_id_preimage": {
"address": {
"address": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
"salt": "0000000000000000000000000000000000000000000000000000000000000000"
}
},
"executable": {
"wasm": "fd41d2f77920ca07b723e05f732a82db4c2f6459eb2be6b40c4f225434569550"
},
"constructor_args": []
}
},
"sub_invocations": []
}
]
],
[],
[],
[],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@
"mux_id": 0
},
"auth": [
[
[
"CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
{
"function": {
"create_contract_v2_host_fn": {
"contract_id_preimage": {
"address": {
"address": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
"salt": "0000000000000000000000000000000000000000000000000000000000000000"
}
},
"executable": {
"wasm": "1d9f19d20f3d2932f1753ac486e0126db2ca1df4d58ed6ac0c26be6793dc018d"
},
"constructor_args": []
}
},
"sub_invocations": []
}
]
],
[],
[],
[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 0
},
"auth": [
[],
[
[
"GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEGWF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 0
},
"auth": [
[],
[
[
"GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEGWF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 0
},
"auth": [
[],
[
[
"GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEGWF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 0
},
"auth": [
[],
[],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 0
},
"auth": [
[],
[],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 0
},
"auth": [
[],
[],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 0
},
"auth": [
[],
[],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 0
},
"auth": [
[],
[],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 1
},
"auth": [
[],
[],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 0
},
"auth": [
[],
[],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"mux_id": 0
},
"auth": [
[],
[],
[],
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@
"mux_id": 0
},
"auth": [
[
[
"CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
{
"function": {
"create_contract_v2_host_fn": {
"contract_id_preimage": {
"address": {
"address": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
"salt": "0000000000000000000000000000000000000000000000000000000000000000"
}
},
"executable": {
"wasm": "83dbf55a7f436f851e8c0e8d55d921302138d98960c36c6ff1b7a9d3df3b6936"
},
"constructor_args": []
}
},
"sub_invocations": []
}
]
],
[],
[]
],
Expand Down
22 changes: 22 additions & 0 deletions tests/tuples/test_snapshots/test/test_wasm_tuple1.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@
"mux_id": 0
},
"auth": [
[
[
"CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
{
"function": {
"create_contract_v2_host_fn": {
"contract_id_preimage": {
"address": {
"address": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
"salt": "0000000000000000000000000000000000000000000000000000000000000000"
}
},
"executable": {
"wasm": "158eb6314bed45b7a37db469348779866b3b33920288261662effbbeed2f8cd2"
},
"constructor_args": []
}
},
"sub_invocations": []
}
]
],
[]
],
"ledger": {
Expand Down
Loading
Loading