Tutorial: Extending Sonic With Limit Orders Using ic-cron Library | HackerNoon

  • 📰 hackernoon
  • ⏱ Reading Time:
  • 28 sec. here
  • 2 min. at publisher
  • 📊 Quality Score:
  • News: 14%
  • Publisher: 51%

Technology Technology Headlines News

Technology Technology Latest News,Technology Technology Headlines

'Tutorial: Extending Sonic With Limit Orders Using ic-cron Library' by Joinu9 decentralizedinternet dfinity

This is it. We made it through all of the API clients. You can use them in any application you want, when you need to interact with these services.Let’s start with the definition of the state of our bot. The bot should know, so it will only do something when we’re telling him to do that .

Next we need to make sure that the bot can wrap its cycles into XTC and then unwrap them back. Let’s define the following two methods for that: Back to XTC’s functions. Inside them we use the XTC’s API client we defined earlier. We pass results of these call through themethod twice: the first time - to make sure that the remote call was at all successful ; and the second time - to make sure that canisters internal logic Last, but not least, despite these methods not changing the state of our canister, we annotate it with an macro.

 

Thank you for your comment. Your comment will be published after being reviewed.
Please try again later.
We have summarized this news so that you can read it quickly. If you are interested in the news, you can read the full text here. Read more:

 /  🏆 532. in TECHNOLOGY

Technology Technology Latest News, Technology Technology Headlines