mirror of
https://github.com/fluencelabs/examples
synced 2025-07-31 00:41:56 +00:00
updates marine, marine-sqlite
This commit is contained in:
@@ -11,7 +11,7 @@ path = "src/main.rs"
|
||||
[dependencies]
|
||||
marine-rs-sdk = { version="0.6.10", features = ["logger"]}
|
||||
log = "0.4.8"
|
||||
fce-sqlite-connector = "=0.4.0"
|
||||
marine-sqlite-connector = "0.5.0"
|
||||
serde = {version = "1.0.118", features=["derive"]}
|
||||
serde_json = "1.0.64"
|
||||
once_cell = "1.4.1"
|
||||
|
@@ -13,14 +13,14 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
use fce_sqlite_connector;
|
||||
use fce_sqlite_connector::{Connection, Value};
|
||||
use marine_rs_sdk::marine;
|
||||
use marine_sqlite_connector;
|
||||
use marine_sqlite_connector::{Connection, Value};
|
||||
|
||||
use crate::auth::is_owner;
|
||||
use crate::get_connection;
|
||||
|
||||
pub fn create_table(conn: &Connection) -> std::result::Result<(), fce_sqlite_connector::Error> {
|
||||
pub fn create_table(conn: &Connection) -> std::result::Result<(), marine_sqlite_connector::Error> {
|
||||
let res = conn.execute(
|
||||
"
|
||||
create table if not exists reward_blocks (
|
||||
|
@@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
use fce_sqlite_connector;
|
||||
use fce_sqlite_connector::{Connection, State, Value};
|
||||
///, WasmLoggerBuilder};
|
||||
use fluence;
|
||||
use marine_rs_sdk::marine;
|
||||
use marine_rs_sdk::WasmLoggerBuilder;
|
||||
use marine_sqlite_connector;
|
||||
use marine_sqlite_connector::{Connection, State, Value};
|
||||
|
||||
use serde::Deserialize;
|
||||
use serde_json;
|
||||
|
@@ -2,13 +2,13 @@
|
||||
set -euo pipefail
|
||||
|
||||
# check `fcli` and `fldist` tools are installed or install them
|
||||
(command -v fce || cargo install fcli) >/dev/null
|
||||
(command -v marine || cargo install marine) >/dev/null
|
||||
(command -v fldist || npm install -g @fluencelabs/fldist) >/dev/null
|
||||
|
||||
# build .wasm
|
||||
(
|
||||
cd backend
|
||||
fce build --release
|
||||
marine build --release
|
||||
)
|
||||
|
||||
# check it .wasm was built
|
||||
|
Reference in New Issue
Block a user