-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.ts
More file actions
67 lines (51 loc) · 1.57 KB
/
index.ts
File metadata and controls
67 lines (51 loc) · 1.57 KB
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
import { getEnvConfig } from "./env";
export const {
platformName: PLATFORM_NAME,
envTag: ENV_TAG,
network: NETWORK,
indexer: {
api: { endpointUrl: INDEXER_API_ENDPOINT_URL },
},
contractMetadata: { version: CONTRACT_SOURCECODE_VERSION, repoUrl: CONTRACT_SOURCECODE_REPO_URL },
core: {
namespaceRoot: {
contract: { accountId: NAMESPACE_ROOT_CONTRACT_ACCOUNT_ID },
},
campaigns: {
contract: { accountId: CAMPAIGNS_CONTRACT_ACCOUNT_ID },
},
donation: {
contract: { accountId: DONATION_CONTRACT_ACCOUNT_ID },
},
lists: {
contract: { accountId: LISTS_CONTRACT_ACCOUNT_ID },
},
potFactory: {
contract: { accountId: POT_FACTORY_CONTRACT_ACCOUNT_ID },
},
sybil: {
app: { url: SYBIL_APP_LINK_URL },
contract: { accountId: SYBIL_CONTRACT_ACCOUNT_ID },
},
voting: {
contract: { accountId: VOTING_CONTRACT_ACCOUNT_ID },
},
},
social: {
platformName: SOCIAL_PLATFORM_NAME,
app: { url: SOCIAL_APP_LINK_URL },
contract: { accountId: SOCIAL_DB_CONTRACT_ACCOUNT_ID },
},
deFi: {
metapool: {
liquidStakingContract: { accountId: METAPOOL_LIQUID_STAKING_CONTRACT_ACCOUNT_ID },
},
refFinance: {
exchangeContract: { accountId: REF_EXCHANGE_CONTRACT_ACCOUNT_ID },
},
},
features: FEATURE_REGISTRY,
} = getEnvConfig();
export const BLOCKCHAIN_EXPLORER_TX_ENDPOINT_URL =
NETWORK === "mainnet" ? "https://nearblocks.io/txns" : "https://testnet.nearblocks.io/txns";
export const IPFS_GATEWAY_URL = process.env.NEXT_PUBLIC_IPFS_GATEWAY_URL;