Skip to content

Commit ae617d5

Browse files
authored
chore: updates for ipc#574 (#238)
Changes for recallnet/ipc#574 Signed-off-by: Sander Pick <[email protected]>
1 parent c26283f commit ae617d5

File tree

5 files changed

+45
-54
lines changed

5 files changed

+45
-54
lines changed

Cargo.lock

+30-38
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+11-11
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,18 @@ tendermint-rpc = { version = "0.31.1", features = [
7171
fvm_shared = "4.4.0"
7272
fvm_ipld_encoding = "0.4.0"
7373

74-
fendermint_actor_blobs_shared = { git = "https://github.com/recallnet/ipc.git", rev = "963ec53b1f45e6ddda135d66b3358f3713c8f6cd" }
75-
fendermint_actor_bucket = { git = "https://github.com/recallnet/ipc.git", rev = "963ec53b1f45e6ddda135d66b3358f3713c8f6cd" }
76-
fendermint_actor_recall_config_shared = { git = "https://github.com/recallnet/ipc.git", rev = "963ec53b1f45e6ddda135d66b3358f3713c8f6cd" }
77-
fendermint_actor_machine = { git = "https://github.com/recallnet/ipc.git", rev = "963ec53b1f45e6ddda135d66b3358f3713c8f6cd" }
78-
fendermint_actor_timehub = { git = "https://github.com/recallnet/ipc.git", rev = "963ec53b1f45e6ddda135d66b3358f3713c8f6cd" }
79-
fendermint_crypto = { git = "https://github.com/recallnet/ipc.git", rev = "963ec53b1f45e6ddda135d66b3358f3713c8f6cd" }
80-
fendermint_eth_api = { git = "https://github.com/recallnet/ipc.git", rev = "963ec53b1f45e6ddda135d66b3358f3713c8f6cd" }
81-
fendermint_vm_actor_interface = { git = "https://github.com/recallnet/ipc.git", rev = "963ec53b1f45e6ddda135d66b3358f3713c8f6cd" }
82-
fendermint_vm_message = { git = "https://github.com/recallnet/ipc.git", rev = "963ec53b1f45e6ddda135d66b3358f3713c8f6cd" }
74+
fendermint_actor_blobs_shared = { git = "https://github.com/recallnet/ipc.git", rev = "aab81e6d14bd7be712293ffbe3631c3cb633d189" }
75+
fendermint_actor_bucket = { git = "https://github.com/recallnet/ipc.git", rev = "aab81e6d14bd7be712293ffbe3631c3cb633d189" }
76+
fendermint_actor_recall_config_shared = { git = "https://github.com/recallnet/ipc.git", rev = "aab81e6d14bd7be712293ffbe3631c3cb633d189" }
77+
fendermint_actor_machine = { git = "https://github.com/recallnet/ipc.git", rev = "aab81e6d14bd7be712293ffbe3631c3cb633d189" }
78+
fendermint_actor_timehub = { git = "https://github.com/recallnet/ipc.git", rev = "aab81e6d14bd7be712293ffbe3631c3cb633d189" }
79+
fendermint_crypto = { git = "https://github.com/recallnet/ipc.git", rev = "aab81e6d14bd7be712293ffbe3631c3cb633d189" }
80+
fendermint_eth_api = { git = "https://github.com/recallnet/ipc.git", rev = "aab81e6d14bd7be712293ffbe3631c3cb633d189" }
81+
fendermint_vm_actor_interface = { git = "https://github.com/recallnet/ipc.git", rev = "aab81e6d14bd7be712293ffbe3631c3cb633d189" }
82+
fendermint_vm_message = { git = "https://github.com/recallnet/ipc.git", rev = "aab81e6d14bd7be712293ffbe3631c3cb633d189" }
8383

84-
ipc_actors_abis = { git = "https://github.com/recallnet/ipc.git", rev = "963ec53b1f45e6ddda135d66b3358f3713c8f6cd" }
85-
ipc-api = { git = "https://github.com/recallnet/ipc.git", rev = "963ec53b1f45e6ddda135d66b3358f3713c8f6cd" }
84+
ipc_actors_abis = { git = "https://github.com/recallnet/ipc.git", rev = "aab81e6d14bd7be712293ffbe3631c3cb633d189" }
85+
ipc-api = { git = "https://github.com/recallnet/ipc.git", rev = "aab81e6d14bd7be712293ffbe3631c3cb633d189" }
8686

8787
# Use below when working locally on ipc and this repo simultaneously.
8888
# Assumes the ipc checkout is in a sibling directory with the same name.

cli/src/machine/bucket.rs

+1
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ fn object_state_to_json(object: &ObjectState) -> Value {
473473
let mut val = json!({
474474
"hash": object.hash.to_string(),
475475
"size": object.size,
476+
"expiry": object.expiry,
476477
});
477478
let obj = val.as_object_mut().unwrap();
478479
if !object.metadata.is_empty() {

img/architecture.png

-338 KB
Binary file not shown.

sdk/src/credits.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use recall_provider::{
2121
query::{FvmQueryHeight, QueryProvider},
2222
response::{decode_bytes, decode_empty},
2323
tx::{BroadcastMode, DeliverTx, TxResult},
24-
util::{get_eth_address, parse_address},
24+
util::get_eth_address,
2525
{Client, Provider},
2626
};
2727
use recall_signer::Signer;
@@ -122,17 +122,15 @@ impl From<fendermint_actor_blobs_shared::state::AccountInfo> for Balance {
122122
.approvals_to
123123
.into_iter()
124124
.map(|(k, v)| {
125-
let a = parse_address(&k).expect("failed to parse address from string");
126-
let a = get_eth_address(a).expect("failed to get ethereum address");
125+
let a = get_eth_address(k).expect("failed to get ethereum address");
127126
(a.encode_hex_with_prefix(), v.into())
128127
})
129128
.collect(),
130129
approvals_from: v
131130
.approvals_from
132131
.into_iter()
133132
.map(|(k, v)| {
134-
let a = parse_address(&k).expect("failed to parse address from string");
135-
let a = get_eth_address(a).expect("failed to get ethereum address");
133+
let a = get_eth_address(k).expect("failed to get ethereum address");
136134
(a.encode_hex_with_prefix(), v.into())
137135
})
138136
.collect(),

0 commit comments

Comments
 (0)