Skip to content

Commit

Permalink
Merge branch 'master' into Stader-Subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh9200 authored Jun 14, 2024
2 parents c2ea312 + bbe1e5c commit e218ee8
Show file tree
Hide file tree
Showing 146 changed files with 26,887 additions and 0 deletions.
68 changes: 68 additions & 0 deletions deployment/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -10722,5 +10722,73 @@
}
}
}
},
"mantle-staked-eth": {
"schema": "generic",
"base": "mantle-staked-eth",
"protocol": "mantle-staked-eth",
"project": "mantle-staked-eth",
"deployments": {
"mantle-staked-eth-ethereum": {
"network": "ethereum",
"status": "prod",
"versions": {
"schema": "2.1.1",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "mantle-staked-eth.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
},
"services": {
"hosted-service": {
"slug": "mantle-staked-eth-ethereum",
"query-id": "mantle-staked-eth-ethereum"
},
"decentralized-network": {
"slug": "mantle-staked-eth-ethereum",
"query-id": "todo"
}
}
}
}
},
"swell-liquid-staking": {
"schema": "generic",
"base": "swell-liquid-staking",
"protocol": "swell-liquid-staking",
"project": "swell-liquid-staking",
"deployments": {
"swell-liquid-staking-ethereum": {
"network": "ethereum",
"status": "prod",
"versions": {
"schema": "2.1.1",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "swell.liquid.staking.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
},
"services": {
"hosted-service": {
"slug": "swell-liquid-staking-ethereum",
"query-id": "swell-liquid-staking-ethereum"
},
"decentralized-network": {
"slug": "swell-liquid-staking-ethereum",
"query-id": "todo"
}
}
}
}
}
}
4 changes: 4 additions & 0 deletions subgraphs/mantle-staked-eth/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
configure.ts
docs/
package-lock.json
37 changes: 37 additions & 0 deletions subgraphs/mantle-staked-eth/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Mantle Staked ETH Subgraph

## Methodology v1.0.0

Mantle Liquid Staking Protocol (LSP) is a permissionless, non-custodial ETH liquid staking protocol deployed on Ethereum L1 and governed by Mantle. Mantle Staked Ether (mETH) serves as the value-accumulating receipt token.

## Metrics

### Usage and Transactions

- Stake ETH to instantly receive mETH.
- Unstake mETH to reclaim the initially staked ETH and accumulated rewards, with delays synchronized with the estimated "Exit Queue" wait time, and the Unstake Lifecycle.

### TVL

TVL is the total value of ETH staked with the protocol.

### Fees

Protocol applies a 10% fee on a user’s staking rewards. This fee is split between protocol and the node operators.

### Revenue

Staking rewards on the total staked ETH make up the total revenue.
Of this 10% is kept by the protocol as fees (protocol side revenue), rest 90% is passed on to the stakers (supply side revenue).

_Note_: ConsensusLayer and ExecutionLayer rewards are collected every ~8 days, hence there are peaks and troughs in revenue charts. [docs](https://docs.mantle.xyz/meth/concepts/accounting/calculating-fees).

## Useful Links

- Landing Page: https://mantle.xyz/meth
- Staking App: https://meth.mantle.xyz/stake
- Docs: https://docs.mantle.xyz/meth
- Contracts:
- Staking Contract: https://etherscan.io/address/0xe3cBd06D7dadB3F4e6557bAb7EdD924CD1489E8f
- Returns Aggregator Contract: https://etherscan.io/address/0x1766be66fBb0a1883d41B4cfB0a533c5249D3b82#code
- mETH token address: https://etherscan.io/address/0xd5F7838F5C461fefF7FE49ea5ebaF7728bB0ADfa
222 changes: 222 additions & 0 deletions subgraphs/mantle-staked-eth/abis/Tokens/ERC20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_spender",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_from",
"type": "address"
},
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "balance",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
},
{
"name": "_spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "owner",
"type": "address"
},
{
"indexed": true,
"name": "spender",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "from",
"type": "address"
},
{
"indexed": true,
"name": "to",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
}
]
17 changes: 17 additions & 0 deletions subgraphs/mantle-staked-eth/abis/Tokens/ERC20NameBytes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]
17 changes: 17 additions & 0 deletions subgraphs/mantle-staked-eth/abis/Tokens/ERC20SymbolBytes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit e218ee8

Please sign in to comment.