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.5.3 <=0.6.4; | |
contract Extension { | |
function blake2b256(bytes memory data) public view returns(bytes32); | |
function blockID(uint num) public view returns(bytes32); | |
function blockTotalScore(uint num) public view returns(uint64); | |
function blockTime(uint num) public view returns(uint); | |
function blockSigner(uint num) public view returns(address); | |
function totalSupply() public view returns(uint256); | |
function txProvedWork() public view returns(uint256); |
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
""" | |
This is a simple example of usage of CallbackData factory | |
For more comprehensive example see callback_data_factory.py | |
""" | |
import asyncio | |
import logging | |
from aiogram import Bot, Dispatcher, executor, types | |
from aiogram.contrib.fsm_storage.memory import MemoryStorage |