Diamondz Shadow Contracts
Technical details and addresses for the smart contracts deployed on the Diamondz Shadow chain.
Chain Information
Chain Details
Slug:
Diamondz - zLab testnetChain ID:
150179125Framework:Arbitrum Orbit
Currency Symbol:zsLab
RPC Endpoint
Contract Addresses
| Contract | Address | Actions |
|---|---|---|
| YouTube Adapter | 0xD08e5d2BcB7c9921063C11718d35c5b35e8f489c | |
| YouTube Oracle | 0x5b07a733eB9D670b997CbfF1d0af56fC9154EA60 | |
| Token (tDIAM) | 0x0e5BDba7B52f7ed1245DaCC9E1105792856ca3df |
Wallet Addresses
| Role | Address | Actions |
|---|---|---|
| Deployer/Admin | 0x943F795b9F06E63b11adeb1fF3784247e2F6641C |
YouTube Adapter Contract
Connects YouTube contributions to on-chain rewards
Key Functions:
linkChannel: Links a YouTube channel to a wallet addressverifyContribution: Verifies and rewards contributionsgetUserContributions: Gets user contribution countsgetUserTotalRewards: Gets total rewards earned by a user
YouTube Oracle Contract
Verifies YouTube data and sends it to the adapter
Key Functions:
processContribution: Processes YouTube contributionsupdateThreshold: Updates verification thresholdsupdateAdapter: Updates the YouTube adapter address
Token Contract (tDIAM)
ERC20 token used for rewards
Key Functions:
- Standard ERC20 functions (transfer, balanceOf, etc.)
mint: Creates new tokens (MINTER_ROLE only)burn: Destroys tokens (BURNER_ROLE only)
Contract Roles
- ORACLE_ROLE: Granted to the Oracle contract to call the Adapter
- ADMIN_ROLE: Granted to the deployer address
- MINTER_ROLE: Ability to mint new tokens
- BURNER_ROLE: Ability to burn tokens
- DATA_PROVIDER_ROLE: Ability to provide data to the Oracle
Other Important Information
YouTube Channel ID:
UC***************************Dashboard URL:diamondz-zslab-testnet.tryethernal.com