A Hackathon project created by Alpha Interface team for Agri-D Food Hack

Overview

Alpha Interface

A Hackathon project created by Alpha Interface team for Agri-D Food Hack

Installation WebApp

Install Flutter on your System (this will also install Dart for you).

https://flutter.dev/docs/get-started/install

Navigate to the App folder in your IDE via the Terminal

cd .\src\frontend\alpha_interface_app\ 

Get the Packages

flutter pub get

Run the app in Chrome

flutter run -d chrome

Installation

Downloading Wasp and wasp-cli

https://wiki.iota.org/wasp/guide/chains_and_nodes/running-a-node#download-wasp

brew install rocksdb
make install

Run A Wasp node

Run A Wasp node will connecting to goshimmer using TXStream.

you can find testnet endpoint here https://wiki.iota.org/wasp/guide/chains_and_nodes/testnet#endpoints

for now we using goshimmer.sc.iota.org:5000

wasp -c ./wasp-nodes/config.json

# or

make run-wasp

Configuring wasp-cli

wasp-cli init

# Set go shimmer api and request fund
wasp-cli set goshimmer.api https://api.goshimmer.sc.iota.org
wasp-cli request-funds
wasp-cli balance

# set wasp address for a local node
wasp-cli set wasp.0.api 127.0.0.1:9090
wasp-cli set wasp.0.nanomsg 127.0.0.1:5550
wasp-cli set wasp.0.peering 127.0.0.1:4000

Setting Up a Chain

# Trust node
wasp-cli peering info
wasp-cli peering trust {PubKey} 127.0.0.1:4000
wasp-cli peering list-trusted

# Deploy The Chain
# `committee` will correspond to wasp.0, wasp.1 in `wasp-cli.json`
# `quorum` is minimum amount node
wasp-cli chain deploy --committee=0 --quorum=1 --chain=alpha-interface-chain --description="Alpha Interface Chain"

# Deposit money to the chain
wasp-cli chain deposit IOTA:10000

# Set test chain you can find chain id from `http://127.0.0.1:7000/chains`
wasp-cli set chains.testchain {chain-id}
wasp-cli set chain testchain

Build the smart contract

make build-wasm

Deploy the smart contract

make deploy-wasm

Post smart contract request

wasp-cli chain post-request alphainterface setOwner string owner string {actorID}
wasp-cli chain call-view alphainterface getOwner

wasp-cli chain list-accounts

wasp-cli chain post-request alphainterface setCrop string name string potato string country string germany --off-ledger
wasp-cli chain post-request alphainterface setCrop string name string rice string country string germany --off-ledger

wasp-cli chain call-view alphainterface getCrops
wasp-cli chain call-view alphainterface getCropsString
wasp-cli chain call-view alphainterface getCrop string cropIdx int32 0

wasp-cli chain post-request alphainterface createOrder string cropIdx int32 0 string type string short --transfer=IOTA:1000
wasp-cli chain call-view alphainterface getOrders
wasp-cli chain call-view alphainterface getOrdersString
wasp-cli chain call-view alphainterface getPositions
wasp-cli chain call-view alphainterface getPositionsString

wasp-cli chain post-request alphainterface createOrder string cropIdx int32 0 string type string long --transfer=IOTA:2000

wasp-cli chain post-request alphainterface closePosition string positionIdx int32 0
wasp-cli chain post-request alphainterface createOrder string cropIdx int32 0 string type string short --transfer=IOTA:1000

Deactivate chain

wasp-cli chain deactivate

Resources

https://wiki.iota.org/wasp/overview

You might also like...

Flutter food delivery app

Flutter food delivery app

Flutter food delivery app

Sep 27, 2022

Food App Demo for learning Flutter

foodapp_demo Food App Demo for learning Flutter Slicing UI SetState StateFull Widget LINK TUTORIAL https://www.youtube.com/watch?v=1Xd15C2k4OU&list=PL

Mar 12, 2022

Frave Food : Delivery App Built With Flutter

Frave Food : Delivery App Built With Flutter

Frave Food - Delivery App Frave Developer YouTube Channel Frave Developer Video Youtube Flutter - Frave Food Social Media Donate Requirements Google M

Dec 28, 2022

To keep track of dogs food every day in order to prevent overlaps and double feeding

This application is just a demo on how to use StreamBuilders with Firebase. Brief Description: All the people having this application, can see changes

May 4, 2022

Food Recipes App Using Flutter

food_recipes A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if

Jun 10, 2022

This is a Food delivary ui App .

This is a Food delivary ui App .

food_delivary_ui_204 Project Overview This is a food delivary app ui. I designed total 4 pages in this app and use lot of widget to make it better . H

Nov 8, 2021

Food Ordering App - Flutter UI

 Food Ordering App - Flutter UI

Food Ordering App - Flutter UI Watch it on YouTube Packages we are using: flutter_svg: link smooth_star_rating: link We design two pages one is the ho

Nov 26, 2022

Flutter food app using flutter_bloc

Flutter food app using flutter_bloc

kamelfoodapp A new Flutter project. Getting Started Why bloc? Business logic components (BLoC) allow you to separate the business logic from the UI. W

Oct 24, 2022

Selecting your favorite food

meal_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Nov 30, 2021
Owner
Jirawat Boonkumnerd
Jirawat Boonkumnerd
A Flutter app that demonstrates how to build a simple app using the SpaceX API created by the Very Good Ventures Team.

SpaceX Demo Developed with ?? by Very Good Ventures ?? A Flutter app that demonstrates how to build a simple app using the SpaceX API created by the V

Very Good Ventures 120 Dec 27, 2022
This is project for Solana hackathon.

testingproject A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started i

null 17 Dec 27, 2022
CodeFury 4.0 Submission | Team Re-member | PrepSetGO

PrepSetGo | CodeFury 4.0 Winners Submission by team Re-member that won the 1st Prize in the App Development Category on 03/10/2021. Problem Statement:

Reesha Shenoy 7 Oct 5, 2021
Instead of a simple counter app, the @FlutterDev team can provide a simple game like the one below.

Instead of a simple counter app, the @FlutterDev team can provide a simple game like the one below. Thanks to the @rive_app team for their easy-to-use animation kit.

Md. Siam 10 Oct 27, 2022
A Food DashBoard project with frontend (Flutter) & backend (Spring Boot)

food_dashboard A Food DashBoard project with frontend (Flutter) & backend (Spring Boot)

null 12 Nov 8, 2022
Iron Yard: An android cloth ironing user interface built in flutter.

Iron Yard Iron Yard: An android cloth ironing user interface built in flutter. If you found this project helpful or you learned something from the sou

null 6 Jul 31, 2021
A fully responsive BMI calculator app made using flutter and dart with beautiful minimalistic user interface design and easy to use .

BMI_Calculator_Flutter A fully responsive BMI calculator app made using flutter and dart with beautiful minimalistic user interface design and easy to

null 1 Oct 9, 2021
Curso de Flutter - Criando a interface do Facebook

facebook A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Alisson Douguerty 1 Oct 26, 2021
Realtime chat application interface using Socket.IO for Flutter GDSC event

flutter_socket_chatapp Simplet multi user chat app using Socket.IO and API calls Getting Started This project is a starting point for a Flutter applic

Soorya Senthil Rajan 1 Jun 15, 2022
The mobile version for the food dashboard tutorials

Flutter food_dashboard A serverless mobile application built with AWS and Flutter. Actually, it's just a sample application, show casing the speed at

rosius 13 Oct 18, 2022