Skip to content

Commit cf59487

Browse files
authored
Merge pull request #33 from BTI-US/master
Add email sending scripts
2 parents 02de62a + 62db774 commit cf59487

File tree

6 files changed

+880
-6
lines changed

6 files changed

+880
-6
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
TURNSTILE_SITE_KEY: ${{ secrets.TURNSTILE_SITE_KEY }}
6666
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
6767
MAIN_CONTRACT_ADDRESS: ${{ secrets.MAIN_CONTRACT_ADDRESS }}
68+
EMAIL_TOKEN: ${{ secrets.EMAIL_TOKEN }}
6869

6970
# Initializes the CodeQL tools for scanning.
7071
- name: Initialize CodeQL

.github/workflows/static.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
TURNSTILE_SITE_KEY: ${{ secrets.TURNSTILE_SITE_KEY }}
4949
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
5050
MAIN_CONTRACT_ADDRESS: ${{ secrets.MAIN_CONTRACT_ADDRESS }}
51+
EMAIL_TOKEN: ${{ secrets.EMAIL_TOKEN }}
5152
- name: Setup Pages
5253
uses: actions/configure-pages@v4
5354
- name: Upload artifact

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ To successfully deploy and run the project locally, you need to create a `contra
174174
"contractAddress": "Your_Contract_Address",
175175
"webAddress": "Your_Web_Address",
176176
"turnstileSiteKey": "Your_CloudFlare_Turnstile_Site_Key",
177-
"etherscanApiKey": "Your_Infura_API_Key"
177+
"etherscanApiKey": "Your_Etherscan_API_Key",
178+
"emailToken": "Your_Email_Token",
178179
}
179180
```
180181
- Replace `Your_Network_Choice` with the network you are using (e.g., `base` for the Base Mainnet).
@@ -207,7 +208,8 @@ Here is an example of what your `contract-config.json` might look like for the B
207208
"contractAddress": "0x123abc456def789ghi",
208209
"webAddress": "https://flxdu.cn:8011/v1/info/transaction_count",
209210
"turnstileSiteKey": "0x123abc456def789ghi",
210-
"etherscanApiKey": "0x123abc456def789ghi"
211+
"etherscanApiKey": "0x123abc456def789ghi",
212+
"emailToken": "0x123abc456def789ghi"
211213
}
212214
```
213215

@@ -231,6 +233,7 @@ This section provides guidance on deploying your project to GitHub Pages and Clo
231233
|**`WEB_ADDRESS`**|Essential|The backend URL of the airdrop function, better to use the specified domain for the project for clearer identification.|
232234
|**ETHERSCAN_API_KEY**|Essential|The API key for Etherscan, used to interact with the Ethereum network.|
233235
|**MAIN_CONTRACT_ADDRESS**|Essential|The main contract of the $Lotso NFT|
236+
|**EMAIL_TOKEN**|Essential|The token for sending emails|
234237

235238
2. Used for Reverse Proxy
236239

create-config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const config = {
88
"webAddress": process.env.WEB_ADDRESS,
99
"turnstileSiteKey": process.env.TURNSTILE_SITE_KEY,
1010
"etherscanApiKey": process.env.ETHERSCAN_API_KEY,
11-
"mainContractAddress": process.env.MAIN_CONTRACT_ADDRESS
11+
"mainContractAddress": process.env.MAIN_CONTRACT_ADDRESS,
12+
"emailToken": process.env.EMAIL_TOKEN
1213
};
1314

1415
fs.writeFileSync('contract-config.json', JSON.stringify(config, null, 2));

0 commit comments

Comments
 (0)