Giter Site home page Giter Site logo

corda-bootcamp-hackathon-invoicing's Introduction

Corda

Invoicing CorDapp

This is the invoicing CorDapp solution built during the PSL hackathon

Problem Statement

This was built using the Kotlin version of the CorDapp template.

Pre-Requisites

See https://docs.corda.net/getting-set-up.html.

Usage

Running the nodes

See https://docs.corda.net/tutorial-cordapp.html#running-the-example-cordapp.

Extending the template

You should extend this template as follows:

  • Add your own state and contract definitions under cordapp-contracts-states/src/main/kotlin/
  • Add your own flow definitions under cordapp/src/main/kotlin/
  • Extend or replace the client and webserver under clients/src/main/kotlin/

For a guided example of how to extend this template, see the Hello, World! tutorial here.

Testing this solution

  • Run on Seller, Buyer nodes - Should show empty vaults

    run vaultQuery contractStateType: com.template.InvoiceState

  • Run on Seller node

    flow start InvoiceIssueFlow buyer: "Buyer", amount: 500, status: "CREATED"

  • Run on Seller, Buyer nodes - Should show invoice created with status "CREATED"

    run vaultQuery contractStateType: com.template.InvoiceState

  • Run on Buyer node - (* Use the linear ID you got by running the query above)

    flow start InvoiceSettlementFlow linearIdentifier: 3d02ddfc-4056-42bb-beee-7ff723497748

  • Run on Seller, Buyer nodes - Should show invoice created with status "SETTLED"

    run vaultQuery contractStateType: com.template.InvoiceState

TODOS

  • Write tests for states, contracts, flows

corda-bootcamp-hackathon-invoicing's People

Watchers

 avatar  avatar  avatar  avatar

Forkers

prankkelkar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.