Skip to content

Commit 99c889c

Browse files
committed
docs
1 parent db49040 commit 99c889c

8 files changed

+2151
-1
lines changed

docs/EditionStake.md

+16
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,22 @@ Withdraw staked tokens.
766766
| _tokenId | uint256 | ERC1155 token-id to withdraw. |
767767
| _amount | uint256 | Amount to withdraw. |
768768

769+
### withdrawRewardTokens
770+
771+
```solidity
772+
function withdrawRewardTokens(uint256 _amount) external nonpayable
773+
```
774+
775+
776+
777+
*Admin can withdraw excess reward tokens.*
778+
779+
#### Parameters
780+
781+
| Name | Type | Description |
782+
|---|---|---|
783+
| _amount | uint256 | undefined |
784+
769785

770786

771787
## Events

docs/IStaking20.md

+188
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
# IStaking20
2+
3+
4+
5+
6+
7+
8+
9+
10+
11+
## Methods
12+
13+
### claimRewards
14+
15+
```solidity
16+
function claimRewards() external nonpayable
17+
```
18+
19+
Claim accumulated rewards.
20+
21+
22+
23+
24+
### getStakeInfo
25+
26+
```solidity
27+
function getStakeInfo(address staker) external view returns (uint256 _tokensStaked, uint256 _rewards)
28+
```
29+
30+
View amount staked and total rewards for a user.
31+
32+
33+
34+
#### Parameters
35+
36+
| Name | Type | Description |
37+
|---|---|---|
38+
| staker | address | Address for which to calculated rewards. |
39+
40+
#### Returns
41+
42+
| Name | Type | Description |
43+
|---|---|---|
44+
| _tokensStaked | uint256 | undefined |
45+
| _rewards | uint256 | undefined |
46+
47+
### stake
48+
49+
```solidity
50+
function stake(uint256 amount) external nonpayable
51+
```
52+
53+
Stake ERC721 Tokens.
54+
55+
56+
57+
#### Parameters
58+
59+
| Name | Type | Description |
60+
|---|---|---|
61+
| amount | uint256 | Amount to stake. |
62+
63+
### withdraw
64+
65+
```solidity
66+
function withdraw(uint256 amount) external nonpayable
67+
```
68+
69+
Withdraw staked tokens.
70+
71+
72+
73+
#### Parameters
74+
75+
| Name | Type | Description |
76+
|---|---|---|
77+
| amount | uint256 | Amount to withdraw. |
78+
79+
80+
81+
## Events
82+
83+
### RewardsClaimed
84+
85+
```solidity
86+
event RewardsClaimed(address indexed staker, uint256 rewardAmount)
87+
```
88+
89+
90+
91+
*Emitted when a staker claims staking rewards.*
92+
93+
#### Parameters
94+
95+
| Name | Type | Description |
96+
|---|---|---|
97+
| staker `indexed` | address | undefined |
98+
| rewardAmount | uint256 | undefined |
99+
100+
### TokensStaked
101+
102+
```solidity
103+
event TokensStaked(address indexed staker, uint256 amount)
104+
```
105+
106+
107+
108+
*Emitted when tokens are staked.*
109+
110+
#### Parameters
111+
112+
| Name | Type | Description |
113+
|---|---|---|
114+
| staker `indexed` | address | undefined |
115+
| amount | uint256 | undefined |
116+
117+
### TokensWithdrawn
118+
119+
```solidity
120+
event TokensWithdrawn(address indexed staker, uint256 amount)
121+
```
122+
123+
124+
125+
*Emitted when a tokens are withdrawn.*
126+
127+
#### Parameters
128+
129+
| Name | Type | Description |
130+
|---|---|---|
131+
| staker `indexed` | address | undefined |
132+
| amount | uint256 | undefined |
133+
134+
### UpdatedMinStakeAmount
135+
136+
```solidity
137+
event UpdatedMinStakeAmount(uint256 oldAmount, uint256 newAmount)
138+
```
139+
140+
141+
142+
*Emitted when contract admin updates minimum staking amount.*
143+
144+
#### Parameters
145+
146+
| Name | Type | Description |
147+
|---|---|---|
148+
| oldAmount | uint256 | undefined |
149+
| newAmount | uint256 | undefined |
150+
151+
### UpdatedRewardRatio
152+
153+
```solidity
154+
event UpdatedRewardRatio(uint256 oldNumerator, uint256 newNumerator, uint256 oldDenominator, uint256 newDenominator)
155+
```
156+
157+
158+
159+
*Emitted when contract admin updates rewardsPerUnitTime.*
160+
161+
#### Parameters
162+
163+
| Name | Type | Description |
164+
|---|---|---|
165+
| oldNumerator | uint256 | undefined |
166+
| newNumerator | uint256 | undefined |
167+
| oldDenominator | uint256 | undefined |
168+
| newDenominator | uint256 | undefined |
169+
170+
### UpdatedTimeUnit
171+
172+
```solidity
173+
event UpdatedTimeUnit(uint256 oldTimeUnit, uint256 newTimeUnit)
174+
```
175+
176+
177+
178+
*Emitted when contract admin updates timeUnit.*
179+
180+
#### Parameters
181+
182+
| Name | Type | Description |
183+
|---|---|---|
184+
| oldTimeUnit | uint256 | undefined |
185+
| newTimeUnit | uint256 | undefined |
186+
187+
188+

docs/IStaking.md docs/IStaking721.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# IStaking
1+
# IStaking721
22

33

44

docs/NFTStake.md

+16
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,22 @@ Withdraw staked tokens.
649649
|---|---|---|
650650
| _tokenIds | uint256[] | List of tokens to withdraw. |
651651

652+
### withdrawRewardTokens
653+
654+
```solidity
655+
function withdrawRewardTokens(uint256 _amount) external nonpayable
656+
```
657+
658+
659+
660+
*Admin can withdraw excess reward tokens.*
661+
662+
#### Parameters
663+
664+
| Name | Type | Description |
665+
|---|---|---|
666+
| _amount | uint256 | undefined |
667+
652668

653669

654670
## Events

0 commit comments

Comments
 (0)