From 91c36cc2d9b5fae741fe5a59e366eb34c7072674 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 12 Jul 2023 10:38:06 +0800
Subject: [PATCH] 智能合约
---
src/main/java/cc/mrbird/febs/rabbit/producer/ChainProducer.java | 129 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 128 insertions(+), 1 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/rabbit/producer/ChainProducer.java b/src/main/java/cc/mrbird/febs/rabbit/producer/ChainProducer.java
index f03b2d2..5874e12 100644
--- a/src/main/java/cc/mrbird/febs/rabbit/producer/ChainProducer.java
+++ b/src/main/java/cc/mrbird/febs/rabbit/producer/ChainProducer.java
@@ -87,9 +87,18 @@
* 转账拨币
*/
public void sendBnbTransferMsg(Long id) {
- log.info("转账拨币:{}", id);
+ log.info("开始转账拨币第一步:{}", id);
CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
rabbitTemplate.convertAndSend(QueueEnum.BNB_TRANSFER.getExchange(), QueueEnum.BNB_TRANSFER.getRoute(), id, correlationData);
+ }
+
+ /**
+ * 转账拨币
+ */
+ public void sendBnbTransferTestMsg(Long id) {
+ log.info("开始转账拨币第二步:{}", id);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.BNB_TRANSFER_TEST.getExchange(), QueueEnum.BNB_TRANSFER_TEST.getRoute(), id, correlationData);
}
/**
@@ -100,4 +109,122 @@
CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
rabbitTemplate.convertAndSend(QueueEnum.BNB_AGENT_UP.getExchange(), QueueEnum.BNB_AGENT_UP.getRoute(), id, correlationData);
}
+
+ /**
+ * A 入金的消息
+ * @param id
+ */
+ public void sendAntACoinInMsg(Long id) {
+ log.info("开始---A 入金的消息:{}", id);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_IN.getExchange(), QueueEnum.ANT_A_CION_IN.getRoute(), id, correlationData);
+ }
+
+ /**
+ * A 入金,转入A底池
+ * @param id
+ */
+ public void sendAntACoinInAPoolMsg(Long id) {
+ log.info("开始---A 入金,转入A底池:{}", id);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_IN_A_POOL.getExchange(), QueueEnum.ANT_A_CION_IN_A_POOL.getRoute(), id, correlationData);
+ }
+
+ /**
+ * A 入金,转入B底池
+ * @param id
+ */
+ public void sendAntACoinInBPoolMsg(Long id) {
+ log.info("开始---A 入金,转入B底池:{}", id);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_IN_B_POOL.getExchange(), QueueEnum.ANT_A_CION_IN_B_POOL.getRoute(), id, correlationData);
+ }
+
+ /**
+ * A 入金,5%节点
+ * @param id
+ */
+ public void sendAntACoinInNodeMsg(Long id) {
+ log.info("开始---A 入金,转入5%节点:{}", id);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_IN_NODE.getExchange(), QueueEnum.ANT_A_CION_IN_NODE.getRoute(), id, correlationData);
+ }
+
+ /**
+ * A 入金,10%极差奖
+ * @param id
+ */
+ public void sendAntACoinInLevelMsg(Long id) {
+ log.info("开始---A 入金,转入10%极差奖:{}", id);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_IN_LEVEL.getExchange(), QueueEnum.ANT_A_CION_IN_LEVEL.getRoute(), id, correlationData);
+ }
+
+ /**
+ * A 提现
+ * @param id
+ */
+ public void sendAntACoinOutMsg(Long id) {
+ log.info("开始---A 提现:{}", id);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_OUT.getExchange(), QueueEnum.ANT_A_CION_OUT.getRoute(), id, correlationData);
+ }
+
+ /**
+ * A 代理升级
+ * @param memberId
+ */
+ public void sendAntMemberLevelMsg(Long memberId) {
+ log.info("开始---A 代理升级:{}", memberId);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.ANT_MEMBER_LEVEL.getExchange(), QueueEnum.ANT_MEMBER_LEVEL.getRoute(), memberId, correlationData);
+ }
+
+ /**
+ * A k线数据
+ * @param type
+ */
+ public void sendAntKLineMsg(int type) {
+ log.info("开始---A k线数据:{}", type);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.ANT_K_LINE.getExchange(), QueueEnum.ANT_K_LINE.getRoute(), type, correlationData);
+ }
+
+ /**
+ * 转账拨币
+ */
+ public void sendAntKLineABMsg(Long id) {
+ log.info("开始转账拨币第二步:{}", id);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.ANT_K_LINE_AB.getExchange(), QueueEnum.ANT_K_LINE_AB.getRoute(), id, correlationData);
+ }
+
+ /**
+ * 转账拨币
+ */
+ public void sendAllMemberPerkAvaMsg(Long id) {
+ log.info("开始全体平分:{}", id);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.ALL_MEMBER_PERK_AVA.getExchange(), QueueEnum.ALL_MEMBER_PERK_AVA.getRoute(), id, correlationData);
+ }
+
+ /**
+ * 合约铸造ANDAO
+ */
+ public void sendContractAnDao(Long flowId) {
+ log.info("合约铸造ANDAO:{}", flowId);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.CONTRACT_AN_DAO.getExchange(), QueueEnum.CONTRACT_AN_DAO.getRoute(), flowId, correlationData);
+ }
+
+
+ /**
+ * A 入金的消息
+ * @param id
+ */
+ public void sendAntACoinInContractMsg(Long id) {
+ log.info("开始---合约铸造ANDAO:{}", id);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_IN_CONTRACT.getExchange(), QueueEnum.ANT_A_CION_IN_CONTRACT.getRoute(), id, correlationData);
+ }
}
--
Gitblit v1.9.1