Technical documentation available —View on GitHub

Diamondz Shadow Contracts

Technical details and addresses for the smart contracts deployed on the Diamondz Shadow chain.

Chain Information

Chain Details

Slug:Diamondz - zLab testnet
Chain ID:150179125
Framework:Arbitrum Orbit
Currency Symbol:zsLab

RPC Endpoint

Contract Addresses

ContractAddressActions
YouTube Adapter0xD08e5d2BcB7c9921063C11718d35c5b35e8f489c
YouTube Oracle0x5b07a733eB9D670b997CbfF1d0af56fC9154EA60
Token (tDIAM)0x0e5BDba7B52f7ed1245DaCC9E1105792856ca3df

Wallet Addresses

RoleAddressActions
Deployer/Admin0x943F795b9F06E63b11adeb1fF3784247e2F6641C

YouTube Adapter Contract

Connects YouTube contributions to on-chain rewards

Key Functions:

  • linkChannel: Links a YouTube channel to a wallet address
  • verifyContribution: Verifies and rewards contributions
  • getUserContributions: Gets user contribution counts
  • getUserTotalRewards: Gets total rewards earned by a user

YouTube Oracle Contract

Verifies YouTube data and sends it to the adapter

Key Functions:

  • processContribution: Processes YouTube contributions
  • updateThreshold: Updates verification thresholds
  • updateAdapter: 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***************************