diff --git a/v2/asset_detail_service.go b/v2/asset_detail_service.go index 8139789b..452a0dcb 100644 --- a/v2/asset_detail_service.go +++ b/v2/asset_detail_service.go @@ -111,6 +111,10 @@ type Network struct { WithdrawMax string `json:"withdrawMax"` WithdrawMin string `json:"withdrawMin"` SameAddress bool `json:"sameAddress"` // 是否需要memo + EstimatedArrivalTime int `json:"estimatedArrivalTime"` + Busy bool `json:"busy"` + ContractAddressUrl string `json:"contractAddressUrl"` + ContractAddress string `json:"contractAddress"` } // GetUserAssetService Get user assets diff --git a/v2/asset_detail_service_test.go b/v2/asset_detail_service_test.go index 0ea4b408..93bccfcc 100644 --- a/v2/asset_detail_service_test.go +++ b/v2/asset_detail_service_test.go @@ -77,7 +77,11 @@ func (s *assetDetailServiceTestSuite) TestGetAllCoinsInfo() { "withdrawIntegerMultiple": "0.00000001", "withdrawMax": "9999999999.99999999", "withdrawMin": "0.00000440", - "sameAddress": true + "sameAddress": true, + "estimatedArrivalTime": 25, + "busy": false, + "contractAddressUrl": "https://bscscan.com/token/", + "contractAddress": "0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c" }, { "addressRegex": "^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$|^(bc1)[0-9A-Za-z]{39,59}$", @@ -96,7 +100,11 @@ func (s *assetDetailServiceTestSuite) TestGetAllCoinsInfo() { "withdrawIntegerMultiple": "0.00000001", "withdrawMax": "750", "withdrawMin": "0.00100000", - "sameAddress": false + "sameAddress": false, + "estimatedArrivalTime": 25, + "busy": false, + "contractAddressUrl": "", + "contractAddress": "" } ], "storage": "0.00000000", @@ -118,6 +126,10 @@ func (s *assetDetailServiceTestSuite) TestGetAllCoinsInfo() { s.r().NoError(err) s.r().Equal(res[0].DepositAllEnable, true, "depositAllEnable") s.r().Equal(res[0].NetworkList[0].WithdrawEnable, false, "withdrawEnable") + s.r().Equal(res[0].NetworkList[0].EstimatedArrivalTime, 25, "estimatedArrivalTime") + s.r().Equal(res[0].NetworkList[0].Busy, false, "busy") + s.r().Equal(res[0].NetworkList[0].ContractAddressUrl, "https://bscscan.com/token/", "contractAddressUrl") + s.r().Equal(res[0].NetworkList[0].ContractAddress, "0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c", "contractAddress") s.r().Equal(res[0].NetworkList[1].MinConfirm, 1, "minConfirm") }