Skip to content
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

index donations/claims/transfers on any currency #55

Open
vibern0 opened this issue Aug 5, 2022 · 0 comments
Open

index donations/claims/transfers on any currency #55

vibern0 opened this issue Aug 5, 2022 · 0 comments

Comments

@vibern0
Copy link

vibern0 commented Aug 5, 2022

An easy way would be to have a Map<K,V>, but since this is not possible, having an array of an abject is also doable.

Something like contributions: [AssetContributions!] @derivedFrom(field: "entity") on a given entity, and

type AssetContributions @entity {
  id: ID!
  asset: Bytes!
  amount: BigDecimal!
  entity: dont-know-yet!
}

see impactMarket/smart-contracts-dao#91 for reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant