Skip to content

Commit

Permalink
Added burnBatch to JackpotJunction.
Browse files Browse the repository at this point in the history
  • Loading branch information
zomglings committed May 14, 2024
1 parent b045a3d commit b87453d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/JackpotJunction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,8 @@ contract JackpotJunction is ERC1155, ReentrancyGuard {
function burn(uint256 poolID, uint256 amount) external {
_burn(msg.sender, poolID, amount);
}

function burnBatch(uint256[] memory poolIDs, uint256[] memory amounts) external {
_burnBatch(msg.sender, poolIDs, amounts);
}
}
4 changes: 3 additions & 1 deletion src/interfaces.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ interface IDegenTrail {
*/
// Interface generated by solface: https://github.com/moonstream-to/solface
// solface version: 0.2.3
// Interface ID: c66f5bae
// Interface ID: 45a510c1
interface IJackpotJunction {
// structs

Expand Down Expand Up @@ -106,6 +106,8 @@ interface IJackpotJunction {
function balanceOfBatch(address[] memory accounts, uint256[] memory ids) external view returns (uint256[] memory);
// Selector: b390c0ab
function burn(uint256 poolID, uint256 amount) external ;
// Selector: 83ca4b6f
function burnBatch(uint256[] memory poolIDs, uint256[] memory amounts) external ;
// Selector: f3917bd2
function craft(uint256 poolID) external returns (uint256 newPoolID);
// Selector: 3a134f78
Expand Down

0 comments on commit b87453d

Please sign in to comment.