-
Notifications
You must be signed in to change notification settings - Fork 3
/
sample.env
79 lines (61 loc) · 3.68 KB
/
sample.env
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
# possible values: 0, 1
# if 0: HIGHLIGHT_PRIVATE_KEY will be used to sign transactions
# if 1: keystore.json file will be expected in the root directory
USING_KEYSTORE=0
# unused if USING_KEYSTORE is false, can be left blank in this case
# used to sign transactions with keystore if USING_KEYSTORE is 1
KEYSTORE_PASSWORD=
# private key used to sign transactions as Highlight, the platform
# unused if USING_KEYSTORE is 1
HIGHLIGHT_PRIVATE_KEY=
# address of platform vault
PLATFORM_VAULT_ADDRESS=
# possible values: hardhat, localhost, mumbai, mainnet
# if hardhat: scripts will talk to in-memory hardhat eth network.
# Only use for tests (test alias sets this for you, or CI)
# if localhost: scripts will talk to local eth network
# if mumbai: scripts will talk to mumbai testnet
# if mainnet: scripts will talk to matic mainnet
POLYGON_NETWORK=localhost
# Bundlr
# possible values: arweave, matic
# if arweave: scripts will use AR to fund NFT content storage. arweave-private-key.json will be expected in the root directory
# if matic: scripts will use MATIC to fund NFT content storage. account depends on if USING_KEYSTORE is 1
# (will either be keystore account or HIGHLIGHT_PRIVATE_KEY acccount)
METADATA_STORAGE_FUND_CURRENCY=matic
# Change running balance var's order of magnitude depending on currency (matic vs arweave vs sol)
# default is a value configured for matic
# Arweave -> Winstons = 10^-12 AR, cost of Winstons per mb of data: https://node1.bundlr.network/price/arweave/1000000
# Matic -> Wei = 10^-18 Matic, cost of Wei per mb of data: https://node1.bundlr.network/price/matic/1000000
# Solana -> Lamports = 10^-9 SOL, cost of Lamports per mb of data: https://node1.bundlr.network/price/solana/1000000
BUNDLR_NETWORK_URL=https://node2.bundlr.network
# Private key used to sign bundlr matic transactions
# This can likely be defaulted to HIGHLIGHT_PRIVATE_KEY when the network is non-local
# When the network is localhost and one is uploading to Bundlr, find a mainnet matic account to fund the uploads
BUNDLR_MATIC_PRIVATE_KEY=
# if METADATA_STORAGE_FUND_CURRENCY = arweave, recommended running balance is 50000000000
# if METADATA_STORAGE_FUND_CURRENCY = matic, recommended running balance is 50000000000000000
METADATA_STORAGE_FUND_RUNNING_BALANCE=50000000000000000
# It is HIGHLY recommended for every developer deploying to testnet/mainnet to
# replace the default POLYGON_TESTNET_URL and POLYGON_MAINNET_URL values with custom Alchemy / Infura / Maticvgil rpc urls.
# These can be the ones on Highlight staging/production Alchemy apps, or created individually.
# Public json rpc urls are rate limited and can result in a suite of issues, leading to inconsistency.
POLYGON_TESTNET_URL=https://rpc-mumbai.maticvigil.com
POLYGON_MAINNET_URL=https://polygon-rpc.com/
# The minimum wei spent per gas unit for every transaction
# 30 gwei / gas unit is a safe minimum after eip-1559's introduction to Polygon mainnet
MINIMUM_WEI_PER_GAS_UNIT=30000000000
# The amount of wei per gas unit, at which we add an extra tip to the miner (default: 150 gwei)
GAS_TIP_TRIGGER_AMOUNT=150000000000
# The amount of extra gas to tip the miner to speed up the transaction (default: 10 gwei)
GAS_TIP=10000000000
# Api key for Covalent (required for get:contract-data script)
COVALENT_API_KEY=
# Whether blocks should be mined per transaction on the local network. Defaults to interval mining. True for tests
AUTO_MINING_ON=false
# Urls to get Polygon network fee data from
MAINNET_GAS_STATION_URL=https://gasstation-mainnet.matic.network/v2
TESTNET_GAS_STATION_URL=https://gasstation-mumbai.matic.today/v2
# Gas values to cap responsiveness to chain at
MAX_BASE_FEE_WEI=800000000000
MAX_PRIORITY_FEE_WEI=150000000000