Swisstronik testnet technical task | Deploy a proxy smart contract.
Clone Repository#
text
1git clone https://github.com/rpxtxt/swisstronik-deploy-proxy.git
2cd swisstronik-deploy-proxyInstall Dependencies#
text
npm installSet Environment Variables#
Create a .env file:
text
nano .envAdd your private key:
text
PRIVATE_KEY="your private key"Compile and Deploy#
text
1npm run compile
2npm run deployInitialize and Configure#
text
1npm run initialize
2npm run add-issuers
3npm run list-issuersUpgrade Smart Contract#
text
npm run upgradeSubmit to Dashboard#
- Open
utils/deployed-address.ts→ copy the SWTRProxy address → paste into testnet dashboard (Point 1) - Open
utils/address-with-explorer.txt→ copy the explorer address → paste into dashboard (Point 2) - Open
utils/tx-hash.txt→ copy the transaction hash link → paste into dashboard (Point 3)
No need to push to GitHub.



