Smart Contract Deployment¶
Build¶
npm run contracts:build
npm run contracts:test
Deploy per Network¶
| Network | Command |
|---|---|
| Devnet | npm run contracts:deploy:devnet |
| Private Testnet | npm run contracts:deploy:private |
| Public Testnet | npm run contracts:deploy:public |
| Mainnet | npm run contracts:deploy:mainnet |
Contracts¶
| Contract | Path |
|---|---|
| GAT | contracts/src/token/GAT.sol |
| GarudaPayHub | contracts/src/payhub/GarudaPayHub.sol |
| GarudaStaking | contracts/src/staking/GarudaStaking.sol |
| GarudaGovernance | contracts/src/governance/GarudaGovernance.sol |
| GarudaIdentity | contracts/src/identity/GarudaIdentity.sol |
| GarudaValidatorRegistry | contracts/src/validators/GarudaValidatorRegistry.sol |
Verify Deployment¶
cat chain/deployments/public-testnet.json
Foundry Cast¶
cast send 0xContract "transfer(address,uint256)" 0xTo 1000000000000000000 \
--rpc-url http://localhost:8545 \
--private-key $DEPLOYER_PRIVATE_KEY
Security¶
Jalankan audit internal sebelum mainnet:
npm run security:audit
npm run security:test
Lihat Security Overview.