forked from Zapper-fi/studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rari): Extract to Studio (Zapper-fi#1187)
- Loading branch information
1 parent
a2744b4
commit 4d2c98f
Showing
19 changed files
with
6,344 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
286 changes: 286 additions & 0 deletions
286
src/apps/rari/contracts/abis/rari-governance-token-distributor.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,286 @@ | ||
[ | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": false, "internalType": "address", "name": "holder", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "claimed", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "transferred", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "burned", "type": "uint256" } | ||
], | ||
"name": "Claim", | ||
"type": "event" | ||
}, | ||
{ "anonymous": false, "inputs": [], "name": "Disabled", "type": "event" }, | ||
{ "anonymous": false, "inputs": [], "name": "Enabled", "type": "event" }, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, | ||
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } | ||
], | ||
"name": "OwnershipTransferred", | ||
"type": "event" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "DISTRIBUTION_PERIOD", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "FINAL_RGT_DISTRIBUTION", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "disabled", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "distributionEndBlock", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "distributionStartBlock", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "isOwner", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "owner", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [], | ||
"name": "renounceOwnership", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], | ||
"name": "transferOwnership", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "internalType": "address", "name": "sender", "type": "address" }], | ||
"name": "initialize", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "startBlock", "type": "uint256" }, | ||
{ "internalType": "contract IRariFundManager[3]", "name": "fundManagers", "type": "address[3]" }, | ||
{ "internalType": "contract IERC20[3]", "name": "fundTokens", "type": "address[3]" } | ||
], | ||
"name": "initialize", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "internalType": "bool", "name": "_disabled", "type": "bool" }], | ||
"name": "setDisabled", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "internalType": "contract RariGovernanceToken", "name": "governanceToken", "type": "address" }], | ||
"name": "setGovernanceToken", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "internalType": "enum RariGovernanceTokenDistributor.RariPool", "name": "pool", "type": "uint8" }, | ||
{ "internalType": "contract IRariFundManager", "name": "fundManager", "type": "address" } | ||
], | ||
"name": "setFundManager", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "internalType": "enum RariGovernanceTokenDistributor.RariPool", "name": "pool", "type": "uint8" }, | ||
{ "internalType": "contract IERC20", "name": "fundToken", "type": "address" } | ||
], | ||
"name": "setFundToken", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [{ "internalType": "uint256", "name": "blockNumber", "type": "uint256" }], | ||
"name": "getRgtDistributed", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [], | ||
"name": "refreshDistributionSpeeds", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "internalType": "enum RariGovernanceTokenDistributor.RariPool", "name": "pool", "type": "uint8" }, | ||
{ "internalType": "uint256", "name": "newBalance", "type": "uint256" } | ||
], | ||
"name": "refreshDistributionSpeeds", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "internalType": "enum RariGovernanceTokenDistributor.RariPool", "name": "pool", "type": "uint8" }], | ||
"name": "refreshDistributionSpeeds", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "getEthUsdPrice", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "internalType": "address", "name": "holder", "type": "address" }, | ||
{ "internalType": "enum RariGovernanceTokenDistributor.RariPool", "name": "pool", "type": "uint8" } | ||
], | ||
"name": "distributeRgt", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "internalType": "address", "name": "holder", "type": "address" }, | ||
{ "internalType": "enum RariGovernanceTokenDistributor.RariPool", "name": "pool", "type": "uint8" } | ||
], | ||
"name": "beforeFirstPoolTokenTransferIn", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [{ "internalType": "address", "name": "holder", "type": "address" }], | ||
"name": "getUnclaimedRgt", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [{ "internalType": "uint256", "name": "blockNumber", "type": "uint256" }], | ||
"name": "getPublicRgtClaimFee", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], | ||
"name": "claimRgt", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [], | ||
"name": "claimAllRgt", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [{ "internalType": "address", "name": "newContract", "type": "address" }], | ||
"name": "upgrade", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
Oops, something went wrong.