Namefi was formerly known as "D3Bridge". Report bug to get bounty rewards! See #Bounty Section
- NFT: NonFungibleToken
- SC: ServiceCredit
-
NamefiProxyAdmin:
0x00000000009209F45C2822E3f11b7a73014130F1
-
NamefiServiceCredit:
0x0000000000c39A0F674c12A5e63eb8031B550b6f
-
NamefiNFT:
0x0000000000cf80E7Cf8Fa4480907f692177f8e06
-
NamefiServiceCredit logic (V1.3.0):
0x0000000008f774D350fDb33Fe8D81a230de2ea89
(nonce=0x00000000000000000000000000000000000000006101b4b3a13d8701198a0cb5
) -
NamefiNFT logic (V1.2.0):
0x0000000066fC23B730b11098610416207db60AD7
(nonce=0x00000000000000000000000000000000000000008f97345e74a9ce2
)
The D3Serve Labs also provide a bug bounty for the following reward for reporting bugs or security flaws.
Level | Bounty Reward | Explain |
---|---|---|
Kudo | 300 $NFSC or 0.1ETH | Fixes are nice to have or minor improvements |
Essential | 900 $NFSC or 0.3ETH | Bugs that are affecting usage or security but don't require urgent upgrade for fixing it. |
Critical | 3000 $NFSC or 1ETH | Bugs that requires an urgent upgrade |
Fatal | 20% of Fund Recovered | Bugs or security flaws that requires recovery of fund |
(Active D3Serve Labs compansated teammates are disqualified to participate this bounty program but other internal bonuses will be rewarded.)
Name | Address |
---|---|
Logic | 0x9765eFf10c752DB8Ef81fe655cEB1543AbE7b16D |
This project includes Foundry integration for detailed gas profiling of smart contract functions. Foundry provides more comprehensive gas usage analysis compared to Hardhat, including internal function calls.
The Foundry installer is automatically downloaded when you run bun install
. To complete the setup:
- After
bun install
completes, run the following in a new terminal window:# Activate Foundry in your current shell source ~/.bashrc # or ~/.zshrc depending on your shell # Complete Foundry installation foundryup # Set up Forge dependencies bun forge:setup
The lib/forge-std
directory is excluded from Git tracking via .gitignore.
# Run all Foundry tests
bun forge:test
# Run tests with gas reporting
bun forge:gas
# Create a gas snapshot for comparison
bun forge:snapshot
Gas profiling can be done at a granular level using the gasleft()
function:
// Example from test/foundry/NamefiNFT.t.sol
function testFunction() public view {
uint256 gasStart = gasleft();
bool result = contract.someFunction();
uint256 gasUsed = gasStart - gasleft();
console.log("Gas used: ", gasUsed);
}
See test/foundry/NamefiNFT.t.sol
for examples of gas profiling tests.