You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,12 +20,16 @@ The contract has public fields:
19
20
-`address public minterAddress`
20
21
-`address public burnerAddress`
21
22
22
-
## BCA_ServiceManager.sol
23
+
## Contract: BCAServiceManager
23
24
24
25
The service manager contract is at the top of the hierarchy of contracts and serves as an entry point. It is parameterized by the ERC20 or stable-coin address that is used throughout the dependent contracts. It stores the addresses of provider controller contracts.
@@ -74,12 +83,16 @@ The contract has public methods:
74
83
- `function countServiceContracts() public view returns (uint)`
75
84
* returns the number of services in the array, necessary to enumerate the array entries
76
85
77
-
## BCA_Service.sol
86
+
## Contract: BCAService
78
87
79
88
A service references a provider and the common ERC20/stable-coin and is parameterized with the maximal number of instances and the price of the service per day.
- `function countServiceInstances() public view returns (uint)`
95
108
96
-
## BCA_ServiceInstance.sol
109
+
## Contract: BCAServiceInstance
110
+
111
+
This contract is at the heart of the market and represents a service instance. A user subscribes to a service with a first deposit of funds. This sets the start time of the contract from which the balances are calculated.
* the provider may withdraw up to his calculated balance
153
+
120
154
155
+
## Contract: BCAServiceFunding24
121
156
122
-
## BCA_Funding24.sol
157
+
This contract automates the funding of a service contract by transferring the required funds to run the service every 24 hours. The contract is guaranteed to only transfer the said amount at most every 24 hours. It requires an external transaction to `deposit()` which is sent from a bot.
0 commit comments