-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.ts
180 lines (175 loc) · 5.94 KB
/
config.ts
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
import { PricingConfigWithoutOwner } from '@deltadao/nautilus'
export enum Network {
GENX = 'GENX',
PONTUSXDEV = 'PONTUSXDEV',
PONTUSXTEST = 'PONTUSXTEST'
}
export const NETWORK_CONFIGS: {
[key in Network]: NetworkConfig
} = {
[Network.GENX]: {
chainId: 100,
network: 'genx',
metadataCacheUri: 'https://aquarius510.v4.delta-dao.com',
nodeUri: 'https://rpc.genx.minimal-gaia-x.eu',
providerUri: 'https://provider.v4.genx.delta-dao.com',
subgraphUri: 'https://subgraph.v4.genx.minimal-gaia-x.eu',
oceanTokenAddress: '0x0995527d3473b3a98c471f1ed8787acd77fbf009',
oceanTokenSymbol: 'OCEAN',
fixedRateExchangeAddress: '0xAD8E7d2aFf5F5ae7c2645a52110851914eE6664b',
dispenserAddress: '0x94cb8FC8719Ed09bE3D9c696d2037EA95ef68d3e',
nftFactoryAddress: '0x6cb85858183B82154921f68b434299EC4281da53',
providerAddress: '0x68C24FA5b2319C81b34f248d1f928601D2E5246B'
},
[Network.PONTUSXDEV]: {
chainId: 32456,
network: 'pontusxdev',
metadataCacheUri: 'https://aquarius.pontus-x.eu',
nodeUri: 'https://rpc.dev.pontus-x.eu',
providerUri: 'https://provider.dev.pontus-x.eu',
subgraphUri: 'https://subgraph.dev.pontus-x.eu',
oceanTokenAddress: '0xdF171F74a8d3f4e2A789A566Dce9Fa4945196112',
oceanTokenSymbol: 'OCEAN',
fixedRateExchangeAddress: '0x8372715D834d286c9aECE1AcD51Da5755B32D505',
dispenserAddress: '0x5461b629E01f72E0A468931A36e039Eea394f9eA',
nftFactoryAddress: '0xFdC4a5DEaCDfc6D82F66e894539461a269900E13',
providerAddress: '0x68C24FA5b2319C81b34f248d1f928601D2E5246B'
},[Network.PONTUSXTEST]: {
chainId: 32457,
network: 'pontusxtest',
metadataCacheUri: 'https://aquarius.pontus-x.eu',
nodeUri: 'https://rpc.test.pontus-x.eu',
providerUri: 'https://provider.test.pontus-x.eu',
subgraphUri: 'https://subgraph.test.pontus-x.eu',
oceanTokenAddress: '0x5B190F9E2E721f8c811E4d584383E3d57b865C69',
oceanTokenSymbol: 'OCEAN',
fixedRateExchangeAddress: '0xcE0F39abB6DA2aE4d072DA78FA0A711cBB62764E',
dispenserAddress: '0xaB5B68F88Bc881CAA427007559E9bbF8818026dE',
nftFactoryAddress: '0x2C4d542ff791890D9290Eec89C9348A4891A6Fd2',
providerAddress: '0x9546d39CE3E48BC942f0be4AA9652cBe0Aff3592'
}
}
// These are example pricing configurations with prefilled contract addresses of the payment tokens
export const PRICING_CONFIGS: PricingConfig = {
[Network.GENX]: {
FREE: {
type: 'free'
},
FIXED_OCEAN: {
type: 'fixed',
freCreationParams: {
fixedRateAddress: '0xAD8E7d2aFf5F5ae7c2645a52110851914eE6664b',
baseTokenAddress: '0x0995527d3473b3a98c471f1ed8787acd77fbf009',
baseTokenDecimals: 18,
datatokenDecimals: 18,
fixedRate: '1',
marketFee: '0',
marketFeeCollector: '0x0000000000000000000000000000000000000000'
}
},
FIXED_EUROE: {
type: 'fixed',
freCreationParams: {
fixedRateAddress: '0xAD8E7d2aFf5F5ae7c2645a52110851914eE6664b',
baseTokenAddress: '0xe974c4894996E012399dEDbda0bE7314a73BBff1',
baseTokenDecimals: 6, // adapted for EUROe decimals
datatokenDecimals: 18,
fixedRate: '1', // this is the price
marketFee: '0',
marketFeeCollector: '0x0000000000000000000000000000000000000000'
}
}
},
[Network.PONTUSXDEV]: {
FREE: {
type: 'free'
},
FIXED_OCEAN: {
type: 'fixed',
freCreationParams: {
fixedRateAddress: '0x8372715D834d286c9aECE1AcD51Da5755B32D505',
baseTokenAddress: '0xdF171F74a8d3f4e2A789A566Dce9Fa4945196112',
baseTokenDecimals: 18,
datatokenDecimals: 18,
fixedRate: '1', // this is the price
marketFee: '0',
marketFeeCollector: '0x0000000000000000000000000000000000000000'
}
},
FIXED_EUROE: {
type: 'fixed',
freCreationParams: {
fixedRateAddress: '0x8372715D834d286c9aECE1AcD51Da5755B32D505',
baseTokenAddress: '0x8A4826071983655805bF4f29828577Cd6b1aC0cB',
baseTokenDecimals: 18, // adapted for EUROe decimals
datatokenDecimals: 18,
fixedRate: '1', // this is the price
marketFee: '0',
marketFeeCollector: '0x0000000000000000000000000000000000000000'
}
}
},
[Network.PONTUSXTEST]: {
FREE: {
type: 'free'
},
FIXED_OCEAN: {
type: 'fixed',
freCreationParams: {
fixedRateAddress: '0xcE0F39abB6DA2aE4d072DA78FA0A711cBB62764E',
baseTokenAddress: '0x5B190F9E2E721f8c811E4d584383E3d57b865C69',
baseTokenDecimals: 18,
datatokenDecimals: 18,
fixedRate: '1', // this is the price
marketFee: '0',
marketFeeCollector: '0x0000000000000000000000000000000000000000'
}
},
FIXED_EUROE: {
type: 'fixed',
freCreationParams: {
fixedRateAddress: '0xcE0F39abB6DA2aE4d072DA78FA0A711cBB62764E',
baseTokenAddress: '0xdd0a0278f6BAF167999ccd8Aa6C11A9e2fA37F0a',
baseTokenDecimals: 6, // adapted for EUROe decimals
datatokenDecimals: 18,
fixedRate: '1', // this is the price
marketFee: '0',
marketFeeCollector: '0x0000000000000000000000000000000000000000'
}
}
}
}
export type NetworkConfig = {
chainId: number
network: string
metadataCacheUri: string
nodeUri: string
providerUri: string
subgraphUri: string
oceanTokenAddress: string
oceanTokenSymbol: string
fixedRateExchangeAddress: string
dispenserAddress: string
nftFactoryAddress: string
providerAddress?: string
explorerUri?: string
startBlock?: number
transactionBlockTimeout?: number
transactionConfirmationBlocks?: number
transactionPollingTimeout?: number
gasFeeMultiplier?: number
opfCommunityFeeCollector?: string
veAllocate?: string
veOCEAN?: string
veDelegation?: string
veFeeDistributor?: string
veDelegationProxy?: string
DFRewards?: string
DFStrategyV1?: string
veFeeEstimate?: string
}
export type PricingConfig = {
[key in Network]: {
[key: string]: PricingConfigWithoutOwner
}
}