a new history tool for Steem Smart Contracts in test

in #dev5 years ago (edited)

Hi there,

When we started the Steem-Engine project we needed a tool to display a basic history for the accounts because the Steem Smart Contracts software doesn't retain old data, it's basically a state that changes every time a new transaction is processed so I developed in minutes a NodeJS app that only gathered basic information, transfer and issue operations... We lately received more and more messages saying that the history tool doesn't provide enough information so I worked on a new version that provides way more details!

This new version is in test for now and is available at https://history.steem-engine.com/accountHistory

The parameters available are:
account: a STEEM account (required)
symbol: a Steem-Engine token symbol (optional)
timestampStart: a unix timestamp that represents the start of the dataset (optional)
timestampEnd: a unix timestamp that represents the end of the dataset (optional)
limit: number of records for the dataset (max is 500) (optional)
offset: offset for the dataset (required to browse a dataset that is bigger than 500 records) (optional)

Examples:

https://history.steem-engine.com/accountHistory?account=steemsc
https://history.steem-engine.com/accountHistory?account=steemsc&symbol=ENG
https://history.steem-engine.com/accountHistory?account=steemsc&symbol=ENG&timestampStart=1554085536&timestampEnd=1564748055
https://history.steem-engine.com/accountHistory?account=steemsc&symbol=ENG&timestampStart=1554085536&timestampEnd=1564748055&limit=1&offset=1

The different operations available in the history:

Tokens contract:

tokens_create: a token was create
tokens_issue: tokens were issued
tokens_transfer: tokens were transfered between accounts
tokens_transferToContract: tokens were transfered from an account to a contract
tokens_transferFromContract: tokens were transfered from a contract to an account
tokens_updatePrecision: the precision of a token was updated
tokens_updateUrl: the url of a token was updated
tokens_updateMetadata: the metadata of a token was updated
tokens_transferOwnership: the ownership of a token was transfered
tokens_enableStaking: staking was enabled for a token
tokens_enableDelegation: delegation was enabled for a token
tokens_stake: tokens were staked
tokens_unstakeStart: an unstake was started
tokens_cancelUnstake: an unstake was canceled
tokens_unstake: tokens were unstaked
tokens_delegate: tokens were delegated
tokens_undelegateStart: an undelegation was started
tokens_undelegateDone: an undelegation was completed

Market contract:

market_cancel: an order was canceled
market_placeOrder: an order was placed
market_expire: an order expired
market_buy: tokens were bought
market_sell: tokens were sold
market_close: an order was closed

I'm working on adding a market history as well that will return the daily metrics per symbol (from the start of the sidechain)

The new source code is available at https://github.com/harpagon210/ssc_tokens_history/tree/v2

(the history is being built right now so don't worry if you don't see the latest data there)

Sort:  

Perfect! That's exactly what I was looking for. I will try to implement it into SteemWorld in the coming days.

SteemWorld is always open on my browser. It's the coolest tool on Steem, if you ask me.

Thanks for all the work you put into it!!!!!

Hi there!

I hope you don't mind me asking, and apologies if this a rather dumb question, but to what extent are these smart contracts comparable to others like on Ethereum or Tron?
Are they true "smart contracts"? How many exist right now, and how do you deploy one?

I think I'm just a little confused because people might be calling things that aren't technically smart-contracts, smart contracts.

Steem-Engine doesn't have a consensus layer yet, so technically they are note the same as other smart contract blockchains. You could run a node and verify that the operations registered on the steem blockchain are correctly interpreted. According to their team they will add the consensus layer in the future. Until then I guess we can call them quasi smart contracts.

Emailed 👌


Powered by witness untersatz!

Coin Marketplace

STEEM 0.31
TRX 0.12
JST 0.033
BTC 64341.19
ETH 3145.13
USDT 1.00
SBD 4.00