CityCoins
Search…
⌃K

Contracts

Links and information about deployed CityCoin contracts.

CityCoin Protocol

The VRF is a single contract used by all mining contracts, which takes a given Stacks block height and returns a random uint calculated by accessing the on-chain VRF.
  • V1: includes a read-only function that calculates the value and returns it
  • V2: includes a public function that will set the value to a map before returning it, and both the public and read-only function check the map for a value before calculating it
The core trait defines the functions in a citycoin-core-* contract around activation, mining, and stacking.
The token trait defines the functions in a citycoin-token-* contract around token utilities and a send-many function.
Clarity traits allow creating generalized functions where the contract to use within the function is provided as a parameter. This requires extra security considerations.

MiamiCoin (MIA)

The auth, core, and token contract are created to interact with each other such that:
  • The core contract enables activation/mining/stacking
  • The token contract enables the CityCoin token operations
  • The auth contract enables administrative utilities
The Miami Wallet Address is used by the contract for MiamiCoin protocol distribution.

NewYorkCityCoin (NYC)

The auth, core, and token contract are created to interact with each other such that:
  • The core contract enables activation/mining/stacking
  • The token contract enables the CityCoin token operations
  • The auth contract enables administrative utilities
The New York City Wallet Address is used by the contract for NewYorkCityCoin protocol distribution.