Skip to content

Commit

Permalink
feat: add automation
Browse files Browse the repository at this point in the history
  • Loading branch information
MejiasDev committed Apr 1, 2024
1 parent 52ea38c commit 39c0e3d
Show file tree
Hide file tree
Showing 28 changed files with 4,198 additions and 20,972 deletions.
2,407 changes: 2,010 additions & 397 deletions abi/fullDiamond.json

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions abis/AuthorizationFacet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[
{
"inputs": [],
"name": "LDiamond__OnlyOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "_address",
"type": "address"
}
],
"name": "authorize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_address",
"type": "address"
}
],
"name": "authorized",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_address",
"type": "address"
}
],
"name": "unAuthorize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
78 changes: 78 additions & 0 deletions abis/BoostFacet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
[
{
"inputs": [],
"name": "BoostFacet__BoostAlreadyClaimed",
"type": "error"
},
{
"inputs": [],
"name": "BoostFacet__InvalidBoostLevel",
"type": "error"
},
{
"inputs": [],
"name": "BoostFacet__InvalidFeeReceivers",
"type": "error"
},
{
"inputs": [],
"name": "BoostFacet__UserNotParticipated",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "seasonId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "boostLevel",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_boostPoints",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "boostFee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tier",
"type": "uint256"
}
],
"name": "ClaimBoost",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_boostLevel",
"type": "uint256"
}
],
"name": "claimBoost",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
4,618 changes: 0 additions & 4,618 deletions abis/BoostFacet.sol/BoostFacet.json

This file was deleted.

89 changes: 89 additions & 0 deletions abis/ClaimFacet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
[
{
"inputs": [],
"name": "ClaimFacet__AlreadyClaimed",
"type": "error"
},
{
"inputs": [],
"name": "ClaimFacet__InProgressSeason",
"type": "error"
},
{
"inputs": [],
"name": "ClaimFacet__NotEnoughPoints",
"type": "error"
},
{
"inputs": [],
"name": "LAuthorizable__OnlyAuthorized",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "seasonId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "rewardsAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "depositAmount",
"type": "uint256"
}
],
"name": "Claim",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_seasonId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_user",
"type": "address"
}
],
"name": "automatedClaim",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_seasonId",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "_users",
"type": "address[]"
}
],
"name": "automatedClaimBatch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
3,506 changes: 0 additions & 3,506 deletions abis/ClaimFacet.sol/ClaimFacet.json

This file was deleted.

65 changes: 65 additions & 0 deletions abis/DepositFacet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[
{
"inputs": [],
"name": "DepositFacet__InvalidMiningPass",
"type": "error"
},
{
"inputs": [],
"name": "DepositFacet__Less_Than_One_Day",
"type": "error"
},
{
"inputs": [],
"name": "DepositFacet__NotEnoughTokenBalance",
"type": "error"
},
{
"inputs": [],
"name": "DepositFacet__ReentrancyGuard__ReentrantCall",
"type": "error"
},
{
"inputs": [],
"name": "DepositFacet__SeasonEnded",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "seasonId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "Deposit",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "deposit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
4,090 changes: 0 additions & 4,090 deletions abis/DepositFacet.sol/DepositFacet.json

This file was deleted.

97 changes: 97 additions & 0 deletions abis/DiamondLoupeFacet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
[
{
"inputs": [
{
"internalType": "bytes4",
"name": "_functionSelector",
"type": "bytes4"
}
],
"name": "facetAddress",
"outputs": [
{
"internalType": "address",
"name": "facetAddress_",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "facetAddresses",
"outputs": [
{
"internalType": "address[]",
"name": "facetAddresses_",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_facet",
"type": "address"
}
],
"name": "facetFunctionSelectors",
"outputs": [
{
"internalType": "bytes4[]",
"name": "facetFunctionSelectors_",
"type": "bytes4[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "facets",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "facetAddress",
"type": "address"
},
{
"internalType": "bytes4[]",
"name": "functionSelectors",
"type": "bytes4[]"
}
],
"internalType": "struct IDiamondLoupe.Facet[]",
"name": "facets_",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_id",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit 39c0e3d

Please sign in to comment.