-
Notifications
You must be signed in to change notification settings - Fork 36
/
from-json.ts
127 lines (101 loc) · 2.27 KB
/
from-json.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
import { AddressProvider } from './provider';
export interface AddressMap {
bLunaHub: string;
bLunaToken: string;
bLunaReward: string;
bLunaAirdrop: string;
mmInterestModel: string;
mmOracle: string;
mmMarket: string;
mmOverseer: string;
mmCustody: string;
mmLiquidation: string;
mmDistributionModel: string;
aTerra: string;
terraswapblunaLunaPair: string;
terraswapblunaLunaLPToken: string;
terraswapAncUstPair: string;
terraswapAncUstLPToken: string;
gov: string;
distributor: string;
collector: string;
community: string;
staking: string;
ANC: string;
airdrop: string;
investor_vesting: string;
team_vesting: string;
}
export type AllowedAddressKeys = keyof AddressMap;
export class AddressProviderFromJson implements AddressProvider {
constructor(private data: AddressMap) {}
bLunaReward(): string {
return this.data.bLunaReward;
}
bLunaHub(): string {
return this.data.bLunaHub;
}
bLunaToken(): string {
return this.data.bLunaToken;
}
market(): string {
return this.data.mmMarket;
}
custody(): string {
return this.data.mmCustody;
}
overseer(): string {
return this.data.mmOverseer;
}
aTerra(): string {
return this.data.aTerra;
}
oracle(): string {
return this.data.mmOracle;
}
interest(): string {
return this.data.mmInterestModel;
}
liquidation(): string {
return this.data.mmLiquidation;
}
terraswapblunaLunaPair(): string {
return this.data.terraswapblunaLunaPair;
}
terraswapblunaLunaLPToken(): string {
return this.data.terraswapblunaLunaLPToken;
}
gov(): string {
return this.data.gov;
}
terraswapAncUstPair(): string {
return this.data.terraswapAncUstPair;
}
terraswapAncUstLPToken(): string {
return this.data.terraswapAncUstLPToken;
}
collector(): string {
return this.data.collector;
}
staking(): string {
return this.data.staking;
}
community(): string {
return this.data.community;
}
distributor(): string {
return this.data.distributor;
}
ANC(): string {
return this.data.ANC;
}
airdrop(): string {
return this.data.airdrop;
}
investorLock(): string {
return this.data.investor_vesting;
}
teamLock(): string {
return this.data.team_vesting;
}
}