All Projects → Xooa → samples

Xooa / samples

Licence: Apache-2.0 license
Sample smart contract apps for Xooa PaaS.

Programming Languages

go
31211 projects - #10 most used programming language
javascript
184084 projects - #8 most used programming language
solidity
1140 projects
java
68154 projects - #9 most used programming language
C#
18002 projects

Projects that are alternatives of or similar to samples

ranger-cmus
Ranger Plugin for Integration with Cmus Audio Player
Stars: ✭ 20 (+5.26%)
Mutual labels:  console
DelphiConsole
The Console class from C# ported to Delphi
Stars: ✭ 101 (+431.58%)
Mutual labels:  console
toxic
An ncurses-based Tox client
Stars: ✭ 20 (+5.26%)
Mutual labels:  console
gdb-dashboard
Modular visual interface for GDB in Python
Stars: ✭ 8,699 (+45684.21%)
Mutual labels:  console
xtd
Free open-source modern C++17 / C++20 framework to create console, forms (GUI like WinForms) and unit test applications on Microsoft Windows, Apple macOS and Linux.
Stars: ✭ 321 (+1589.47%)
Mutual labels:  console
fop console
Prestashop Module providing a set of shell/terminal commands for developers (PrestaShop 1.7.5+)
Stars: ✭ 64 (+236.84%)
Mutual labels:  console
term
终端输出控制
Stars: ✭ 38 (+100%)
Mutual labels:  console
hyperapp-logger
Log Hyperapp state updates and action information to the console.
Stars: ✭ 48 (+152.63%)
Mutual labels:  console
Slim-Console
Slim Framework Console
Stars: ✭ 26 (+36.84%)
Mutual labels:  console
TerminalConsoleAppender
JLine 3 appender for Log4j2, allows extending command line apps using colors and command completion
Stars: ✭ 49 (+157.89%)
Mutual labels:  console
impress-cli
Impress Application Server Command line interface
Stars: ✭ 25 (+31.58%)
Mutual labels:  console
cpp-indicators
A very simple, easy-to-use, and single-header-only C++ library for console based indicators (loading spinners)
Stars: ✭ 13 (-31.58%)
Mutual labels:  console
indyscan
Hyperldger Indy Transaction Explorer
Stars: ✭ 52 (+173.68%)
Mutual labels:  dlt
ptkdev-logger
🦒 Beautiful Logger for Node.js: the best alternative to the console.log statement
Stars: ✭ 117 (+515.79%)
Mutual labels:  console
pymailq
Simple mails queue management
Stars: ✭ 32 (+68.42%)
Mutual labels:  console
std-env
Detect current Javascript environment
Stars: ✭ 85 (+347.37%)
Mutual labels:  console
python-sdk
python sdk for FISCO BCOS
Stars: ✭ 53 (+178.95%)
Mutual labels:  console
executor
A powerful "short-cutter" to your console to you and your team!
Stars: ✭ 21 (+10.53%)
Mutual labels:  console
console
HAL management console
Stars: ✭ 41 (+115.79%)
Mutual labels:  console
boxx
📦 Create highly customizable terminal boxes that also look great!
Stars: ✭ 80 (+321.05%)
Mutual labels:  console

This page provides a step-by-step tutorial to deploy a sample app with Xooa's blockchain platform-as-a-service (PaaS).

Project documentation: https://docs.xooa.com

Overview

This repository contains blockchain smart contracts, also known as chaincodes. Use the Xooa console to deploy it.

Xooa provides a permanent cloud end-point for the smart contracts, enabling cloud-to-cloud integration, while retaining blockchain's peer-to-peer capabilities.

Directory Description
balance-transfer-java Sample smart contract runs on Hyperledger Fabric and is written in Java. Provides Invoke, query and delete functions. Originally created by IBM and forked from here.
balance-transfer-node Sample smart contract runs on Hyperledger Fabric and is written in JavaScript. Provides Invoke, query and delete functions. Originally created by IBM and forked from here.
ethereum Sample smart contract runs on Ethereum and is written in Solidity. Provides Get and Set functions.
get-set Sample smart contract runs on Hyperledger Fabric and is written in GoLang. Provides Get, Set and GetVersion methods. Originally created by IBM and forked from here.
marbles Sample smart contract runs on Hyperledger Fabric and is written in GoLang. Provides 9 functions to interact with marbles app. Originally created by IBM and forked from here.
smartthings Sample Groovy files to deploy on smartThings platform. Integrate blockchain to smartThings.
truffle-supplychain Sample smart contract runs on Ethereum and is written in Solidity using Truffle framework. Provides 5 functions to interact with supply chain app.

Deploy the smart contract

  1. Log in to the Xooa blockchain console at https://xooa.com/blockchain.
  2. Go to Apps>Deploy New.
  3. Select the method to deploy smart contract from. For example, use Xooa Github to deploy one of the samples provided by Xooa. Tap Next.

For accesing Private Git Repos, click or tap Authorize Private Github Access.

deploy

  1. Select the Smart Contract you want to deploy, and then click Deploy.

  2. Relax: Xooa is doing the blockchain heavy lifting. You will be redirected to app dashboard when the deployment completes.

identity creation

  1. Navigate to Identities tab, click or tap Add New, enter name for Identity and set permissions to Read+Write.

  2. Copy and store the API Token value. You need it to authorize API requests. API Token cannot be dispalyed after you closed the window, but it may get regenerated.

Note: Xooa.yaml is an optional configuration file used by Xooa platform to configure smart contracts. This file should be in the root directory of the Repo, if being used. This file tells Xooa the programming language, blockchain implementation, and path of the smart contract.


Explore the end-points for the smart Contract

  1. Go to the Details tab, click Explore API's.

  2. Enter API Token in the field in navigation pane. This is used to authenticate all API calls.

  3. Go to the Smart Contract > Invoke Smart Contract Function from the navigation pane.

Invoke

  1. In the fcn field, enter the Smart Contract function name you wish to Invoke. For example, if using this repo get-set smart contract to store data in blockchain set should be entred as the fcn field value

  2. In the body field, enter the data in the format expected by the smart contract. For example, if using this repo get-set smart contract to store data in blockchain ledger using the set function, the body should be entered as:

    [ "<key>", "<value>" ]

  3. Click or tap try.

  4. To view your transaction in the blockchain Ledger, from your Xooa dashboard, go to Ledger.

  5. Go to the Transactions tab. You can expand the data field to see your transactions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].