File tree 6 files changed +36
-1
lines changed
services/ApiService/Claims
6 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { TIcon } from '@components';
4
4
import {
5
5
ANTv1UUID ,
6
6
DAPPNODE_AIRDROP_LINK ,
7
+ ENS_AIRDROP_LINK ,
7
8
ETHUUID ,
8
9
EXT_URLS ,
9
10
FAUCET_NETWORKS ,
@@ -152,6 +153,29 @@ export const actionTemplates: ActionTemplate[] = [
152
153
} ,
153
154
category : ACTION_CATEGORIES . THIRD_PARTY
154
155
} ,
156
+ {
157
+ name : ACTION_NAME . CLAIM_ENS ,
158
+ heading : translateRaw ( 'CLAIM_TOKENS_ACTION_HEADING' , { $token : 'ENS' } ) ,
159
+ icon : 'ensLogo' ,
160
+ subHeading : ClaimSubHead ,
161
+ body : [ translate ( 'CLAIM_TOKENS_ACTION_BODY' , { $token : 'ENS' } ) ] ,
162
+ filter : ( { claims } : ActionFilters ) =>
163
+ claims [ ClaimType . ENS ] ?. some ( ( c ) => c . state === ClaimState . UNCLAIMED ) ,
164
+ priority : 30 ,
165
+ Component : ClaimTable ,
166
+ props : {
167
+ type : ClaimType . ENS
168
+ } ,
169
+ button : {
170
+ component : ActionButton ,
171
+ props : {
172
+ content : translateRaw ( 'CLAIM_TOKENS_ACTION_BUTTON' ) ,
173
+ to : ENS_AIRDROP_LINK ,
174
+ external : true
175
+ }
176
+ } ,
177
+ category : ACTION_CATEGORIES . THIRD_PARTY
178
+ } ,
155
179
{
156
180
name : ACTION_NAME . MIGRATE_LEND ,
157
181
heading : translateRaw ( 'MIGRATE_LEND_ACTION_HEADING' ) ,
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ export const UNISWAP_UNI_CLAIM_API = 'https://uni.mycryptoapi.com/claims';
52
52
export const UNISWAP_TOKEN_DISTRIBUTOR = '0x090D4613473dEE047c3f2706764f49E0821D256e' ;
53
53
export const DAPPNODE_CLAIM_API = 'https://dappnode.mycryptoapi.com/claims' ;
54
54
export const DAPPNODE_TOKEN_DISTRIBUTOR = '0x87d6180b65ad76a9443064dcd1596388fcc3ee2a' ;
55
+ export const ENS_CLAIM_API = 'https://ensclaims.mycryptoapi.com/v1/claims' ;
56
+ export const ENS_TOKEN_DISTRIBUTOR = '0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72' ;
55
57
56
58
export const LETS_ENCRYPT_URL = 'https://letsencrypt.org/' ;
57
59
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ export const partnerLinks: Link[] = [
151
151
152
152
export const UNISWAP_LINK = 'https://app.uniswap.org/' ;
153
153
export const DAPPNODE_AIRDROP_LINK = 'https://app.dappnode.io/nodedrop' ;
154
+ export const ENS_AIRDROP_LINK = 'https://claim.ens.domains/' ;
154
155
155
156
export const MYC_WINTER_LINK = 'https://winter.mycrypto.com' ;
156
157
Original file line number Diff line number Diff line change 1
1
import {
2
2
DAPPNODE_CLAIM_API ,
3
3
DAPPNODE_TOKEN_DISTRIBUTOR ,
4
+ ENS_CLAIM_API ,
5
+ ENS_TOKEN_DISTRIBUTOR ,
4
6
UNISWAP_TOKEN_DISTRIBUTOR ,
5
7
UNISWAP_UNI_CLAIM_API
6
8
} from '@config' ;
@@ -14,5 +16,9 @@ export const CLAIM_CONFIG = {
14
16
[ ClaimType . NODE ] : {
15
17
api : DAPPNODE_CLAIM_API ,
16
18
tokenDistributor : DAPPNODE_TOKEN_DISTRIBUTOR
19
+ } ,
20
+ [ ClaimType . ENS ] : {
21
+ api : ENS_CLAIM_API ,
22
+ tokenDistributor : ENS_TOKEN_DISTRIBUTOR
17
23
}
18
24
} ;
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import { ITxValue } from './transactionFlow';
3
3
4
4
export enum ClaimType {
5
5
UNI = 'UNI' ,
6
- NODE = 'NODE'
6
+ NODE = 'NODE' ,
7
+ ENS = 'ENS'
7
8
}
8
9
9
10
export enum ClaimState {
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export enum ACTION_NAME {
14
14
MIGRATE_ANT = 'migrate_ant' ,
15
15
CLAIM_UNI = 'claim_uni' ,
16
16
CLAIM_DAPPNODE = 'claim_dappnode' ,
17
+ CLAIM_ENS = 'claim_ens' ,
17
18
RENEW_ENS = 'renew_ens' ,
18
19
BUY_HW = 'buy_hw' ,
19
20
MYC_MEMBERSHIP = 'myc_membership' ,
You can’t perform that action at this time.
0 commit comments