-
Notifications
You must be signed in to change notification settings - Fork 1
/
assets.handlebars
36 lines (32 loc) · 991 Bytes
/
assets.handlebars
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// This file is automatically generated and contains assets from {{network}}.
// Generate for other networks by running: yarn generate-assets [network].
// Supported networks are: arbitrum, goerli, mainnet, and polygon.
import { Address } from '@graphprotocol/graph-ts';
class Assets {
public stableAssets: Address[];
public pricingAssets: Address[];
public fxAssetAggregators: Address[][];
}
{{#each stableAssets}}
export const {{symbol}}_ADDRESS = Address.fromString('{{address}}');
{{/each}}
export const assets: Assets = {
stableAssets: [
{{#each stableAssets}}
Address.fromString('{{address}}'), // {{symbol}}
{{/each}}
],
pricingAssets: [
{{#each pricingAssets}}
Address.fromString('{{address}}'), // {{symbol}}
{{/each}}
],
fxAssetAggregators: [
{{#each fxAssetAggregators}}
[
Address.fromString('{{asset}}'), // {{assetSymbol}}
Address.fromString('{{aggregator}}'), // {{aggregatorSymbol}}
],
{{/each}}
],
};