Skip to content

Add delay field to Platform entity #5

@calebsheridan

Description

@calebsheridan

Abstract

Each protocol has a different delay. This information should be available at a Platform level.

Delay variants

In some cases, the delay is hardcoded. In others, it is set at a protocol level. In others, it is set at on a per-parameter basis.

Schema update

type Platform @entity {
  id: ID!
  delay: BigInt! # This is the new field; delay is defined in seconds
  target: [Target]! @derivedFrom(field: "platform")
  timelock: [Timelock]! @derivedFrom(field: "platform")
}

Existing functions affected

For each platform mapping, the createPlatform function must be updated. Where applicable, the data should be taken from events or smartContracts.

New function

A new function such as updatePlatformDelay is required for some platforms. This will update the platform delay and should be triggered based on the relevant event(s).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions