View Permissions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cleos set account permission test active '{"threshold":1, "keys":[{"key":"EOS6Kdb1AUAhZeYZrU7TJXh9KQQLziC7f42txc63ettp79mnYxQWf", "weight":1}], "accounts": [{"permission":{"actor":"test","permission":"eosio.code"},"weight":1}]}' owner -p test |
View Example EOS ICO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <eosiolib/eosio.hpp> | |
#include <eosiolib/currency.hpp> | |
using namespace eosio; | |
class hello : public eosio::contract { | |
public: | |
using contract::contract; | |
hello(account_name self) : contract(self) {} |
View Recursive Transactions EOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <eosiolib/eosio.hpp> | |
#include <eosiolib/transaction.hpp> | |
using namespace eosio; | |
using namespace std; | |
class rec : public eosio::contract { | |
public: | |
using contract::contract; |
View ABI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"minterList","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"add |
View WC.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.21; | |
contract ERC223ReceivingContract { | |
/** | |
* @dev Standard ERC223 function that will handle incoming token transfers. | |
* | |
* @param _from Token sender address. | |
* @param _value Amount of tokens. | |
* @param _data Transaction metadata. | |
*/ |
View API.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Создает новый запрос на минтинг 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); // Адрес клиента |
View gist:510818bdab3142dafa86cc47d4107ab8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xaC61a6f2C5299432d89E332924407Cba81f9f896 |