Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Unanswered Questions

361 questions with no upvoted or accepted answers
6
votes
0answers
74 views

Using “native” wat/wasm function in smart-contract

I have to do some heavy computation in my smart-contract, like say a+b. Fortunately, I have written some very efficient implementation in "native" (web)assembly, like: File add.wast: (module (func ...
6
votes
1answer
76 views

Is it possible to see a smart contract code hash from within a smart contract?

I would like to check the code hash of an account from within my smart contract. Is this possible?
5
votes
0answers
127 views

How to add a unit test for a new contract

I am currently on eosio v1.1 but will be upgrading to v1.2 shortly. I am trying to create a new unit test for my contract. The existing unittest work when I run the following cd eos/build/unittest ...
4
votes
1answer
146 views

eosio.contract cannot compile with error code 1 of eosio.wasmsdk by Clion

We are compile the eosio.contract v1.2.0 using Clion by following that: Dependencies: eosio v1.1.2 eosio.wasmsdk v1.1.0 Cannot get compiler information: Compiler exited with error code 1: /usr/...
4
votes
1answer
336 views

How to set up chain of permission levels for a user?

This is a great answer that describes the ways you can handle user permission levels for inline actions. According to that answer: This can be done a few ways (ordered from most risky for the user ...
4
votes
2answers
164 views

Custom struct abi serialization

I am trying to understand, how the string "100000000.000 SYS" is serialized into struct asset from eosio.token example ( cleos push action eosio.token create '[ "eosio", "1000000000.0000 SYS", 0, 0, 0]...
3
votes
2answers
62 views

Is LevelDB used in EOS?

I know Ethereum uses leveldb. When I checked into EOS I could not find that much out. I thought when I tested I did see leveldb. Can someone confirm how the immutable data is stored? EDIT I think ...
3
votes
1answer
104 views

How can I get an accounts currency balance using eosjs

In the new version of eosjs, the getCurrencyBalance() method is no longer supported. How can I still get the currency balance of an account using eosjs?
3
votes
1answer
18 views

What is the quickest way to get a local EOS Block Explorer up and running?

I would love to have an EOS Block Explorer on my local machine for during development. Would be a great development tool :-). Who can provide me the steps / tools to get it up and running?
3
votes
1answer
68 views

EOSJS how to query the top voters

I can get some unsorted voters by using await eos.getTableRows({ json: true, code: 'eosio', scope: 'eosio', table: 'voters', // tableKey, // lowerBound, // upperBound, ...
3
votes
1answer
345 views

EOS premium name bidding / refunding / alert tools (eosio.names)

As I am exploring the premium EOS name bidding stuff, I noticed that if someone outbids another previous bidder, EOS automatically issues a refund transaction to return the staked bids. That's great. ...
3
votes
0answers
107 views

Execute get_supply function within contract

I want to execute get_supply from currency.hpp. Here is the definition: asset get_supply( symbol_name symbol )const { accounts t( _contract, symbol ); return t.get(symbol).balance; ...
3
votes
1answer
105 views

How to confirm if a transaction is confirmed for a wallet app?

Our wallet client wants to check if a transaction issued by some an account is confirmed or not. I know history_api_plugin provides API for query actions related to the account. But if the filter for ...
3
votes
0answers
39 views

How are anonymous balances and records implemented

Daniel Larimer has said, "account balances can be made confidential but not source/sender." (Source: EOS Telegram group) How do confidential account balances work? How, if at all, does that technique ...
3
votes
0answers
63 views

When launching dawn4.0 on ubuntu 16.04, i got some errors “Error 3110001: Missing Chain API Plugin”

When launching dawn4.0 on ubuntu 16.04, i got some errors "Error 3110001: Missing Chain API Plugin" this error only happened on ubuntu on dawn4.0, and mac or centos work well.

15 30 50 per page