# Developer Highlights #4 - "Templates and Anonymous Contract Events"

**URL:** <https://forum.thegraph.com/t/developer-highlights-4-templates-and-anonymous-contract-events/2132>\
**Category:** Resources\
**Tags:** subgraph-devs, developer-highlights\
**Created:** [July 5, 2021, 4:02pm UTC](https://forum.thegraph.com/t/developer-highlights-4-templates-and-anonymous-contract-events/2132 "2021-07-05T16:02:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slimchance](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/slimchance/32/409_2.png) [@Slimchance](https://forum.thegraph.com/u/Slimchance)\
**Post date:** [July 5, 2021, 4:02pm UTC](https://forum.thegraph.com/t/developer-highlights-4-templates-and-anonymous-contract-events/2132/1 "2021-07-05T16:02:41Z")

</div>

![IMG_20210630_174540_691](https://us1.discourse-cdn.com/flex020/uploads/thegraph1/original/1X/6be1c36d7a5da0c0e88748fc17d079eecbd9c9bb.jpeg)

  

In Developer Highlights #4, we get to speak to Nacho Mazzara [@nachomazzara](https://twitter.com/nachomazzara) , Engineering manager at [Decentraland](https://decentraland.org/) and Co-Founder of [pine.finance](https://pine.finance/order).

Decentraland is a fully decentralized world owned by its users. The world is continously evolving, and last month they launched their Wearables Editor. This that lets anyone create and publish their own “Wearables” and “Collections”. In this episode, we learn how the collections are created using a “factory” type contract, and how decentraland is using templates to dynamically index these contracts.

pine.finance was born at ETH Berlin 2019. It is a protocol for automated and decentralized limit orders on any DEX. The creation of limit orders are done using a regular ERC20 transfer, with added extra data. This lets users forego the approval function, saving gas and time.

_Watch the full episode, or jump straight to each topic using the timestamps below the video._

  
  

[![](https://us1.discourse-cdn.com/flex020/uploads/thegraph1/original/2X/c/c64bdb6e828de115cf531f04f9f7ea4d0595b699.jpeg "Developer Highlights #4 - "Templates and Anonymous Contract Events"") ](https://www.youtube.com/watch?v=4Gy1stWOIGo)

[00:00](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=0s) Introduction

[01:36](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=96s) Templates - Initializing data sources  
[06:35](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=395s) Templates - Indexing dynamically created data sources

[07:36](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=456s) Decentraland - How a collection gets created  
[10:58](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=658s) Decentraland - Fetching data from an api  
[14:56](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=896s) Decentraland - How data- and imagefiles are handled.

[20:12](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=1212s) Pine.Finance - Deterministic contracts using CREATE2  
[21:38](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=1298s) Pine.Finance - Using a single transfer to create a DEX limit order

[24:44](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=1484s) Mappings - Using extra data to create mappings

[30:42](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=1842s) Pine.Finance - Requiring higher gas limit than net gas used.  
[34:31](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=2071s) Pine.Finance - Benefits of utilizing a normal transaction  
[36:09](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=2169s) Pine.Finance - Relayers  
[38:01](https://www.youtube.com/watch?v=4Gy1stWOIGo&t=2281s) Pine.Finance - A drawback of utilizing extra data

_We encourage anyone to ask questions about these topics below._
