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
{{ message }}
This repository was archived by the owner on Dec 9, 2022. It is now read-only.
/// Returns the data commitment and size of a deal proposal.
54
-
/// This will be available after the deal is published (whether or not is is activated)
55
-
/// and up until some undefined period after it is terminated.
56
-
/// FIXME set data values correctly, currently returning fixed data, feel free to adjust
57
-
/// in your local mock.
53
+
/// @return the data commitment and size of a deal proposal.
54
+
/// @notice This will be available after the deal is published (whether or not is is activated) and up until some undefined period after it is terminated.
55
+
/// @dev set data values correctly, currently returning fixed data, feel free to adjust in your local mock.
/// This will be available from when the proposal is published until an undefined period after
160
-
/// the deal finishes (either normally or by termination).
161
-
/// Returns USR_NOT_FOUND if the deal doesn't exist (yet), or EX_DEAL_EXPIRED if the deal
162
-
/// has been removed from state.
154
+
/// @notice Fetches activation state for a deal.
155
+
/// @notice This will be available from when the proposal is published until an undefined period after the deal finishes (either normally or by termination).
156
+
/// @return USR_NOT_FOUND if the deal doesn't exist (yet), or EX_DEAL_EXPIRED if the deal has been removed from state.
/// (Mock method) Sets the owner of a Miner, which will be returned via get_owner().
27
+
/// @notice (Mock method) Sets the owner of a Miner, which will be returned via get_owner().
27
28
function mock_set_owner(stringmemoryaddr) public {
28
29
require(bytes(owner).length==0);
29
30
owner = addr;
30
31
}
31
32
32
-
/// Returns the owner address of a Miner.
33
-
/// - Income and returned collateral are paid to this address
34
-
/// - This address is also allowed to change the worker address for the miner
33
+
/// @notice Income and returned collateral are paid to this address
34
+
/// @notice This address is also allowed to change the worker address for the miner
35
+
/// @return the owner address of a Miner
35
36
function get_owner()
36
37
public
37
38
view
@@ -42,51 +43,49 @@ contract MinerAPI {
42
43
return MinerTypes.GetOwnerReturn(owner);
43
44
}
44
45
45
-
/// Proposes or confirms a change of owner address.
46
-
/// If invoked by the current owner, proposes a new owner address for confirmation. If the proposed address is the
47
-
/// current owner address, revokes any existing proposal.
48
-
/// If invoked by the previously proposed address, with the same proposal, changes the current owner address to be
49
-
/// that proposed address.
46
+
/// @param addr New owner address
47
+
/// @notice Proposes or confirms a change of owner address.
48
+
/// @notice If invoked by the current owner, proposes a new owner address for confirmation. If the proposed address is the current owner address, revokes any existing proposal that proposed address.
50
49
function change_owner_address(stringmemoryaddr) public {
51
50
owner = addr;
52
51
}
53
52
54
-
/// Returns whether the provided address is "controlling".
55
-
/// The "controlling" addresses are the Owner, the Worker, and all Control Addresses.
53
+
/// @param params The "controlling" addresses are the Owner, the Worker, and all Control Addresses.
54
+
/// @return Whether the provided address is "controlling".
/// Proposes or confirms a change of beneficiary address.
102
-
/// A proposal must be submitted by the owner, and takes effect after approval of both the proposed beneficiary and current beneficiary,
103
-
/// if applicable, any current beneficiary that has time and quota remaining.
104
-
/// See FIP-0029, https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0029.md
100
+
/// @notice Proposes or confirms a change of beneficiary address.
101
+
/// @notice A proposal must be submitted by the owner, and takes effect after approval of both the proposed beneficiary and current beneficiary, if applicable, any current beneficiary that has time and quota remaining.
102
+
/// @notice See FIP-0029, https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0029.md
105
103
function change_beneficiary(
106
104
MinerTypes.ChangeBeneficiaryParams memoryparams
107
105
) public {
@@ -120,9 +118,8 @@ contract MinerAPI {
120
118
}
121
119
}
122
120
123
-
/// Retrieves the currently active and proposed beneficiary information.
124
-
/// This method is for use by other actors (such as those acting as beneficiaries),
125
-
/// and to abstract the state representation for clients.
121
+
/// @notice This method is for use by other actors (such as those acting as beneficiaries), and to abstract the state representation for clients.
122
+
/// @notice Retrieves the currently active and proposed beneficiary information.
0 commit comments