Swisstronik Testnet Technical Task: Deploy a Proxy Contract

Written by FURI1 min read

Swisstronik Testnet Technical Task: Deploy a Proxy Contract
On this page

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-proxy

Install Dependencies#

text
npm install

Set Environment Variables#

Create a .env file:

text
nano .env

Add your private key:

text
PRIVATE_KEY="your private key"

Compile and Deploy#

text
1npm run compile
2npm run deploy

Initialize and Configure#

text
1npm run initialize
2npm run add-issuers
3npm run list-issuers

Upgrade Smart Contract#

text
npm run upgrade

Submit to Dashboard#

  1. Open utils/deployed-address.ts → copy the SWTRProxy address → paste into testnet dashboard (Point 1)
  2. Open utils/address-with-explorer.txt → copy the explorer address → paste into dashboard (Point 2)
  3. Open utils/tx-hash.txt → copy the transaction hash link → paste into dashboard (Point 3)

No need to push to GitHub.

Keep reading

All articles