@@ -408,7 +408,7 @@ function indexedTokens(uint256) external view returns (uint256)
408
408
### initialize
409
409
410
410
``` solidity
411
- function initialize(address _defaultAdmin, string _contractURI, address[] _trustedForwarders, address _rewardToken, address _stakingToken, uint256 _defaultTimeUnit, uint256 _defaultRewardsPerUnitTime) external nonpayable
411
+ function initialize(address _defaultAdmin, string _contractURI, address[] _trustedForwarders, address _rewardToken, address _stakingToken, uint80 _defaultTimeUnit, uint256 _defaultRewardsPerUnitTime) external nonpayable
412
412
```
413
413
414
414
@@ -424,7 +424,7 @@ function initialize(address _defaultAdmin, string _contractURI, address[] _trust
424
424
| _ trustedForwarders | address[ ] | undefined |
425
425
| _ rewardToken | address | undefined |
426
426
| _ stakingToken | address | undefined |
427
- | _ defaultTimeUnit | uint256 | undefined |
427
+ | _ defaultTimeUnit | uint80 | undefined |
428
428
| _ defaultRewardsPerUnitTime | uint256 | undefined |
429
429
430
430
### isIndexed
@@ -522,7 +522,7 @@ function onERC1155BatchReceived(address operator, address from, uint256[] ids, u
522
522
### onERC1155Received
523
523
524
524
``` solidity
525
- function onERC1155Received(address, address, uint256, uint256, bytes) external nonpayable returns (bytes4)
525
+ function onERC1155Received(address, address, uint256, uint256, bytes) external view returns (bytes4)
526
526
```
527
527
528
528
@@ -631,7 +631,7 @@ Set rewards per unit of time. Interpreted as x rewards per second/per
631
631
### setDefaultTimeUnit
632
632
633
633
``` solidity
634
- function setDefaultTimeUnit(uint256 _defaultTimeUnit) external nonpayable
634
+ function setDefaultTimeUnit(uint80 _defaultTimeUnit) external nonpayable
635
635
```
636
636
637
637
Set time unit. Set as a number of seconds. Could be specified as -- x * 1 hours, x * 1 days, etc.
@@ -642,7 +642,7 @@ Set time unit. Set as a number of seconds. Could be specified as -- x
642
642
643
643
| Name | Type | Description |
644
644
| ---| ---| ---|
645
- | _ defaultTimeUnit | uint256 | New time unit. |
645
+ | _ defaultTimeUnit | uint80 | New time unit. |
646
646
647
647
### setRewardsPerUnitTime
648
648
@@ -664,7 +664,7 @@ Set rewards per unit of time. Interpreted as x rewards per second/per
664
664
### setTimeUnit
665
665
666
666
``` solidity
667
- function setTimeUnit(uint256 _tokenId, uint256 _timeUnit) external nonpayable
667
+ function setTimeUnit(uint256 _tokenId, uint80 _timeUnit) external nonpayable
668
668
```
669
669
670
670
Set time unit. Set as a number of seconds. Could be specified as -- x * 1 hours, x * 1 days, etc.
@@ -676,12 +676,12 @@ Set time unit. Set as a number of seconds. Could be specified as -- x
676
676
| Name | Type | Description |
677
677
| ---| ---| ---|
678
678
| _ tokenId | uint256 | ERC1155 token Id. |
679
- | _ timeUnit | uint256 | New time unit. |
679
+ | _ timeUnit | uint80 | New time unit. |
680
680
681
681
### stake
682
682
683
683
``` solidity
684
- function stake(uint256 _tokenId, uint256 _amount) external nonpayable
684
+ function stake(uint256 _tokenId, uint64 _amount) external nonpayable
685
685
```
686
686
687
687
Stake ERC721 Tokens.
@@ -693,12 +693,12 @@ Stake ERC721 Tokens.
693
693
| Name | Type | Description |
694
694
| ---| ---| ---|
695
695
| _ tokenId | uint256 | ERC1155 token-id to stake. |
696
- | _ amount | uint256 | Amount to stake. |
696
+ | _ amount | uint64 | Amount to stake. |
697
697
698
698
### stakers
699
699
700
700
``` solidity
701
- function stakers(uint256, address) external view returns (uint256 amountStaked, uint256 timeOfLastUpdate, uint256 unclaimedRewards , uint256 conditionIdOflastUpdate )
701
+ function stakers(uint256, address) external view returns (uint64 conditionIdOflastUpdate, uint64 amountStaked, uint128 timeOfLastUpdate , uint256 unclaimedRewards )
702
702
```
703
703
704
704
@@ -716,10 +716,10 @@ function stakers(uint256, address) external view returns (uint256 amountStaked,
716
716
717
717
| Name | Type | Description |
718
718
| ---| ---| ---|
719
- | amountStaked | uint256 | undefined |
720
- | timeOfLastUpdate | uint256 | undefined |
719
+ | conditionIdOflastUpdate | uint64 | undefined |
720
+ | amountStaked | uint64 | undefined |
721
+ | timeOfLastUpdate | uint128 | undefined |
721
722
| unclaimedRewards | uint256 | undefined |
722
- | conditionIdOflastUpdate | uint256 | undefined |
723
723
724
724
### stakersArray
725
725
@@ -786,7 +786,7 @@ function supportsInterface(bytes4 interfaceId) external view returns (bool)
786
786
### withdraw
787
787
788
788
``` solidity
789
- function withdraw(uint256 _tokenId, uint256 _amount) external nonpayable
789
+ function withdraw(uint256 _tokenId, uint64 _amount) external nonpayable
790
790
```
791
791
792
792
Withdraw staked tokens.
@@ -798,7 +798,7 @@ Withdraw staked tokens.
798
798
| Name | Type | Description |
799
799
| ---| ---| ---|
800
800
| _ tokenId | uint256 | ERC1155 token-id to withdraw. |
801
- | _ amount | uint256 | Amount to withdraw. |
801
+ | _ amount | uint64 | Amount to withdraw. |
802
802
803
803
### withdrawRewardTokens
804
804
0 commit comments