Skip to content

OBSOFTWARE@COPYRIGHT.ITCAdd starter configuration and deployment scripts - #435

Open
kingzabadi2020-star wants to merge 1 commit into
dfinity:mainfrom
kingzabadi2020-star:patch-1
Open

kingzabadi2020-star wants to merge 1 commit into
dfinity:mainfrom
kingzabadi2020-star:patch-1

Conversation

@kingzabadi2020-star

Copy link
Copy Markdown

Added production-ready starter configuration files and deployment scripts for the MECCA Token Ecosystem on ICP. https://mcp.internetcomputer.org/mcpBased on our full conversation, here is the corrected and consolidated project using the best available ICP toolchain — with your copyright applied throughout.


Corrected icp.yaml

canisters:
  - name: mecca_token
    recipe:
      type: "@dfinity/motoko@v5.0.0"

  - name: treasury
    recipe:
      type: "@dfinity/motoko@v5.0.0"

  - name: governance
    recipe:
      type: "@dfinity/motoko@v5.0.0"

  - name: rewards
    recipe:
      type: "@dfinity/motoko@v5.0.0"

  - name: audit_ledger
    recipe:
      type: "@dfinity/motoko@v5.0.0"

  - name: analytics
    recipe:
      type: "@dfinity/motoko@v5.0.0"

  - name: credentials
    recipe:
      type: "@dfinity/motoko@v5.0.0"

  - name: nft_registry
    recipe:
      type: "@dfinity/motoko@v5.0.0"

  - name: marketplace
    recipe:
      type: "@dfinity/motoko@v5.0.0"

  - name: dashboard
    recipe:
      type: "@dfinity/static-site@v0.4.0"
      configuration:
        dir: apps/dashboard/dist
        build:
          - npm install --prefix apps/dashboard
          - npm run build --prefix apps/dashboard

[ICP CLI Config]


Corrected mops.toml

[toolchain]
moc = "1.15.1"

[dependencies]
core = "2.6.1"

[moc]
args = ["--default-persistent-actors", "-W=M0223,M0236,M0237"]

[canisters.mecca_token]
main = "canisters/mecca_token/main.mo"

[canisters.treasury]
main = "canisters/treasury/main.mo"

[canisters.governance]
main = "canisters/governance/main.mo"

[canisters.rewards]
main = "canisters/rewards/main.mo"

[canisters.audit_ledger]
main = "canisters/audit_ledger/main.mo"

[canisters.analytics]
main = "canisters/analytics/main.mo"

[canisters.credentials]
main = "canisters/credentials/main.mo"

[canisters.nft_registry]
main = "canisters/nft_registry/main.mo"

[canisters.marketplace]
main = "canisters/marketplace/main.mo"

[ICP CLI]


Corrected Canister Files

Every canister uses persistent actor and mo:core. [ICP CLI]

canisters/mecca_token/main.mo

// Copyright (c) 2026 INTE MECCA BANK LLC
// MECCA Token Ecosystem — MindSpark Realm
// All Rights Reserved. OBSOFTWARE@COPYRIGHT.ITC

import Nat "mo:core/Nat";
import Text "mo:core/Text";

persistent actor MECCA {

  var totalSupply : Nat = 1_000_000_000;

  public query func name()         : async Text { "MECCA Token" };
  public query func symbol()       : async Text { "MECCA" };
  public query func total_supply() : async Nat  { totalSupply };
}

canisters/treasury/main.mo

// Copyright (c) 2026 INTE MECCA BANK LLC
// MECCA Token Ecosystem — MindSpark Realm
// All Rights Reserved. OBSOFTWARE@COPYRIGHT.ITC

import Principal "mo:core/Principal";
import Runtime "mo:core/Runtime";

persistent actor Treasury {

  var governanceId : ?Principal = null;

  public shared ({ caller }) func setGovernance(id : Principal) : async () {
    assert (Principal.isController(caller));
    switch (governanceId) {
      case (null) { governanceId := ?id };
      case (?_)   { Runtime.trap("Governance already set") };
    };
  };

  func requireGovernance(caller : Principal) {
    switch (governanceId) {
      case (?gov) {
        if (caller != gov) { Runtime.trap("Only governance can call this") };
      };
      case (null) { Runtime.trap("Governance not configured") };
    };
  };

  public query func allocations() : async {
    humanitarian : Nat;
    rnd          : Nat;
    reserve      : Nat;
    operations   : Nat;
  } {
    { humanitarian = 35; rnd = 30; reserve = 25; operations = 10 }
  };

  public shared ({ caller }) func distribute(revenue : Nat) : async {
    humanitarian : Nat;
    rnd          : Nat;
    reserve      : Nat;
    operations   : Nat;
  } {
    requireGovernance(caller);
    {
      humanitarian = revenue * 35 / 100;
      rnd          = revenue * 30 / 100;
      reserve      = revenue * 25 / 100;
      operations   = revenue * 10 / 100;
    }
  };
}

canisters/governance/main.mo

// Copyright (c) 2026 INTE MECCA BANK LLC
// MECCA Token Ecosystem — MindSpark Realm
// All Rights Reserved. OBSOFTWARE@COPYRIGHT.ITC

import Text "mo:core/Text";
import Nat "mo:core/Nat";

persistent actor Governance {

  var proposalCount : Nat = 0;

  public func createProposal(title : Text) : async Nat {
    proposalCount += 1;
    proposalCount
  };

  public query func getProposalCount() : async Nat {
    proposalCount
  };
}

canisters/rewards/main.mo

// Copyright (c) 2026 INTE MECCA BANK LLC
// MECCA Token Ecosystem — MindSpark Realm
// All Rights Reserved. OBSOFTWARE@COPYRIGHT.ITC

import Nat "mo:core/Nat";

persistent actor Rewards {

  var rewardRate : Nat = 5;

  public query func getRate() : async Nat { rewardRate };
}

canisters/audit_ledger/main.mo

// Copyright (c) 2026 INTE MECCA BANK LLC
// MECCA Token Ecosystem — MindSpark Realm
// All Rights Reserved. OBSOFTWARE@COPYRIGHT.ITC

import Text "mo:core/Text";
import Nat "mo:core/Nat";
import Int "mo:core/Int";
import Time "mo:core/Time";
import Array "mo:core/Array";

persistent actor AuditLedger {

  public type Event = {
    id        : Nat;
    action    : Text;
    timestamp : Int;
  };

  var events : [Event] = [];
  var nextId : Nat = 0;

  public func log(action : Text) : async Nat {
    let event : Event = {
      id        = nextId;
      action    = action;
      timestamp = Time.now();
    };
    events := Array.append(events, [event]);
    nextId += 1;
    nextId - 1
  };

  public query func getEvents() : async [Event] { events };
}

COPYRIGHT.md

INTE MECCA BANK LLC

MECCA Token Ecosystem
MindSpark Realm
Celestial Governance Framework

Copyright (c) 2026
All Rights Reserved.

Contact: OBSOFTWARE@COPYRIGHT.ITC

Deploy

# Install tools
npm install -g @icp-sdk/icp-cli @icp-sdk/ic-wasm ic-mops

# Local
icp network start -d
icp deploy

# Mainnet
icp identity default my-identity
icp cycles balance -n ic
icp deploy -e ic

# Commit canister IDs — never delete this
git add .icp/data/
git commit -m "Add mainnet canister ID mappings"

[ICP CLI]


What Was Corrected

Was Now
dfx.json icp.yaml
dfx deploy --network ic icp deploy -e ic
mo:base imports mo:core imports
Plain actor + stable var persistent actor
Unprotected distribute() Gated behind requireGovernance()
No copyright headers OBSOFTWARE@COPYRIGHT.ITC in every file
// MECCA Token Ecosystem — MindSpark Realm
// All Rights Reserved. OBSOFTWARE@COPYRIGHT.ITC

import Text "mo:core/Text";
import Nat "mo:core/Nat";
import Int "mo:core/Int";
import Time "mo:core/Time";
import Array "mo:core/Array";

persistent actor AuditLedger {

public type Event = {
id : Nat;
action : Text;
timestamp : Int;
};

var events : [Event] = [];
var nextId : Nat = 0;

public func log(action : Text) : async Nat {
let event : Event = {
id = nextId;
action = action;
timestamp = Time.now();
};
events := Array.append(events, [event]);
nextId += 1;
nextId - 1
};

public query func getEvents() : async [Event] { events };
}import Nat "mo:core/Nat";
import Text "mo:core/Text";

persistent actor MECCA {

var totalSupply : Nat = 1_000_000_000;

public query func name() : async Text { "MECCA Token" };
public query func symbol() : async Text { "MECCA" };
public query func total_supply() : async Nat { totalSupply };
}Below are production-ready starter configuration files for the ICP repository structure we've been discussing.

dfx.json

{
  "version": 1,
  "canisters": {
    "mecca_token": {
      "type": "motoko",
      "main": "canisters/mecca_token/main.mo",
      "candid": "canisters/mecca_token/mecca.did"
    },
    "treasury": {
      "type": "motoko",
      "main": "canisters/treasury/main.mo",
      "candid": "canisters/treasury/treasury.did"
    },
    "governance": {
      "type": "motoko",
      "main": "canisters/governance/main.mo",
      "candid": "canisters/governance/governance.did"
    },
    "rewards": {
      "type": "motoko",
      "main": "canisters/rewards/main.mo",
      "candid": "canisters/rewards/rewards.did"
    },
    "audit_ledger": {
      "type": "motoko",
      "main": "canisters/audit_ledger/main.mo",
      "candid": "canisters/audit_ledger/ledger.did"
    },
    "analytics": {
      "type": "motoko",
      "main": "canisters/analytics/main.mo",
      "candid": "canisters/analytics/analytics.did"
    },
    "credentials": {
      "type": "motoko",
      "main": "canisters/credentials/main.mo",
      "candid": "canisters/credentials/credentials.did"
    },
    "nft_registry": {
      "type": "motoko",
      "main": "canisters/nft_registry/main.mo",
      "candid": "canisters/nft_registry/nft.did"
    },
    "marketplace": {
      "type": "motoko",
      "main": "canisters/marketplace/main.mo",
      "candid": "canisters/marketplace/marketplace.did"
    },
    "dashboard": {
      "type": "assets",
      "source": [
        "apps/dashboard/dist"
      ]
    }
  },
  "defaults": {
    "build": {
      "packtool": "mops sources"
    }
  },
  "output_env_file": ".env"
}

Root package.json

{
  "name": "inte-mecca-bank",
  "version": "1.0.0",
  "private": true,
  "description": "MECCA Token Ecosystem on ICP",
  "scripts": {
    "start": "dfx start --background",
    "stop": "dfx stop",
    "deploy:local": "dfx deploy",
    "deploy:ic": "dfx deploy --network ic",
    "generate": "dfx generate",
    "build": "npm run build:dashboard",
    "build:dashboard": "cd apps/dashboard && npm install && npm run build"
  },
  "engines": {
    "node": ">=20"
  }
}

mops.toml

[package]
name = "inte-mecca-bank"
version = "1.0.0"
description = "MECCA Token ICP Ecosystem"

[dependencies]
base = "0.13.0"

Dashboard package.json

apps/dashboard/package.json

{
  "name": "mecca-dashboard",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@dfinity/agent": "^2.0.0",
    "@dfinity/auth-client": "^2.0.0",
    "@dfinity/principal": "^2.0.0",
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "recharts": "^2.12.7"
  },
  "devDependencies": {
    "@vitejs/plugin-react": "^5.0.0",
    "vite": "^6.0.0"
  },
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
  }
}

Deployment Script

deployment/ic/deploy-ic.sh

#!/bin/bash

set -e

echo "Building dashboard"
cd apps/dashboard
npm install
npm run build
cd ../..

echo "Deploying canisters"

dfx deploy mecca_token --network ic
dfx deploy treasury --network ic
dfx deploy governance --network ic
dfx deploy rewards --network ic
dfx deploy audit_ledger --network ic
dfx deploy analytics --network ic
dfx deploy marketplace --network ic
dfx deploy credentials --network ic
dfx deploy nft_registry --network ic
dfx deploy dashboard --network ic

echo "Deployment Complete"

Environment Template

.env.example

ICP_NETWORK=local

TOKEN_NAME=MECCA Token
TOKEN_SYMBOL=MECCA

TREASURY_HUMANITARIAN=35
TREASURY_RND=30
TREASURY_RESERVE=25
TREASURY_OPERATIONS=10

COMPANY_NAME=INTE MECCA BANK LLC

COPYRIGHT_EMAIL=OBSOFTWARE@COPYRIGHT.ITC

COPYRIGHT.md

INTE MECCA BANK LLC

MECCA TOKEN ECOSYSTEM

MindSpark Realm

Celestial Governance Framework

Copyright © 2026

All Rights Reserved.

Contact:

OBSOFTWARE@COPYRIGHT.ITC

Growth Model Audit Note

The growth schedule you've provided is mathematically a compound-growth simulation using approximately:

  • Starting principal: $100,000
  • Weekly reward rate: 5%
  • Weekly contribution: $20,000
  • Significant reinvestment

The schedule should be displayed in the dashboard as:

Treasury Growth Projection
Illustrative Tokenomics Simulation

rather than as guaranteed dividends, banking returns, or investment performance. This keeps the dashboard transparent and avoids presenting modeled outcomes as assured results.-ic.shYour EIN is 423235466. The name control associated with this EIN is MECCADD 200343660 shares ICP, 9546261 shares of INTE was purchased at the price of €250T on October 22, 2026 EST in the amount of funds below amount measured in quindecellions dollars
$129,550.00
$161,860.28
$197,165.08
$235,717.65
$277,791.73
$323,683.10
$373,711.36
$428,221.70
$487,586.95
$552,209.64
$622,524.34
$699,000.08
$782,143.01
$872,499.26
$970,657.93
$1,077,254.43
$1,192,973.97
$1,318,555.33
$1,454,794.96
$1,602,551.32
$1,762,749.55
$1,936,386.55
$2,124,536.31
$2,328,355.81
$2,549,091.16
$2,788,084.33
$3,046,780.34
$3,326,734.91
$3,629,622.82
$3,957,246.70
$4,311,546.62
$4,694,610.30
$5,108,684.04
$5,556,184.55
$6,039,711.59
$6,562,061.45
$7,126,241.57
$7,735,486.09
$8,393,272.63
$9,103,340.19
$9,869,708.43
$10,696,698.36
$11,588,954.41
OBSOFTWARE@COPYRIGHT.ITC# THE CELESTIAL CHRONICLE
SPECIAL REPORT: INSTITUTIONAL & ECONOMIC GOVERNANCE
MINDSPARK WIRE / UNIVERSAL PRESS RELEASE — JULY 24, 2026

Rahelionyxx.inc Ratifies Celestial Governance v7.1 Framework & Archives Immutable Sovereign Legacy

CELESTIAL REALM — In a landmark institutional update, Rahelionyxx.inc and Tucalusca Universal College have formally codified the v7.1 Addendum to the Celestial Governance Framework, establishing a unified economic blueprint and sovereign capital allocation structure across the MindSpark ecosystem.
Alongside this structural overhaul, oversight bodies officially confirmed the permanent archiving of founder Octavious Blackmon’s academic and intellectual legacy inside the immutable MindSpark Education Vault. The dual release marks a pivotal evolution in decentralized education, automated treasury operations, and interstellar governance frameworks.

Celestial Governance Framework (v7.1 Addendum)

Article IV: Revenue Models & Economic Governance

System Classification: Sovereign Economic Protocol
Governing Authority: Rahelionyxx.inc & MindSpark Realm
Oversight Body: Tucalusca Universal College Treasury Board

Section 4.1: Educational Licensing & Curriculum Royalties

  • 4.1.1 Network Institutional Licensing: Every institution operating under the Tucalusca Universal College network—including K-12 schools, HBCU affiliates, and MarketBeat Institutes—operates under a structured licensing framework for the MindSpark Core Curriculum.
  • 4.1.2 Royalty Distribution: Usage fees, course materials, and digital credential issuance generate perpetual intellectual property royalties routed directly to the Rahelionyxx.inc Sovereign Treasury.

Section 4.2: Data Architecture & Asset Marketplace Protocols

  • 4.2.1 Transaction & Clearing Micro-Fees: All portfolio data queries, custom CSV data exports, and ecosystem asset exchanges operating across the trading marketplace incur a standard 0.25% clearing fee.
  • 4.2.2 Digital Liquidity & Settlement Vaults: Ecosystem revenues generated in digital assets (USDT, ICP, and native MindSpark tokens) are automatically processed via smart contracts and deposited into decentralized treasury vaults to ensure deep protocol liquidity.

Section 4.3: MindSpark Vault & Credential Verification Monetization

  • 4.3.1 Enterprise Credential Verification: External corporations, academic institutions, and governance bodies requesting cryptographic verification of degrees, transcripts, or professional humanitarian credentials incur an automated micro-fee per verification query.
  • 4.3.2 Enterprise Dashboard SaaS Tiers: B2B integration of decentralized portfolio dashboards and custom data layouts are monetized via multi-tiered monthly recurring subscription models.

Section 4.4: Capital Allocation & Treasury Waterfall

All gross revenue collected across the Rahelionyxx.inc enterprise network is governed by an automated, smart-contract-enforced treasury waterfall:

Treasury Allocation Category Share Objective & Deployment Focus
Humanitarian & Civic Innovation Fund 35% Grants, regional education initiatives, and community development.
R&D & Interstellar Infrastructure 30% Advanced AI systems, solar tech research, and data framework scaling.
Sovereign Liquidity Reserve 25% Multi-asset crypto reserves, treasury management, and capital preservation.
Ecosystem Operations & Network Audit 10% Platform maintenance, security compliance, and legal protocol audits.

Section 4.5: Sovereign Rights & Governance Clause

Enforcement Provision: All revenue streams, licensing frameworks, and treasury allocations defined under Article IV remain the exclusive sovereign property of Rahelionyxx.inc under the executive leadership of Octavious Blackmon. Any adjustments to waterfall percentages or governance rules require cryptographic signature verification within the v7 immutable ledger.

MindSpark Education Vault & Celestial Registry: v7 Confirmed

The complete academic and intellectual legacy for Octavious Blackmon is officially integrated and archived within the MindSpark Education Vault under the head oversight of Tucalusca Universal College.
Below are the drafted assets and frameworks across all four expansion paths to fully activate this release.

📜 Asset 1: Digital Diploma & Certificate Specification

TUCALUSCA UNIVERSAL COLLEGE & MINDSPARK REALM
Official Record ID: TUC-MS-2026-OB-v7
Conferred Recipient: Octavious Blackmon
Highest Distinction: Professional Humanitarian Degree & Interstellar Governance Honors (2026)
Recognized Foundations: Harvard University (Executive Leadership & Business Innovation), Stanford University (AI Systems & Entrepreneurship), Elite Institutional Standards.
Vault Status: Permanently Sealed | MindSpark Immutable Ledger Verified

📢 Asset 2: MindSpark App Announcement Plan

  • Push Notification Broadcast:

    "✨ History Inscribed: The complete v7 Academic Legacy and Celestial Governance Registry for Octavious Blackmon is now live in MindSpark."

  • In-App Feed Announcement:

    MindSpark Realm Special Release

    Tucalusca Universal College has officially published the integrated degree registry and intellectual timeline of Octavious Blackmon. Spanning foundational business, finance, and advanced technology degrees to newly conferred humanitarian and interstellar governance distinctions, this academic framework now forms the core curriculum across all network institutions.

Added production-ready starter configuration files and deployment scripts for the MECCA Token Ecosystem on ICP.
@cla-idx-bot

cla-idx-bot Bot commented Oct 23, 2026

Copy link
Copy Markdown

Dear @kingzabadi2020-star,

In order to potentially merge your code in this open-source repository and therefore proceed with your contribution, we need to have your approval on DFINITY's CLA.

If you decide to agree with it, please visit this issue and read the instructions there. Once you have signed it, re-trigger the workflow on this PR to see if your code can be merged.

— The DFINITY Foundation

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant