updates marine, marine-sqlite

This commit is contained in:
boneyard93501
2021-06-16 17:06:49 -05:00
parent 23874922ba
commit 61b1ba3992
8 changed files with 45 additions and 45 deletions

View File

@@ -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"

View File

@@ -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 (

View File

@@ -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;

View File

@@ -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