Skip to content

[Horizon] Stage 1 subgraph upgrade #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
2c7f4f9
feat: add basic handlers for stake management in Horizon, and update …
juanmardefago Feb 10, 2025
9207a58
fix: potential issue for Stage 2
juanmardefago Feb 10, 2025
6d95aec
fix: comments from latest round of reviews
juanmardefago Feb 13, 2025
8d2d467
fix: more fixes from reviews, and fixed addresses import preventing b…
juanmardefago Feb 13, 2025
711be0d
feat: add initial provision management, without thawing tracking
juanmardefago Feb 11, 2025
aae49f9
feat: basic implementation for ThawRequests
juanmardefago Feb 12, 2025
5876da9
fix: schema
juanmardefago Feb 13, 2025
fa73dc1
fix: maxVerifierCut/Pending wrong types, schema issues and more
juanmardefago Feb 13, 2025
20c5029
feat: added ProvisionSlashed support
juanmardefago Feb 13, 2025
e06c7f3
feat: add ParametersSet and Staged support for provisions
juanmardefago Feb 12, 2025
f921b8b
chore: placeholder for SetOperator and DelegationFeeCutSet
juanmardefago Feb 13, 2025
ee0ea27
feat: added new OperatorSet and DelegationFeeCutSet event support
juanmardefago Feb 18, 2025
36f8e93
fix: provisionedOperators missing init
juanmardefago Feb 18, 2025
de6be79
feat: added basic delegation pool management
juanmardefago Feb 18, 2025
80581d9
feat: added provision delegated fields
juanmardefago Feb 19, 2025
512937d
feat: removed advanced metrics for indexer on horizon since it makes …
juanmardefago Feb 19, 2025
06cc866
feat: prepared configs, placeholder mapping file
juanmardefago Feb 19, 2025
f6158fe
feat: added basic service registry for Horizon
juanmardefago Feb 20, 2025
2117395
fix: abi.decode potential decoding failure
juanmardefago Feb 24, 2025
72a59ba
chore: placeholder event handlers
juanmardefago Feb 20, 2025
49b7aa8
chore: updated ABIs
juanmardefago Feb 24, 2025
c618aec
feat: implemented AllocationCreated, Closed and Resized
juanmardefago Feb 24, 2025
7264d71
fix: build issues
juanmardefago Feb 24, 2025
97e0c2e
chore: placeholder handler definition
juanmardefago Feb 24, 2025
5e94e08
feat: added indexing rewards collection handler
juanmardefago Feb 25, 2025
52172e2
feat: add QueryFeesCollected support
juanmardefago Feb 26, 2025
7242443
feat: added QueryFeesCollected handler with latest contract changes
juanmardefago Feb 27, 2025
43bb03c
feat: add GraphPayments abi
juanmardefago Feb 27, 2025
d6b88ee
feat: add tax tracking for Horizon through GraphPayments
juanmardefago Feb 27, 2025
06441f2
feat: placeholders and manifest changes for delegation
juanmardefago Feb 27, 2025
9cfd6d7
feat: added horizon delegation events support
juanmardefago Mar 3, 2025
827d730
fix: missing inits
juanmardefago Mar 6, 2025
932b4d1
fix: address gh pr feedback
juanmardefago Mar 30, 2025
05c6aeb
fix: build issues and feedback from PaymentCollection PR
juanmardefago Mar 30, 2025
05f77e6
fix: addressed AllocationManagement pr feedback
juanmardefago Mar 30, 2025
dc8f4b2
fix: address feedback from Subgraph Indexing Registration PR
juanmardefago Mar 31, 2025
ceae9b2
fix: address feedback from Delegation Pool pr
juanmardefago Mar 31, 2025
aeb53b5
fix: addressed provision config PR feedback
juanmardefago Mar 31, 2025
fd5fbd4
fix: most of the feedback from ProvisionManagement PR
juanmardefago Mar 31, 2025
a5bdbdb
fix: use new nomenclature for staking contract in address book
tmigone Apr 14, 2025
7c58a06
fix: add missing properties to provision initializer
tmigone Apr 15, 2025
4ce709c
fix: proper decoding for ServiceProviderRegistered
tmigone Apr 16, 2025
41bcce9
fix: update indexer entity on RewardsDestinationSet
tmigone Apr 16, 2025
59b6a5b
feat: add isLegacy boolean to indexer entity
tmigone Apr 16, 2025
59bed29
fix: couple fixes for thaw/deprovision flows
tmigone Apr 17, 2025
879da8c
fix: update data service entity on allo creation
tmigone Apr 21, 2025
bae916e
fix: update missing entities in allocation resize
tmigone Apr 21, 2025
907d22d
fix: update allocation close to latest signature
tmigone Apr 21, 2025
514970f
feat: add governance events handlers to horizon staking
tmigone Apr 21, 2025
631e966
feat: more missing governance events
tmigone Apr 21, 2025
04529ed
feat: add more missing events
tmigone Apr 22, 2025
0cd6bfa
fix: couple delegation fixes and additions
tmigone Apr 22, 2025
fa6b831
fix: few things about indexing rewards and pois
tmigone Apr 22, 2025
cc057f9
fix: load graph network first
tmigone Apr 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
317 changes: 317 additions & 0 deletions abis/GraphPayments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,317 @@
[
{
"type": "constructor",
"inputs": [
{
"name": "controller",
"type": "address",
"internalType": "address"
},
{
"name": "protocolPaymentCut",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "PROTOCOL_PAYMENT_CUT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "collect",
"inputs": [
{
"name": "paymentType",
"type": "uint8",
"internalType": "enum IGraphPayments.PaymentTypes"
},
{
"name": "receiver",
"type": "address",
"internalType": "address"
},
{
"name": "tokens",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "dataService",
"type": "address",
"internalType": "address"
},
{
"name": "dataServiceCut",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "initialize",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "multicall",
"inputs": [
{
"name": "data",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [
{
"name": "results",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "GraphDirectoryInitialized",
"inputs": [
{
"name": "graphToken",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "graphStaking",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "graphPayments",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "graphEscrow",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "graphController",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "graphEpochManager",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "graphRewardsManager",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "graphTokenGateway",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "graphProxyAdmin",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "graphCuration",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "GraphPaymentCollected",
"inputs": [
{
"name": "paymentType",
"type": "uint8",
"indexed": true,
"internalType": "enum IGraphPayments.PaymentTypes"
},
{
"name": "payer",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "receiver",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "dataService",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokens",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "tokensProtocol",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "tokensDataService",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "tokensDelegationPool",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "tokensReceiver",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AddressEmptyCode",
"inputs": [
{
"name": "target",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "FailedInnerCall",
"inputs": []
},
{
"type": "error",
"name": "GraphDirectoryInvalidZeroAddress",
"inputs": [
{
"name": "contractName",
"type": "bytes",
"internalType": "bytes"
}
]
},
{
"type": "error",
"name": "GraphPaymentsInvalidCut",
"inputs": [
{
"name": "cut",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "GraphPaymentsInvalidProtocolPaymentCut",
"inputs": [
{
"name": "protocolPaymentCut",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "InvalidInitialization",
"inputs": []
},
{
"type": "error",
"name": "NotInitializing",
"inputs": []
},
{
"type": "error",
"name": "PPMMathInvalidMulPPM",
"inputs": [
{
"name": "a",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "b",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "PPMMathInvalidPPM",
"inputs": [
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
]
}
]
Loading