Skip to content

Instantly share code, notes, and snippets.

@MikkySnow
Last active May 9, 2018 22:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save MikkySnow/f067dc4ab83d723d9a20edae0125791a to your computer and use it in GitHub Desktop.
API
// Создает новый запрос на минтинг WhiteCoin
// amount - количество токенов для создания
// address - адрес клиента, на который нужно отправить WhiteCoi
mintingRequest: function (amount, address) {
WhiteCoin.mintingRequest(amount, address, (error, result) => {
// TODO: Добавить сюда обработку результата
WhiteCoin.NewMintingRequest().watch((err, response) => {
console.log(response.args.amount); // Сумма для эмиссии
console.log(response.args.id); // Номер запроса, который мы подставляем в mintWhitecoin()
console.log(response.args.to); // Адрес клиента
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment