mirror of
https://github.com/fluencelabs/examples
synced 2025-06-27 00:31:34 +00:00
update crate references, bump version
This commit is contained in:
@ -218,7 +218,7 @@ That's it !!
|
||||
While there are no hard and fast rules to determine optional service granularity, [theory](https://onlinelibrary.wiley.com/doi/full/10.1002/spe.2869) and common sense do help. Let's look at what could be a fine-grained, self-contained service: A service that could generate the [method id](https://docs.soliditylang.org/en/latest/abi-spec.html) for Ethereum smart contract functions. A simple method id [generator](facade/src/eth_hashers.rs) may look like this:
|
||||
|
||||
```rust
|
||||
use fluence::fce;
|
||||
use marine_rs_sdk::fce;
|
||||
use tiny_keccak::Sha3;
|
||||
|
||||
#[fce]
|
||||
|
@ -10,5 +10,5 @@ path = "src/main.rs"
|
||||
name = "curl_adapter"
|
||||
|
||||
[dependencies]
|
||||
fluence = { version = "=0.6.9", features = ["logger"]}
|
||||
marine-rs-sdk = { version = "=0.6.10", features = ["logger"]}
|
||||
log = "0.4.8"
|
||||
|
@ -16,10 +16,10 @@
|
||||
|
||||
#![allow(improper_ctypes)]
|
||||
|
||||
use fluence::marine;
|
||||
use fluence::module_manifest;
|
||||
use fluence::MountedBinaryResult;
|
||||
use fluence::WasmLoggerBuilder;
|
||||
use marine_rs_sdk::marine;
|
||||
use marine_rs_sdk::module_manifest;
|
||||
use marine_rs_sdk::MountedBinaryResult;
|
||||
use marine_rs_sdk::WasmLoggerBuilder;
|
||||
|
||||
module_manifest!();
|
||||
|
||||
|
@ -14,7 +14,7 @@ path = "src/main.rs"
|
||||
[dependencies]
|
||||
serde = {version = "1.0.118", features = ["derive"] }
|
||||
serde_json = "1.0.64"
|
||||
fluence = { version = "=0.6.9", features = ["logger"]}
|
||||
marine-rs-sdk = { version = "=0.6.10", features = ["logger"]}
|
||||
log = "0.4.8"
|
||||
chrono = "0.4.19"
|
||||
ethereum-types = "0.11.0"
|
||||
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
use fluence::marine;
|
||||
use marine_rs_sdk::marine;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json;
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
use fluence::marine;
|
||||
use marine_rs_sdk::marine;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json;
|
||||
|
||||
|
@ -19,7 +19,7 @@ use crate::eth_utils::{check_response_string, get_nonce, BLOCK_NUMBER_TAGS};
|
||||
use crate::fce_results::JsonRpcResult;
|
||||
use crate::jsonrpc_helpers::{batch, Request};
|
||||
use chrono::Utc;
|
||||
use fluence::marine;
|
||||
use marine_rs_sdk::marine;
|
||||
use serde::{Deserialize, Deserializer, Serialize};
|
||||
use serde_json;
|
||||
use serde_json::Value;
|
||||
|
@ -18,7 +18,7 @@ use crate::eth_calls::{eth_get_balance, eth_get_tx_by_hash};
|
||||
use crate::eth_filters::{get_filter_changes, new_pending_tx_filter, uninstall_filter};
|
||||
use crate::eth_utils::wei_to_eth;
|
||||
use crate::fce_results::TestResult;
|
||||
use fluence::marine;
|
||||
use marine_rs_sdk::marine;
|
||||
|
||||
#[marine]
|
||||
fn test_eth_get_balance_good(url: String) -> TestResult {
|
||||
|
@ -18,7 +18,7 @@ use crate::eth_calls::{eth_get_balance, eth_get_tx_by_hash};
|
||||
use crate::eth_filters::{get_filter_changes, new_pending_tx_filter, uninstall_filter};
|
||||
use crate::eth_utils::wei_to_eth;
|
||||
use crate::fce_results::TestResult;
|
||||
use fluence::marine;
|
||||
use marine_rs_sdk::marine;
|
||||
use serde_json;
|
||||
use serde_json::Value;
|
||||
|
||||
|
@ -19,7 +19,7 @@ use crate::eth_utils::{check_response_string, get_nonce};
|
||||
use crate::fce_results::JsonRpcResult;
|
||||
use crate::jsonrpc_helpers::Request;
|
||||
use crate::jsonrpc_helpers::JSON_RPC;
|
||||
use fluence::marine;
|
||||
use marine_rs_sdk::marine;
|
||||
use serde_json::Value;
|
||||
|
||||
/// see:
|
||||
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
use fluence::marine;
|
||||
use marine_rs_sdk::marine;
|
||||
use tiny_keccak::{Hasher, Keccak};
|
||||
|
||||
#[marine]
|
||||
|
@ -1,4 +1,4 @@
|
||||
use fluence::marine;
|
||||
use marine_rs_sdk::marine;
|
||||
|
||||
#[marine]
|
||||
pub fn eth_type_test() {
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
use crate::jsonrpc_helpers::JSON_RPC;
|
||||
use crate::Result;
|
||||
use fluence::marine;
|
||||
use marine_rs_sdk::marine;
|
||||
use serde_json::Value;
|
||||
|
||||
#[marine]
|
||||
|
@ -22,10 +22,10 @@
|
||||
unused_mut
|
||||
)]
|
||||
|
||||
use fluence::marine;
|
||||
use fluence::module_manifest;
|
||||
use fluence::MountedBinaryResult;
|
||||
use fluence::WasmLoggerBuilder;
|
||||
use marine_rs_sdk::marine;
|
||||
use marine_rs_sdk::module_manifest;
|
||||
use marine_rs_sdk::MountedBinaryResult;
|
||||
use marine_rs_sdk::WasmLoggerBuilder;
|
||||
|
||||
mod data_processing;
|
||||
mod eth_calls;
|
||||
|
Reference in New Issue
Block a user