Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Colin/portfolio swap #269

Merged
merged 20 commits into from
May 8, 2023
Merged
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
124 changes: 62 additions & 62 deletions crates/bindings/src/assembly_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,38 +117,38 @@ pub mod assembly_lib {
34,
18,
32,
188,
199,
215,
32,
232,
12,
180,
86,
160,
173,
44,
133,
169,
211,
43,
207,
162,
221,
154,
135,
206,
210,
180,
236,
136,
218,
38,
188,
239,
168,
145,
243,
195,
116,
169,
33,
125,
249,
227,
113,
3,
77,
234,
16,
201,
117,
141,
2,
202,
0,
229,
151,
175,
57,
82,
10,
35,
39,
170,
2,
53,
235,
100,
115,
111,
Expand All @@ -157,7 +157,7 @@ pub mod assembly_lib {
67,
0,
8,
13,
19,
0,
51,
];
Expand Down Expand Up @@ -209,38 +209,38 @@ pub mod assembly_lib {
34,
18,
32,
188,
199,
215,
32,
232,
12,
180,
86,
160,
173,
44,
133,
169,
211,
43,
207,
162,
221,
154,
135,
206,
210,
180,
236,
136,
218,
38,
188,
239,
168,
145,
243,
195,
116,
169,
33,
125,
249,
227,
113,
3,
77,
234,
16,
201,
117,
141,
2,
202,
0,
229,
151,
175,
57,
82,
10,
35,
39,
170,
2,
53,
235,
100,
115,
111,
Expand All @@ -249,7 +249,7 @@ pub mod assembly_lib {
67,
0,
8,
13,
19,
0,
51,
];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub use fvm_lib::*;
pub use bisection_lib::*;
/// This module was auto-generated with ethers-rs Abigen.
/// More information at: <https://github.com/gakonst/ethers-rs>
#[allow(
Expand All @@ -9,39 +9,39 @@ pub use fvm_lib::*;
dead_code,
non_camel_case_types
)]
pub mod fvm_lib {
pub mod bisection_lib {
#[rustfmt::skip]
const __ABI: &str = "[]";
///The parsed JSON ABI of the contract.
pub static FVMLIB_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> =
pub static BISECTIONLIB_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> =
::ethers::contract::Lazy::new(|| {
::ethers::core::utils::__serde_json::from_str(__ABI).expect("ABI is always valid")
});
pub struct FVMLib<M>(::ethers::contract::Contract<M>);
impl<M> ::core::clone::Clone for FVMLib<M> {
pub struct BisectionLib<M>(::ethers::contract::Contract<M>);
impl<M> ::core::clone::Clone for BisectionLib<M> {
fn clone(&self) -> Self {
Self(::core::clone::Clone::clone(&self.0))
}
}
impl<M> ::core::ops::Deref for FVMLib<M> {
impl<M> ::core::ops::Deref for BisectionLib<M> {
type Target = ::ethers::contract::Contract<M>;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<M> ::core::ops::DerefMut for FVMLib<M> {
impl<M> ::core::ops::DerefMut for BisectionLib<M> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl<M> ::core::fmt::Debug for FVMLib<M> {
impl<M> ::core::fmt::Debug for BisectionLib<M> {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple(stringify!(FVMLib))
f.debug_tuple(stringify!(BisectionLib))
.field(&self.address())
.finish()
}
}
impl<M: ::ethers::providers::Middleware> FVMLib<M> {
impl<M: ::ethers::providers::Middleware> BisectionLib<M> {
/// Creates a new contract instance with the specified `ethers` client at
/// `address`. The contract derefs to a `ethers::Contract` object.
pub fn new<T: Into<::ethers::core::types::Address>>(
Expand All @@ -50,12 +50,12 @@ pub mod fvm_lib {
) -> Self {
Self(::ethers::contract::Contract::new(
address.into(),
FVMLIB_ABI.clone(),
BISECTIONLIB_ABI.clone(),
client,
))
}
}
impl<M: ::ethers::providers::Middleware> From<::ethers::contract::Contract<M>> for FVMLib<M> {
impl<M: ::ethers::providers::Middleware> From<::ethers::contract::Contract<M>> for BisectionLib<M> {
fn from(contract: ::ethers::contract::Contract<M>) -> Self {
Self::new(contract.address(), contract.client())
}
Expand Down
Loading