This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Define the contract's data variables | |
;; Maps a user's principal address to their deposited amount. | |
(define-map deposits { owner: principal } { amount: uint }) | |
;; Maps a borrower's principal address to their loan details: amount and the last interaction block. | |
(define-map loans principal { amount: uint, last-interaction-block: uint }) | |
;; Holds the total amount of deposits in the contract, initialized to 0. | |
(define-data-var total-deposits uint u0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CF: | |
cf push cf-time -p time-source/target/time-source-1.0.0.BUILD-SNAPSHOT-exec.jar --no-start | |
cf push cf-log -p log-sink/target/log-sink-1.0.0.BUILD-SNAPSHOT-exec.jar --no-start | |
cf bs cf-time redis | |
cf bs cf-log redis | |
cf start cf-time |