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

Questions tagged [eosio-code]

Questions relating to the official eosio code--for instance, this may include questions about particular functions or data structures, certain files or contracts, compilation or building problems, related libraries, scripts, binaries, or similar.

2
votes
1answer
26 views

Why smart contract function fails with “Error 3090004: Missing required authority”?

WHAT I WANT From the contract mycontract I want to call a function function1. The function function1 calls another function of mycontract called function2. The function function2 calls an action of ...
0
votes
0answers
10 views

Why EOSIO going to discard eosiocpp tool?

EOSIO introduced new eosio.cdt tool for contract development and there is many changes related to typedefs in this tool. Is eosio.cdt official by eos ? asking this because they have not mentioned ...
2
votes
2answers
35 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 ...
1
vote
1answer
26 views

Whats the use of EOSLIB_SERIALIZE?

I understand that it is used for serialization and deserialization of a struct but why does anybody want to serialize/deserialize the struct? What's the use case?
1
vote
1answer
19 views

Can EOS assure privacy?

In ethereum (public network), the data is all open access. Functions can be controlled via function modifiers. But anyone can view data stored in the contract. Is this the same in EOS? Once data is ...
1
vote
1answer
49 views

Error 3160009: No wast file found

The hello world contract is not getting compiled in the EOS v1.3 and eosio.cdt. The wasm and abi file is getting created but goes undetected. https://github.com/EOSIO/eos/issues/5349
0
votes
1answer
27 views

Contract Table Query Exception

As i was following eosio developers documentation #include <eosiolib/eosio.hpp> #include <eosiolib/print.hpp> using namespace eosio; using namespace std; class addressbook : public ...
1
vote
0answers
20 views

Failing EOSIO manual build, Could NOT find WASM (missing: WASM_CLANG WASM_LLC WASM_LLVM_LINK)

I tried to follow instruction from https://developers.eos.io/eosio-nodeos/docs/manually-build for manual build but kept failing the cmake step. cmake -DBINARYEN_BIN=~/binaryen/bin -DWASM_ROOT=~/wasm-...
1
vote
2answers
18 views

Who are the founders of EOS and are any of them anonymous like satoshi?

Was EOS created by 1 person or a team of people and are they all public?
0
votes
1answer
18 views

What is the use of eosio-code?

Some major questions I have - What does eosio-code mean? - When do we require eosio-code? - Why it is not mentioned in the official eosio developer's documentation?
1
vote
1answer
16 views

Low-Latency Block Production

It is possible to spawn your network by forking EOS source code and running the appropriate contracts. By extension, it is possible to set specific blockchain configuration in such scenario. For ...
3
votes
2answers
38 views
1
vote
0answers
43 views

Storing encrypted data on EOS blockchain

The following qa suggests that private data on the blockchain can be stored in an encrypted form: Can we add the permission to access the table? My question is whether there are any existing ...
0
votes
0answers
16 views

Remove ram functions from system contract?

I want to remove whole ram functionality from the default eosio.system contract. I want to set up a private network without trading ram How can I do that??
0
votes
0answers
11 views

How blockproducers validate transaction?

How blockproducers authenticate or validate transaction ? Which algorithm used to do that ?(other than dpos) i know that there is synchronization for transaction(for blockproducer's side) but what ...
2
votes
2answers
50 views

Meaning of N() function in multi_index

What is the role of N() in defining tables using multi_index. The primary key function does not return string. Why so? e.g. string primary_key() const {return Some_String_Object}. This throws an error....
0
votes
1answer
24 views

RAM Usage Exceeded Error - EOS transaction

I received this error since I had multiple transfers to other accounts, is there a workaround for this so that I can continue sending tokens out? "code":500,"message":"Internal Service Error","...
8
votes
1answer
110 views

Compile Rust to WebAssembly for EOS Smart Contract?

So I'm familiar with the fact that the supported language for EOS smart contracts is C++. However, the EOS docs mention that even the C++ needs to compile down to WebAssembly. So my question is, ...
2
votes
2answers
43 views

Most appropriate version of EOS to start

Currently I am running EOS version 1.1.1 for my smart contract, But within a short time so many versions had been released. Before that I was working with 1.0.1 because of some issues I switched to ...
7
votes
1answer
272 views

Can we add the permission to access the table?

I know how to declare ,initialize and get,set values in a table .My question is Can we add permission to access the table to a particular user inside our smart contract ?
6
votes
2answers
129 views

How I can typecast the “0.0001 EOS” into eosio::asset

I declared a variable value = "0.0001 EOS"; , inside my action I want to transfer those asset to a account .I am having difficulty to typacasting this string into the eosio::asset value . my code goes ...
2
votes
1answer
36 views

Need advise on creation of account

I am working on ICO based on eosio so what actually i need to do is i want to make a system in which all users come to signup and system generate a key pair for them and give them key and registered ...
0
votes
0answers
18 views

What are the functionality differences/similarities between BitShares and EOSIO?

EOSIO borrowed code from the BitShares codebase, but what was removed from BitShares/Graphene, what are the new modifications that are exclusive to the EOSIO architecture, and what architectural ...
0
votes
1answer
104 views

What is the ChainBase database used for?

EOSIO appears to make use of the Chainbase database for various functions in the codebase. What is this used for and how does it relate to the RAM concept in EOSIO? Is it simply the database used to ...
2
votes
1answer
62 views

What is the practical process by which BPs change the RAM available on the mainnet?

What is the process that BPs follow to update the RAM size at regular intervals? From what I can tell, the update is made in the eosio_global_state singleton to update the max_ram_size parameter in ...
2
votes
2answers
44 views

How do I find and edit Hello.cpp?

I'm on a Mac, and working through the Hello World contract. I managed to create the Hello.cpp file using the touch command in Terminal... but how do I find this file, and/or how do I edit it?
2
votes
0answers
101 views

How to correctly use Docker to run eosio (including eosiocpp)?

I can get the basic quickstart working very easily but when I try to add smart contract I get a lot of conflicts. I have read an article here claiming - https://medium.com/@ekkis/eos-development-on-...
2
votes
1answer
33 views

What is the command in docker to pull eosiocpp?

What is the command in docker to pull eosiocpp? Or where can I find it online?
3
votes
1answer
131 views

How does EOS prevent one contract from accessing another contract's tables without authorization?

I noticed that multi-index (which is under eosio namespace) uses the following to prevent access to another contract's tables: eosio_assert( _code == current_receiver(), "cannot create objects in ...
0
votes
0answers
18 views

Compiling eos software to get dlls

how can i compile eos software on linux/windows to get dlls i need in order to create eos wrapper for compile, deploy etc from other programming language such as Java, C# etc? Cheers
3
votes
1answer
112 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/...
0
votes
0answers
29 views

Action firing eosio_assert of another action

I'm not really familiar with leaks or overflows but I've been getting an intermittent bug in my smart contract on the Jungle testnet that is hard to pinpoint. An action, let's call it action A has ...
2
votes
1answer
58 views

Issue while compiling contract using eosiocpp

I am facing an issue while compiling the token contract. cd eos/contract/eosio.token eosiocpp -o eosio.token.wast eosio.token.cpp But it shows the following response, eosiocpp: command ...
3
votes
3answers
336 views

Can not find <eosiolib/eosio.hpp> when compiling with eosiocpp #2

I'm trying to compile any smart contract. Let's say the skeleton one. When running eosiocpp -o it can't find the header file for eosio. Not a duplicate of Can not find <eosiolib/eosio.hpp> when ...
4
votes
1answer
88 views

Retrieving from Log Storage vs. RAM

I'm quite new to EOS. As far as I know, some of the output from smart contracts are also stored in the Log Storage. At the same time, I can also choose to store those outputs in RAM. My questions ...
2
votes
1answer
39 views

Split Smart Contracts or not?

Is it computationally more heavy to put all functions into one smart contract, even though you only call one function at a time? Or is it better to split all functions into individual smart contracts?
3
votes
2answers
31 views

Commented owner/active parameters in the newaccount smart contract

In contracts/eosio.system/eosio.system.cpp, the following function has the owner and active authority parameters commented: void native::newaccount( account_name creator, ...
0
votes
1answer
53 views

Getting “ 404 - not found: /v1//wallet/create” while creating a wallet using http async request

I have build EOS locally on ubuntu 17.10 using autobuild script using (./eosio_build.sh). and then installed the executables using 1. $ cd build 2. $ sudo make install I've started keosd using the ...
1
vote
1answer
43 views

Is an account and a smart contract the same?

Essentially both have hash as an address and allows for execution of actions but are the actually the same thing?
4
votes
2answers
644 views

Require inline action be sent by contract, and not account

I have contractB trigger an inline action: /// @abi action void send() { action( permission_level{ _self, N(active) }, N(contractA), N(get), std::make_tuple( _self ) ...
3
votes
1answer
113 views

Sending transaction from a Windows application

I want to send a transaction to EOS blockchain from my windows application. What library do I have to put into the windows application? And what are the preparations? Thanks
1
vote
1answer
78 views

How to get current RAM price inside a contract in C++?

How can I programatically get the current(last) RAM price inside an EOS smart contract in C++? I need to handle the data inside the smart contract for an experiment.
2
votes
2answers
113 views

I can not find a definition for require_auth2, what does this do and how?

require_auth2 is used in action.hpp's require_auth. void require_auth(const permission_level& level) { require_auth2( level.actor, level.permission ); } require_auth2 is declared in action.h....