Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.04 KB | None | 0 0
  1. jobs:
  2.  
  3. - name: addrSuperAccount
  4. job:
  5. set:
  6. val: F1925F5F1FAECA776B1340015F38C88008DE3089
  7.  
  8. - name: addrBuyer
  9. job:
  10. set:
  11. val: 0ABD37F8D497A2264AAB0DC4A1A58DBA7115F916
  12.  
  13. - name: addrSeller
  14. job:
  15. set:
  16. val: DA3C76F15BD6902072FA92B869F45F38AF5F92F1
  17.  
  18. - name: addrIssuingBank
  19. job:
  20. set:
  21. val: 096957107AD460D9703FDA86CD14B4C1FB22A10E
  22.  
  23. - name: addrAdvisingBank
  24. job:
  25. set:
  26. val: D6EEBF4818185C65544EB0FE2839607400589D06
  27.  
  28. - name: deployDoug
  29. job:
  30. deploy:
  31. contract: letterofcredit.sol
  32. instance: Doug
  33.  
  34. - name: deployLetterOfCredit
  35. job:
  36. deploy:
  37. contract: letterofcredit.sol
  38. instance: LetterOfCredit
  39.  
  40. - name: deployLetterOfCreditDb
  41. job:
  42. deploy:
  43. contract: letterofcredit.sol
  44. instance: LetterOfCreditDb
  45.  
  46. - name: deployLCApplication
  47. job:
  48. deploy:
  49. contract: letterofcredit.sol
  50. instance: LCApplication
  51.  
  52. - name: deployPermissions
  53. job:
  54. deploy:
  55. contract: letterofcredit.sol
  56. instance: Permissions
  57.  
  58. - name: deployPermissionsDb
  59. job:
  60. deploy:
  61. contract: letterofcredit.sol
  62. instance: PermissionsDb
  63.  
  64. - name: callSetDougLetterOfCredit
  65. job:
  66. call:
  67. destination: $deployLetterOfCredit
  68. function: setDougAddress
  69. data:
  70. - $deployDoug
  71.  
  72. - name: callSetDougLetterOfCreditDb
  73. job:
  74. call:
  75. destination: $deployLetterOfCreditDb
  76. function: setDougAddress
  77. data:
  78. - $deployDoug
  79.  
  80. - name: callSetDougLCApplication
  81. job:
  82. call:
  83. destination: $deployLCApplication
  84. function: setDougAddress
  85. data:
  86. - $deployDoug
  87.  
  88. - name: callAddContractLetterOfCredit
  89. job:
  90. call:
  91. destination: $deployDoug
  92. function: addContract
  93. data:
  94. - "letterofcredit"
  95. - $deployLetterOfCredit
  96.  
  97. - name: callAddContractLetterOfCreditDb
  98. job:
  99. call:
  100. destination: $deployDoug
  101. function: addContract
  102. data:
  103. - "letterofcreditdb"
  104. - $deployLetterOfCreditDb
  105.  
  106. - name: callAddContractLCApplication
  107. job:
  108. call:
  109. destination: $deployDoug
  110. function: addContract
  111. data:
  112. - "lcapplication"
  113. - $deployLCApplication
  114.  
  115. - name: callAddContractPermissions
  116. job:
  117. call:
  118. destination: $deployDoug
  119. function: addContract
  120. data:
  121. - "perms"
  122. - $deployPermissions
  123.  
  124. - name: callAddContractPermissionsDb
  125. job:
  126. call:
  127. destination: $deployDoug
  128. function: addContract
  129. data:
  130. - "permsdb"
  131. - $deployPermissionsDb
  132.  
  133. - name: callGetContractLetterOfCredit
  134. job:
  135. call:
  136. destination: $deployDoug
  137. function: getContract
  138. data:
  139. - "letterofcredit"
  140.  
  141. - name: callGetContractLetterOfCreditDb
  142. job:
  143. call:
  144. destination: $deployDoug
  145. function: getContract
  146. data:
  147. - "letterofcreditdb"
  148.  
  149. - name: callGetContractLCApplication
  150. job:
  151. call:
  152. destination: $deployDoug
  153. function: getContract
  154. data:
  155. - "lcapplication"
  156.  
  157. - name: callGetContractPermissions
  158. job:
  159. call:
  160. destination: $deployDoug
  161. function: getContract
  162. data:
  163. - "perms"
  164.  
  165. - name: callGetContractPermissionsDb
  166. job:
  167. call:
  168. destination: $deployDoug
  169. function: getContract
  170. data:
  171. - "permsdb"
  172.  
  173. - name: assertContractLetterOfCredit
  174. job:
  175. assert:
  176. key: $callGetContractLetterOfCredit
  177. relation: eq
  178. val: $deployLetterOfCredit
  179.  
  180. - name: assertContractLetterOfCreditDb
  181. job:
  182. assert:
  183. key: $callGetContractLetterOfCreditDb
  184. relation: eq
  185. val: $deployLetterOfCreditDb
  186.  
  187. - name: assertContractLCApplication
  188. job:
  189. assert:
  190. key: $callGetContractLCApplication
  191. relation: eq
  192. val: $deployLCApplication
  193.  
  194. - name: assertContractPermissions
  195. job:
  196. assert:
  197. key: $callGetContractPermissions
  198. relation: eq
  199. val: $deployPermissions
  200.  
  201. - name: assertContractPermissionsDb
  202. job:
  203. assert:
  204. key: $callGetContractPermissionsDb
  205. relation: eq
  206. val: $deployPermissionsDb
  207.  
  208. - name: callGetPermissionSelf
  209. job:
  210. call:
  211. destination: $deployLCApplication
  212. function: getPermission
  213. data:
  214. - $addrSuperAccount
  215.  
  216. - name: assertPermissionSelf
  217. job:
  218. assert:
  219. key: $callGetPermissionSelf
  220. relation: eq
  221. val: 5
  222.  
  223. - name: callSetPermissionBuyer
  224. job:
  225. call:
  226. destination: $deployLCApplication
  227. function: setPermission
  228. data:
  229. - $addrBuyer
  230. - 1
  231.  
  232. - name: callSetPermissionSeller
  233. job:
  234. call:
  235. destination: $deployLCApplication
  236. function: setPermission
  237. data:
  238. - $addrSeller
  239. - 2
  240.  
  241. - name: callSetPermissionIssuingBank
  242. job:
  243. call:
  244. destination: $deployLCApplication
  245. function: setPermission
  246. data:
  247. - $addrIssuingBank
  248. - 3
  249.  
  250. - name: callSetPermissionAdvisingBank
  251. job:
  252. call:
  253. destination: $deployLCApplication
  254. function: setPermission
  255. data:
  256. - $addrAdvisingBank
  257. - 4
  258.  
  259. - name: callGetPermissionBuyer
  260. job:
  261. call:
  262. destination: $deployLCApplication
  263. function: getPermission
  264. data:
  265. - $addrBuyer
  266.  
  267. - name: callGetPermissionSeller
  268. job:
  269. call:
  270. destination: $deployLCApplication
  271. function: getPermission
  272. data:
  273. - $addrSeller
  274.  
  275. - name: callGetPermissionIssuingBank
  276. job:
  277. call:
  278. destination: $deployLCApplication
  279. function: getPermission
  280. data:
  281. - $addrIssuingBank
  282.  
  283. - name: callGetPermissionAdvisingBank
  284. job:
  285. call:
  286. destination: $deployLCApplication
  287. function: getPermission
  288. data:
  289. - $addrAdvisingBank
  290.  
  291. - name: assertPermissionBuyer
  292. job:
  293. assert:
  294. key: $callGetPermissionBuyer
  295. relation: eq
  296. val: 1
  297.  
  298. - name: assertPermissionSeller
  299. job:
  300. assert:
  301. key: $callGetPermissionSeller
  302. relation: eq
  303. val: 2
  304.  
  305. - name: assertPermissionIssuingBank
  306. job:
  307. assert:
  308. key: $callGetPermissionIssuingBank
  309. relation: eq
  310. val: 3
  311.  
  312. - name: assertPermissionAdvisingBank
  313. job:
  314. assert:
  315. key: $callGetPermissionAdvisingBank
  316. relation: eq
  317. val: 4
  318.  
  319. - name: accSuperAccount
  320. job:
  321. account:
  322. address: $addrSuperAccount
  323.  
  324. - name: callGetBalance
  325. job:
  326. query-account:
  327. account: $addrSuperAccount
  328. field: balance
  329.  
  330. - name: callCreateLC
  331. job:
  332. call:
  333. destination: $deployLCApplication
  334. function: create
  335. address: $addrBuyer
  336. data:
  337. - "purchaseorder"
  338. - 100
  339. - $addrSeller
  340. amount: 10000
  341.  
  342. - name: callGetBalance
  343. job:
  344. query-account:
  345. account: $addrSuperAccount
  346. field: balance
  347.  
  348. - name: accBuyer
  349. job:
  350. account:
  351. address: $addrBuyer
  352.  
  353. - name: callGetBalance
  354. job:
  355. query-account:
  356. account: $addrBuyer
  357. field: balance
  358.  
  359. - name: callCreateLC
  360. job:
  361. call:
  362. destination: $deployLCApplication
  363. function: create
  364. address: $addrBuyer
  365. data:
  366. - "reference to purchase order"
  367. - 100
  368. - $addrSeller
  369. amount: 10000
  370.  
  371. - name: callGetBalance
  372. job:
  373. query-account:
  374. account: $addrBuyer
  375. field: balance
  376.  
  377. - name: accAdvisingBank
  378. job:
  379. account:
  380. address: $addrAdvisingBank
  381.  
  382. - name: callGetPurchaseOrder
  383. job:
  384. call:
  385. destination: $deployLCApplication
  386. function: getPurchaseOrder
  387.  
  388. - name: accSeller
  389. job:
  390. account:
  391. address: $addrSeller
  392.  
  393. - name: callGetPurchaseOrder
  394. job:
  395. call:
  396. destination: $deployLCApplication
  397. function: getPurchaseOrder
  398.  
  399. - name: callConfirm
  400. job:
  401. call:
  402. destination: $deployLCApplication
  403. function: confirm
  404.  
  405. - name: accIssuingBank
  406. job:
  407. account:
  408. address: $addrIssuingBank
  409.  
  410. - name: callGetPurchaseOrder
  411. job:
  412. call:
  413. destination: $deployLCApplication
  414. function: getPurchaseOrder
  415.  
  416. - name: callGetPrice
  417. job:
  418. call:
  419. destination: $deployLCApplication
  420. function: getPrice
  421.  
  422. - name: callConfirm
  423. job:
  424. call:
  425. destination: $deployLCApplication
  426. function: confirm
  427.  
  428. - name: callApprove
  429. job:
  430. call:
  431. destination: $deployLCApplication
  432. function: approve
  433.  
  434. - name: accAdvisingBank
  435. job:
  436. account:
  437. address: $addrAdvisingBank
  438.  
  439. - name: callGetPurchaseOrder
  440. job:
  441. call:
  442. destination: $deployLCApplication
  443. function: getPurchaseOrder
  444.  
  445. - name: callGetPrice
  446. job:
  447. call:
  448. destination: $deployLCApplication
  449. function: getPrice
  450.  
  451. - name: callApprove
  452. job:
  453. call:
  454. destination: $deployLCApplication
  455. function: approve
  456.  
  457. - name: accSeller
  458. job:
  459. account:
  460. address: $addrSeller
  461.  
  462. - name: callGetPurchaseOrder
  463. job:
  464. call:
  465. destination: $deployLCApplication
  466. function: getPurchaseOrder
  467.  
  468. - name: callGetPrice
  469. job:
  470. call:
  471. destination: $deployLCApplication
  472. function: getPrice
  473.  
  474. - name: callShip
  475. job:
  476. call:
  477. destination: $deployLCApplication
  478. function: ship
  479. data:
  480. - "reference to packing slip"
  481. - "reference to invoice"
  482.  
  483. - name: accAdvisingBank
  484. job:
  485. account:
  486. address: $addrAdvisingBank
  487.  
  488. - name: callApplicationApproved
  489. job:
  490. call:
  491. destination: $deployLCApplication
  492. function: approveApplication
  493.  
  494. - name: accIssuingBank
  495. job:
  496. account:
  497. address: $addrIssuingBank
  498.  
  499. - name: callReadyForDelivery
  500. job:
  501. call:
  502. destination: $deployLCApplication
  503. function: readyForDelivery
  504.  
  505. - name: accBuyer
  506. job:
  507. account:
  508. address: $addrBuyer
  509.  
  510. - name: callDelivered
  511. job:
  512. call:
  513. destination: $deployLCApplication
  514. function: delivered
  515.  
  516. - name: accIssuingBank
  517. job:
  518. account:
  519. address: $addrIssuingBank
  520.  
  521. - name: callReleaseFunds
  522. job:
  523. call:
  524. destination: $deployLCApplication
  525. function: releaseFunds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement