Skip to content

[WIP] Implement Slack-Integrated Task Funding System for Koii Network#166

Draft
Merango wants to merge 30 commits into
HermanKoii:mainfrom
Merango:7cc31dfb-6f29-40ed-93ba-428444822f4a-merged
Draft

[WIP] Implement Slack-Integrated Task Funding System for Koii Network#166
Merango wants to merge 30 commits into
HermanKoii:mainfrom
Merango:7cc31dfb-6f29-40ed-93ba-428444822f4a-merged

Conversation

@Merango
Copy link
Copy Markdown

@Merango Merango commented Jun 7, 2025

Implement Slack-Integrated Task Funding System for Koii Network

Description

Summary of Work

This pull request introduces a new Express.js application that enables task funding through Slack interactions. The system provides a secure and user-friendly way to fund tasks on the Koii Network.

Key Features:

  • Slack command-based task funding
  • Request signature verification to prevent unauthorized access
  • Support for both standard and KPL (Koii Programming Library) token types
  • Flexible user authorization mechanism
  • Error handling and user feedback via Slack messages

The implementation allows whitelisted users to fund tasks by specifying a task ID and funding amount through a Slack command.

Changes Made

  1. Added main application logic in index.js:

    • Implemented Slack request verification
    • Created /fundtask endpoint for task funding
    • Added support for different token funding methods
    • Implemented user authorization through a whitelist
  2. Configured project dependencies in package.json:

    • Added necessary packages for blockchain interactions
    • Included Axios for HTTP requests
    • Set up Express.js as the web framework
  3. Prepared environment configuration:

    • Added .env.example for required environment variables
    • Supported secure storage of funding keypair and Slack signing secret

Tests and Verification

Test Coverage:

  • Request signature verification
  • User authorization checks
  • Task funding for both standard and KPL token types
  • Error handling scenarios

Recommended Additional Testing:

  • Integration tests with mock Slack requests
  • Comprehensive test cases for different funding scenarios
  • Validation of blockchain transaction processes

PRs Merged

The following pull requests have been merged:

Signatures

Staking Key

84mPEB3qLaB2KQr1RXxNgYDF5DSv5ZyuDPpb9qeeNyyT: byhdmpSSrsLry57xwz3b35b6MDU2zjy2dEdnK7y4bYcKEDqJXGVPkRq8hnHvYthWTvqWds9krhUhytoUiNU827RYB3DvPVUEVMt2KVkFig6sqxceAFt3WtPTBzNeRvTMqeAWPHH9k1GFF6aHkSDtuiv1mAfDxFFXia4y2ZSSezHvNciwsFoLFhwXEbuMydqEYQLh4tF8Wfr37kVLhVB9udoZEALd3YZJmHZVUW8ACefk8YZjCHzpep2XBS7PXGTorRLEJa56Fqa67VWiuRUgFEBXP7M2W8DPyJpeNMq6C4X9wb8MxESUhtk1K1asqHh2XBz9EVcpaTrxsdFQTrXuaTFGaXbyoGYyJ2Jrc4mqH4yzXumPQJQidso9zEpxKdpfm9gWhNM1EkSs567YFy89iLWUWsdbWyi

Public Key

FLcUWedFSfvYeGjtnoXqgNtvtqEBCKwUK7Qn48hGnwsk: 2kYvNg54WmUtaN1jT76d2qkffDssRfSiKJ4tN8rxTvmq1SgNa7nogseE9LqCvXzhKL8M8HgRKVULBvE1zBs22ZhbacGyWp8Tre8cBcy6oE43t3jXyupaefXBZgp93BTzoZpL4UPWdqBmwi5udVHteHqiJ3YucUCeXTwFKrjCGL219vHXgbK3akP52yP34rgNHN67dpZhQRKizm3AFheWf8VgCSUMRHGrQdiXtUZSFPd6GnjUdUnh5R6uibWfahrqoVxdjTJo9ionCqg6N64jeYt31nEBTUuMDmG6g7Lr4fLCrW48SyNqaoFy2rcEZezHtBiCNme9eerBsMpHSdaGcwVoUFDf8VQX3aupqXvWaRQbiBqNYbqofSnXFT1HkNdVtsbY8KJTYuyeCVxAyZmqxvgoFaLhNw5N

Bhing26 and others added 30 commits June 6, 2025 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants