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
logger.LogInformation("Last auction found: name {Name}.ton (address {Address}), last bid = {Value} TON, bidder is {Address}",domain,domainAddress.Value,bid,dnsTx.InMsg.Source.Value);
47
-
48
-
// Step 2: Get some data from NFT
49
-
varsmc=awaittonClient.SmcLoad(domainAddress);
50
-
51
-
// Method 1: Call get_auction_info, it returns:
36
+
// Method 1: Call get_auction_info manually, it returns:
logger.LogInformation("Auction info (method 1): last bid = {Value} TON, bidder is {Address}, auction ends at {Time}",TonUtils.Coins.FromNano(coins),adr,DateTimeOffset.FromUnixTimeSeconds(endTime));
logger.LogInformation("Auction info (method 1-bis): last bid = {Value} TON, bidder is {Address}, auction ends at {Time}",ai!.MaxBidAmount,ai.MaxBidAddress,ai.AuctionEndTime);
71
50
72
-
varslice=data.ToBoc().RootCells[0].BeginRead();
51
+
// Method 2: Use TonRecipes to parse all DNS Item data.
logger.LogInformation("Auction info (method 2): last bid = {Value} TON, bidder is {Address}, auction ends at {Time}",di.AuctionInfo!.MaxBidAmount,di.AuctionInfo.MaxBidAddress,di.AuctionInfo.AuctionEndTime);
thrownewException("Domain name mismatch. Something went wrong...");
95
-
}
77
+
logger.LogInformation("Last auction found: domain '{Name}' (address {Address}), last bid = {Value} TON, bidder is {Address}",domain,domainAddress.Value,bid,dnsTx.InMsg.Source.Value);
96
78
97
-
varaucinfo=slice.LoadDict().BeginRead();
98
-
varadr2=aucinfo.LoadAddressIntStd();
99
-
varcoins2=aucinfo.LoadCoins();
100
-
varendTime2=aucinfo.LoadLong();
101
-
logger.LogInformation("Auction info (method 2): last bid = {Value} TON, bidder is {Address}, auction ends at {Time}",TonUtils.Coins.FromNano(coins2),adr2,DateTimeOffset.FromUnixTimeSeconds(endTime2));
0 commit comments