Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jobs:
- - name: addrSuperAccount
- job:
- set:
- val: F1925F5F1FAECA776B1340015F38C88008DE3089
- - name: addrBuyer
- job:
- set:
- val: 0ABD37F8D497A2264AAB0DC4A1A58DBA7115F916
- - name: addrSeller
- job:
- set:
- val: DA3C76F15BD6902072FA92B869F45F38AF5F92F1
- - name: addrIssuingBank
- job:
- set:
- val: 096957107AD460D9703FDA86CD14B4C1FB22A10E
- - name: addrAdvisingBank
- job:
- set:
- val: D6EEBF4818185C65544EB0FE2839607400589D06
- - name: deployDoug
- job:
- deploy:
- contract: letterofcredit.sol
- instance: Doug
- - name: deployLetterOfCredit
- job:
- deploy:
- contract: letterofcredit.sol
- instance: LetterOfCredit
- - name: deployLetterOfCreditDb
- job:
- deploy:
- contract: letterofcredit.sol
- instance: LetterOfCreditDb
- - name: deployLCApplication
- job:
- deploy:
- contract: letterofcredit.sol
- instance: LCApplication
- - name: deployPermissions
- job:
- deploy:
- contract: letterofcredit.sol
- instance: Permissions
- - name: deployPermissionsDb
- job:
- deploy:
- contract: letterofcredit.sol
- instance: PermissionsDb
- - name: callSetDougLetterOfCredit
- job:
- call:
- destination: $deployLetterOfCredit
- function: setDougAddress
- data:
- - $deployDoug
- - name: callSetDougLetterOfCreditDb
- job:
- call:
- destination: $deployLetterOfCreditDb
- function: setDougAddress
- data:
- - $deployDoug
- - name: callSetDougLCApplication
- job:
- call:
- destination: $deployLCApplication
- function: setDougAddress
- data:
- - $deployDoug
- - name: callAddContractLetterOfCredit
- job:
- call:
- destination: $deployDoug
- function: addContract
- data:
- - "letterofcredit"
- - $deployLetterOfCredit
- - name: callAddContractLetterOfCreditDb
- job:
- call:
- destination: $deployDoug
- function: addContract
- data:
- - "letterofcreditdb"
- - $deployLetterOfCreditDb
- - name: callAddContractLCApplication
- job:
- call:
- destination: $deployDoug
- function: addContract
- data:
- - "lcapplication"
- - $deployLCApplication
- - name: callAddContractPermissions
- job:
- call:
- destination: $deployDoug
- function: addContract
- data:
- - "perms"
- - $deployPermissions
- - name: callAddContractPermissionsDb
- job:
- call:
- destination: $deployDoug
- function: addContract
- data:
- - "permsdb"
- - $deployPermissionsDb
- - name: callGetContractLetterOfCredit
- job:
- call:
- destination: $deployDoug
- function: getContract
- data:
- - "letterofcredit"
- - name: callGetContractLetterOfCreditDb
- job:
- call:
- destination: $deployDoug
- function: getContract
- data:
- - "letterofcreditdb"
- - name: callGetContractLCApplication
- job:
- call:
- destination: $deployDoug
- function: getContract
- data:
- - "lcapplication"
- - name: callGetContractPermissions
- job:
- call:
- destination: $deployDoug
- function: getContract
- data:
- - "perms"
- - name: callGetContractPermissionsDb
- job:
- call:
- destination: $deployDoug
- function: getContract
- data:
- - "permsdb"
- - name: assertContractLetterOfCredit
- job:
- assert:
- key: $callGetContractLetterOfCredit
- relation: eq
- val: $deployLetterOfCredit
- - name: assertContractLetterOfCreditDb
- job:
- assert:
- key: $callGetContractLetterOfCreditDb
- relation: eq
- val: $deployLetterOfCreditDb
- - name: assertContractLCApplication
- job:
- assert:
- key: $callGetContractLCApplication
- relation: eq
- val: $deployLCApplication
- - name: assertContractPermissions
- job:
- assert:
- key: $callGetContractPermissions
- relation: eq
- val: $deployPermissions
- - name: assertContractPermissionsDb
- job:
- assert:
- key: $callGetContractPermissionsDb
- relation: eq
- val: $deployPermissionsDb
- - name: callGetPermissionSelf
- job:
- call:
- destination: $deployLCApplication
- function: getPermission
- data:
- - $addrSuperAccount
- - name: assertPermissionSelf
- job:
- assert:
- key: $callGetPermissionSelf
- relation: eq
- val: 5
- - name: callSetPermissionBuyer
- job:
- call:
- destination: $deployLCApplication
- function: setPermission
- data:
- - $addrBuyer
- - 1
- - name: callSetPermissionSeller
- job:
- call:
- destination: $deployLCApplication
- function: setPermission
- data:
- - $addrSeller
- - 2
- - name: callSetPermissionIssuingBank
- job:
- call:
- destination: $deployLCApplication
- function: setPermission
- data:
- - $addrIssuingBank
- - 3
- - name: callSetPermissionAdvisingBank
- job:
- call:
- destination: $deployLCApplication
- function: setPermission
- data:
- - $addrAdvisingBank
- - 4
- - name: callGetPermissionBuyer
- job:
- call:
- destination: $deployLCApplication
- function: getPermission
- data:
- - $addrBuyer
- - name: callGetPermissionSeller
- job:
- call:
- destination: $deployLCApplication
- function: getPermission
- data:
- - $addrSeller
- - name: callGetPermissionIssuingBank
- job:
- call:
- destination: $deployLCApplication
- function: getPermission
- data:
- - $addrIssuingBank
- - name: callGetPermissionAdvisingBank
- job:
- call:
- destination: $deployLCApplication
- function: getPermission
- data:
- - $addrAdvisingBank
- - name: assertPermissionBuyer
- job:
- assert:
- key: $callGetPermissionBuyer
- relation: eq
- val: 1
- - name: assertPermissionSeller
- job:
- assert:
- key: $callGetPermissionSeller
- relation: eq
- val: 2
- - name: assertPermissionIssuingBank
- job:
- assert:
- key: $callGetPermissionIssuingBank
- relation: eq
- val: 3
- - name: assertPermissionAdvisingBank
- job:
- assert:
- key: $callGetPermissionAdvisingBank
- relation: eq
- val: 4
- - name: accSuperAccount
- job:
- account:
- address: $addrSuperAccount
- - name: callGetBalance
- job:
- query-account:
- account: $addrSuperAccount
- field: balance
- - name: callCreateLC
- job:
- call:
- destination: $deployLCApplication
- function: create
- address: $addrBuyer
- data:
- - "purchaseorder"
- - 100
- - $addrSeller
- amount: 10000
- - name: callGetBalance
- job:
- query-account:
- account: $addrSuperAccount
- field: balance
- - name: accBuyer
- job:
- account:
- address: $addrBuyer
- - name: callGetBalance
- job:
- query-account:
- account: $addrBuyer
- field: balance
- - name: callCreateLC
- job:
- call:
- destination: $deployLCApplication
- function: create
- address: $addrBuyer
- data:
- - "reference to purchase order"
- - 100
- - $addrSeller
- amount: 10000
- - name: callGetBalance
- job:
- query-account:
- account: $addrBuyer
- field: balance
- - name: accAdvisingBank
- job:
- account:
- address: $addrAdvisingBank
- - name: callGetPurchaseOrder
- job:
- call:
- destination: $deployLCApplication
- function: getPurchaseOrder
- - name: accSeller
- job:
- account:
- address: $addrSeller
- - name: callGetPurchaseOrder
- job:
- call:
- destination: $deployLCApplication
- function: getPurchaseOrder
- - name: callConfirm
- job:
- call:
- destination: $deployLCApplication
- function: confirm
- - name: accIssuingBank
- job:
- account:
- address: $addrIssuingBank
- - name: callGetPurchaseOrder
- job:
- call:
- destination: $deployLCApplication
- function: getPurchaseOrder
- - name: callGetPrice
- job:
- call:
- destination: $deployLCApplication
- function: getPrice
- - name: callConfirm
- job:
- call:
- destination: $deployLCApplication
- function: confirm
- - name: callApprove
- job:
- call:
- destination: $deployLCApplication
- function: approve
- - name: accAdvisingBank
- job:
- account:
- address: $addrAdvisingBank
- - name: callGetPurchaseOrder
- job:
- call:
- destination: $deployLCApplication
- function: getPurchaseOrder
- - name: callGetPrice
- job:
- call:
- destination: $deployLCApplication
- function: getPrice
- - name: callApprove
- job:
- call:
- destination: $deployLCApplication
- function: approve
- - name: accSeller
- job:
- account:
- address: $addrSeller
- - name: callGetPurchaseOrder
- job:
- call:
- destination: $deployLCApplication
- function: getPurchaseOrder
- - name: callGetPrice
- job:
- call:
- destination: $deployLCApplication
- function: getPrice
- - name: callShip
- job:
- call:
- destination: $deployLCApplication
- function: ship
- data:
- - "reference to packing slip"
- - "reference to invoice"
- - name: accAdvisingBank
- job:
- account:
- address: $addrAdvisingBank
- - name: callApplicationApproved
- job:
- call:
- destination: $deployLCApplication
- function: approveApplication
- - name: accIssuingBank
- job:
- account:
- address: $addrIssuingBank
- - name: callReadyForDelivery
- job:
- call:
- destination: $deployLCApplication
- function: readyForDelivery
- - name: accBuyer
- job:
- account:
- address: $addrBuyer
- - name: callDelivered
- job:
- call:
- destination: $deployLCApplication
- function: delivered
- - name: accIssuingBank
- job:
- account:
- address: $addrIssuingBank
- - name: callReleaseFunds
- job:
- call:
- destination: $deployLCApplication
- function: releaseFunds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement