Skip to content

Latest commit

 

History

History
304 lines (198 loc) · 10.2 KB

CHANGELOG.md

File metadata and controls

304 lines (198 loc) · 10.2 KB

Aragon OSx Subgraph

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[UPCOMING]

2.0.0 (Split)

  • Renamed Proposal to ActionBatch and made it immutable
  • Added deterministicId as field to ActionBatch and Action. The deterministicId is a reference shared by the ActionId in plugins packages that can be known at the time of proposal execution.
  • The deterministicId and Id fields now include the daoAddress inside executeActions
  • Renamed proposal to actionBatch in Action, ERC20Transfer, ERC721Transfer, ERC1155Transfer, NativeTransfer and DAO
  • Removed startDate and endDate from ActionBatch as they relate to proposals
  • Removed TokenVoting Multisig Admin and AddressList from the schema
  • Deleted the corresponding handlers any references to the above plugins
  • Removed the concept of wrapped ERC20 as these are only relevant in the context of the token voting plugin
  • The function identifyAndFetchOrCreateERC20Entity is now renamed to fetchOrCreateERC20Entity inside the token/utils file

1.4.1

Added

  • Add txHash field to the Dao entity.

Changed

  • Fixed bug with negative number balances and missing delegation history for existing ERC20 tokens using TokenVoting
  • Fixed bugs regarding inconsistent memberIds in various parts of the codebase. This primarily affects delegation.

Changed

  • Removed createERC1155TokenCalls, createTokenCalls, createWrappedTokenCalls and createDummyActions and use the equivalent functions createERC20TokenCalls, createERC1155TokenCalls and createDummyAction from @aragon/sdk-commons-subgraph
  • Used createDummyAction from @aragon/sdk-commons-subgraph

1.4.0

Added

  • Added isSignaling attribute to TokenVotingProposal, AddresslistVotingProposal, and MultisigProposal that is set to true for proposals having an empty action array.

Changed

  • Renamed potentiallyExecutable attribute to approvalReached and stopped setting it to true during multisig proposal creation if minApprovals = 1 when zero approvals were given yet.

1.3.1

Added

  • Add support for Granted & Revoked event in PluginRepo
  • Add one-to-many relationship from Dao & PluginRepo to Permission

Changed

  • Renamed fetchERC20 & fetchWrappedERC20 to fetchOrCreateERC20Entity & fetchOrCreateWrappedERC20Entity respectively.
  • Changed type of token attribute of ERC20Transfer from ERC20Contract to Token.
  • Refactored Permission entity & added pluginRepo attribute.
  • Fixed wrong token voting member deletion, when balance & voting power was zero, but it was still delegating to another address.

Removed

  • Removed SignatureValidatorSet event.
  • Removed ContractPermissionId entity.

[1.3.0]

Added

  • Add support for ERC1155 tokens.

[1.2.2]

Changed

  • Fixed missing interfaces of ERC20, ERC721, TokenVoting, AddresslistVoting, and CallbackHandler from Aragon OSx v1.3.0.

[1.2.1]

Changed

  • Fixed wrong interface for indexing GovernanceWrappedERC20.

[1.2.0]

Added

  • Added "v" to the version on the github deploy flow.
  • Added handler for NewURI event on DAO.
  • Added delegatee, votingPower and delegators to the TokenVotingMember.
  • Added support for indexing GovernanceWrappedERC20 and underlying token.

Changed

  • Renamed handling updates from v1.2.0 to v1.3.0
  • Fixed start & end date issue by indexing from getProposal() instead of the event.
  • BREAKING: DAO's plugins attribute derive from PluginInstallation instead of IPlugin.
  • BREAKING: Changed attribute of proposalId in all proposal entities to pluginProposalId
  • Supports now multiple DAORegistries, PluginRepoRegistries and PluginSetupProcessors as datasources.
  • Splits DAO into multiple versions.
  • Fixes typing issues in tests and subgraph manifest.

[1.1.0]

Added

  • Added method-classes.
  • Added schema-extender.ts.
  • Added installations to IPlugin.
  • Added PluginRelease.
  • Added metadata to PluginVersion.
  • Added configuration for mumbai.

Changed

  • Changed executable attribute of the proposal entities to potentiallyExecutable.
  • Changed plugin field of Dao from IPluginInstallation to IPlugin.
  • Changed pluginAddress field of PluginInstallation to plugin.
  • Changed IPluginInstallation to IPlugin.
  • Changed release: Int! to release: PluginRelease! in PluginVersion
  • Changed versions to releases in PluginRepo.
  • Changes Permission entity to be mutable.

Removed

  • Removed pluginInstallations from Dao.

[1.0.1]

Added

  • Add executable attribute to MultisigProposal.
  • Added subdomain_blocklist for DAO indexing.

Changed

  • Changed minApprovals to int on MultisigPlugin.
  • Changed proposal entity id to bytes32 from bigint.
  • Fixed the supportThresholdReachedEarly check in handleVoteCast of TokenVoting and AddresslistVoting.

0.9.0-alpha

On 2023-02-16 16:23:28

0.7.1-alpha

Added

  • Adds support for AdminPlugin members by listening on DAO permissions.

Changed

  • Changes all instances of adminstrator to administrator to fix typo.

0.7.0-alpha

Added

  • Added the MembershipContractAnnounced event.
  • Added executionTxHash to AddresslistVotingProposal, TokenVotingProposal, MultisigProposal and AdminProposal.
  • Added voteReplaced and updatedAt to TokenVotingVote and AddresslistVotingVote.
  • Adds entities: PluginPermission, PluginPreparation.
  • Adds enums: PermissionOperation, PluginPreparationType.

Changed

  • Changed the folder structure of the contracts folder.
  • Changed indexing of totalVotingPower which is now obtained from the snapshotBlock and the public function totalVotingPower(uint256 _blockNumber).
  • Renamed the AddressesAdded and AddressesRemoved event to MembersAdded and MembersRemoved.
  • Changes callId in Executed event from uint256 to bytes32.
  • Renames name in PluginRepoRegistry and DAORegistry to subdomain.
  • Removes DaoPlugin entity.
  • Removes daos field from Plugin entities.

Fixed

  • Applied changes made in the PluginSetupProcessor.

0.6.2-alpha

Added

  • Added startDate and endDate to all ProposalCreated events.
  • Adds startDate and endDate fields to Multisig proposals.
  • Adds allowFailureMap to the proposal entities.

Changed

  • Replaced ProposalParameters.minParticipation by minVotingPower in TokenVoting and AddresslistVoting.
  • Rescaled and renamed PCT_BASE = 10**18 to RATIO_BASE = 10**6.
  • Changed the type of ProposalParameter.minApprovals, MultisigSettingsUpdated.minApprovals from uint256 to uint16 , and added approvals(uint16) in the Proposal struct.
  • Updates ADDRESSLIST_VOTING_INTERFACE and ADMIN_INTERFACE
  • Changed all occurences of oracle to condition.

Removed

  • Removes Tally struct as well as addressListLength and moves approvals in Proposal.

0.6.1-alpha

On 2023-01-11 17:06:50

Changed

  • Ignores None votes from addresslist voting and token voting
  • Updates MULTISIG_INTERFACE

Removed

  • Removes open and executable fields from Multisig proposals
  • Removed withdraw event handling.

0.5.0-alpha

On 2022-12-09 15:16:22

Added

  • Added support for the AdminPlugin.
  • Fixed the early execution criterion in MajorityVoting by calculating the worstCaseSupport quantity.
  • Adds support for PluginRepo, PluginRegistry and PluginSetupProcessor
  • Added Withdrawn, TrustedForwarderSet, StandardCallbackRegistered and handleStandardCallbackRegistered events handling to DaoTemplate
  • Added support for the new PluginSettingsUpdated event of the Multisig plugin

Changed

  • Unified naming of the MajorityVoting related variables and functions as well as reordering of the function arguments.
  • Changed MajorityVoting to use minParticipation and unified the parameter order.
  • Renamed *package to *plugin.
  • Renamed Allowlist to Addresslist.
  • Improved test recompilation.
  • Marks some entity as immutable.
  • Fixes calcuation crash in erc20 voting, when no votes were cast
  • Added the field onlyListed to the MultisigPlugin type

0.4.0-alpha

On 2022-10-07 15:20:00

Added

  • executable property to ERC20VotingProposal and AllowlistProposal.

0.2.1-alpha

On 2022-10-03 10:38:36

Added

  • Added an ERC721Token entity and Token interface to be used by TokenVotingPlugin.
  • Added members to ERC20VotingPackage.
  • Added lastUpdated to ERC20VotingVoter.
  • Added voteCount to both ERC20VotingProposal and AllowlistProposal.
  • Added type field to VaultTransfer to differentiate between deposits and withdraws

Changed

  • Renamed contracts, events, and parameters in MajorityVoting:
    • ERC20Voting to TokenVoting
    • AllowlistVoting to AddresslistVoting and allowlist to addresslist
    • VoteCreated and VoteExecuted to ProposalCreated and ProposalExecuted
    • voteId to proposalId
  • Changed users to members in AllowlistPackage.
  • Adapted subgraph names according to the renaming of the contracts.
  • Updated manifest, registry, registry.test.
  • Refactored import statements.
  • Refactored event names.
  • Refactored deposits and withdraws into one field transfers.
  • Refactored VaultWithdraw and VaultDeposit into one type VaultTransfer.
  • Removes not null enforcing Proposal.metadata.

v0.2.0-alpha

Added

  • Remove decoding metadata hash from Subgraph.
  • Expand Proposal entity to include creator, metadata and createdAt.

Changed

Removed

v0.1.0-alpha

Added

  • Implement mapping and unit testing for events of MetaTxComponent.
  • Utilizing interfaceId for distinguishing between ERC20Voting and WhitelistVoting.
  • Added eslint.

Changed

  • Renamed the event SetMetadata to MetadataSet
  • Updated Subgraph to adapt to the changes in the core contracts.
  • Refactored subgraph's unit testing, applying clean code standards.

v0.0.1-alpha

Added

  • First version of the package.
  • Mapping all the main events of the core contracts.
  • Mapping all the main events of both ERC20Voting and WhitelistVoting.