freelog_policy_compiler

0.1.28 • Public • Published

SAMPLES

  1. free policy
for public :
  in <initial> :
    terminate
  1. transaction policy
for nodes :
  in initial :
    proceed to <active> on transaction of 100 to feth233dbc32069
  1. license & transaction policy
for nodes :
  in initial :
    proceed to pending on transaction of 100 to feth233dbc32069
  in pending :
    proceed to <active> on accepting license e759419923ea25bf6dff2694391a1e65c21739ce
  1. period transaction policy
for public :
  in initial :
    proceed to <pending> on accepting license e759419923ea25bf6dff2694391a1e65c21739ce
  in <pending> :
    proceed to pendingtwo on end of cycle
  in pendingtwo :
    proceed to <pending> on transaction of 100 to feth233dbc320699

Events


period

Grammar: end of TIME_CYCLE
Sample: proceed to settlement on end of day
{
  type: 'period',
  params: ['cycle'],
  eventName: 'period_day_event'
}

specificDate

Grammar: date DATE
Sample: proceed to settlement on date 2012-12-12
{
  type: 'arrivalDate',
  params: ['1', '2012-12-12'],
  eventName: 'arrivalDate_1_2012-12-12_event'
}

relativeDate

Grammar: INT TIME_UNIT after contract creation
Sample: proceed to settlement on 10 day after contract creation
{
  type: 'arrivalDate',
  params: ['0', '10', 'day'],
  eventName: 'arrivalDate_0_10_day_event'
}

pricingAgreement

Grammar: pricingAgreement
Sample: proceed to settlement on pricingAgreement
{
 type: 'pricingAgreement',
 params: [],
 eventName: 'pricingAgreement_event'
}

transaction

Grammar: transaction of INT to FEATHERACCOUNT
Sample: proceed to settlement on ** transaction of 300 to feth233dbc32069**
{
 type: 'transaction',
 params: ['userId', 300],
 eventName: 'transaction_userid_300_event'
}

signing

Grammar: license LICENSEID
Sample: proceed to settlement on ** accepting license e759419923ea25bf6dff2694391a1e65c21739ce, e7594199435jh3jhasf1ff2694391a1e65c21739ce**
{
 type: 'signing',
 params: ['e759419923ea25bf6dff2694391a1e65c21739ce', 'e7594199435jh3jhasf1ff2694391a1e65c21739ce'],
 eventName: 'signing_l123123_l19992_event'
}

contractGuaranty

Grammar: contract_guaranty of INT refund after INT day
Sample: proceed to settlement on contract_guaranty of 3000 refund after 50 day
{
 type: 'contractGuaranty',
 params: [3000, 50, 'day'],
 eventName: 'contractGuaranty_3000_50_day_event'
}

platformGuaranty

Grammar: platform_guaranty of INT
Sample: proceed to settlement on platform_guaranty of 50000
{
 type: 'platformGuaranty',
 params: [5000],
 eventName: 'platformGuaranty_5000_event'
}

compoundEvent

Grammar: compoundEvents
Sample: proceed to settlement on platform_guaranty of 50000 and contract_guaranty of 3000 refund after 50 day
{
 type: 'compound',
 params: [  {
     type: 'contractGuaranty',
     params: [3000, 50, 'day'],
     eventName: 'contractGuaranty_3000_50_day_event'
   },
   {
     type: 'platformGuaranty',
     params: [5000],
     eventName: 'platformGuaranty_5000_event'
   }],
 eventName: 'compound_event'
}

Readme

Keywords

none

Package Sidebar

Install

npm i freelog_policy_compiler

Weekly Downloads

0

Version

0.1.28

License

ISC

Unpacked Size

55.5 kB

Total Files

14

Last publish

Collaborators

  • philyoung