Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions Clarinet.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@

[project]
name = "analytics-token-protocol"
authors = []
description = ""
telemetry = true
requirements = []
[contracts.analytics-token]
path = "contracts/analytics-token.clar"
depends_on = []

[repl]
costs_version = 2
parser_version = 2

[repl.analysis]
passes = ["check_checker"]

[repl.analysis.check_checker]
# If true, inputs are trusted after tx_sender has been checked.
strict = false
trusted_sender = false
# If true, inputs are trusted after contract-caller has been checked.
trusted_caller = false
# If true, untrusted data may be passed into a private function without a
# warning, if it gets checked inside. This check will also propagate up to the
# caller.
callee_filter = false

# [contracts.counter]
# path = "contracts/counter.clar"
# depends_on = []
63 changes: 63 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Analytics Token Protocol

A decentralized governance and staking protocol built on Stacks blockchain that enables users to stake STX tokens, participate in governance, and earn rewards based on their stake and lock period.

## Features

- **Tiered Staking System**: Three-tier system with increasing benefits
- **Flexible Lock Periods**: Optional lock periods for enhanced rewards
- **Governance Mechanism**: Proposal creation and voting system
- **Dynamic Rewards**: Reward multipliers based on tier level and lock period
- **Safety Features**: Cooldown periods and emergency controls

## Quick Start

```bash
# Clone the repository
git clone https://github.com/wis-eduak/analytics-token-protocol.git

```

## Architecture

```
contracts/
├── analytics-token.clar # Main contract
docs/
├── architecture.md # System architecture
├── governance.md # Governance documentation
├── security.md # Security considerations
└── staking.md # Staking mechanism details
```

## Contract Interaction

### Staking STX

```clarity
(contract-call? .analytics-token stake-stx u1000000 u4320)
```

### Creating Proposals

```clarity
(contract-call? .analytics-token create-proposal "Proposal description" u1440)
```

### Voting

```clarity
(contract-call? .analytics-token vote-on-proposal u1 true)
```

## Security

- Row-level security enabled
- Emergency pause functionality
- Cooldown periods for unstaking
- Minimum stake requirements
- Tiered access control

## License

MIT
Loading