Script for deploying Eversite contract. This contract could store html-sites in the Everscale blockchain. Site address could be linked to .ever domains and accessed via the browser from Chums messenger or via chums proxy
This scripts uses npm and node.js. Be sure you have them installed.
Onchain storage of the site's HTML content is suggested primarily as a proof of concept. Until BigCell or DriveChain are implemented, its use may be limited.
npm install.env is used to configure these scripts.
You should create it from .env.template file.
Fill in the fields with your data.
| Field | Required | Description |
|---|---|---|
MAINNET_NETWORK_ENDPOINT |
yes | URL of the mainnet GraphQL endpoint |
EVERSCALE_MAINNET_GIVER_ADDRESS |
yes | Giver wallet address: address where gas will be withdrawn from |
EVERSCALE_MAINNET_GIVER_PHRASE |
yes | Seed phrase of the giver wallet |
DEPLOYER_PHRASE |
yes | Seed phrase that used to generate new addresses |
After all preparations you could deploy the site contract. You could run the script:
npx locklift run --network main --script scripts/1-deploy-site.ts --file <path_to_file>When you run the 1-deploy-site.ts script, you will get a new address and a new deployment every time.
After deploying the contract you need to set link in the .ever domain.
- Open .ever domain address on the everscan.io
- Connect wallet that own the domain
- Select
Source codetab - Send
setRecordmessage
- Key: 1005
- Value: address as cell
- Action type: Send
- Amount: 1 Ever
- Bounce: true
- Open developer tool ever.bytie.moe
- Write to
Write function signature or cell ABI: address - Write to
value0:address: your site address - Copy
Output (cell)