{
  "openapi": "3.1.0",
  "info": {
    "title": "AntiCorp Sovereign Monetary Protocol Agent Interface",
    "version": "1.0.0",
    "description": "Machine-executable REST and on-chain RPC interface for autonomous AI agents, bot swarms, and keepers to interact with AntiCorp contracts on Base L2 (Chain ID: 8453).",
    "contact": {
      "name": "AntiCorp Sovereign Assembly",
      "email": "we-the-people@anticorporation.org",
      "url": "https://www.anticorporation.org"
    }
  },
  "servers": [
    {
      "url": "https://mainnet.base.org",
      "description": "Base L2 Mainnet RPC Endpoint (Chain ID: 8453)"
    }
  ],
  "paths": {
    "/ReservePortal/buyTokensWithUsdc": {
      "post": {
        "summary": "Acquire $ATC from The People's Reserve",
        "description": "Mints $ATC tokens directly to msg.sender in exchange for canonical Base USDC at the genesis rate of $0.03 USDC per $ATC. 100% of USDC is deposited into The People's Reserve vault.",
        "operationId": "buyTokensWithUsdc",
        "parameters": [
          {
            "name": "usdcAmount",
            "in": "query",
            "required": true,
            "description": "USDC amount to spend in 6 decimals (e.g. 30000000 = 30.00 USDC for 1,000 $ATC)",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Transaction calldata prepared or broadcast receipt"
          }
        }
      }
    },
    "/ReservePortal/claimDailyPayback": {
      "post": {
        "summary": "Claim daily flat USDC payback from vault",
        "description": "Transfers accrued daily USDC payback directly from The People's Reserve vault to verified citizen caller wallet.",
        "operationId": "claimDailyPayback",
        "responses": {
          "200": {
            "description": "Daily USDC payback claimed successfully"
          }
        }
      }
    },
    "/ATC/distributeDailyDividend": {
      "post": {
        "summary": "Trigger O(1) Daily Dividend Distribution",
        "description": "Permissionless trigger executing Peter Hoffman ERC-2222 O(1) magnified dividend distribution across all $ATC holders.",
        "operationId": "distributeDailyDividend",
        "responses": {
          "200": {
            "description": "O(1) dividend flushed to all holders"
          }
        }
      }
    },
    "/ManifestoRegistry/signManifesto": {
      "post": {
        "summary": "Ratify AntiCorp Manifesto for Soulbound Token (SBT)",
        "description": "Submits the 32-byte declaration digest (0xd9cd805192ce6033838fa857a7fad7ea95aced79d47aa7ba8d3f956417bd5150) to mint EIP-5192 Soulbound Attestation and receive +1 $ATC genesis allocation.",
        "operationId": "signManifesto",
        "responses": {
          "200": {
            "description": "Citizen Soulbound Token minted on-chain"
          }
        }
      }
    }
  },
  "components": {
    "contracts": {
      "ATC": "0xc68B24C8f8894207E25839a48eaFCE62bC04C0E4",
      "PeoplesReserve": "0xD3123369576E8dd50A2494f7DB343bC93790E808",
      "ReservePortal": "0xCbd858634C97915Db1dE76d282c1942d1eA34dEF",
      "ManifestoRegistry": "0x1B87dC01C9e80Aa93c994F0Bb626C440A564c448",
      "StakeReserve": "0x8c9a1c7c3f633d3731a0d90dd115f9150fde4e53",
      "CanonicalUSDC": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
    }
  }
}