Skip to content

Commit

Permalink
Merge pull request #11 from gnosis/updates
Browse files Browse the repository at this point in the history
Account for Uni V3, Balancer & sGNO
  • Loading branch information
jfschwarz authored May 11, 2022
2 parents 6aae71f + 5632217 commit c40dfe9
Show file tree
Hide file tree
Showing 88 changed files with 66,937 additions and 9,801 deletions.
17 changes: 6 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
**/node_modules
**/build
**/generated
node_modules
build
build-gc
generated
generated-gc
**/.DS_Store
**/artifacts/
**/env/
**/.env
**/.history
**/coverage*
**/deployments
.devcontainer
**/.bin/
tests/.bin
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 2,
"singleQuote": false,
"trailingComma": "es5"
}
34 changes: 18 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# GNO Voting Power
This repo is a collection of subgraphs which aggregate the balance of GNO held in multiple multiple contracts on several networks.

This repo is a collection of subgraphs which aggregate the balance of GNO held in multiple contracts on several networks.

Currently, it tracks GNO balances in:
* Ethereum Mainnet:
- [ ] GNO
- [ ] lGNO
- [ ] Uniswap v3
- [ ] Balancer
* Gnosis Chain:

- Ethereum Mainnet:
- [x] GNO
- [x] LGNO
- [x] Uniswap v3
- [x] Balancer
- Gnosis Chain:
- [x] GNO
- [x] mgno
- [x] lgno
- [x] staking deposits
- [x] mGNO
- [x] sGNO
- [x] LGNO
- [x] Beacon Chain validator deposits
- [x] 1Hive
- [x] swapper
- [x] sushiswap
- [x] elk
- [x] baoswap
- [ ] symetric
- [ ] agave
- [x] Swapper
- [x] SushiSwap
- [x] Elk
- [x] Baoswap
- [x] Symmetric
File renamed without changes.
194 changes: 194 additions & 0 deletions abis/SBCDepositContract.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
[
{
"type": "constructor",
"stateMutability": "nonpayable",
"inputs": [
{ "type": "address", "name": "_token", "internalType": "address" }
]
},
{
"type": "event",
"name": "DepositEvent",
"inputs": [
{
"type": "bytes",
"name": "pubkey",
"internalType": "bytes",
"indexed": false
},
{
"type": "bytes",
"name": "withdrawal_credentials",
"internalType": "bytes",
"indexed": false
},
{
"type": "bytes",
"name": "amount",
"internalType": "bytes",
"indexed": false
},
{
"type": "bytes",
"name": "signature",
"internalType": "bytes",
"indexed": false
},
{
"type": "bytes",
"name": "index",
"internalType": "bytes",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "Paused",
"inputs": [
{
"type": "address",
"name": "account",
"internalType": "address",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "Unpaused",
"inputs": [
{
"type": "address",
"name": "account",
"internalType": "address",
"indexed": false
}
],
"anonymous": false
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "batchDeposit",
"inputs": [
{ "type": "bytes", "name": "pubkeys", "internalType": "bytes" },
{
"type": "bytes",
"name": "withdrawal_credentials",
"internalType": "bytes"
},
{ "type": "bytes", "name": "signatures", "internalType": "bytes" },
{
"type": "bytes32[]",
"name": "deposit_data_roots",
"internalType": "bytes32[]"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "claimTokens",
"inputs": [
{ "type": "address", "name": "_token", "internalType": "address" },
{ "type": "address", "name": "_to", "internalType": "address" }
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "deposit",
"inputs": [
{ "type": "bytes", "name": "pubkey", "internalType": "bytes" },
{
"type": "bytes",
"name": "withdrawal_credentials",
"internalType": "bytes"
},
{ "type": "bytes", "name": "signature", "internalType": "bytes" },
{
"type": "bytes32",
"name": "deposit_data_root",
"internalType": "bytes32"
},
{ "type": "uint256", "name": "stake_amount", "internalType": "uint256" }
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [{ "type": "bytes", "name": "", "internalType": "bytes" }],
"name": "get_deposit_count",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [{ "type": "bytes32", "name": "", "internalType": "bytes32" }],
"name": "get_deposit_root",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [{ "type": "bool", "name": "", "internalType": "bool" }],
"name": "onTokenTransfer",
"inputs": [
{ "type": "address", "name": "", "internalType": "address" },
{ "type": "uint256", "name": "stake_amount", "internalType": "uint256" },
{ "type": "bytes", "name": "data", "internalType": "bytes" }
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "pause",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [{ "type": "bool", "name": "", "internalType": "bool" }],
"name": "paused",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{ "type": "address", "name": "", "internalType": "contract IERC20" }
],
"name": "stake_token",
"inputs": []
},
{
"type": "function",
"stateMutability": "pure",
"outputs": [{ "type": "bool", "name": "", "internalType": "bool" }],
"name": "supportsInterface",
"inputs": [
{ "type": "bytes4", "name": "interfaceId", "internalType": "bytes4" }
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "unpause",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [{ "type": "bytes32", "name": "", "internalType": "bytes32" }],
"name": "validator_withdrawal_credentials",
"inputs": [{ "type": "bytes", "name": "", "internalType": "bytes" }]
}
]
File renamed without changes.
115 changes: 115 additions & 0 deletions abis/balancerV1/BFactory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"contractName": "BFactory",
"abi": [{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "blabs",
"type": "address"
}],
"name": "LOG_BLABS",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "pool",
"type": "address"
}],
"name": "LOG_NEW_POOL",
"type": "event"
}, {
"constant": false,
"inputs": [{
"internalType": "contract BPool",
"name": "pool",
"type": "address"
}],
"name": "collect",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "getBLabs",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [],
"name": "getColor",
"outputs": [{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": true,
"inputs": [{
"internalType": "address",
"name": "b",
"type": "address"
}],
"name": "isBPool",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
}, {
"constant": false,
"inputs": [],
"name": "newBPool",
"outputs": [{
"internalType": "contract BPool",
"name": "",
"type": "address"
}],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}, {
"constant": false,
"inputs": [{
"internalType": "address",
"name": "b",
"type": "address"
}],
"name": "setBLabs",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}]
}
Loading

0 comments on commit c40dfe9

Please sign in to comment.