- NodeJS
- PNPM
npm i -g pnpm
- 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!
pnpm iCopy .env.example to .env, edit .env and update PRIVATE_KEY="<here>"
Run it
pnpm 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"
Run it
pnpm script ./scripts/deploy-2.tsCopy 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"Run it
pnpm script ./scripts/deploy-3.tsCopy 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 URLRun it
pnpm script ./scripts/deploy-4.tsCopy 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 URLRun it
pnpm script ./scripts/deploy-5.tsCopy 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 URLRun it
pnpm script ./scripts/deploy-6.tsCopy URL of ./contracts/TransparentUpgradeableProxy.sol (just click at your repo) for "Enter the deployed contract address [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"Swisstronik Ambassador pierreneter, p10node
Website: https://p10node.com Contact: pierre@p10node.com