Skip to content

The best and fastest place to complete Swisstronik testnet2 is just by Forking!

Notifications You must be signed in to change notification settings

bubipu/swisstronik

 
 

Repository files navigation

Swisstronik Testnets 2 Contracts

0.1 Requirement

  • NodeJS
  • PNPM (npm i -g pnpm) or NPM

0.2 Repository

  • Fork this repo to your Github account, use for give URL to the Github repository on the tasks. (you should use public fork, so the team can see your URL)
  • Do not make any commit!

0.3 Prepare

pnpm i

# or NPM (recommend for Windows users)

npm install

Copy .env.example to .env, edit .env and update PRIVATE_KEY="<here>"

1. Deploy a simple contract using Hardhat

Run it

pnpm script ./scripts/deploy-1.ts

# or NPM (recommend for Windows users)

npm run script ./scripts/deploy-1.ts
# Check your output, example:

Deployer: 0xABC
Swisstronik contract deployed to: "0xABC" <- copy that for "the deployed contract address"

Copy URL of ./contracts/Hello_swtr.sol (just click at your repo) for "the link to the Github repository"

2. Mint 100 ERC-20 tokens

Run it

pnpm script ./scripts/deploy-2.ts

# or

npm run script ./scripts/deploy-2.ts

Copy URL of ./contracts/Token.sol (just click at your repo) for "the link to the Github repository"

# Check your output, example:

Deployer: 0xABC
Deployed to: 0xABC <- copy that for "the deployed contract address"
Mint Response: 0xABC
Transfer Response: https://explorer-evm.testnet.swisstronik.com/tx/0xABC <- copy that for "the token transaction link"

3. Mint a ERC-721 token

Run it

pnpm script ./scripts/deploy-3.ts

# or

npm run script ./scripts/deploy-3.ts

Copy URL of ./contracts/ERC721.sol (just click at your repo) for "the link to the Github repository"

# Check your output, example:

Deployer: 0xABC
Deployed to: 0xABC <- copy that for "the deployed contract address"
Mint Response: https://explorer-evm.testnet.swisstronik.com/tx/0xABC <- copy that for URL

4. Mint a PERC-20 token

Run it

pnpm script ./scripts/deploy-4.ts

# or

npm run script ./scripts/deploy-4.ts

Copy URL of ./contracts/PERC20Sample.sol (just click at your repo) for "the link to the Github repository"

# Check your output, example:

Deployer: 0xABC
PERC20Sample was deployed to: 0xABC <- copy that for "the deployed contract address"
Transfer Response: https://explorer-evm.testnet.swisstronik.com/tx/0xABC <- copy that for URL

5. Deploy a Private NFT

Run it

pnpm script ./scripts/deploy-5.ts

# or

npm run script ./scripts/deploy-5.ts

Copy URL of ./contracts/PERC721Sample.sol (just click at your repo) for "the link to the Github repository"

# Check your output, example:

Deployer: 0xABC
Deployed to: 0xABC <- copy that for "the deployed contract address"
Mint Response: https://explorer-evm.testnet.swisstronik.com/tx/0xABC <- copy that for URL

6. Deploy Proxy

Run it

pnpm script ./scripts/deploy-6.ts

# or

npm run script ./scripts/deploy-6.ts

Copy URL of ./contracts/TransparentUpgradeableProxy.sol (just click at your repo) for "Enter the link to the Github repository [proxy]"

# Check your output, example:

Deployer: 0xABC
Contract address 1 deployed to: 0xABC
ProxyAdmin address deployed to: 0xABC
Proxy contract address: 0xABC <- copy that for "the deployed proxy contract address"
Contract address 2 deployed to: 0xABC
Response: https://explorer-evm.testnet.swisstronik.com/tx/0xABC <- copy that for "the link to the contract implementation replacement transaction"

Community

Swisstronik Ambassador pierreneter, p10node

About

The best and fastest place to complete Swisstronik testnet2 is just by Forking!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 79.3%
  • TypeScript 20.7%