You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
### 質押合約API
``` NFT nftContract; // NFT合約 Pool poolContract; // 池子合約 ProductInfo[] public productInfo; //產品信息 uint256 nextTokenId = 1; //生成NFT ID mapping(uint256 => PledgeType) pledges; // 質押信息,可變 mapping(address => RecommendObjType) public recommendObj; // 用戶綁定記錄 mapping(address => uint256[]) public invitationTokens; // 所有貢獻收益的tokenID mapping(address => address[]) public invitationAddress; // 所有貢獻收益的地址 mapping(address => PledgeType[]) public pledgeRecords; //質押記錄 不可變
<!-- 獲取該地址的所有質押信息 --> function getOwnerAllPledgeInfo( address _ownerAddress ) public view returns (PledgeType[] memory result) <!-- 獲取質押產品信息 --> function getProductInfo() public view returns (ProductInfo[] memory)
<!-- // 獲取該地址的所有質押信息 --> ```
|