GGP: 0009 Scope: Smart Contracts Created: 2021-12-01 GIPs-Repo-Latest-Commit: 2e84093ed32024530e77a5e862eea46f491a322f
GIP: 0019 Title: Save gas when initializing a subgraph deployment Authors: Ariel Barmat ariel@edgeandnode.com Created: 2021-09-25 Stage: Candidate Discussions-To: https://forum.thegraph.com/t/gip-0019-save-gas-when-initializing-a-subgraph-deployment/2590
Reduce the gas cost for anyone initializing a subgraph deployment. This update is particularly beneficial for subgraph/app developers who do the first signal.
Use a Minimal Proxy to clone the Graph Curation Token (ERC20) based on an implementation contract deployed just once. The implementation bytecode is also called master copy.
The benefit of this solution is that the token interface remain the same, making it backwards compatible.
This solution involves the following changes:
Implementations: https://github.com/graphprotocol/contracts/pull/505
This proposal is to upgrade The Graph's protocol smart contracts running on Ethereum mainnet with the changes described in Graph Improvement Proposal (GIP) 0019, including the motivation and scope of the changes described in this proposal.
The code deployed that implements GIP-0019 must correspond to the commit hash included in the front matter of this governance proposal.
Following a successful "yes" vote, the protocol upgrade should be carried out at the earliest convenience using The Graph Council's Gnosis Multisig.