0.16.0 • Published 6 years ago

issue-bond v0.16.0

Weekly downloads
53
License
-
Repository
github
Last release
6 years ago

issue-bond is way to write readable bonds in code.

A bond can be issued with three things: a bond id, an outcome, and an issuer name:

var bond = issueBond (
  "floor-panel",
  "10% return in 60 days",
  "Erik Pukinskis" )

Then you can add work and expenses which are required to achieve the outcome:

bond.addTasks ( [
  "buy materials",
  "cut studs to length" ,
  "cut track to length" ,
  "crimp" ,
  "add sheathing" ,
  "flipsulate" ,
  "add sheathing" ] )

bond.expense (
  "16 hours labor" ,
  "$320" )

bond.expense (
  "steel studs" ,
  "$20" )

bond.expense (
  "plywood" ,
  "$10" )

The bond is purchased and executed:

var investorId = issueBond.registerInvestor(
  "ms-hill",
  "Ms. Learn Hill",
  "203-320-9876" )


var shareId = issueBond.orderShare(
  null ,
  "floor-panel" ,
  "ms-hill" ,
  19000 ,
  16875 )

issueBond.markPaid(
  shareId , {
  "characterId": "ms-hill" ,
  "textSignature": "Eriko" } )

var invoiceid = issueBond.invoice(
  null ,
  "floor-panel" ,
  "advance pay, steel studs, and plywood" ,
  19000 ,
  "2018-01-03" )

issueBond.markFinished (
  "floor-panel",
  "buy materials" )

issueBond.markFinished (
  "floor-panel",
  "cut studs to length" )
//...

// and then there will be some way to mature the bond and pay out the investor here... no need to write that code until we have more revenue than expenses.
0.16.0

6 years ago

0.15.0

6 years ago

0.14.0

7 years ago

0.13.0

7 years ago

0.12.0

7 years ago

0.11.0

7 years ago

0.10.0

7 years ago

0.9.0

7 years ago

0.8.0

7 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago