Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

Get past adapter addresses using the "artifacts" util contract #418

Description

@jtrein

Primary method

Use the new DaoArtifacts.sol to get the past adapter addresses.

Using Web3 (getPastEvents) or Ethers (queryFilter), we should be able to get the past emitted events of an adapter via the events emit NewArtifact(_id, _owner, _version, _address, ArtifactType.ADAPTER), or maybe emit AdapterRemoved(adapterId) and emit AdapterAdded(adapterId, adapterAddress, acl) by the DaoRegistry.

Use case

This will allow us to get proposal data from a DAO's previous adapter(s) (e.g. the DAO's off-chain voting adapter was upgraded). E.g. We want to list all NFT proposals, but if the adapter address has been changed, we need to get the previous ones, as well, to get complete data.

Related: https://github.com/openlawteam/tribute-contracts/issues/337

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions