Skip to content

Commit

Permalink
feat(rari): Extract to Studio (Zapper-fi#1187)
Browse files Browse the repository at this point in the history
  • Loading branch information
immasandwich committed Aug 16, 2022
1 parent a2744b4 commit 4d2c98f
Show file tree
Hide file tree
Showing 19 changed files with 6,344 additions and 0 deletions.
Binary file added src/apps/rari/assets/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
535 changes: 535 additions & 0 deletions src/apps/rari/contracts/abis/rari-fund-manager.json

Large diffs are not rendered by default.

286 changes: 286 additions & 0 deletions src/apps/rari/contracts/abis/rari-governance-token-distributor.json
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"
}
]

0 comments on commit 4d2c98f

Please sign in to comment.