Skip to content

Commit

Permalink
Merge pull request #33 from BTI-US/master
Browse files Browse the repository at this point in the history
Add email sending scripts
  • Loading branch information
Phillweston committed Apr 10, 2024
2 parents 02de62a + 62db774 commit cf59487
Show file tree
Hide file tree
Showing 6 changed files with 880 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
TURNSTILE_SITE_KEY: ${{ secrets.TURNSTILE_SITE_KEY }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
MAIN_CONTRACT_ADDRESS: ${{ secrets.MAIN_CONTRACT_ADDRESS }}
EMAIL_TOKEN: ${{ secrets.EMAIL_TOKEN }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
TURNSTILE_SITE_KEY: ${{ secrets.TURNSTILE_SITE_KEY }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
MAIN_CONTRACT_ADDRESS: ${{ secrets.MAIN_CONTRACT_ADDRESS }}
EMAIL_TOKEN: ${{ secrets.EMAIL_TOKEN }}
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ To successfully deploy and run the project locally, you need to create a `contra
"contractAddress": "Your_Contract_Address",
"webAddress": "Your_Web_Address",
"turnstileSiteKey": "Your_CloudFlare_Turnstile_Site_Key",
"etherscanApiKey": "Your_Infura_API_Key"
"etherscanApiKey": "Your_Etherscan_API_Key",
"emailToken": "Your_Email_Token",
}
```
- Replace `Your_Network_Choice` with the network you are using (e.g., `base` for the Base Mainnet).
Expand Down Expand Up @@ -207,7 +208,8 @@ Here is an example of what your `contract-config.json` might look like for the B
"contractAddress": "0x123abc456def789ghi",
"webAddress": "https://flxdu.cn:8011/v1/info/transaction_count",
"turnstileSiteKey": "0x123abc456def789ghi",
"etherscanApiKey": "0x123abc456def789ghi"
"etherscanApiKey": "0x123abc456def789ghi",
"emailToken": "0x123abc456def789ghi"
}
```
Expand All @@ -231,6 +233,7 @@ This section provides guidance on deploying your project to GitHub Pages and Clo
|**`WEB_ADDRESS`**|Essential|The backend URL of the airdrop function, better to use the specified domain for the project for clearer identification.|
|**ETHERSCAN_API_KEY**|Essential|The API key for Etherscan, used to interact with the Ethereum network.|
|**MAIN_CONTRACT_ADDRESS**|Essential|The main contract of the $Lotso NFT|
|**EMAIL_TOKEN**|Essential|The token for sending emails|

2. Used for Reverse Proxy

Expand Down
3 changes: 2 additions & 1 deletion create-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const config = {
"webAddress": process.env.WEB_ADDRESS,
"turnstileSiteKey": process.env.TURNSTILE_SITE_KEY,
"etherscanApiKey": process.env.ETHERSCAN_API_KEY,
"mainContractAddress": process.env.MAIN_CONTRACT_ADDRESS
"mainContractAddress": process.env.MAIN_CONTRACT_ADDRESS,
"emailToken": process.env.EMAIL_TOKEN
};

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

0 comments on commit cf59487

Please sign in to comment.