Skip to content

Commit

Permalink
fix tvl
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv-chauhan committed Aug 8, 2023
1 parent c7155a7 commit 5beb6c4
Show file tree
Hide file tree
Showing 9 changed files with 451 additions and 97 deletions.
318 changes: 318 additions & 0 deletions subgraphs/rocket-pool/abis/RocketVault.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,318 @@
[
{
"inputs": [
{
"internalType": "contract RocketStorageInterface",
"name": "_rocketStorageAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "string",
"name": "by",
"type": "string"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "EtherDeposited",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "string",
"name": "by",
"type": "string"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "EtherWithdrawn",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "by",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "TokenBurned",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "by",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "TokenDeposited",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "by",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "to",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "TokenTransfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "by",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "TokenWithdrawn",
"type": "event"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkContractName",
"type": "string"
}
],
"name": "balanceOf",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkContractName",
"type": "string"
},
{
"internalType": "contract IERC20",
"name": "_tokenAddress",
"type": "address"
}
],
"name": "balanceOfToken",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract ERC20Burnable",
"name": "_tokenAddress",
"type": "address"
},
{ "internalType": "uint256", "name": "_amount", "type": "uint256" }
],
"name": "burnToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "depositEther",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkContractName",
"type": "string"
},
{
"internalType": "contract IERC20",
"name": "_tokenContract",
"type": "address"
},
{ "internalType": "uint256", "name": "_amount", "type": "uint256" }
],
"name": "depositToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkContractName",
"type": "string"
},
{
"internalType": "contract IERC20",
"name": "_tokenAddress",
"type": "address"
},
{ "internalType": "uint256", "name": "_amount", "type": "uint256" }
],
"name": "transferToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "_amount", "type": "uint256" }
],
"name": "withdrawEther",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_withdrawalAddress",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "_tokenAddress",
"type": "address"
},
{ "internalType": "uint256", "name": "_amount", "type": "uint256" }
],
"name": "withdrawToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
2 changes: 1 addition & 1 deletion subgraphs/rocket-pool/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ templates:
file: ./abis/RocketNetworkPrices.json
- name: RocketStorage
file: ./abis/RocketStorage.json
- name: rocketVault
file: ./abis/RocketVault.json
- name: rocketNodeStaking
file: ./abis/RocketNodeStaking.json
###########################################
############## Price Oracle ###############
###########################################
Expand Down Expand Up @@ -302,8 +306,41 @@ templates:
file: ./abis/RocketTokenRETH.json
- name: RocketStorage
file: ./abis/RocketStorage.json
###########################################
############## Price Oracle ###############
###########################################
# ERC20
- name: _ERC20
file: ./abis/Prices/ERC20.json
# Curve Contracts
- name: CurveRegistry
file: ./abis/Prices/Curve/Registry.json
- name: CurvePoolRegistry
file: ./abis/Prices/Curve/PoolRegistry.json
- name: CalculationsCurve
file: ./abis/Prices/Calculations/Curve.json
# YearnLens Contracts
- name: YearnLensContract
file: ./abis/Prices/YearnLens.json
# ChainLink Contracts
- name: ChainLinkContract
file: ./abis/Prices/ChainLink.json
# Uniswap Contracts
- name: UniswapRouter
file: ./abis/Prices/Uniswap/Router.json
- name: UniswapFactory
file: ./abis/Prices/Uniswap/Factory.json
- name: UniswapPair
file: ./abis/Prices/Uniswap/Pair.json
# SushiSwap Contracts
- name: SushiSwapRouter
file: ./abis/Prices/SushiSwap/Router.json
- name: SushiSwapFactory
file: ./abis/Prices/SushiSwap/Factory.json
- name: SushiSwapPair
file: ./abis/Prices/SushiSwap/Pair.json
- name: CalculationsSushiSwap
file: ./abis/Prices/Calculations/SushiSwap.json
eventHandlers:
- event: RPLTokensClaimed(indexed address,indexed address,uint256,uint256)
handler: handleRPLTokensClaimed
Expand Down
Loading

0 comments on commit 5beb6c4

Please sign in to comment.