-
Notifications
You must be signed in to change notification settings - Fork 0
feat(chain): settlement program, node identity, vanity wallets, devnet scripts #171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2dd93c4
66a3f05
af0776d
597364c
6b23cee
2fc684b
466ae2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -38,9 +38,39 @@ STRIPE_SECRET_KEY=sk_test_... | |||||
| STRIPE_WEBHOOK_SECRET=whsec_... | ||||||
| STRIPE_PUBLISHABLE_KEY=pk_test_... | ||||||
|
|
||||||
| # ─── Solana ────────────────────────────────────────────────────────────────── | ||||||
| SOLANA_RPC_URL=https://api.devnet.solana.com | ||||||
| SOLANA_WALLET_PATH=~/.config/solana/id.json | ||||||
| # ─── Solana / Chain ────────────────────────────────────────────────────────── | ||||||
| SOLANA_CLUSTER=devnet # devnet | mainnet-beta | ||||||
| SOLANA_WALLET_PATH=~/.config/solana/id.json # Path to authority keypair | ||||||
|
|
||||||
| # Helius — Solana RPC + webhooks (https://helius.dev) | ||||||
| HELIUS_API_KEY= # Required for prod; falls back to public RPC | ||||||
| HELIUS_WEBHOOK_ID= # Set after running scripts/setup-devnet.ts | ||||||
| HELIUS_WEBHOOK_SECRET= # Random secret for webhook auth header | ||||||
|
|
||||||
| # Settlement program (update after anchor deploy --provider.cluster devnet) | ||||||
| SETTLEMENT_PROGRAM_ID=DysEiPCWKkcMUemm1YHftCQv2UVH3JvDJsdAGbyBW4Md | ||||||
|
|
||||||
| # Settlement wallets — generate with: solana-keygen new -o wallets/<name>.json --no-bip39-passphrase | ||||||
| # Keypair files live in wallets/ (gitignored). Only pubkeys go here. | ||||||
| SETTLEMENT_AUTHORITY_KEYPAIR=wallets/authority.json # Signs settle_earnings, initialize_config | ||||||
| SETTLEMENT_TREASURY_PUBKEY= # Receives 15% of all earnings | ||||||
| SETTLEMENT_DEVELOPER_PUBKEY= # Receives 10% marketplace fee | ||||||
| SETTLEMENT_VALIDATORS_PUBKEY= # Receives 5% validators pool | ||||||
|
|
||||||
| # MACH token (set after running scripts/setup-mach-token.ts) | ||||||
| MACH_MINT_ADDRESS= | ||||||
|
|
||||||
| # Realms DAO (set after running scripts/setup-realms.ts) | ||||||
| REALM_ADDRESS= # Maschina DAO realm address | ||||||
|
|
||||||
| # USDC mint addresses | ||||||
| USDC_MINT_DEVNET=4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU | ||||||
| USDC_MINT_MAINNET=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v | ||||||
|
|
||||||
| # Maschina treasury USDC token account (set after creating treasury wallet) | ||||||
| TREASURY_USDC_ADDRESS= | ||||||
| # Validators pool USDC token account | ||||||
| VALIDATORS_USDC_ADDRESS= | ||||||
|
|
||||||
| # ─── Services ──────────────────────────────────────────────────────────────── | ||||||
| GATEWAY_PORT=3001 | ||||||
|
|
@@ -141,3 +171,10 @@ DISCORD_CI_WEBHOOK= # GitHub CI pass/fail notifications (set in G | |||||
|
|
||||||
| # ─── Feature Flags ─────────────────────────────────────────────────────────── | ||||||
| NODE_ENV=development | ||||||
|
|
||||||
| # ─── App ───────────────────────────────────────────────────────────────────── | ||||||
| APP_URL=http://localhost:3000 # public-facing URL for magic link emails etc. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the duplicate Line 176 redefines Proposed fix-APP_URL=http://localhost:3000 # public-facing URL for magic link emails etc.
+# APP_URL is already defined above (Line 143). Avoid redefining it here.📝 Committable suggestion
Suggested change
🧰 Tools🪛 dotenv-linter (4.0.0)[warning] 176-176: [DuplicatedKey] The APP_URL key is duplicated (DuplicatedKey) [warning] 176-176: [ValueWithoutQuotes] This value needs to be surrounded in quotes (ValueWithoutQuotes) 🤖 Prompt for AI Agents |
||||||
| CORS_ORIGINS=http://localhost:5173 # comma-separated allowed origins | ||||||
| PORT=3000 # API listen port (alias for API_PORT in some services) | ||||||
| DAEMON_HEALTH_PORT=3002 # daemon health-check HTTP port | ||||||
| RUST_LOG=info # Rust log level: error | warn | info | debug | trace | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
|
|
||
| ███╗ ███╗ █████╗ ███████╗ ██████╗██╗ ██╗██╗███╗ ██╗ █████╗ | ||
| ████╗ ████║██╔══██╗██╔════╝██╔════╝██║ ██║██║████╗ ██║██╔══██╗ | ||
| ██╔████╔██║███████║███████╗██║ ███████║██║██╔██╗ ██║███████║ | ||
| ██║╚██╔╝██║██╔══██║╚════██║██║ ██╔══██║██║██║╚██╗██║██╔══██║ | ||
| ██║ ╚═╝ ██║██║ ██║███████║╚██████╗██║ ██║██║██║ ╚████║██║ ██║ | ||
| ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝ | ||
|
|
||
| infrastructure for autonomous digital labor |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "name": "Maschina", | ||
| "symbol": "MACH", | ||
| "description": "Maschina governance and utility token. Stake to participate in network governance, earn rewards, and access premium compute capacity on the agentic network.", | ||
| "image": "https://arweave.net/At45mjn2d5h2VqcYVGrc9xNf4YAtSuMcaN5qChaH2VsU", | ||
| "external_url": "https://maschina.dev", | ||
| "attributes": [], | ||
| "properties": { | ||
| "files": [ | ||
| { | ||
| "uri": "https://arweave.net/At45mjn2d5h2VqcYVGrc9xNf4YAtSuMcaN5qChaH2VsU", | ||
| "type": "image/png" | ||
| } | ||
| ], | ||
| "category": "image" | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normalize
.envassignments to satisfy dotenv-linter.The newly added block introduces spacing/format patterns that are currently flagged by dotenv-linter. If linting is enforced, this will keep warning noise (or fail checks).
Proposed cleanup (example)
Also applies to: 56-58, 64-64, 162-166
🧰 Tools
🪛 dotenv-linter (4.0.0)
[warning] 46-46: [SpaceCharacter] The line has spaces around equal sign
(SpaceCharacter)
[warning] 46-46: [ValueWithoutQuotes] This value needs to be surrounded in quotes
(ValueWithoutQuotes)
[warning] 47-47: [SpaceCharacter] The line has spaces around equal sign
(SpaceCharacter)
[warning] 47-47: [ValueWithoutQuotes] This value needs to be surrounded in quotes
(ValueWithoutQuotes)
[warning] 48-48: [SpaceCharacter] The line has spaces around equal sign
(SpaceCharacter)
[warning] 48-48: [ValueWithoutQuotes] This value needs to be surrounded in quotes
(ValueWithoutQuotes)
🤖 Prompt for AI Agents