You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We aim to implement a new crowdfund command in Pagu, our internal bot for the Pactus blockchain. This feature will enable community engagement in crowdfunding campaigns to support the growth of the project. The command will consist of multiple subcommands with distinct functionalities, as described below. We will use NowPaymnet to facilate the payment gateway. An old implementation of NowPayment can be found here
Subcommands:
Create
Purpose: Admin-only command to create a new crowdfunding campaign.
Details:
Accepts input as a JSON object, allowing templated configurations.
Validates input format; provides appropriate feedback for incorrectly formatted inputs.
Activation occurs only when a campaign is created and marked as "active."
Info
Purpose: Displays details of the latest active crowdfunding campaign.
Details:
Fetches the latest record from the crowdfunding table with an "active" status.
Shows campaign details, including available packages (defined as a JSON object within the campaign record).
Purchase
Purpose: Allows users to purchase a package from the active crowdfunding campaign.
Details:
Displays a dropdown menu with a list of available packages.
Records a new order in the database upon package selection, capturing:
User ID
User platform (Discord or Telegram)
Amount of coins to purchase
Amount of USDT to pay
Locktime for claiming transactions
Order ID from the NowPayment API
Claim
Purpose: Allows users to claim purchased coins.
Details:
Checks the NowPayment for unpaid orders and determines their statuses.
Detects confirmed and paid orders and releases transactions accordingly:
Based on specified PAC amount and locktime.
Updates the order status to "paid."
History
Purpose: Displays the order history for a specific user.
Details:
Fetches and displays a complete list of the user's orders from the database.
Disable
Purpose: Admin-only command to disable the currently active crowdfunding campaign.
Details:
Updates the campaign status to "inactive" in the database.
Report
Purpose: Admin-only command to make a report regarding a specific crowdfund campaign..
Details:
Show the report regarding the specific campaign.
Calling this command barely should list all campaigns (active and non active)
Description:
We aim to implement a new
crowdfund
command in Pagu, our internal bot for the Pactus blockchain. This feature will enable community engagement in crowdfunding campaigns to support the growth of the project. The command will consist of multiple subcommands with distinct functionalities, as described below. We will use NowPaymnet to facilate the payment gateway. An old implementation of NowPayment can be found hereSubcommands:
Create
Info
Purchase
Claim
History
Disable
Report
Sub-Issues:
create
subcommand functionality. #184info
subcommand functionality. #185purchase
subcommand functionality with database integration. #186claim
subcommand functionality with NowPayment integration. #187history
subcommand functionality. #188disable
subcommand functionality. #189report
subcommand functionality. #190The text was updated successfully, but these errors were encountered: