This commit is contained in:
lu7213 committed 2026-03-03 09:39:33 +08:00
1 parent 68a2b4f68c
commit 7cd697187c
308 files changed
+30454 -75

No files matched your search

@@ -0,0 +1,11 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.Map;
@Data
public class AccountResource {
@JsonProperty("frozen_balance_for_energy")
private Map<String, Object> frozenBalanceForEnergy;
}
@@ -0,0 +1,72 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Map;
@Data
public class Bandwidth {
@JsonProperty("energyRemaining")
private long energyRemaining;
@JsonProperty("energyLimit")
private long energyLimit;
@JsonProperty("totalEnergyLimit")
private long totalEnergyLimit;
@JsonProperty("totalEnergyWeight")
private long totalEnergyWeight;
@JsonProperty("energyUsed")
private long energyUsed;
@JsonProperty("netUsed")
private long netUsed;
@JsonProperty("netLimit")
private long netLimit;
@JsonProperty("netRemaining")
private long netRemaining;
@JsonProperty("freeNetLimit")
private long freeNetLimit;
@JsonProperty("freeNetUsed")
private long freeNetUsed;
@JsonProperty("freeNetRemaining")
private long freeNetRemaining;
@JsonProperty("totalNetLimit")
private long totalNetLimit;
@JsonProperty("totalNetWeight")
private long totalNetWeight;
@JsonProperty("netPercentage")
private BigDecimal netPercentage;
@JsonProperty("freeNetPercentage")
private BigDecimal freeNetPercentage;
@JsonProperty("energyPercentage")
private BigDecimal energyPercentage;
@JsonProperty("storageLimit")
private long storageLimit;
@JsonProperty("storageUsed")
private long storageUsed;
@JsonProperty("storageRemaining")
private long storageRemaining;
@JsonProperty("storagePercentage")
private BigDecimal storagePercentage;
@JsonProperty("assets")
private Map<String, Object> assets;
}
@@ -0,0 +1,24 @@
package com.ruoyi.system.domain.vo;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
@Data
public class EnergyAndBandwidthVo implements Serializable {
private BigDecimal delegateBandwidth;
private BigDecimal delegateEnergy;
private Long stakedTrxNum;
@Excel(name = "质押还剩能用的带宽")
private Long bandwidthStakedNum;
private BigDecimal bandwidth;
private BigDecimal energy;
private BigDecimal acquiredBandwidth;
private BigDecimal acquiredEnergy;
}
@@ -0,0 +1,15 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
@Data
public class Frozen {
@JsonProperty("total")
private long total;
@JsonProperty("balances")
private List<Object> balances;
}
@@ -0,0 +1,26 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
@Data
public class Permission {
@JsonProperty("id")
private int id;
@JsonProperty("type")
private String type;
@JsonProperty("permission_name")
private String permissionName;
@JsonProperty("threshold")
private int threshold;
@JsonProperty("operations")
private String operations;
@JsonProperty("keys")
private List<PermissionKey> keys;
}
@@ -0,0 +1,13 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class PermissionKey {
@JsonProperty("address")
private String address;
@JsonProperty("weight")
private int weight;
}
@@ -0,0 +1,20 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class Representative {
@JsonProperty("lastWithDrawTime")
private long lastWithDrawTime;
@JsonProperty("allowance")
private long allowance;
@JsonProperty("enabled")
private boolean enabled;
@JsonProperty("url")
private String url;
}
@@ -0,0 +1,47 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class TokenBalance {
@JsonProperty("tokenId")
private String tokenId;
@JsonProperty("tokenName")
private String tokenName;
@JsonProperty("tokenAbbr")
private String tokenAbbr;
@JsonProperty("tokenDecimal")
private int tokenDecimal;
@JsonProperty("tokenType")
private String tokenType;
@JsonProperty("balance")
private String balance;
@JsonProperty("amount")
private BigDecimal amount;
@JsonProperty("tokenPriceInTrx")
private BigDecimal tokenPriceInTrx;
@JsonProperty("vip")
private boolean vip;
@JsonProperty("tokenCanShow")
private int tokenCanShow;
@JsonProperty("tokenLogo")
private String tokenLogo;
@JsonProperty("transferCount")
private long transferCount;
@JsonProperty("nrOfTokenHolders")
private long nrOfTokenHolders;
}
@@ -0,0 +1,18 @@
package com.ruoyi.system.domain.vo;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* TRON 钱包信息实体
*/
@Data
public class TronAccount implements Serializable {
private static final long serialVersionUID = 1L;
private List<TronAccountItem> items;
private String phrase;
}
@@ -0,0 +1,63 @@
package com.ruoyi.system.domain.vo;
import lombok.Data;
import java.io.Serializable;
/**
* TRON 钱包信息实体
*/
@Data
public class TronAccountItem implements Serializable {
private static final long serialVersionUID = 1L;
/**
* Base58 地址(T 开头)
* 示例:TDYsiHd9Jac9Hs2wFBySrbAgx548ahXuQW
*/
private String address;
private String pubKeyCompressed;
private String pubKeyUnCompressed;
/**
* 私钥(Hex)
* 示例:xxxx
*/
private String privateKey;
private String path;
/**
* Hex 地址(41 开头)
* 示例:41xxx
*/
private String hexAddress;
/**
* Base58 私钥
* 示例:xxx
*/
private String privateKeyBase58;
public TronAccountItem() {
}
public TronAccountItem(String address, String privateKey, String hexAddress, String privateKeyBase58) {
this.address = address;
this.privateKey = privateKey;
this.hexAddress = hexAddress;
this.privateKeyBase58 = privateKeyBase58;
}
@Override
public String toString() {
return "TronAccount{" +
"address='" + address + '\'' +
", hexAddress='" + hexAddress + '\'' +
'}';
}
}
@@ -0,0 +1,254 @@
package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class TronAccountResp {
@JsonProperty("totalFrozenV2")
private long totalFrozenV2;
@JsonProperty("transactions_out")
private int transactionsOut;
@JsonProperty("frozenForEnergyV2")
private long frozenForEnergyV2;
@JsonProperty("totalEnergy")
private long totalEnergy;
@JsonProperty("rewardNum")
private int rewardNum;
/**
* 我代理给别人的 2.0 带宽trx
*/
@JsonProperty("delegatedFrozenV2BalanceForBandwidth")
private long delegatedFrozenV2BalanceForBandwidth;
@JsonProperty("ownerPermission")
private Permission ownerPermission;
@JsonProperty("redTag")
private String redTag;
@JsonProperty("delegateFrozenForEnergy")
private long delegateFrozenForEnergy;
@JsonProperty("totalEnergyRemaining")
private long totalEnergyRemaining;
@JsonProperty("balance")
private long balance;
@JsonProperty("frozenForBandWidthV2")
private long frozenForBandWidthV2;
@JsonProperty("canWithdrawAmountV2")
private long canWithdrawAmountV2;
@JsonProperty("netRemainingCal")
private long netRemainingCal;
@JsonProperty("delegated")
private Map<String, Object> delegated;
@JsonProperty("transactions_in")
private int transactionsIn;
@JsonProperty("totalTransactionCount")
private int totalTransactionCount;
@JsonProperty("frozenForEnergyV2Value")
private long frozenForEnergyV2Value;
@JsonProperty("representative")
private Representative representative;
/**
* 别人代理给我 1.0 我获得的带宽值
*/
@JsonProperty("acquiredDelegatedFrozenBalanceForBandwidthValue")
private BigDecimal acquiredDelegatedFrozenBalanceForBandwidthValue;
@JsonProperty("announcement")
private String announcement;
@JsonProperty("allowExchange")
private List<Object> allowExchange;
@JsonProperty("accountType")
private int accountType;
@JsonProperty("totalFrozenBandwidthValue")
private long totalFrozenBandwidthValue;
@JsonProperty("frozen")
private Frozen frozen;
@JsonProperty("balanceStr")
private String balanceStr;
@JsonProperty("transactions")
private int transactions;
/**
*我代理給別人的2.0 trx
*/
@JsonProperty("delegatedFrozenV2BalanceForEnergy")
private long delegatedFrozenV2BalanceForEnergy;
@JsonProperty("totalFrozenEnergyV2Value")
private long totalFrozenEnergyV2Value;
@JsonProperty("name")
private String name;
@JsonProperty("totalFrozenEnergyValue")
private long totalFrozenEnergyValue;
@JsonProperty("frozenForEnergy")
private long frozenForEnergy;
@JsonProperty("energyCost")
private BigDecimal energyCost;
@JsonProperty("activePermissions")
private List<Permission> activePermissions;
/**
* 別人代理給我的 2.0 trx
*/
@JsonProperty("acquiredDelegatedFrozenV2BalanceForBandwidth")
private long acquiredDelegatedFrozenV2BalanceForBandwidth;
@JsonProperty("netCost")
private BigDecimal netCost;
/**
* 别人代理给我的 1.0 trx
*/
@JsonProperty("acquiredDelegateFrozenForBandWidth")
private long acquiredDelegateFrozenForBandWidth;
@JsonProperty("frozenForBandwidthValue")
private long frozenForBandwidthValue;
@JsonProperty("greyTag")
private String greyTag;
/**
* 我代理给别人的 2.0 能量值
*/
@JsonProperty("delegatedFrozenV2BalanceForEnergyValue")
private BigDecimal delegatedFrozenV2BalanceForEnergyValue;
@JsonProperty("withPriceTokens")
private List<TokenBalance> withPriceTokens;
/**
* 别人代理给我 我获得的 Stake 2.0 能量值
*/
@JsonProperty("acquiredDelegatedFrozenV2BalanceForEnergyValue")
private BigDecimal acquiredDelegatedFrozenV2BalanceForEnergyValue;
@JsonProperty("unfreezeV2")
private long unfreezeV2;
/**
* 我代理给别人的 2.0 带宽值
*/
@JsonProperty("delegatedFrozenV2BalanceForBandwidthValue")
private BigDecimal delegatedFrozenV2BalanceForBandwidthValue;
@JsonProperty("feedbackRisk")
private boolean feedbackRisk;
@JsonProperty("voteTotal")
private long voteTotal;
@JsonProperty("totalFrozen")
private long totalFrozen;
@JsonProperty("totalFrozenBandwidthV2Value")
private long totalFrozenBandwidthV2Value;
@JsonProperty("latest_operation_time")
private long latestOperationTime;
@JsonProperty("totalNetRemaining")
private long totalNetRemaining;
@JsonProperty("frozenForBandWidth")
private long frozenForBandWidth;
@JsonProperty("reward")
private int reward;
@JsonProperty("frozenForEnergyV2ValueSum")
private BigDecimal frozenForEnergyV2ValueSum;
@JsonProperty("addressTagLogo")
private String addressTagLogo;
@JsonProperty("address")
private String address;
@JsonProperty("frozen_supply")
private List<Object> frozenSupply;
@JsonProperty("bandwidth")
private Bandwidth bandwidth;
@JsonProperty("date_created")
private long dateCreated;
/**
* 别人代理给我 我获得的 Stake 2.0 Trx
*/
@JsonProperty("acquiredDelegatedFrozenV2BalanceForEnergy")
private long acquiredDelegatedFrozenV2BalanceForEnergy;
@JsonProperty("frozenForBandwidthV2Value")
private long frozenForBandwidthV2Value;
@JsonProperty("frozenForBandwidthV2ValueSum")
private BigDecimal frozenForBandwidthV2ValueSum;
@JsonProperty("accountResource")
private AccountResource accountResource;
@JsonProperty("totalNet")
private long totalNet;
@JsonProperty("blueTag")
private String blueTag;
/**
* 别人代理给我 我获得的 Stake 2.0 带宽值
*/
@JsonProperty("acquiredDelegatedFrozenV2BalanceForBandwidthValue")
private BigDecimal acquiredDelegatedFrozenV2BalanceForBandwidthValue;
@JsonProperty("witness")
private int witness;
@JsonProperty("frozenForEnergyValue")
private long frozenForEnergyValue;
@JsonProperty("freezing")
private long freezing;
/**
* 我代理给别人的带宽trx 1.0
*/
@JsonProperty("delegateFrozenForBandWidth")
private long delegateFrozenForBandWidth;
/**
* 别人代理给我 能量 我获得的 Stake 1.0 能量值
*/
@JsonProperty("acquiredDelegatedFrozenBalanceForEnergyValue")
private BigDecimal acquiredDelegatedFrozenBalanceForEnergyValue;
@JsonProperty("activated")
private boolean activated;
/**
* 别人代理给我的 1.0 能量trx
*/
@JsonProperty("acquiredDelegateFrozenForEnergy")
private long acquiredDelegateFrozenForEnergy;
}